factory_web/src/views/vab/editor.vue

39 lines
1.3 KiB
Vue
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<el-main>
<el-card shadow="never">
<sc-editor v-model="html" placeholder="请输入" :height="400"></sc-editor>
</el-card>
<el-card shadow="never" header="配置" style="margin-top: 20px;">
<el-descriptions border column="1">
<el-descriptions-item label="v-model">绑定的内容</el-descriptions-item>
<el-descriptions-item label="placeholder">占位符</el-descriptions-item>
<el-descriptions-item label="height">编辑器高度默认300</el-descriptions-item>
<el-descriptions-item label="disabled">禁用编辑器 Boolean</el-descriptions-item>
<el-descriptions-item label="toolbar">自定义工具栏使用"|"竖杠分割使用"\"斜杠分组,默认:'undo redo | forecolor backcolor bold italic underline strikethrough link | blocks fontfamily fontsize | \
alignleft aligncenter alignright alignjustify outdent indent lineheight | bullist numlist | \
image table preview | code selectall'</el-descriptions-item>
</el-descriptions>
</el-card>
</el-main>
</template>
<script>
import { defineAsyncComponent } from 'vue';
const scEditor = defineAsyncComponent(() => import('@/components/scEditor'));
export default {
name: "editor",
components: {
scEditor
},
data(){
return {
html: ''
}
}
}
</script>
<style>
</style>