adtec-core-package 1.6.3 → 1.6.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
cursor: pointer;
|
|
19
19
|
overflow: hidden;
|
|
20
20
|
">
|
|
21
|
-
<el-flex v-if="!slots['header']" height="
|
|
21
|
+
<el-flex v-if="!slots['header']" height="40px" align="center" style="border-bottom: var(--border)">
|
|
22
22
|
<el-flex align="center">
|
|
23
23
|
<el-auto-tool-tip :content="item[label]" width="100%">
|
|
24
24
|
<template #content>
|
|
@@ -38,6 +38,10 @@ const props = withDefaults(
|
|
|
38
38
|
* 编辑器配置 IEditorConfig
|
|
39
39
|
*/
|
|
40
40
|
editorConfig?: any
|
|
41
|
+
/**
|
|
42
|
+
* 是否编辑状态,一直生效(config中edit只用在初始化时生效)
|
|
43
|
+
*/
|
|
44
|
+
isEdit?: boolean
|
|
41
45
|
}>(),
|
|
42
46
|
{
|
|
43
47
|
// modelValue: '',
|
|
@@ -267,16 +271,25 @@ function customStringReplacement(str: string, startMarker: string, endMarker: st
|
|
|
267
271
|
return result;
|
|
268
272
|
}
|
|
269
273
|
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
274
|
+
watch(
|
|
275
|
+
() => props.isEdit,
|
|
276
|
+
(val) => {
|
|
277
|
+
console.log('props.isEdit', val)
|
|
278
|
+
if (aiEditor) {
|
|
279
|
+
aiEditor.setEditable(val)
|
|
280
|
+
//头尾显隐
|
|
281
|
+
const footer = divRef.value?.querySelector('aie-footer') as HTMLElement
|
|
282
|
+
if (footer) {
|
|
283
|
+
footer.style.display = val ? '' : 'none'
|
|
284
|
+
}
|
|
285
|
+
const header = divRef.value?.querySelector('aie-header') as HTMLElement
|
|
286
|
+
if (header) {
|
|
287
|
+
header.style.display = val ? '' : 'none'
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
{ immediate: true }
|
|
292
|
+
)
|
|
280
293
|
function initHtml(html: string) {
|
|
281
294
|
html = customStringReplacement(html, '<img', '>', 'height="[0-9]+"', 'height="auto"')
|
|
282
295
|
return convertPtToPx(html)
|
|
@@ -308,9 +321,8 @@ onMounted(() => {
|
|
|
308
321
|
if (header) {
|
|
309
322
|
header.style.display = 'none'
|
|
310
323
|
}
|
|
311
|
-
} else {
|
|
312
|
-
setFooter()
|
|
313
324
|
}
|
|
325
|
+
setFooter()
|
|
314
326
|
}, 100)
|
|
315
327
|
}, 100)
|
|
316
328
|
})
|