free-fe-core-modules 0.1.26 → 0.1.27
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.
|
@@ -126,6 +126,12 @@ export default defineComponent({
|
|
|
126
126
|
Label: '禁止上传',
|
|
127
127
|
Default: false,
|
|
128
128
|
},
|
|
129
|
+
{
|
|
130
|
+
Type: 'Boolean',
|
|
131
|
+
Name: 'Options.EnableField',
|
|
132
|
+
Label: '启用数据字段插入按钮',
|
|
133
|
+
Default: false,
|
|
134
|
+
},
|
|
129
135
|
],
|
|
130
136
|
},
|
|
131
137
|
components: {
|
|
@@ -338,7 +344,7 @@ export default defineComponent({
|
|
|
338
344
|
});
|
|
339
345
|
|
|
340
346
|
// add button for insert field content
|
|
341
|
-
if (props.enableField) {
|
|
347
|
+
if (props.enableField || props.Field?.Options?.EnableField) {
|
|
342
348
|
editor.ui.registry.addButton('insertFieldButton', {
|
|
343
349
|
text: '数据字段',
|
|
344
350
|
tooltip: '插入数据字段',
|