From 9110292f83af16263c146a2c986c53e9ec9e5b86 Mon Sep 17 00:00:00 2001 From: wangjiahao <1522128093@qq.com> Date: Mon, 28 Oct 2024 22:41:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E4=BB=AA=E8=A1=A8=E6=9D=BF=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=A4=A7=E5=B1=8F):=20=E5=88=9D=E5=A7=8B?= =?UTF-8?q?=E5=8C=96=E5=AF=8C=E6=96=87=E6=9C=AC=E8=A1=A8=E6=A0=BC=E5=A4=A7?= =?UTF-8?q?=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/custom-component/rich-text/DeRichTextView.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue index 4437394493..631e432ab8 100644 --- a/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue +++ b/core/core-frontend/src/custom-component/rich-text/DeRichTextView.vue @@ -172,6 +172,12 @@ const init = ref({ branding: false, icons: 'vertical-content', vertical_align: element.value.propValue.verticalAlign, + table_default_attributes: { + width: '400' // 使用 table_default_attributes 设置表格的宽度 + }, + table_default_styles: { + width: '400px' // 或者使用 table_default_styles 设置宽度,单位为 px + }, setup: function (editor) { let cloneHandle = null // 用于存储克隆的手柄 let originalHandle = null // 用于存储原始手柄