fix: 保留合同表格调整后的列宽行高并修复导出水印,确保保存与导出布局一致。
This commit is contained in:
1 parent
027d1751a3
commit
94727cdca9
12 files changed
+591
-119
No files matched your search
@@ -121,6 +121,8 @@ const isSXSupplier = computed(() => {
|
||||
});
|
||||
|
||||
// TinyMCE 配置
|
||||
let tinymceEditor: any = null
|
||||
|
||||
const editorInit = computed(() => {
|
||||
const baseZIndex = resolveTinyMceBaseZIndex();
|
||||
const backgroundStyle = isSXSupplier.value
|
||||
@@ -354,6 +356,7 @@ const editorInit = computed(() => {
|
||||
|
||||
// 初始化回调
|
||||
setup: (editor: any) => {
|
||||
tinymceEditor = editor
|
||||
props.editorSetupExtra?.(editor)
|
||||
setupTableEdgeResize(editor)
|
||||
|
||||
@@ -620,6 +623,14 @@ const editorInit = computed(() => {
|
||||
};
|
||||
});
|
||||
|
||||
/** 导出、保存前读取编辑器里正在显示的 HTML(含拖过的列宽、行高)。 */
|
||||
const getHtml = (): string => {
|
||||
if (!tinymceEditor) return contentValue.value
|
||||
return tinymceEditor.getContent()
|
||||
}
|
||||
|
||||
defineExpose({ getHtml })
|
||||
|
||||
onMounted(() => {
|
||||
console.log('TinyMCE 组件挂载,内容:', props.modelValue?.substring(0, 100));
|
||||
});
|
||||
|
||||
Reference in new issue
Block a user