diff --git a/src/components/DialogForm/index.vue b/src/components/DialogForm/index.vue index c780edba..0c4fcff1 100644 --- a/src/components/DialogForm/index.vue +++ b/src/components/DialogForm/index.vue @@ -142,9 +142,6 @@ function findMaxLabelWidth(rows) { if (!opt.label) return 0; if (opt.label.length > max) { max = opt.label.length; - if (opt.label.includes('(')) { - max = max - 3 - } } }); }); @@ -242,7 +239,7 @@ export default { size: { type: String, default: '', - } + }, }, data() { return { diff --git a/src/components/Editor/index.vue b/src/components/Editor/index.vue index 046e334a..1b0d68c1 100644 --- a/src/components/Editor/index.vue +++ b/src/components/Editor/index.vue @@ -83,7 +83,7 @@ export default { ], }, placeholder: '请输入内容', - // readOnly: false, + readOnly: true, }, }; }, @@ -123,13 +123,11 @@ export default { const editor = this.$refs.editor; this.Quill = new Quill(editor, this.options); // 取消自动聚焦 start - this.Quill?.enable(false); this.$nextTick(() => { - this.Quill?.enable(true); this.Quill?.blur(); - // if (!this.readOnly) { - // this.Quill?.enable(); - // } + if (!this.readOnly) { + this.Quill?.enable(); + } }); // 如果设置了上传地址则自定义图片上传事件 if (this.type === 'url') { @@ -198,7 +196,7 @@ export default { }; - --> + diff --git a/src/views/base/packagingPrintModel/add-or-updata.vue b/src/views/base/packagingPrintModel/add-or-updata.vue index 9e66ebe9..d22f295f 100644 --- a/src/views/base/packagingPrintModel/add-or-updata.vue +++ b/src/views/base/packagingPrintModel/add-or-updata.vue @@ -1,12 +1,12 @@