(修复)修复问题单无法显示null的问题

This commit is contained in:
2024-07-29 18:32:53 +08:00
parent 7aecdb2df6
commit 8773e5f927
16 changed files with 891 additions and 4432 deletions

View File

@@ -43,7 +43,10 @@ const appStore = useAppStore()
const props = defineProps({
modelValue: { type: String },
height: { type: Number, default: 200 },
id: { type: String, default: () => "tinymce" + new Date().getTime().toString() },
id: {
type: String,
default: () => "tinymce" + new Date().getTime().toString() + "-" + Math.random().toString(16).substring(2,10)
},
plugins: {
type: [String, Array],
default: "searchreplace visualchars code table nonbreaking lists autosave"
@@ -129,7 +132,7 @@ const initConfig = reactive({
skeletonScreen: true,
branding: false,
content_css: "/tinymce/skins/content/default/content.css",
selector: "#textarea1", // 下面自定义样式选中的区域为编辑区
// selector: "#textarea1", // 下面自定义样式选中的区域为编辑区
content_style: "body {line-height:1.5;font-size:14px;} p {margin:2px 0px;}", // 这里可以设置自定义样式
// paste_as_text: false, // 粘贴文字只能是纯文本
// 1.自定义粘贴过滤器函数args.content就是粘贴内容

View File

@@ -5,9 +5,10 @@
:custom-field="props.customField"
>
<slot :name="`form-${props.component.dataIndex}`" v-bind="props.component">
<!-- chen.xiugai-warning -->
<component
:is="getComponentName()"
v-model="value"
v-model.trim="value"
:size="props.component.size"
:allow-clear="props.component.allowClear ?? true"
:disabled="props.component.disabled"