bm-admin-ui 1.0.36-alpha → 1.0.38-alpha

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.
Files changed (202) hide show
  1. package/es/components/button/index.d.ts +3 -0
  2. package/es/components/button/src/button.d.ts +12 -0
  3. package/es/components/button/src/button.vue.d.ts +306 -0
  4. package/es/components/feedback/index.d.ts +9 -0
  5. package/es/components/feedback/index.js +2 -2
  6. package/es/components/feedback/src/bmAlert.vue.d.ts +191 -0
  7. package/es/components/feedback/src/bmModal.vue.d.ts +839 -0
  8. package/es/components/float-table/index.d.ts +3 -0
  9. package/es/components/float-table/index.js +27 -36
  10. package/es/components/float-table/src/float-table.vue.d.ts +69 -0
  11. package/es/components/flow-designer/index.d.ts +3 -0
  12. package/es/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  13. package/es/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  14. package/es/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  15. package/es/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  16. package/es/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  17. package/es/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  18. package/es/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  19. package/es/components/flow-designer/src/config.d.ts +24 -0
  20. package/es/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  21. package/es/components/flow-designer/src/flow-designer.d.ts +11 -0
  22. package/es/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  23. package/es/components/flow-designer/src/utils.d.ts +29 -0
  24. package/es/components/form-create/index.js +125 -163
  25. package/es/components/form-designer/index.js +271 -233
  26. package/es/components/index.d.ts +12 -0
  27. package/es/components/index.js +1 -0
  28. package/es/components/input-tags-display/index.d.ts +3 -0
  29. package/es/components/input-tags-display/index.js +21 -29
  30. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  31. package/es/components/over-tooltips/index.d.ts +3 -0
  32. package/es/components/over-tooltips/index.js +20 -27
  33. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  34. package/es/components/search-filter/index.d.ts +3 -0
  35. package/es/components/search-filter/index.js +21 -25
  36. package/es/components/search-filter/src/search-filter.d.ts +89 -0
  37. package/es/components/search-filter/src/search-filter.vue.d.ts +234 -0
  38. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  39. package/es/components/select-all/index.d.ts +3 -0
  40. package/es/components/select-all/index.js +157 -0
  41. package/es/components/select-all/src/selectAll.vue.d.ts +753 -0
  42. package/es/components/shops-filter/index.d.ts +3 -0
  43. package/es/components/shops-filter/index.js +43 -58
  44. package/es/components/shops-filter/src/shops-filter.d.ts +25 -0
  45. package/es/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  46. package/es/components/staffs-selector/index.d.ts +3 -0
  47. package/es/components/staffs-selector/index.js +102 -137
  48. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  49. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  50. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  51. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  52. package/es/components/timeline/index.d.ts +5 -0
  53. package/es/components/timeline/index.js +7 -7
  54. package/es/components/timeline/src/props.d.ts +27 -0
  55. package/es/components/timeline/src/timeline-item.vue.d.ts +64 -0
  56. package/es/components/timeline/src/timeline.vue.d.ts +50 -0
  57. package/es/components/upload/index.d.ts +3 -0
  58. package/es/components/upload/index.js +78 -115
  59. package/es/components/upload/src/icons.d.ts +13 -0
  60. package/es/components/upload/src/upload.vue.d.ts +105 -0
  61. package/es/components/upload/utils/index.d.ts +7 -0
  62. package/es/index.d.ts +6 -0
  63. package/es/utils/bm-admin-ui-resolver.d.ts +11 -0
  64. package/es/utils/uniqueId.d.ts +1 -0
  65. package/es/utils/vxe-table.d.ts +6 -0
  66. package/es/utils/with-install.d.ts +1 -0
  67. package/index.esm.js +15003 -45855
  68. package/index.js +15004 -45855
  69. package/lib/components/button/index.d.ts +3 -0
  70. package/lib/components/button/src/button.d.ts +12 -0
  71. package/lib/components/button/src/button.vue.d.ts +306 -0
  72. package/lib/components/feedback/index.d.ts +9 -0
  73. package/lib/components/feedback/index.js +1 -1
  74. package/lib/components/feedback/src/bmAlert.vue.d.ts +191 -0
  75. package/lib/components/feedback/src/bmModal.vue.d.ts +839 -0
  76. package/lib/components/float-table/index.d.ts +3 -0
  77. package/lib/components/float-table/index.js +27 -36
  78. package/lib/components/float-table/src/float-table.vue.d.ts +69 -0
  79. package/lib/components/flow-designer/index.d.ts +3 -0
  80. package/lib/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  81. package/lib/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  82. package/lib/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  83. package/lib/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  84. package/lib/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  85. package/lib/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  86. package/lib/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  87. package/lib/components/flow-designer/src/config.d.ts +24 -0
  88. package/lib/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  89. package/lib/components/flow-designer/src/flow-designer.d.ts +11 -0
  90. package/lib/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  91. package/lib/components/flow-designer/src/utils.d.ts +29 -0
  92. package/lib/components/form-create/index.js +124 -162
  93. package/lib/components/form-designer/index.js +270 -232
  94. package/lib/components/index.d.ts +12 -0
  95. package/lib/components/index.js +7 -0
  96. package/lib/components/input-tags-display/index.d.ts +3 -0
  97. package/lib/components/input-tags-display/index.js +20 -28
  98. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  99. package/lib/components/over-tooltips/index.d.ts +3 -0
  100. package/lib/components/over-tooltips/index.js +20 -27
  101. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  102. package/lib/components/search-filter/index.d.ts +3 -0
  103. package/lib/components/search-filter/index.js +21 -25
  104. package/lib/components/search-filter/src/search-filter.d.ts +89 -0
  105. package/lib/components/search-filter/src/search-filter.vue.d.ts +234 -0
  106. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  107. package/lib/components/select-all/index.d.ts +3 -0
  108. package/lib/components/select-all/index.js +166 -0
  109. package/lib/components/select-all/src/selectAll.vue.d.ts +753 -0
  110. package/lib/components/shops-filter/index.d.ts +3 -0
  111. package/lib/components/shops-filter/index.js +42 -57
  112. package/lib/components/shops-filter/src/shops-filter.d.ts +25 -0
  113. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  114. package/lib/components/staffs-selector/index.d.ts +3 -0
  115. package/lib/components/staffs-selector/index.js +101 -136
  116. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  117. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  118. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  119. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  120. package/lib/components/timeline/index.d.ts +5 -0
  121. package/lib/components/timeline/index.js +7 -7
  122. package/lib/components/timeline/src/props.d.ts +27 -0
  123. package/lib/components/timeline/src/timeline-item.vue.d.ts +64 -0
  124. package/lib/components/timeline/src/timeline.vue.d.ts +50 -0
  125. package/lib/components/upload/index.d.ts +3 -0
  126. package/lib/components/upload/index.js +78 -115
  127. package/lib/components/upload/src/icons.d.ts +13 -0
  128. package/lib/components/upload/src/upload.vue.d.ts +105 -0
  129. package/lib/components/upload/utils/index.d.ts +7 -0
  130. package/lib/index.d.ts +6 -0
  131. package/lib/utils/bm-admin-ui-resolver.d.ts +11 -0
  132. package/lib/utils/uniqueId.d.ts +1 -0
  133. package/lib/utils/vxe-table.d.ts +6 -0
  134. package/lib/utils/with-install.d.ts +1 -0
  135. package/package.json +2 -2
  136. package/theme-chalk/button.css +1 -1
  137. package/theme-chalk/feedback.css +1 -1
  138. package/theme-chalk/float-table.css +1 -1
  139. package/theme-chalk/floating-vue.css +1 -1
  140. package/theme-chalk/flow-designer.css +1 -1
  141. package/theme-chalk/form-designer.css +1 -1
  142. package/theme-chalk/index.css +1 -1
  143. package/theme-chalk/modal.css +1 -1
  144. package/theme-chalk/over-tooltips.css +1 -1
  145. package/theme-chalk/search-filter.css +1 -1
  146. package/theme-chalk/select-all.css +1 -0
  147. package/theme-chalk/staffs-selector.css +1 -1
  148. package/theme-chalk/timeline.css +1 -1
  149. package/theme-chalk/upload.css +1 -1
  150. package/types/components/button/index.d.ts +3 -0
  151. package/types/components/button/src/button.d.ts +12 -0
  152. package/types/components/button/src/button.vue.d.ts +306 -0
  153. package/types/components/feedback/index.d.ts +9 -0
  154. package/types/components/feedback/src/bmAlert.vue.d.ts +191 -0
  155. package/types/components/feedback/src/bmModal.vue.d.ts +839 -0
  156. package/types/components/float-table/index.d.ts +3 -0
  157. package/types/components/float-table/src/float-table.vue.d.ts +69 -0
  158. package/types/components/flow-designer/index.d.ts +3 -0
  159. package/types/components/flow-designer/src/bm-nodes/AddCondition.d.ts +26 -0
  160. package/types/components/flow-designer/src/bm-nodes/AddFlowNode.d.ts +29 -0
  161. package/types/components/flow-designer/src/bm-nodes/BmConditionNode.vue.d.ts +247 -0
  162. package/types/components/flow-designer/src/bm-nodes/BmFlowHtmlNode.d.ts +19 -0
  163. package/types/components/flow-designer/src/bm-nodes/BmHtmlNode.vue.d.ts +15 -0
  164. package/types/components/flow-designer/src/bm-nodes/BmPolyLine.d.ts +21 -0
  165. package/types/components/flow-designer/src/bm-nodes/EndCircle.d.ts +19 -0
  166. package/types/components/flow-designer/src/config.d.ts +24 -0
  167. package/types/components/flow-designer/src/flow-designer-test.d.ts +20 -0
  168. package/types/components/flow-designer/src/flow-designer.d.ts +11 -0
  169. package/types/components/flow-designer/src/flow-designer.vue.d.ts +6 -0
  170. package/types/components/flow-designer/src/utils.d.ts +29 -0
  171. package/types/components/index.d.ts +12 -0
  172. package/types/components/input-tags-display/index.d.ts +3 -0
  173. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +128 -0
  174. package/types/components/over-tooltips/index.d.ts +3 -0
  175. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +34 -0
  176. package/types/components/search-filter/index.d.ts +3 -0
  177. package/types/components/search-filter/src/search-filter.d.ts +89 -0
  178. package/types/components/search-filter/src/search-filter.vue.d.ts +234 -0
  179. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +119 -0
  180. package/types/components/select-all/index.d.ts +3 -0
  181. package/types/components/select-all/src/selectAll.vue.d.ts +753 -0
  182. package/types/components/shops-filter/index.d.ts +3 -0
  183. package/types/components/shops-filter/src/shops-filter.d.ts +25 -0
  184. package/types/components/shops-filter/src/shops-filter.vue.d.ts +98 -0
  185. package/types/components/staffs-selector/index.d.ts +3 -0
  186. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +97 -0
  187. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +31 -0
  188. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +108 -0
  189. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +62 -0
  190. package/types/components/timeline/index.d.ts +5 -0
  191. package/types/components/timeline/src/props.d.ts +27 -0
  192. package/types/components/timeline/src/timeline-item.vue.d.ts +64 -0
  193. package/types/components/timeline/src/timeline.vue.d.ts +50 -0
  194. package/types/components/upload/index.d.ts +3 -0
  195. package/types/components/upload/src/icons.d.ts +13 -0
  196. package/types/components/upload/src/upload.vue.d.ts +105 -0
  197. package/types/components/upload/utils/index.d.ts +7 -0
  198. package/types/index.d.ts +6 -0
  199. package/types/utils/bm-admin-ui-resolver.d.ts +11 -0
  200. package/types/utils/uniqueId.d.ts +1 -0
  201. package/types/utils/vxe-table.d.ts +6 -0
  202. package/types/utils/with-install.d.ts +1 -0
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createVNode, withModifiers, createTextVNode, ref, watch, createElementVNode, Fragment, isRef, renderList, renderSlot, nextTick, createStaticVNode, reactive, onBeforeUnmount, resolveDynamicComponent } from 'vue';
2
+ import { defineComponent, openBlock, createElementBlock, normalizeStyle, toDisplayString, computed, resolveComponent, normalizeClass, unref, createBlock, createCommentVNode, withCtx, createVNode, createTextVNode, withModifiers, ref, watch, createElementVNode, nextTick, Fragment, isRef, renderList, renderSlot, createStaticVNode, reactive, onBeforeUnmount, resolveDynamicComponent } from 'vue';
3
3
  import uniqueId from 'bm-admin-ui/es/utils/uniqueId';
4
4
  import Draggable from 'vuedraggable';
5
5
  import { Tooltip, FormItemRest, Input, Button, RadioGroup, Radio, DatePicker, Checkbox, Tabs, TabPane, Row, Col, Dropdown, Menu, CheckboxGroup, MenuItem, Divider, Switch, Select, Layout, LayoutSider, LayoutContent, message } from 'ant-design-vue';
@@ -81,12 +81,10 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
81
81
  });
82
82
  var WidgetInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "widget-instruction.vue"]]);
83
83
 
84
- const _hoisted_1$g = {
84
+ const _hoisted_1$f = {
85
85
  key: 2,
86
86
  class: "bm-drag-tool-mask"
87
87
  };
88
- const _hoisted_2$d = /* @__PURE__ */ createTextVNode("\u590D\u5236");
89
- const _hoisted_3$b = /* @__PURE__ */ createTextVNode("\u5220\u9664");
90
88
  const _sfc_main$h = /* @__PURE__ */ defineComponent({
91
89
  __name: "drag-tool",
92
90
  props: ["rule", "activeRule", "parentRule"],
@@ -179,7 +177,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
179
177
  key: 1,
180
178
  rule: __props.rule
181
179
  }, null, 8, ["rule"])),
182
- __props.rule.type !== unref(WidgetType).RowWidget && __props.rule.type !== unref(WidgetType).TableWidget ? (openBlock(), createElementBlock("div", _hoisted_1$g)) : createCommentVNode("v-if", true),
180
+ __props.rule.type !== unref(WidgetType).RowWidget && __props.rule.type !== unref(WidgetType).TableWidget ? (openBlock(), createElementBlock("div", _hoisted_1$f)) : createCommentVNode("v-if", true),
183
181
  __props.rule.config.isHover || unref(isActive) ? (openBlock(), createBlock(_component_ARow, {
184
182
  key: 3,
185
183
  class: "bm-drag-tool-btn",
@@ -190,7 +188,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
190
188
  default: withCtx(() => [
191
189
  createVNode(unref(Tooltip), { placement: "top" }, {
192
190
  title: withCtx(() => [
193
- _hoisted_2$d
191
+ createTextVNode("\u590D\u5236")
194
192
  ]),
195
193
  default: withCtx(() => [
196
194
  createVNode(_component_Copy, {
@@ -207,7 +205,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
207
205
  default: withCtx(() => [
208
206
  createVNode(unref(Tooltip), { placement: "top" }, {
209
207
  title: withCtx(() => [
210
- _hoisted_3$b
208
+ createTextVNode("\u5220\u9664")
211
209
  ]),
212
210
  default: withCtx(() => [
213
211
  createVNode(_component_Delete, {
@@ -229,20 +227,20 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
229
227
  });
230
228
  var DragTool = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "drag-tool.vue"]]);
231
229
 
232
- const _hoisted_1$f = { class: "bm-drag-placeholder" };
230
+ const _hoisted_1$e = { class: "bm-drag-placeholder" };
233
231
  const _sfc_main$g = /* @__PURE__ */ defineComponent({
234
232
  __name: "drag-placeholder",
235
233
  props: {},
236
234
  setup(__props) {
237
235
  return (_ctx, _cache) => {
238
- return openBlock(), createElementBlock("div", _hoisted_1$f);
236
+ return openBlock(), createElementBlock("div", _hoisted_1$e);
239
237
  };
240
238
  }
241
239
  });
242
240
  var DragPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "drag-placeholder.vue"]]);
243
241
 
244
- const _hoisted_1$e = { class: "bm-widget-row-wrap" };
245
- const _hoisted_2$c = {
242
+ const _hoisted_1$d = { class: "bm-widget-row-wrap" };
243
+ const _hoisted_2$a = {
246
244
  key: 0,
247
245
  class: "bm-widget-row-tip"
248
246
  };
@@ -288,8 +286,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
288
286
  }
289
287
  return (_ctx, _cache) => {
290
288
  const _component_ACol = resolveComponent("ACol");
291
- return openBlock(), createElementBlock("div", _hoisted_1$e, [
292
- !unref(childRules).length ? (openBlock(), createElementBlock("div", _hoisted_2$c, " \u53EF\u62D6\u5165\u591A\u4E2A\u63A7\u4EF6 ")) : createCommentVNode("v-if", true),
289
+ return openBlock(), createElementBlock("div", _hoisted_1$d, [
290
+ !unref(childRules).length ? (openBlock(), createElementBlock("div", _hoisted_2$a, " \u53EF\u62D6\u5165\u591A\u4E2A\u63A7\u4EF6 ")) : createCommentVNode("v-if", true),
293
291
  createVNode(unref(Draggable), {
294
292
  "component-data": {
295
293
  field: __props.formCreateInject.rule.field,
@@ -468,7 +466,7 @@ var input = {
468
466
  },
469
467
  },
470
468
  effect: {
471
- required: true,
469
+ required: false,
472
470
  formRule: 'formRule',
473
471
  },
474
472
  props: {
@@ -501,6 +499,7 @@ var input = {
501
499
  field: fieldsMap$g['props.placeholder'],
502
500
  props: {
503
501
  placeholder: '请输入',
502
+ maxlength: 30,
504
503
  },
505
504
  value: rule.props.placeholder,
506
505
  },
@@ -510,6 +509,7 @@ var input = {
510
509
  field: fieldsMap$g['value'],
511
510
  props: {
512
511
  placeholder: '请输入',
512
+ maxlength: 200,
513
513
  },
514
514
  value: rule.value,
515
515
  },
@@ -569,7 +569,7 @@ var textarea = {
569
569
  },
570
570
  },
571
571
  effect: {
572
- required: true,
572
+ required: false,
573
573
  formRule: 'formRule',
574
574
  },
575
575
  props: {
@@ -603,6 +603,7 @@ var textarea = {
603
603
  field: fieldsMap$f['props.placeholder'],
604
604
  props: {
605
605
  placeholder: '请输入',
606
+ maxlength: 30,
606
607
  },
607
608
  value: rule.props.placeholder,
608
609
  },
@@ -612,6 +613,7 @@ var textarea = {
612
613
  field: fieldsMap$f['value'],
613
614
  props: {
614
615
  placeholder: '请输入',
616
+ maxlength: 5000,
615
617
  },
616
618
  value: rule.value,
617
619
  },
@@ -672,7 +674,7 @@ var numInput = {
672
674
  },
673
675
  },
674
676
  effect: {
675
- required: true,
677
+ required: false,
676
678
  formRule: 'formRule',
677
679
  },
678
680
  props: {
@@ -707,6 +709,7 @@ var numInput = {
707
709
  field: fieldsMap$e['props.placeholder'],
708
710
  props: {
709
711
  placeholder: '请输入',
712
+ maxlength: 30,
710
713
  },
711
714
  value: rule.props.placeholder,
712
715
  },
@@ -765,14 +768,11 @@ var numInput = {
765
768
  },
766
769
  };
767
770
 
768
- const _hoisted_1$d = { class: "bm-handle-options" };
769
- const _hoisted_2$b = {
771
+ const _hoisted_1$c = { class: "bm-handle-options" };
772
+ const _hoisted_2$9 = {
770
773
  key: 0,
771
774
  class: "bm-handle-options__error-tip"
772
775
  };
773
- const _hoisted_3$a = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u7F16\u8F91 ");
774
- const _hoisted_4$7 = /* @__PURE__ */ createTextVNode(" \u6DFB\u52A0\u9009\u9879 ");
775
- const _hoisted_5$4 = /* @__PURE__ */ createTextVNode(" \u6BCF\u884C\u5BF9\u5E94\u4E00\u4E2A\u9009\u9879 ");
776
776
  const _sfc_main$e = /* @__PURE__ */ defineComponent({
777
777
  __name: "handle-options",
778
778
  props: ["options"],
@@ -783,6 +783,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
783
783
  const visible = ref(false);
784
784
  const text = ref("");
785
785
  const repeatOption = ref([]);
786
+ const maxlength = 500;
786
787
  function edit() {
787
788
  visible.value = true;
788
789
  text.value = makeText(props.options);
@@ -804,6 +805,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
804
805
  function handleOk() {
805
806
  const options = text.value.split("\n").reduce((pre, cur) => {
806
807
  if (cur) {
808
+ cur = cur.substring(0, maxlength - 1);
807
809
  pre.push({ value: cur, label: cur });
808
810
  }
809
811
  return pre;
@@ -832,14 +834,10 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
832
834
  function emitSetValue(val) {
833
835
  emits("setValue", val);
834
836
  }
835
- watch(
836
- props.options,
837
- (val) => {
838
- handleRepeatOption(val);
839
- emitSetValue(val);
840
- },
841
- { deep: true }
842
- );
837
+ watch(props.options, (val) => {
838
+ handleRepeatOption(val);
839
+ emitSetValue(val);
840
+ }, { deep: true });
843
841
  return (_ctx, _cache) => {
844
842
  const _component_Delete = resolveComponent("Delete");
845
843
  const _component_ARow = resolveComponent("ARow");
@@ -857,7 +855,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
857
855
  "force-fallback": true
858
856
  }, {
859
857
  item: withCtx(({ element, index }) => [
860
- createElementVNode("div", _hoisted_1$d, [
858
+ createElementVNode("div", _hoisted_1$c, [
861
859
  createVNode(_component_ARow, { align: "middle" }, {
862
860
  default: withCtx(() => [
863
861
  createVNode(unref(HolderOutlined), {
@@ -872,6 +870,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
872
870
  "bm-handle-options__input",
873
871
  repeatOption.value.length && repeatOption.value.includes(element.value) ? "is-error" : ""
874
872
  ]),
873
+ maxlength,
875
874
  onBlur: ($event) => handleBlur(element)
876
875
  }, null, 8, ["value", "onUpdate:value", "class", "onBlur"])
877
876
  ]),
@@ -884,7 +883,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
884
883
  ]),
885
884
  _: 2
886
885
  }, 1024),
887
- repeatOption.value.length && repeatOption.value.includes(element.value) ? (openBlock(), createElementBlock("div", _hoisted_2$b, " \u8BF7\u66F4\u6539\u91CD\u590D\u9009\u9879 ")) : createCommentVNode("v-if", true)
886
+ repeatOption.value.length && repeatOption.value.includes(element.value) ? (openBlock(), createElementBlock("div", _hoisted_2$9, " \u8BF7\u66F4\u6539\u91CD\u590D\u9009\u9879 ")) : createCommentVNode("v-if", true)
888
887
  ])
889
888
  ]),
890
889
  _: 1
@@ -897,7 +896,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
897
896
  createVNode(unref(EditOutlined))
898
897
  ]),
899
898
  default: withCtx(() => [
900
- _hoisted_3$a
899
+ createTextVNode(" \u6279\u91CF\u7F16\u8F91 ")
901
900
  ]),
902
901
  _: 1
903
902
  }),
@@ -909,7 +908,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
909
908
  createVNode(unref(PlusOutlined))
910
909
  ]),
911
910
  default: withCtx(() => [
912
- _hoisted_4$7
911
+ createTextVNode(" \u6DFB\u52A0\u9009\u9879 ")
913
912
  ]),
914
913
  _: 1
915
914
  }),
@@ -920,7 +919,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
920
919
  onOk: handleOk
921
920
  }, {
922
921
  default: withCtx(() => [
923
- _hoisted_5$4,
922
+ createTextVNode(" \u6BCF\u884C\u5BF9\u5E94\u4E00\u4E2A\u9009\u9879 "),
924
923
  createVNode(_component_a_textarea, {
925
924
  value: text.value,
926
925
  "onUpdate:value": _cache[0] || (_cache[0] = ($event) => text.value = $event),
@@ -968,7 +967,7 @@ var radio = {
968
967
  },
969
968
  },
970
969
  effect: {
971
- required: true,
970
+ required: false,
972
971
  formRule: 'formRule',
973
972
  },
974
973
  options: [
@@ -1014,6 +1013,7 @@ var radio = {
1014
1013
  field: fieldsMap$d['props.placeholder'],
1015
1014
  props: {
1016
1015
  placeholder: '请输入',
1016
+ maxlength: 30,
1017
1017
  },
1018
1018
  value: rule.props.placeholder,
1019
1019
  },
@@ -1106,7 +1106,7 @@ var checkbox = {
1106
1106
  },
1107
1107
  },
1108
1108
  effect: {
1109
- required: true,
1109
+ required: false,
1110
1110
  formRule: 'formRule',
1111
1111
  },
1112
1112
  options: [
@@ -1152,6 +1152,7 @@ var checkbox = {
1152
1152
  field: fieldsMap$c['props.placeholder'],
1153
1153
  props: {
1154
1154
  placeholder: '请输入',
1155
+ maxlength: 30,
1155
1156
  },
1156
1157
  value: rule.props.placeholder,
1157
1158
  },
@@ -1213,10 +1214,7 @@ var checkbox = {
1213
1214
  },
1214
1215
  };
1215
1216
 
1216
- const _hoisted_1$c = { class: "bm-default-date" };
1217
- const _hoisted_2$a = /* @__PURE__ */ createTextVNode(" \u5F53\u524D\u65F6\u95F4(\u5E74/\u6708/\u65E5) ");
1218
- const _hoisted_3$9 = /* @__PURE__ */ createTextVNode(" \u83B7\u53D6\u7528\u6237\u5B9E\u9645\u586B\u5199\u65F6\u7684\u65F6\u95F4 ");
1219
- const _hoisted_4$6 = /* @__PURE__ */ createTextVNode("\u81EA\u5B9A\u4E49");
1217
+ const _hoisted_1$b = { class: "bm-default-date" };
1220
1218
  const _sfc_main$d = /* @__PURE__ */ defineComponent({
1221
1219
  __name: "default-date",
1222
1220
  props: ["defaultRadioValue", "defalueDateValue"],
@@ -1238,7 +1236,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1238
1236
  emitChange(date);
1239
1237
  }
1240
1238
  return (_ctx, _cache) => {
1241
- return openBlock(), createElementBlock("div", _hoisted_1$c, [
1239
+ return openBlock(), createElementBlock("div", _hoisted_1$b, [
1242
1240
  createVNode(unref(FormItemRest), null, {
1243
1241
  default: withCtx(() => [
1244
1242
  createVNode(unref(RadioGroup), {
@@ -1248,10 +1246,10 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1248
1246
  default: withCtx(() => [
1249
1247
  createVNode(unref(Radio), { value: 0 }, {
1250
1248
  default: withCtx(() => [
1251
- _hoisted_2$a,
1249
+ createTextVNode(" \u5F53\u524D\u65F6\u95F4(\u5E74/\u6708/\u65E5) "),
1252
1250
  createVNode(unref(Tooltip), null, {
1253
1251
  title: withCtx(() => [
1254
- _hoisted_3$9
1252
+ createTextVNode(" \u83B7\u53D6\u7528\u6237\u5B9E\u9645\u586B\u5199\u65F6\u7684\u65F6\u95F4 ")
1255
1253
  ]),
1256
1254
  default: withCtx(() => [
1257
1255
  createVNode(unref(QuestionCircleOutlined), { style: { "color": "#babac1" } })
@@ -1263,7 +1261,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
1263
1261
  }),
1264
1262
  createVNode(unref(Radio), { value: 1 }, {
1265
1263
  default: withCtx(() => [
1266
- _hoisted_4$6
1264
+ createTextVNode("\u81EA\u5B9A\u4E49")
1267
1265
  ]),
1268
1266
  _: 1
1269
1267
  })
@@ -1316,7 +1314,7 @@ var date = {
1316
1314
  },
1317
1315
  },
1318
1316
  effect: {
1319
- required: true,
1317
+ required: false,
1320
1318
  formRule: 'formRule',
1321
1319
  },
1322
1320
  props: {
@@ -1379,6 +1377,7 @@ var date = {
1379
1377
  field: fieldsMap$b['props.placeholder'],
1380
1378
  props: {
1381
1379
  placeholder: '请输入',
1380
+ maxlength: 30,
1382
1381
  },
1383
1382
  value: rule.props.placeholder,
1384
1383
  },
@@ -1460,7 +1459,7 @@ var dateRange = {
1460
1459
  },
1461
1460
  },
1462
1461
  effect: {
1463
- required: true,
1462
+ required: false,
1464
1463
  formRule: 'formRule',
1465
1464
  },
1466
1465
  props: {
@@ -1525,6 +1524,7 @@ var dateRange = {
1525
1524
  field: fieldsMap$a['props.placeholder.0'],
1526
1525
  props: {
1527
1526
  placeholder: '请输入',
1527
+ maxlength: 30,
1528
1528
  },
1529
1529
  value: rule.props.placeholder[0],
1530
1530
  },
@@ -1534,6 +1534,7 @@ var dateRange = {
1534
1534
  field: fieldsMap$a['props.placeholder.1'],
1535
1535
  props: {
1536
1536
  placeholder: '请输入',
1537
+ maxlength: 30,
1537
1538
  },
1538
1539
  value: rule.props.placeholder[1],
1539
1540
  },
@@ -1607,10 +1608,23 @@ var instruction = {
1607
1608
  title: label$9,
1608
1609
  field: fieldsMap$9.value,
1609
1610
  value: rule.value,
1611
+ inject: true,
1610
1612
  prefix: {
1611
1613
  type: 'TextColor',
1614
+ on: {
1615
+ change({ api, self }, color) {
1616
+ api.emit('change', 'style.color', color, self, api, true);
1617
+ },
1618
+ },
1612
1619
  props: {
1613
- rule,
1620
+ color: rule.style.color,
1621
+ },
1622
+ },
1623
+ on: {
1624
+ change({ api, self }, list) {
1625
+ nextTick(() => {
1626
+ api.refresh();
1627
+ });
1614
1628
  },
1615
1629
  },
1616
1630
  },
@@ -1653,7 +1667,7 @@ var picture = {
1653
1667
  },
1654
1668
  },
1655
1669
  effect: {
1656
- required: true,
1670
+ required: false,
1657
1671
  formRule: 'formRule',
1658
1672
  },
1659
1673
  props: {
@@ -1738,40 +1752,36 @@ var picture = {
1738
1752
  },
1739
1753
  };
1740
1754
 
1741
- const _hoisted_1$b = { class: "bm-widget-table-wrap" };
1742
- const _hoisted_2$9 = { class: "bm-widget-table-top-bar" };
1743
- const _hoisted_3$8 = /* @__PURE__ */ createTextVNode(" \u65B0\u589E ");
1744
- const _hoisted_4$5 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u5220\u9664 ");
1745
- const _hoisted_5$3 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u5BFC\u5165 ");
1746
- const _hoisted_6$3 = /* @__PURE__ */ createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ");
1747
- const _hoisted_7$2 = { class: "bm-widget-table-outer" };
1748
- const _hoisted_8$2 = { class: "bm-widget-table" };
1749
- const _hoisted_9$1 = {
1755
+ const _hoisted_1$a = { class: "bm-widget-table-wrap" };
1756
+ const _hoisted_2$8 = { class: "bm-widget-table-top-bar" };
1757
+ const _hoisted_3$5 = { class: "bm-widget-table-outer" };
1758
+ const _hoisted_4$4 = { class: "bm-widget-table" };
1759
+ const _hoisted_5$1 = {
1750
1760
  key: 0,
1751
1761
  class: "bm-widget-table__virtual"
1752
1762
  };
1753
- const _hoisted_10 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
1754
- const _hoisted_11 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
1755
- const _hoisted_12 = [
1756
- _hoisted_10,
1757
- _hoisted_11
1763
+ const _hoisted_6$1 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__head" }, null, -1);
1764
+ const _hoisted_7$1 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__virtual__content" }, null, -1);
1765
+ const _hoisted_8 = [
1766
+ _hoisted_6$1,
1767
+ _hoisted_7$1
1758
1768
  ];
1759
- const _hoisted_13 = {
1769
+ const _hoisted_9 = {
1760
1770
  key: 1,
1761
1771
  class: "bm-widget-table__tip"
1762
1772
  };
1763
- const _hoisted_14 = {
1773
+ const _hoisted_10 = {
1764
1774
  key: 0,
1765
1775
  class: "bm-widget-table__checkbox"
1766
1776
  };
1767
- const _hoisted_15 = { class: "bm-widget-table__checkbox__head" };
1768
- const _hoisted_16 = { class: "bm-widget-table__checkbox__content" };
1769
- const _hoisted_17 = { class: "bm-widget-table__operateColumn" };
1770
- const _hoisted_18 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__operateColumn__head" }, "\u64CD\u4F5C", -1);
1771
- const _hoisted_19 = { class: "bm-widget-table__operateColumn__content" };
1772
- const _hoisted_20 = /* @__PURE__ */ createElementVNode("a", null, "\u590D\u5236", -1);
1773
- const _hoisted_21 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
1774
- const _hoisted_22 = /* @__PURE__ */ createElementVNode("a", null, "\u5220\u9664", -1);
1777
+ const _hoisted_11 = { class: "bm-widget-table__checkbox__head" };
1778
+ const _hoisted_12 = { class: "bm-widget-table__checkbox__content" };
1779
+ const _hoisted_13 = { class: "bm-widget-table__operateColumn" };
1780
+ const _hoisted_14 = /* @__PURE__ */ createElementVNode("div", { class: "bm-widget-table__operateColumn__head" }, "\u64CD\u4F5C", -1);
1781
+ const _hoisted_15 = { class: "bm-widget-table__operateColumn__content" };
1782
+ const _hoisted_16 = /* @__PURE__ */ createElementVNode("a", null, "\u590D\u5236", -1);
1783
+ const _hoisted_17 = /* @__PURE__ */ createElementVNode("span", null, null, -1);
1784
+ const _hoisted_18 = /* @__PURE__ */ createElementVNode("a", null, "\u5220\u9664", -1);
1775
1785
  const _sfc_main$c = /* @__PURE__ */ defineComponent({
1776
1786
  __name: "widget-table",
1777
1787
  props: ["formCreateInject", "activeRule"],
@@ -1818,37 +1828,37 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1818
1828
  emits("delete", rule2);
1819
1829
  }
1820
1830
  return (_ctx, _cache) => {
1821
- return openBlock(), createElementBlock("div", _hoisted_1$b, [
1822
- createElementVNode("div", _hoisted_2$9, [
1831
+ return openBlock(), createElementBlock("div", _hoisted_1$a, [
1832
+ createElementVNode("div", _hoisted_2$8, [
1823
1833
  createVNode(unref(Button), { type: "primary" }, {
1824
1834
  icon: withCtx(() => [
1825
1835
  createVNode(unref(PlusOutlined))
1826
1836
  ]),
1827
1837
  default: withCtx(() => [
1828
- _hoisted_3$8
1838
+ createTextVNode(" \u65B0\u589E ")
1829
1839
  ]),
1830
1840
  _: 1
1831
1841
  }),
1832
1842
  unref(showDelete) ? (openBlock(), createBlock(unref(Button), { key: 0 }, {
1833
1843
  default: withCtx(() => [
1834
- _hoisted_4$5
1844
+ createTextVNode(" \u6279\u91CF\u5220\u9664 ")
1835
1845
  ]),
1836
1846
  _: 1
1837
1847
  })) : createCommentVNode("v-if", true),
1838
1848
  unref(showImport) ? (openBlock(), createBlock(unref(Button), { key: 1 }, {
1839
1849
  default: withCtx(() => [
1840
- _hoisted_5$3
1850
+ createTextVNode(" \u6279\u91CF\u5BFC\u5165 ")
1841
1851
  ]),
1842
1852
  _: 1
1843
1853
  })) : createCommentVNode("v-if", true),
1844
1854
  unref(showImport) ? (openBlock(), createBlock(unref(Button), { key: 2 }, {
1845
1855
  default: withCtx(() => [
1846
- _hoisted_6$3
1856
+ createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ")
1847
1857
  ]),
1848
1858
  _: 1
1849
1859
  })) : createCommentVNode("v-if", true)
1850
1860
  ]),
1851
- createElementVNode("div", _hoisted_7$2, [
1861
+ createElementVNode("div", _hoisted_3$5, [
1852
1862
  createElementVNode("div", {
1853
1863
  class: "bm-widget-table-inner",
1854
1864
  style: normalizeStyle({
@@ -1856,8 +1866,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1856
1866
  paddingRight: unref(showCopy) ? "81px" : "60px"
1857
1867
  })
1858
1868
  }, [
1859
- createElementVNode("div", _hoisted_8$2, [
1860
- unref(childRules).length ? (openBlock(), createElementBlock("div", _hoisted_9$1, _hoisted_12)) : (openBlock(), createElementBlock("div", _hoisted_13, "\u53EF\u62D6\u5165\u591A\u4E2A\u63A7\u4EF6")),
1869
+ createElementVNode("div", _hoisted_4$4, [
1870
+ unref(childRules).length ? (openBlock(), createElementBlock("div", _hoisted_5$1, _hoisted_8)) : (openBlock(), createElementBlock("div", _hoisted_9, "\u53EF\u62D6\u5165\u591A\u4E2A\u63A7\u4EF6")),
1861
1871
  createVNode(unref(Draggable), {
1862
1872
  "component-data": {
1863
1873
  field: unref(rule).field,
@@ -1901,8 +1911,8 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1901
1911
  }, 8, ["component-data", "list", "ghost-class"])
1902
1912
  ])
1903
1913
  ], 4),
1904
- unref(showDelete) ? (openBlock(), createElementBlock("div", _hoisted_14, [
1905
- createElementVNode("div", _hoisted_15, [
1914
+ unref(showDelete) ? (openBlock(), createElementBlock("div", _hoisted_10, [
1915
+ createElementVNode("div", _hoisted_11, [
1906
1916
  createVNode(unref(FormItemRest), null, {
1907
1917
  default: withCtx(() => [
1908
1918
  createVNode(unref(Checkbox))
@@ -1910,7 +1920,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1910
1920
  _: 1
1911
1921
  })
1912
1922
  ]),
1913
- createElementVNode("div", _hoisted_16, [
1923
+ createElementVNode("div", _hoisted_12, [
1914
1924
  createVNode(unref(FormItemRest), null, {
1915
1925
  default: withCtx(() => [
1916
1926
  createVNode(unref(Checkbox))
@@ -1919,14 +1929,14 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
1919
1929
  })
1920
1930
  ])
1921
1931
  ])) : createCommentVNode("v-if", true),
1922
- createElementVNode("div", _hoisted_17, [
1923
- _hoisted_18,
1924
- createElementVNode("div", _hoisted_19, [
1932
+ createElementVNode("div", _hoisted_13, [
1933
+ _hoisted_14,
1934
+ createElementVNode("div", _hoisted_15, [
1925
1935
  unref(showCopy) ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
1926
- _hoisted_20,
1927
- _hoisted_21
1936
+ _hoisted_16,
1937
+ _hoisted_17
1928
1938
  ], 64)) : createCommentVNode("v-if", true),
1929
- _hoisted_22
1939
+ _hoisted_18
1930
1940
  ])
1931
1941
  ])
1932
1942
  ])
@@ -2006,7 +2016,15 @@ var table = {
2006
2016
  effect: {
2007
2017
  required: true,
2008
2018
  },
2019
+ inject: true,
2009
2020
  value: rule.config.childRules,
2021
+ on: {
2022
+ change({ api, self }, list) {
2023
+ nextTick(() => {
2024
+ api.validate();
2025
+ });
2026
+ },
2027
+ },
2010
2028
  },
2011
2029
  {
2012
2030
  type: 'checkbox',
@@ -2069,7 +2087,7 @@ var file = {
2069
2087
  },
2070
2088
  },
2071
2089
  effect: {
2072
- required: true,
2090
+ required: false,
2073
2091
  formRule: 'formRule',
2074
2092
  },
2075
2093
  config: {
@@ -2140,7 +2158,7 @@ var people = {
2140
2158
  },
2141
2159
  },
2142
2160
  effect: {
2143
- required: true,
2161
+ required: false,
2144
2162
  formRule: 'formRule',
2145
2163
  },
2146
2164
  props: {
@@ -2173,6 +2191,7 @@ var people = {
2173
2191
  field: fieldsMap$5['props.placeholder'],
2174
2192
  props: {
2175
2193
  placeholder: '请输入',
2194
+ maxlength: 30,
2176
2195
  },
2177
2196
  value: rule.props.placeholder,
2178
2197
  },
@@ -2261,7 +2280,7 @@ var department = {
2261
2280
  },
2262
2281
  },
2263
2282
  effect: {
2264
- required: true,
2283
+ required: false,
2265
2284
  formRule: 'formRule',
2266
2285
  },
2267
2286
  props: {
@@ -2294,6 +2313,7 @@ var department = {
2294
2313
  field: fieldsMap$4['props.placeholder'],
2295
2314
  props: {
2296
2315
  placeholder: '请输入',
2316
+ maxlength: 30,
2297
2317
  },
2298
2318
  value: rule.props.placeholder,
2299
2319
  },
@@ -2356,15 +2376,10 @@ var department = {
2356
2376
  },
2357
2377
  };
2358
2378
 
2359
- const _hoisted_1$a = { style: { "margin-top": "16px", "line-height": "32px" } };
2360
- const _hoisted_2$8 = /* @__PURE__ */ createTextVNode(" \u660E\u7EC6\u5217\u8868 ");
2361
- const _hoisted_3$7 = { style: { "float": "right" } };
2362
- const _hoisted_4$4 = /* @__PURE__ */ createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ");
2363
- const _hoisted_5$2 = /* @__PURE__ */ createTextVNode(" \u5BFC\u5165\u660E\u7EC6 ");
2364
- const _hoisted_6$2 = /* @__PURE__ */ createTextVNode(" \u6279\u91CF\u5220\u9664 ");
2365
- const _hoisted_7$1 = /* @__PURE__ */ createTextVNode(" \u65B0\u589E ");
2366
- const _hoisted_8$1 = /* @__PURE__ */ createElementVNode("div", { class: "bm-material-temp__table-tip" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u8868\u683C\u5B57\u6BB5", -1);
2367
- const _hoisted_9 = { class: "bm-material-temp__add" };
2379
+ const _hoisted_1$9 = { style: { "margin-top": "16px", "line-height": "32px" } };
2380
+ const _hoisted_2$7 = { style: { "float": "right" } };
2381
+ const _hoisted_3$4 = /* @__PURE__ */ createElementVNode("div", { class: "bm-material-temp__table-tip" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u8868\u683C\u5B57\u6BB5", -1);
2382
+ const _hoisted_4$3 = { class: "bm-material-temp__add" };
2368
2383
  const _sfc_main$b = /* @__PURE__ */ defineComponent({
2369
2384
  __name: "widget-material-temp",
2370
2385
  props: ["formCreateInject"],
@@ -2473,14 +2488,10 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2473
2488
  uploadPicRule.hidden = uploadPictureRule.hidden;
2474
2489
  rules.value = [...rules.value];
2475
2490
  }
2476
- watch(
2477
- () => props.formCreateInject.rule.config.uploadPictureRule,
2478
- handleUploadPicRule,
2479
- {
2480
- deep: true,
2481
- immediate: true
2482
- }
2483
- );
2491
+ watch(() => props.formCreateInject.rule.config.uploadPictureRule, handleUploadPicRule, {
2492
+ deep: true,
2493
+ immediate: true
2494
+ });
2484
2495
  return (_ctx, _cache) => {
2485
2496
  const _component_FormCreate = resolveComponent("FormCreate");
2486
2497
  return openBlock(), createBlock(unref(Tabs), {
@@ -2492,7 +2503,7 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2492
2503
  size: "small"
2493
2504
  }, {
2494
2505
  rightExtra: withCtx(() => [
2495
- createElementVNode("span", _hoisted_9, [
2506
+ createElementVNode("span", _hoisted_4$3, [
2496
2507
  createVNode(unref(PlusOutlined))
2497
2508
  ])
2498
2509
  ]),
@@ -2507,37 +2518,37 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2507
2518
  option,
2508
2519
  rule: rules.value
2509
2520
  }, null, 8, ["rule"]),
2510
- createElementVNode("div", _hoisted_1$a, [
2511
- _hoisted_2$8,
2512
- createElementVNode("div", _hoisted_3$7, [
2521
+ createElementVNode("div", _hoisted_1$9, [
2522
+ createTextVNode(" \u660E\u7EC6\u5217\u8868 "),
2523
+ createElementVNode("div", _hoisted_2$7, [
2513
2524
  createVNode(unref(Button), null, {
2514
2525
  default: withCtx(() => [
2515
- _hoisted_4$4
2526
+ createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ")
2516
2527
  ]),
2517
2528
  _: 1
2518
2529
  }),
2519
2530
  createVNode(unref(Button), null, {
2520
2531
  default: withCtx(() => [
2521
- _hoisted_5$2
2532
+ createTextVNode(" \u5BFC\u5165\u660E\u7EC6 ")
2522
2533
  ]),
2523
2534
  _: 1
2524
2535
  }),
2525
2536
  createVNode(unref(Button), null, {
2526
2537
  default: withCtx(() => [
2527
- _hoisted_6$2
2538
+ createTextVNode(" \u6279\u91CF\u5220\u9664 ")
2528
2539
  ]),
2529
2540
  _: 1
2530
2541
  }),
2531
2542
  createVNode(unref(Button), { type: "primary" }, {
2532
2543
  default: withCtx(() => [
2533
2544
  createVNode(unref(PlusOutlined)),
2534
- _hoisted_7$1
2545
+ createTextVNode(" \u65B0\u589E ")
2535
2546
  ]),
2536
2547
  _: 1
2537
2548
  })
2538
2549
  ])
2539
2550
  ]),
2540
- _hoisted_8$1
2551
+ _hoisted_3$4
2541
2552
  ]),
2542
2553
  _: 2
2543
2554
  }, 1032, ["tab"]);
@@ -2550,17 +2561,16 @@ const _sfc_main$b = /* @__PURE__ */ defineComponent({
2550
2561
  });
2551
2562
  var WidgetMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "widget-material-temp.vue"]]);
2552
2563
 
2553
- const _hoisted_1$9 = { class: "bm-use-instruction" };
2554
- const _hoisted_2$7 = { class: "bm-use-instruction__title" };
2555
- const _hoisted_3$6 = /* @__PURE__ */ createTextVNode(" \u4F7F\u7528\u8BF4\u660E ");
2564
+ const _hoisted_1$8 = { class: "bm-use-instruction" };
2565
+ const _hoisted_2$6 = { class: "bm-use-instruction__title" };
2556
2566
  const _sfc_main$a = /* @__PURE__ */ defineComponent({
2557
2567
  __name: "use-instruction",
2558
2568
  setup(__props) {
2559
2569
  return (_ctx, _cache) => {
2560
- return openBlock(), createElementBlock("div", _hoisted_1$9, [
2561
- createElementVNode("div", _hoisted_2$7, [
2570
+ return openBlock(), createElementBlock("div", _hoisted_1$8, [
2571
+ createElementVNode("div", _hoisted_2$6, [
2562
2572
  createVNode(unref(InfoCircleFilled), { class: "bm-use-instruction__title__icon" }),
2563
- _hoisted_3$6
2573
+ createTextVNode(" \u4F7F\u7528\u8BF4\u660E ")
2564
2574
  ]),
2565
2575
  renderSlot(_ctx.$slots, "default")
2566
2576
  ]);
@@ -2685,10 +2695,10 @@ var materialTemp = {
2685
2695
  },
2686
2696
  };
2687
2697
 
2688
- const _hoisted_1$8 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__title" }, "\u5546\u54C1\u7F16\u53F7", -1);
2689
- const _hoisted_2$6 = { class: "bm-product-info-item__content" };
2690
- const _hoisted_3$5 = { class: "bm-product-info-item__title" };
2691
- const _hoisted_4$3 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
2698
+ const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__title" }, "\u5546\u54C1\u7F16\u53F7", -1);
2699
+ const _hoisted_2$5 = { class: "bm-product-info-item__content" };
2700
+ const _hoisted_3$3 = { class: "bm-product-info-item__title" };
2701
+ const _hoisted_4$2 = /* @__PURE__ */ createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
2692
2702
  const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2693
2703
  __name: "product-info",
2694
2704
  props: ["formCreateInject"],
@@ -2701,8 +2711,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2701
2711
  span: 12
2702
2712
  }, {
2703
2713
  default: withCtx(() => [
2704
- _hoisted_1$8,
2705
- createElementVNode("div", _hoisted_2$6, [
2714
+ _hoisted_1$7,
2715
+ createElementVNode("div", _hoisted_2$5, [
2706
2716
  createVNode(unref(Input), { placeholder: "\u8BF7\u8F93\u5165\u5546\u54C1\u7F16\u53F7" })
2707
2717
  ])
2708
2718
  ]),
@@ -2715,8 +2725,8 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2715
2725
  span: 12
2716
2726
  }, {
2717
2727
  default: withCtx(() => [
2718
- createElementVNode("div", _hoisted_3$5, toDisplayString(item.label), 1),
2719
- _hoisted_4$3
2728
+ createElementVNode("div", _hoisted_3$3, toDisplayString(item.label), 1),
2729
+ _hoisted_4$2
2720
2730
  ]),
2721
2731
  _: 2
2722
2732
  }, 1024);
@@ -2729,14 +2739,11 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
2729
2739
  });
2730
2740
  var ProductInfo = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "product-info.vue"]]);
2731
2741
 
2732
- const _hoisted_1$7 = /* @__PURE__ */ createElementVNode("div", { class: "bm-associated-fields-item" }, [
2742
+ const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("div", { class: "bm-associated-fields-item" }, [
2733
2743
  /* @__PURE__ */ createElementVNode("span", { class: "bm-associated-fields-item__content" }, "\u5546\u54C1\u7F16\u53F7")
2734
2744
  ], -1);
2735
- const _hoisted_2$5 = { class: "bm-associated-fields-item__content" };
2736
- const _hoisted_3$4 = /* @__PURE__ */ createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ");
2737
- const _hoisted_4$2 = { style: { "text-align": "right", "margin": "6px 0 4px", "padding-right": "8px" } };
2738
- const _hoisted_5$1 = /* @__PURE__ */ createTextVNode("\u53D6\u6D88");
2739
- const _hoisted_6$1 = /* @__PURE__ */ createTextVNode("\u786E\u5B9A");
2745
+ const _hoisted_2$4 = { class: "bm-associated-fields-item__content" };
2746
+ const _hoisted_3$2 = { style: { "text-align": "right", "margin": "6px 0 4px", "padding-right": "8px" } };
2740
2747
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2741
2748
  __name: "associated-fields",
2742
2749
  props: ["associatedFields"],
@@ -2772,10 +2779,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2772
2779
  }
2773
2780
  ];
2774
2781
  function emitChangeEvt() {
2775
- emits(
2776
- "change",
2777
- options.filter((op) => checkList.value.includes(op.value))
2778
- );
2782
+ emits("change", options.filter((op) => checkList.value.includes(op.value)));
2779
2783
  }
2780
2784
  function handOk() {
2781
2785
  visible.value = false;
@@ -2800,13 +2804,13 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2800
2804
  return (_ctx, _cache) => {
2801
2805
  const _component_Delete = resolveComponent("Delete");
2802
2806
  return openBlock(), createElementBlock("div", null, [
2803
- _hoisted_1$7,
2807
+ _hoisted_1$6,
2804
2808
  (openBlock(true), createElementBlock(Fragment, null, renderList(__props.associatedFields, (item) => {
2805
2809
  return openBlock(), createElementBlock("div", {
2806
2810
  key: item.value,
2807
2811
  class: "bm-associated-fields-item"
2808
2812
  }, [
2809
- createElementVNode("span", _hoisted_2$5, toDisplayString(item.label), 1),
2813
+ createElementVNode("span", _hoisted_2$4, toDisplayString(item.label), 1),
2810
2814
  createVNode(_component_Delete, {
2811
2815
  class: "bm-associated-fields-item__icon",
2812
2816
  onClick: ($event) => handleDel(item.value)
@@ -2854,12 +2858,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2854
2858
  _: 1
2855
2859
  }),
2856
2860
  createVNode(unref(Divider), { style: { "margin": "0" } }),
2857
- createElementVNode("div", _hoisted_4$2, [
2861
+ createElementVNode("div", _hoisted_3$2, [
2858
2862
  createVNode(unref(Button), {
2859
2863
  onClick: _cache[1] || (_cache[1] = ($event) => visible.value = false)
2860
2864
  }, {
2861
2865
  default: withCtx(() => [
2862
- _hoisted_5$1
2866
+ createTextVNode("\u53D6\u6D88")
2863
2867
  ]),
2864
2868
  _: 1
2865
2869
  }),
@@ -2869,7 +2873,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2869
2873
  onClick: handOk
2870
2874
  }, {
2871
2875
  default: withCtx(() => [
2872
- _hoisted_6$1
2876
+ createTextVNode("\u786E\u5B9A")
2873
2877
  ]),
2874
2878
  _: 1
2875
2879
  })
@@ -2885,7 +2889,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2885
2889
  }, {
2886
2890
  default: withCtx(() => [
2887
2891
  createVNode(unref(PlusOutlined)),
2888
- _hoisted_3$4
2892
+ createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ")
2889
2893
  ]),
2890
2894
  _: 1
2891
2895
  })
@@ -2898,9 +2902,8 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
2898
2902
  });
2899
2903
  var AssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "associated-fields.vue"]]);
2900
2904
 
2901
- const _hoisted_1$6 = /* @__PURE__ */ createElementVNode("div", { style: { "margin": "18px 0 6px" } }, "\u4EC5\u83B7\u53D6", -1);
2902
- const _hoisted_2$4 = /* @__PURE__ */ createElementVNode("div", { style: { "margin-top": "7px" } }, "\u4E2D\u53EF\u5206\u9500\u7684\u5546\u54C1\u6570\u636E", -1);
2903
- const _hoisted_3$3 = /* @__PURE__ */ createTextVNode("\u8BF7\u5148\u6DFB\u52A0\u5173\u8054\u8868\u5355\u4E2D\u7684\u5E97\u94FA\u7EC4\u4EF6");
2905
+ const _hoisted_1$5 = /* @__PURE__ */ createElementVNode("div", { style: { "margin": "18px 0 6px" } }, "\u4EC5\u83B7\u53D6", -1);
2906
+ const _hoisted_2$3 = /* @__PURE__ */ createElementVNode("div", { style: { "margin-top": "7px" } }, "\u4E2D\u53EF\u5206\u9500\u7684\u5546\u54C1\u6570\u636E", -1);
2904
2907
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2905
2908
  __name: "shop-data-filter",
2906
2909
  props: ["widgetFormRules", "defaultSelectValue"],
@@ -2909,19 +2912,17 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2909
2912
  const props = __props;
2910
2913
  const checkedValue = ref(!!props.defaultSelectValue);
2911
2914
  const selectValue = ref(props.defaultSelectValue);
2912
- const shopRules = computed(
2913
- () => props.widgetFormRules.reduce((pre, cur) => {
2914
- const name = cur.config.config.name;
2915
- if (name === "row" || name === "table") {
2916
- cur.config.childRules.forEach((rule) => {
2917
- getShop(rule, pre);
2918
- });
2919
- } else {
2920
- getShop(cur, pre);
2921
- }
2922
- return pre;
2923
- }, [])
2924
- );
2915
+ const shopRules = computed(() => props.widgetFormRules.reduce((pre, cur) => {
2916
+ const name = cur.config.config.name;
2917
+ if (name === "row" || name === "table") {
2918
+ cur.config.childRules.forEach((rule) => {
2919
+ getShop(rule, pre);
2920
+ });
2921
+ } else {
2922
+ getShop(cur, pre);
2923
+ }
2924
+ return pre;
2925
+ }, []));
2925
2926
  const shops = computed(() => {
2926
2927
  return shopRules.value.map((shopRule) => ({
2927
2928
  value: shopRule.field,
@@ -2980,7 +2981,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2980
2981
  "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => checkedValue.value = $event)
2981
2982
  }, null, 8, ["checked"]),
2982
2983
  checkedValue.value ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2983
- _hoisted_1$6,
2984
+ _hoisted_1$5,
2984
2985
  createVNode(unref(Select), {
2985
2986
  value: selectValue.value,
2986
2987
  "onUpdate:value": _cache[1] || (_cache[1] = ($event) => selectValue.value = $event),
@@ -2989,14 +2990,14 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
2989
2990
  "show-arrow": unref(shops).length > 1,
2990
2991
  placeholder: "\u8BF7\u9009\u62E9"
2991
2992
  }, null, 8, ["value", "options", "disabled", "show-arrow"]),
2992
- _hoisted_2$4
2993
+ _hoisted_2$3
2993
2994
  ], 64)) : createCommentVNode("v-if", true)
2994
2995
  ], 64)) : (openBlock(), createBlock(_component_a_tooltip, {
2995
2996
  key: 1,
2996
2997
  placement: "bottomLeft"
2997
2998
  }, {
2998
2999
  title: withCtx(() => [
2999
- _hoisted_3$3
3000
+ createTextVNode("\u8BF7\u5148\u6DFB\u52A0\u5173\u8054\u8868\u5355\u4E2D\u7684\u5E97\u94FA\u7EC4\u4EF6")
3000
3001
  ]),
3001
3002
  default: withCtx(() => [
3002
3003
  createVNode(unref(Switch), { disabled: "" })
@@ -3410,16 +3411,16 @@ function createTab() {
3410
3411
  ];
3411
3412
  }
3412
3413
 
3413
- const _hoisted_1$5 = {
3414
+ const _hoisted_1$4 = {
3414
3415
  style: { "vertical-align": "middle" },
3415
3416
  width: "199px",
3416
3417
  height: "107px",
3417
3418
  viewBox: "0 0 199 107",
3418
3419
  xmlns: "http://www.w3.org/2000/svg"
3419
3420
  };
3420
- const _hoisted_2$3 = /* @__PURE__ */ createStaticVNode('<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-826.000000, -249.000000)"><g transform="translate(667.000000, 71.000000)"><g transform="translate(159.000000, 178.000000)"><path d="M2,0 L197,0 C198.104569,-6.46995335e-16 199,0.8954305 199,2 L199,105 C199,106.104569 198.104569,107 197,107 L2,107 C0.8954305,107 1.3527075e-16,106.104569 0,105 L0,2 C-1.3527075e-16,0.8954305 0.8954305,2.02906125e-16 2,0 Z" fill="#F9FBFF"></path><path d="M41,6 C41.5522847,6 42,6.44771525 42,7 L42,100 C42,100.552285 41.5522847,101 41,101 L7,101 C6.44771525,101 6,100.552285 6,100 L6,7 C6,6.44771525 6.44771525,6 7,6 L41,6 Z M192,6 C192.552285,6 193,6.44771525 193,7 L193,100 C193,100.552285 192.552285,101 192,101 L159,101 C158.447715,101 158,100.552285 158,100 L158,7 C158,6.44771525 158.447715,6 159,6 L192,6 Z M151,35 C151.552285,35 152,35.4477153 152,36 L152,100 C152,100.552285 151.552285,101 151,101 L49,101 C48.4477153,101 48,100.552285 48,100 L48,36 C48,35.4477153 48.4477153,35 49,35 L151,35 Z M151,6 C151.552285,6 152,6.44771525 152,7 L152,30 C152,30.5522847 151.552285,31 151,31 L49,31 C48.4477153,31 48,30.5522847 48,30 L48,7 C48,6.44771525 48.4477153,6 49,6 L151,6 Z" fill="#EFF3FF"></path><rect stroke="#8FAAFF" fill="#D0DCFF" x="12.5" y="17.5" width="23" height="13" rx="0.5"></rect><rect fill="#E4E8F7" x="12" y="47" width="24" height="14" rx="0.5"></rect><rect fill="#E4E8F7" x="12" y="75" width="24" height="14" rx="0.5"></rect><use stroke="#AEC2FF" mask="url(#mask-2)" stroke-width="2" fill-opacity="0.26" fill="#AFC3FF" stroke-dasharray="2" xlink:href="#path-1"></use><path d="M33.5,20 C35.9852814,20 38,22.0147186 38,24.5 C38,26.9852814 35.9852814,29 33.5,29 C31.0147186,29 29,26.9852814 29,24.5 C29,22.0147186 31.0147186,20 33.5,20 Z M33.5,22 C32.1192881,22 31,23.1192881 31,24.5 C31,25.8807119 32.1192881,27 33.5,27 C34.8807119,27 36,25.8807119 36,24.5 C36,23.1192881 34.8807119,22 33.5,22 Z" fill="#2F4EED"></path><circle fill="#F9FBFF" cx="33.5" cy="24.5" r="2.5"></circle><path d="M42.5,22 C65.8354499,22 85.7454723,36.6659986 93.5155164,57.2834451 L93.7801465,55.3991118 C93.8570096,54.8522019 94.3626777,54.4711537 94.9095876,54.5480169 C95.4564976,54.6248801 95.8375458,55.1305481 95.7606826,55.677458 L94.925644,61.6190665 C94.8487808,62.1659764 94.3431128,62.5470246 93.7962028,62.4701614 L93.7673315,62.4658857 C93.5875459,62.4468789 93.4107192,62.3789077 93.2577621,62.2594045 L88.5296976,58.5654356 C88.0944913,58.2254152 88.0173279,57.5969697 88.3573483,57.1617634 C88.6973688,56.7265571 89.3258142,56.6493937 89.7610205,56.9894141 L91.887337,58.6494477 C84.582156,38.4419045 65.2276218,24 42.5,24 C40.4254117,24 38.3789284,24.1203318 36.367149,24.3543965 L36.022518,22.3809268 C38.1466458,22.1293826 40.3082134,22 42.5,22 Z" fill="#2F4EED"></path></g></g></g></g>', 1);
3421
- const _hoisted_3$2 = [
3422
- _hoisted_2$3
3421
+ const _hoisted_2$2 = /* @__PURE__ */ createStaticVNode('<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-826.000000, -249.000000)"><g transform="translate(667.000000, 71.000000)"><g transform="translate(159.000000, 178.000000)"><path d="M2,0 L197,0 C198.104569,-6.46995335e-16 199,0.8954305 199,2 L199,105 C199,106.104569 198.104569,107 197,107 L2,107 C0.8954305,107 1.3527075e-16,106.104569 0,105 L0,2 C-1.3527075e-16,0.8954305 0.8954305,2.02906125e-16 2,0 Z" fill="#F9FBFF"></path><path d="M41,6 C41.5522847,6 42,6.44771525 42,7 L42,100 C42,100.552285 41.5522847,101 41,101 L7,101 C6.44771525,101 6,100.552285 6,100 L6,7 C6,6.44771525 6.44771525,6 7,6 L41,6 Z M192,6 C192.552285,6 193,6.44771525 193,7 L193,100 C193,100.552285 192.552285,101 192,101 L159,101 C158.447715,101 158,100.552285 158,100 L158,7 C158,6.44771525 158.447715,6 159,6 L192,6 Z M151,35 C151.552285,35 152,35.4477153 152,36 L152,100 C152,100.552285 151.552285,101 151,101 L49,101 C48.4477153,101 48,100.552285 48,100 L48,36 C48,35.4477153 48.4477153,35 49,35 L151,35 Z M151,6 C151.552285,6 152,6.44771525 152,7 L152,30 C152,30.5522847 151.552285,31 151,31 L49,31 C48.4477153,31 48,30.5522847 48,30 L48,7 C48,6.44771525 48.4477153,6 49,6 L151,6 Z" fill="#EFF3FF"></path><rect stroke="#8FAAFF" fill="#D0DCFF" x="12.5" y="17.5" width="23" height="13" rx="0.5"></rect><rect fill="#E4E8F7" x="12" y="47" width="24" height="14" rx="0.5"></rect><rect fill="#E4E8F7" x="12" y="75" width="24" height="14" rx="0.5"></rect><use stroke="#AEC2FF" mask="url(#mask-2)" stroke-width="2" fill-opacity="0.26" fill="#AFC3FF" stroke-dasharray="2" xlink:href="#path-1"></use><path d="M33.5,20 C35.9852814,20 38,22.0147186 38,24.5 C38,26.9852814 35.9852814,29 33.5,29 C31.0147186,29 29,26.9852814 29,24.5 C29,22.0147186 31.0147186,20 33.5,20 Z M33.5,22 C32.1192881,22 31,23.1192881 31,24.5 C31,25.8807119 32.1192881,27 33.5,27 C34.8807119,27 36,25.8807119 36,24.5 C36,23.1192881 34.8807119,22 33.5,22 Z" fill="#2F4EED"></path><circle fill="#F9FBFF" cx="33.5" cy="24.5" r="2.5"></circle><path d="M42.5,22 C65.8354499,22 85.7454723,36.6659986 93.5155164,57.2834451 L93.7801465,55.3991118 C93.8570096,54.8522019 94.3626777,54.4711537 94.9095876,54.5480169 C95.4564976,54.6248801 95.8375458,55.1305481 95.7606826,55.677458 L94.925644,61.6190665 C94.8487808,62.1659764 94.3431128,62.5470246 93.7962028,62.4701614 L93.7673315,62.4658857 C93.5875459,62.4468789 93.4107192,62.3789077 93.2577621,62.2594045 L88.5296976,58.5654356 C88.0944913,58.2254152 88.0173279,57.5969697 88.3573483,57.1617634 C88.6973688,56.7265571 89.3258142,56.6493937 89.7610205,56.9894141 L91.887337,58.6494477 C84.582156,38.4419045 65.2276218,24 42.5,24 C40.4254117,24 38.3789284,24.1203318 36.367149,24.3543965 L36.022518,22.3809268 C38.1466458,22.1293826 40.3082134,22 42.5,22 Z" fill="#2F4EED"></path></g></g></g></g>', 1);
3422
+ const _hoisted_3$1 = [
3423
+ _hoisted_2$2
3423
3424
  ];
3424
3425
  const _hoisted_4$1 = /* @__PURE__ */ createElementVNode("div", { style: { "line-height": "20px", "margin-top": "12px", "color": "#505259" } }, " \u8BF7\u62D6\u62FD\u6216\u70B9\u51FB\u5DE6\u4FA7\u5B57\u6BB5\u521B\u5EFA\u8868\u5355 ", -1);
3425
3426
  const _sfc_main$5 = /* @__PURE__ */ defineComponent({
@@ -3428,7 +3429,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
3428
3429
  setup(__props) {
3429
3430
  return (_ctx, _cache) => {
3430
3431
  return openBlock(), createElementBlock("div", null, [
3431
- (openBlock(), createElementBlock("svg", _hoisted_1$5, _hoisted_3$2)),
3432
+ (openBlock(), createElementBlock("svg", _hoisted_1$4, _hoisted_3$1)),
3432
3433
  _hoisted_4$1
3433
3434
  ]);
3434
3435
  };
@@ -3457,7 +3458,7 @@ const formDesignerProps = {
3457
3458
  },
3458
3459
  };
3459
3460
 
3460
- const _hoisted_1$4 = {
3461
+ const _hoisted_1$3 = {
3461
3462
  key: 0,
3462
3463
  style: { "font-weight": "normal" }
3463
3464
  };
@@ -3466,31 +3467,28 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
3466
3467
  props: ["childRules"],
3467
3468
  setup(__props) {
3468
3469
  const props = __props;
3469
- const text = computed(
3470
- () => props.childRules.filter((rule) => rule.type === "inputNumber" && rule.config.count).reduce((pre, item, index) => {
3471
- if (index > 0)
3472
- pre += "\u3001";
3473
- return pre + `${item.title.title}: 0`;
3474
- }, "")
3475
- );
3470
+ const text = computed(() => props.childRules.filter((rule) => rule.type === "inputNumber" && rule.config.count).reduce((pre, item, index) => {
3471
+ if (index > 0)
3472
+ pre += "\u3001";
3473
+ return pre + `${item.title.title}: 0`;
3474
+ }, ""));
3476
3475
  return (_ctx, _cache) => {
3477
3476
  return openBlock(), createElementBlock("div", null, [
3478
3477
  renderSlot(_ctx.$slots, "default"),
3479
- unref(text) ? (openBlock(), createElementBlock("span", _hoisted_1$4, "\uFF08" + toDisplayString(unref(text)) + "\uFF09", 1)) : createCommentVNode("v-if", true)
3478
+ unref(text) ? (openBlock(), createElementBlock("span", _hoisted_1$3, "\uFF08" + toDisplayString(unref(text)) + "\uFF09", 1)) : createCommentVNode("v-if", true)
3480
3479
  ]);
3481
3480
  };
3482
3481
  }
3483
3482
  });
3484
3483
  var TableHeadCount = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "table-head-count.vue"]]);
3485
3484
 
3486
- const _hoisted_1$3 = { style: { "position": "absolute", "right": "0", "top": "-30px", "display": "flex", "align-items": "center" } };
3487
- const _hoisted_2$2 = /* @__PURE__ */ createTextVNode("\u5FC5\u586B");
3485
+ const _hoisted_1$2 = { style: { "position": "absolute", "right": "0", "top": "-30px", "display": "flex", "align-items": "center" } };
3488
3486
  const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3489
3487
  __name: "checkbox-switch",
3490
3488
  props: ["rule"],
3491
3489
  setup(__props) {
3492
3490
  return (_ctx, _cache) => {
3493
- return openBlock(), createElementBlock("span", _hoisted_1$3, [
3491
+ return openBlock(), createElementBlock("span", _hoisted_1$2, [
3494
3492
  createVNode(unref(FormItemRest), null, {
3495
3493
  default: withCtx(() => [
3496
3494
  createVNode(unref(Checkbox), {
@@ -3498,7 +3496,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
3498
3496
  "onUpdate:checked": _cache[0] || (_cache[0] = ($event) => __props.rule.config.uploadPictureRule.required = $event)
3499
3497
  }, {
3500
3498
  default: withCtx(() => [
3501
- _hoisted_2$2
3499
+ createTextVNode("\u5FC5\u586B")
3502
3500
  ]),
3503
3501
  _: 1
3504
3502
  }, 8, ["checked"]),
@@ -3572,13 +3570,13 @@ var ruleList = {
3572
3570
  [materialType.name]: materialType,
3573
3571
  };
3574
3572
 
3575
- const _hoisted_1$2 = { class: "bm-table-column__main" };
3573
+ const _hoisted_1$1 = { class: "bm-table-column__main" };
3576
3574
  const _hoisted_2$1 = { class: "bm-table-column-btn-wrap" };
3577
- const _hoisted_3$1 = /* @__PURE__ */ createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ");
3578
3575
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3579
3576
  __name: "table-column",
3580
3577
  props: ["formCreateInject"],
3581
- setup(__props) {
3578
+ emits: ["change"],
3579
+ setup(__props, { emit: emits }) {
3582
3580
  const props = __props;
3583
3581
  const handleClass = "bm-table-column__drag-icon";
3584
3582
  const btnCom = ref();
@@ -3603,6 +3601,11 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3603
3601
  function getPopupContainer() {
3604
3602
  return document.body;
3605
3603
  }
3604
+ watch(childRules, (val) => {
3605
+ emits("change", val);
3606
+ }, {
3607
+ deep: true
3608
+ });
3606
3609
  return (_ctx, _cache) => {
3607
3610
  const _component_Delete = resolveComponent("Delete");
3608
3611
  const _component_ARow = resolveComponent("ARow");
@@ -3627,7 +3630,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3627
3630
  createVNode(unref(HolderOutlined), {
3628
3631
  class: normalizeClass([handleClass])
3629
3632
  }, null, 8, ["class"]),
3630
- createElementVNode("div", _hoisted_1$2, toDisplayString(element.title.title), 1),
3633
+ createElementVNode("div", _hoisted_1$1, toDisplayString(element.title.title), 1),
3631
3634
  createVNode(unref(EditOutlined), {
3632
3635
  class: "bm-table-column__icon is-edit",
3633
3636
  onClick: ($event) => handleEdit(element)
@@ -3670,7 +3673,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3670
3673
  createVNode(unref(PlusOutlined))
3671
3674
  ]),
3672
3675
  default: withCtx(() => [
3673
- _hoisted_3$1
3676
+ createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ")
3674
3677
  ]),
3675
3678
  _: 1
3676
3679
  }, 512)
@@ -3681,15 +3684,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
3681
3684
  });
3682
3685
  var TableColumn = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__file", "table-column.vue"]]);
3683
3686
 
3684
- const _hoisted_1$1 = /* @__PURE__ */ createTextVNode("change");
3685
3687
  const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3686
3688
  __name: "text-color",
3687
- props: ["rule"],
3688
- setup(__props) {
3689
+ props: ["color"],
3690
+ emits: ["change"],
3691
+ setup(__props, { emit: emits }) {
3689
3692
  const props = __props;
3693
+ const color = ref(props.color);
3694
+ function getColor(curColor) {
3695
+ return curColor === Colors.Black ? Colors.Blue : Colors.Black;
3696
+ }
3690
3697
  function handleClick() {
3691
- const rule = props.rule;
3692
- rule.style.color = rule.style.color === Colors.Black ? Colors.Blue : Colors.Black;
3698
+ color.value = getColor(color.value);
3699
+ emits("change", color.value);
3693
3700
  }
3694
3701
  return (_ctx, _cache) => {
3695
3702
  const _component_ColorPanel = resolveComponent("ColorPanel");
@@ -3701,16 +3708,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
3701
3708
  width: "1em",
3702
3709
  height: "1em",
3703
3710
  fontSize: "20px",
3704
- color: __props.rule.style.color,
3711
+ color: getColor(color.value),
3705
3712
  cursor: "pointer"
3706
3713
  }),
3707
3714
  onClick: withModifiers(handleClick, ["prevent", "stop"])
3708
- }, {
3709
- default: withCtx(() => [
3710
- _hoisted_1$1
3711
- ]),
3712
- _: 1
3713
- }, 8, ["style", "onClick"]);
3715
+ }, null, 8, ["style", "onClick"]);
3714
3716
  };
3715
3717
  }
3716
3718
  });
@@ -3724,9 +3726,8 @@ const _hoisted_5 = {
3724
3726
  key: 0,
3725
3727
  class: "bfd-sider-right__title"
3726
3728
  };
3727
- const _hoisted_6 = /* @__PURE__ */ createTextVNode(" \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u9700\u572820M\u4EE5\u5185 ");
3728
- const _hoisted_7 = { class: "bfd-sider-right__form" };
3729
- const _hoisted_8 = {
3729
+ const _hoisted_6 = { class: "bfd-sider-right__form" };
3730
+ const _hoisted_7 = {
3730
3731
  key: 0,
3731
3732
  class: "bfd-sider-right__form__flow-releated"
3732
3733
  };
@@ -3770,13 +3771,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3770
3771
  const cacheProps = reactive({});
3771
3772
  const fApi = ref();
3772
3773
  const activeParentRule = ref();
3773
- const menuList = computed(
3774
- () => tabData.find((tab) => tab.key === activeKey.value).menuList
3775
- );
3774
+ const menuList = computed(() => tabData.find((tab) => tab.key === activeKey.value).menuList);
3776
3775
  const activeProps = computed(() => cacheProps[activeRule.value.field]);
3777
- const activeRuleInList = computed(
3778
- () => activeParentRule.value?.config?.childRules || widgetFormRules
3779
- );
3776
+ const activeRuleInList = computed(() => activeParentRule.value?.config?.childRules || widgetFormRules);
3780
3777
  function hideShowDragTip() {
3781
3778
  showDragTip.value = false;
3782
3779
  }
@@ -3831,9 +3828,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3831
3828
  if (!widgetNamesRowAccept.includes(config.name) && activeParentRuleName === "row" || !Object.keys(widgetsTableAccept).includes(config.name) && activeParentRuleName === "table") {
3832
3829
  disabledTip(activeParentRule.value.config.config.name);
3833
3830
  } else {
3834
- const index = activeRuleInList.value.findIndex(
3835
- (item) => item.field === activeRule.value.field
3836
- );
3831
+ const index = activeRuleInList.value.findIndex((item) => item.field === activeRule.value.field);
3837
3832
  activeRuleInList.value.splice(index + 1, 0, rule);
3838
3833
  setActiveRule(rule, activeParentRule.value);
3839
3834
  hideShowDragTip();
@@ -3912,9 +3907,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3912
3907
  } else {
3913
3908
  activeRule.value = {};
3914
3909
  }
3915
- } else if (targetRule?.config?.childRules?.some(
3916
- (rule) => rule.field === activeRule.value.field
3917
- )) {
3910
+ } else if (targetRule?.config?.childRules?.some((rule) => rule.field === activeRule.value.field)) {
3918
3911
  const newIndex = Math.min(parentList.length - 1, index);
3919
3912
  if (newIndex >= 0) {
3920
3913
  setActiveRule(parentList[newIndex]);
@@ -4027,24 +4020,70 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4027
4020
  function getRule(name) {
4028
4021
  return makeRule(ruleList[name]);
4029
4022
  }
4030
- watch(
4031
- () => props.presetRules,
4032
- (presetRules) => {
4033
- widgetFormRules.push(...presetRules);
4023
+ function validate() {
4024
+ let pass = true;
4025
+ for (const rule of widgetFormRules) {
4026
+ const config = rule.config.config || {};
4027
+ const childRules = rule.config.childRules || [];
4028
+ if (!rule?.title?.title && config.name !== "instruction") {
4029
+ pass = false;
4030
+ }
4031
+ if (config.name === "table" && !childRules.length) {
4032
+ pass = false;
4033
+ }
4034
+ if (!pass && rule.field !== activeRule.value.field) {
4035
+ setActiveRule(rule);
4036
+ }
4037
+ if (pass && childRules.length) {
4038
+ for (const childRule of childRules) {
4039
+ if (!childRule?.title?.title) {
4040
+ pass = false;
4041
+ if (childRule.field !== activeRule.value.field) {
4042
+ setActiveRule(childRule, rule);
4043
+ }
4044
+ break;
4045
+ }
4046
+ }
4047
+ }
4048
+ if (!pass) {
4049
+ nextTick(() => {
4050
+ fApi.value.validate();
4051
+ });
4052
+ break;
4053
+ }
4034
4054
  }
4035
- );
4036
- watch(
4037
- () => props.formRules,
4038
- (formRules) => {
4039
- edit(formRules);
4055
+ return pass;
4056
+ }
4057
+ function flowConditionEffect(activeProps2, flowCondition) {
4058
+ const requiredRule = activeProps2?.find((rule) => rule.field === "effect.required");
4059
+ if (requiredRule) {
4060
+ if (!requiredRule.props) {
4061
+ requiredRule.props = {};
4062
+ }
4063
+ requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
4040
4064
  }
4041
- );
4065
+ }
4066
+ watch(() => props.presetRules, (presetRules) => {
4067
+ widgetFormRules.push(...presetRules);
4068
+ });
4069
+ watch(() => props.formRules, (formRules) => {
4070
+ edit(formRules);
4071
+ });
4072
+ watch(activeProps, (activeProps2) => {
4073
+ flowConditionEffect(activeProps2, props.flowCondition);
4074
+ });
4075
+ watch(() => props.flowCondition, (flowCondition) => {
4076
+ flowConditionEffect(activeProps.value, flowCondition);
4077
+ }, {
4078
+ deep: true
4079
+ });
4042
4080
  onBeforeUnmount(() => {
4043
4081
  resetIndex();
4044
4082
  });
4045
4083
  expose({
4046
4084
  getFormRule,
4047
- getRule
4085
+ getRule,
4086
+ validate
4048
4087
  });
4049
4088
  return (_ctx, _cache) => {
4050
4089
  const _component_ACol = resolveComponent("ACol");
@@ -4087,7 +4126,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4087
4126
  move: moveMenuItem,
4088
4127
  "force-fallback": true,
4089
4128
  "scroll-sensitivity": 100,
4090
- delay: 50,
4091
4129
  onStart: handleMenuItemDragStart,
4092
4130
  onEnd: handleMenuItemDragEnd
4093
4131
  }, {
@@ -4170,7 +4208,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4170
4208
  createTextVNode(" " + toDisplayString(activeRule.value.config?.config.label) + " ", 1),
4171
4209
  activeRule.value.type === unref(WidgetType).UploadFile ? (openBlock(), createBlock(unref(Tooltip), { key: 0 }, {
4172
4210
  title: withCtx(() => [
4173
- _hoisted_6
4211
+ createTextVNode(" \u5355\u4E2A\u6587\u4EF6\u5927\u5C0F\u9700\u572820M\u4EE5\u5185 ")
4174
4212
  ]),
4175
4213
  default: withCtx(() => [
4176
4214
  createVNode(unref(QuestionCircleOutlined), { style: { "color": "#babac1", "font-size": "14px", "margin-left": "5px" } })
@@ -4178,8 +4216,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4178
4216
  _: 1
4179
4217
  })) : createCommentVNode("v-if", true)
4180
4218
  ])) : createCommentVNode("v-if", true),
4181
- createElementVNode("div", _hoisted_7, [
4182
- _ctx.flowCondition[activeRule.value.field] ? (openBlock(), createElementBlock("div", _hoisted_8, [
4219
+ createElementVNode("div", _hoisted_6, [
4220
+ _ctx.flowCondition[activeRule.value.field] ? (openBlock(), createElementBlock("div", _hoisted_7, [
4183
4221
  createVNode(unref(ExclamationCircleFilled), { style: { "color": "#2f4eed" } }),
4184
4222
  createTextVNode(" \u8BE5\u7EC4\u4EF6\u5728\u201C" + toDisplayString(_ctx.flowCondition[activeRule.value.field]) + "\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539 ", 1)
4185
4223
  ])) : createCommentVNode("v-if", true),