free-fe-core-modules 0.1.26 → 0.1.28

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.
@@ -12,8 +12,10 @@ export default defineComponent({
12
12
  {
13
13
  Type: 'Rich',
14
14
  Label: '模板',
15
- enableField: true,
16
15
  Name: 'Options.Template',
16
+ Options: {
17
+ EnableField: true,
18
+ },
17
19
  },
18
20
  ],
19
21
  Description: '',
@@ -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: '插入数据字段',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "free-fe-core-modules",
3
- "version": "0.1.26",
3
+ "version": "0.1.28",
4
4
  "main": "index.js",
5
5
  "repository": "https://github.com/freeeis/free-fe-core-modules.git",
6
6
  "author": "zhiquan",