Merge pull request #12954 from dataease/pr@dev-v2@fix_rich-table

refactor(仪表板、数据大屏): 初始化富文本表格大小
This commit is contained in:
王嘉豪
2024-10-28 22:42:18 +08:00
committed by GitHub

View File

@@ -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 // 用于存储原始手柄