bm-admin-ui 1.0.91-alpha → 1.0.92-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 (73) hide show
  1. package/es/components/cascader/__tests__/index.test.d.ts +1 -0
  2. package/es/components/cascader/_util/KeyCode.d.ts +110 -0
  3. package/es/components/cascader/index.d.ts +30 -0
  4. package/es/components/cascader/index.js +211 -0
  5. package/es/components/cascader/src/cascader.vue.d.ts +29 -0
  6. package/es/components/edit-form/index.js +1 -1
  7. package/es/components/feedback/index.d.ts +1 -1
  8. package/es/components/feedback/src/bmModal.vue.d.ts +1 -1
  9. package/es/components/float-table/index.js +62 -54
  10. package/es/components/flow-designer/index.js +1 -1
  11. package/es/components/form-create/index.js +98 -389
  12. package/es/components/form-designer/index.js +122 -180
  13. package/es/components/index.d.ts +1 -0
  14. package/es/components/index.js +1 -0
  15. package/es/components/search-filter/index.d.ts +0 -28
  16. package/es/components/search-filter/index.js +17 -70
  17. package/es/components/search-filter/src/form-select-all.vue.d.ts +0 -15
  18. package/es/components/search-filter/src/search-filter.d.ts +0 -16
  19. package/es/components/search-filter/src/search-filter.vue.d.ts +0 -28
  20. package/es/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
  21. package/es/components/select-all/index.d.ts +0 -2
  22. package/es/components/select-all/index.js +15 -33
  23. package/es/components/select-all/src/selectAll.vue.d.ts +0 -2
  24. package/es/components/staffs-selector/index.d.ts +2 -2
  25. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
  26. package/es/utils/uniqueId.js +2 -2
  27. package/lib/components/cascader/__tests__/index.test.d.ts +1 -0
  28. package/lib/components/cascader/_util/KeyCode.d.ts +110 -0
  29. package/lib/components/cascader/index.d.ts +30 -0
  30. package/lib/components/cascader/index.js +216 -0
  31. package/lib/components/cascader/src/cascader.vue.d.ts +29 -0
  32. package/lib/components/edit-form/index.js +1 -1
  33. package/lib/components/feedback/index.d.ts +1 -1
  34. package/lib/components/feedback/src/bmModal.vue.d.ts +1 -1
  35. package/lib/components/float-table/index.js +62 -54
  36. package/lib/components/flow-designer/index.js +1 -1
  37. package/lib/components/form-create/index.js +98 -389
  38. package/lib/components/form-designer/index.js +116 -174
  39. package/lib/components/index.d.ts +1 -0
  40. package/lib/components/index.js +7 -0
  41. package/lib/components/search-filter/index.d.ts +0 -28
  42. package/lib/components/search-filter/index.js +17 -71
  43. package/lib/components/search-filter/src/form-select-all.vue.d.ts +0 -15
  44. package/lib/components/search-filter/src/search-filter.d.ts +0 -16
  45. package/lib/components/search-filter/src/search-filter.vue.d.ts +0 -28
  46. package/lib/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
  47. package/lib/components/select-all/index.d.ts +0 -2
  48. package/lib/components/select-all/index.js +14 -32
  49. package/lib/components/select-all/src/selectAll.vue.d.ts +0 -2
  50. package/lib/components/staffs-selector/index.d.ts +2 -2
  51. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
  52. package/lib/utils/uniqueId.js +2 -2
  53. package/package.json +34 -34
  54. package/theme-chalk/cascader.css +1 -0
  55. package/theme-chalk/form-designer.css +1 -1
  56. package/theme-chalk/index.css +1 -1
  57. package/theme-chalk/select-all.css +1 -1
  58. package/types/components/cascader/__tests__/index.test.d.ts +1 -0
  59. package/types/components/cascader/_util/KeyCode.d.ts +110 -0
  60. package/types/components/cascader/index.d.ts +30 -0
  61. package/types/components/cascader/src/cascader.vue.d.ts +29 -0
  62. package/types/components/feedback/index.d.ts +1 -1
  63. package/types/components/feedback/src/bmModal.vue.d.ts +1 -1
  64. package/types/components/index.d.ts +1 -0
  65. package/types/components/search-filter/index.d.ts +0 -28
  66. package/types/components/search-filter/src/form-select-all.vue.d.ts +0 -15
  67. package/types/components/search-filter/src/search-filter.d.ts +0 -16
  68. package/types/components/search-filter/src/search-filter.vue.d.ts +0 -28
  69. package/types/components/search-filter/src/search-reset-btn.vue.d.ts +0 -26
  70. package/types/components/select-all/index.d.ts +0 -2
  71. package/types/components/select-all/src/selectAll.vue.d.ts +0 -2
  72. package/types/components/staffs-selector/index.d.ts +2 -2
  73. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
@@ -78,7 +78,7 @@ var _export_sfc = (sfc, props) => {
78
78
  return target;
79
79
  };
80
80
 
81
- const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
81
+ const _sfc_main$i = /* @__PURE__ */ vue.defineComponent({
82
82
  __name: "widget-instruction",
83
83
  props: ["rule"],
84
84
  setup(__props) {
@@ -89,13 +89,13 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
89
89
  };
90
90
  }
91
91
  });
92
- var WidgetInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "widget-instruction.vue"]]);
92
+ var WidgetInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["__file", "widget-instruction.vue"]]);
93
93
 
94
94
  const _hoisted_1$f = {
95
95
  key: 2,
96
96
  class: "bm-drag-tool-mask"
97
97
  };
98
- const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
98
+ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
99
99
  __name: "drag-tool",
100
100
  props: ["rule", "activeRuleField", "parentRule"],
101
101
  emits: [
@@ -236,16 +236,16 @@ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
236
236
  ]),
237
237
  _: 1
238
238
  }, 512), [
239
- [vue.vShow, !__props.rule.config?.immutable && (__props.rule.config.isHover || vue.unref(isActive))]
239
+ [vue.vShow, __props.rule.config.isHover || vue.unref(isActive)]
240
240
  ])
241
241
  ], 34);
242
242
  };
243
243
  }
244
244
  });
245
- var DragTool = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "drag-tool.vue"]]);
245
+ var DragTool = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["__file", "drag-tool.vue"]]);
246
246
 
247
247
  const _hoisted_1$e = { class: "bm-drag-placeholder" };
248
- const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
248
+ const _sfc_main$g = /* @__PURE__ */ vue.defineComponent({
249
249
  __name: "drag-placeholder",
250
250
  props: {},
251
251
  setup(__props) {
@@ -254,14 +254,14 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
254
254
  };
255
255
  }
256
256
  });
257
- var DragPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "drag-placeholder.vue"]]);
257
+ var DragPlaceholder = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["__file", "drag-placeholder.vue"]]);
258
258
 
259
259
  const _hoisted_1$d = { class: "bm-widget-row-wrap" };
260
260
  const _hoisted_2$a = {
261
261
  key: 0,
262
262
  class: "bm-widget-row-tip"
263
263
  };
264
- const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
264
+ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
265
265
  __name: "widget-row",
266
266
  props: ["activeRuleField", "formCreateInject"],
267
267
  emits: [
@@ -366,7 +366,7 @@ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
366
366
  };
367
367
  }
368
368
  });
369
- var WidgetRow = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "widget-row.vue"]]);
369
+ var WidgetRow = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["__file", "widget-row.vue"]]);
370
370
 
371
371
  const label$h = '分栏';
372
372
  const fieldsMap$h = {
@@ -712,14 +712,10 @@ var numInput = {
712
712
  placeholder: '请输入',
713
713
  },
714
714
  config: {
715
- format: '',
716
715
  propsFields: Object.values(fieldsMap$e),
717
716
  },
718
717
  style: {
719
718
  width: '100%',
720
- overflow: 'hidden',
721
- textOverflow: 'ellipsis',
722
- marginBottom: '0',
723
719
  },
724
720
  };
725
721
  },
@@ -808,7 +804,7 @@ const _hoisted_2$9 = {
808
804
  key: 0,
809
805
  class: "bm-handle-options__error-tip"
810
806
  };
811
- const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
807
+ const _sfc_main$e = /* @__PURE__ */ vue.defineComponent({
812
808
  __name: "handle-options",
813
809
  props: ["options", "disabled"],
814
810
  emits: ["setValue"],
@@ -979,7 +975,7 @@ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
979
975
  };
980
976
  }
981
977
  });
982
- var HandleOptionsCom = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "handle-options.vue"]]);
978
+ var HandleOptionsCom = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["__file", "handle-options.vue"]]);
983
979
 
984
980
  const label$d = '单选框';
985
981
  const ruleType$1 = {
@@ -1260,7 +1256,7 @@ var checkbox = {
1260
1256
  };
1261
1257
 
1262
1258
  const _hoisted_1$b = { class: "bm-default-date" };
1263
- const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
1259
+ const _sfc_main$d = /* @__PURE__ */ vue.defineComponent({
1264
1260
  __name: "default-date",
1265
1261
  props: [
1266
1262
  "defaultRadioValue",
@@ -1349,7 +1345,7 @@ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
1349
1345
  };
1350
1346
  }
1351
1347
  });
1352
- var DefaultDate = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "default-date.vue"]]);
1348
+ var DefaultDate = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["__file", "default-date.vue"]]);
1353
1349
 
1354
1350
  const label$b = '日期';
1355
1351
  const fieldsMap$b = {
@@ -1857,7 +1853,7 @@ const _hoisted_15 = { class: "bm-widget-table__operateColumn__content" };
1857
1853
  const _hoisted_16 = /* @__PURE__ */ vue.createElementVNode("a", null, "\u590D\u5236", -1);
1858
1854
  const _hoisted_17 = /* @__PURE__ */ vue.createElementVNode("span", null, null, -1);
1859
1855
  const _hoisted_18 = /* @__PURE__ */ vue.createElementVNode("a", null, "\u5220\u9664", -1);
1860
- const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1856
+ const _sfc_main$c = /* @__PURE__ */ vue.defineComponent({
1861
1857
  __name: "widget-table",
1862
1858
  props: ["formCreateInject", "activeRuleField"],
1863
1859
  emits: [
@@ -1874,7 +1870,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1874
1870
  const childRules = vue.computed(() => tableRule.value.config.childRules);
1875
1871
  const showDelete = vue.computed(() => showFeature("delete"));
1876
1872
  const showImport = vue.computed(() => showFeature("import"));
1877
- const showExport = vue.computed(() => showFeature("export"));
1878
1873
  const showCopy = vue.computed(() => showFeature("copy"));
1879
1874
  function showFeature(featureId) {
1880
1875
  return tableRule.value.config.tableAdvancedFeatures.includes(featureId);
@@ -1892,8 +1887,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1892
1887
  emits("set-active-rule", rule, tableRule.value);
1893
1888
  }
1894
1889
  function handleClick(element) {
1895
- if (element?.config.immutable)
1896
- return;
1897
1890
  emitSetActiveRuleEvt(element);
1898
1891
  }
1899
1892
  function handleUpdate({ newIndex }) {
@@ -1934,12 +1927,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
1934
1927
  vue.createTextVNode(" \u4E0B\u8F7D\u5BFC\u5165\u6A21\u677F ")
1935
1928
  ]),
1936
1929
  _: 1
1937
- })) : vue.createCommentVNode("v-if", true),
1938
- vue.unref(showExport) ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), { key: 3 }, {
1939
- default: vue.withCtx(() => [
1940
- vue.createTextVNode(" \u5BFC\u51FA ")
1941
- ]),
1942
- _: 1
1943
1930
  })) : vue.createCommentVNode("v-if", true)
1944
1931
  ]),
1945
1932
  vue.createElementVNode("div", _hoisted_3$5, [
@@ -2028,7 +2015,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
2028
2015
  };
2029
2016
  }
2030
2017
  });
2031
- var WidgetTable = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "widget-table.vue"]]);
2018
+ var WidgetTable = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__file", "widget-table.vue"]]);
2032
2019
 
2033
2020
  const label$7 = '表格';
2034
2021
  const fieldsMap$7 = {
@@ -2469,7 +2456,7 @@ const _hoisted_1$9 = { style: { "margin-top": "16px", "line-height": "32px" } };
2469
2456
  const _hoisted_2$7 = { style: { "float": "right" } };
2470
2457
  const _hoisted_3$4 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-material-temp__table-tip" }, "\u7CFB\u7EDF\u81EA\u52A8\u83B7\u53D6\u8868\u683C\u5B57\u6BB5", -1);
2471
2458
  const _hoisted_4$3 = { class: "bm-material-temp__add" };
2472
- const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
2459
+ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
2473
2460
  __name: "widget-material-temp",
2474
2461
  props: ["formCreateInject"],
2475
2462
  setup(__props) {
@@ -2652,11 +2639,11 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
2652
2639
  };
2653
2640
  }
2654
2641
  });
2655
- var WidgetMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "widget-material-temp.vue"]]);
2642
+ var WidgetMaterialTemp = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["__file", "widget-material-temp.vue"]]);
2656
2643
 
2657
2644
  const _hoisted_1$8 = { class: "bm-use-instruction" };
2658
2645
  const _hoisted_2$6 = { class: "bm-use-instruction__title" };
2659
- const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
2646
+ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
2660
2647
  __name: "use-instruction",
2661
2648
  setup(__props) {
2662
2649
  return (_ctx, _cache) => {
@@ -2670,7 +2657,7 @@ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
2670
2657
  };
2671
2658
  }
2672
2659
  });
2673
- var UseInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "use-instruction.vue"]]);
2660
+ var UseInstruction = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["__file", "use-instruction.vue"]]);
2674
2661
 
2675
2662
  const label$3 = '素材模板';
2676
2663
  const fieldsMap$3 = {
@@ -2792,7 +2779,7 @@ const _hoisted_1$7 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-
2792
2779
  const _hoisted_2$5 = { class: "bm-product-info-item__content" };
2793
2780
  const _hoisted_3$3 = { class: "bm-product-info-item__title" };
2794
2781
  const _hoisted_4$2 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-product-info-item__content" }, "\u7CFB\u7EDF\u81EA\u52A8\u5E26\u51FA", -1);
2795
- const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2782
+ const _sfc_main$9 = /* @__PURE__ */ vue.defineComponent({
2796
2783
  __name: "product-info",
2797
2784
  props: ["formCreateInject"],
2798
2785
  setup(__props) {
@@ -2837,70 +2824,90 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2837
2824
  };
2838
2825
  }
2839
2826
  });
2840
- var ProductInfo = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "product-info.vue"]]);
2827
+ var ProductInfo = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["__file", "product-info.vue"]]);
2841
2828
 
2842
- const _hoisted_1$6 = { class: "bm-associated-fields-item__content" };
2829
+ const _hoisted_1$6 = /* @__PURE__ */ vue.createElementVNode("div", { class: "bm-associated-fields-item" }, [
2830
+ /* @__PURE__ */ vue.createElementVNode("span", { class: "bm-associated-fields-item__content" }, "\u5546\u54C1\u7F16\u53F7")
2831
+ ], -1);
2843
2832
  const _hoisted_2$4 = { class: "bm-associated-fields-item__content" };
2844
2833
  const _hoisted_3$2 = { style: { "text-align": "right", "margin": "6px 0 4px", "padding-right": "8px" } };
2845
- const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2846
- __name: "pure-associated-fields",
2847
- props: ["associatedFields", "options", "defaultOptions"],
2834
+ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
2835
+ __name: "associated-fields",
2836
+ props: ["associatedFields"],
2848
2837
  emits: ["change"],
2849
2838
  setup(__props, { emit: emits }) {
2850
2839
  const props = __props;
2851
2840
  const visible = vue.ref(false);
2852
2841
  const checkList = vue.ref([]);
2853
- function handOk() {
2854
- visible.value = false;
2855
- emitChangeEvt();
2856
- }
2857
- function init() {
2858
- checkList.value = props.associatedFields?.map((item) => item.value);
2859
- }
2842
+ const options = [
2843
+ {
2844
+ value: "\u5546\u54C1\u540D\u79F0",
2845
+ label: "\u5546\u54C1\u540D\u79F0"
2846
+ },
2847
+ {
2848
+ value: "\u5546\u54C1\u7B80\u79F0",
2849
+ label: "\u5546\u54C1\u7B80\u79F0"
2850
+ },
2851
+ {
2852
+ value: "\u5546\u54C1\u56FE\u7247",
2853
+ label: "\u5546\u54C1\u56FE\u7247"
2854
+ },
2855
+ {
2856
+ value: "\u5EFA\u8BAE\u96F6\u552E\u4EF7",
2857
+ label: "\u5EFA\u8BAE\u96F6\u552E\u4EF7"
2858
+ },
2859
+ {
2860
+ value: "\u5546\u54C1\u7BB1\u89C4",
2861
+ label: "\u5546\u54C1\u7BB1\u89C4"
2862
+ },
2863
+ {
2864
+ value: "\u5546\u54C1\u5355\u4F4D",
2865
+ label: "\u5546\u54C1\u5355\u4F4D"
2866
+ }
2867
+ ];
2860
2868
  function emitChangeEvt() {
2861
2869
  emits(
2862
2870
  "change",
2863
- props.options.filter((op) => checkList.value.includes(op.value))
2871
+ options.filter((op) => checkList.value.includes(op.value))
2864
2872
  );
2865
2873
  }
2866
- function handleDel(value) {
2867
- checkList.value = checkList.value.filter((cl) => cl !== value);
2874
+ function handOk() {
2875
+ visible.value = false;
2868
2876
  emitChangeEvt();
2869
2877
  }
2870
- init();
2878
+ function init() {
2879
+ checkList.value = props.associatedFields.map((item) => item.value);
2880
+ }
2871
2881
  function visibleChange(visible2) {
2872
2882
  if (visible2) {
2873
2883
  init();
2874
2884
  }
2875
2885
  }
2886
+ function handleDel(value) {
2887
+ checkList.value = checkList.value.filter((cl) => cl !== value);
2888
+ emitChangeEvt();
2889
+ }
2890
+ init();
2876
2891
  vue.watch(visible, (val) => {
2877
2892
  visibleChange(val);
2878
2893
  });
2879
2894
  return (_ctx, _cache) => {
2880
2895
  const _component_Delete = vue.resolveComponent("Delete");
2881
2896
  return vue.openBlock(), vue.createElementBlock("div", null, [
2882
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.defaultOptions, (option) => {
2883
- return vue.openBlock(), vue.createElementBlock("div", {
2884
- key: `defaultOption${option?.value}`,
2885
- class: "bm-associated-fields-item"
2886
- }, [
2887
- vue.createElementVNode("span", _hoisted_1$6, vue.toDisplayString(option?.label), 1)
2888
- ]);
2889
- }), 128)),
2897
+ _hoisted_1$6,
2890
2898
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.associatedFields, (item) => {
2891
2899
  return vue.openBlock(), vue.createElementBlock("div", {
2892
2900
  key: item.value,
2893
2901
  class: "bm-associated-fields-item"
2894
2902
  }, [
2895
- vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(item?.label), 1),
2903
+ vue.createElementVNode("span", _hoisted_2$4, vue.toDisplayString(item.label), 1),
2896
2904
  vue.createVNode(_component_Delete, {
2897
2905
  class: "bm-associated-fields-item__icon",
2898
2906
  onClick: ($event) => handleDel(item.value)
2899
2907
  }, null, 8, ["onClick"])
2900
2908
  ]);
2901
2909
  }), 128)),
2902
- __props.associatedFields?.length ? (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Dropdown), {
2903
- key: 0,
2910
+ vue.createVNode(vue.unref(antDesignVue.Dropdown), {
2904
2911
  visible: visible.value,
2905
2912
  "onUpdate:visible": _cache[2] || (_cache[2] = ($event) => visible.value = $event),
2906
2913
  trigger: ["click"]
@@ -2916,8 +2923,8 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2916
2923
  style: { "width": "100%" }
2917
2924
  }, {
2918
2925
  default: vue.withCtx(() => [
2919
- (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(__props.options, (item) => {
2920
- return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.MenuItem), {
2926
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(options, (item) => {
2927
+ return vue.createVNode(vue.unref(antDesignVue.MenuItem), {
2921
2928
  key: item.value
2922
2929
  }, {
2923
2930
  default: vue.withCtx(() => [
@@ -2933,7 +2940,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2933
2940
  ]),
2934
2941
  _: 2
2935
2942
  }, 1024);
2936
- }), 128))
2943
+ }), 64))
2937
2944
  ]),
2938
2945
  _: 1
2939
2946
  }, 8, ["value"])
@@ -2966,25 +2973,28 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2966
2973
  })
2967
2974
  ]),
2968
2975
  default: vue.withCtx(() => [
2969
- vue.createVNode(vue.unref(antDesignVue.Button), { style: { "margin-top": "8px" } }, {
2976
+ vue.createVNode(vue.unref(antDesignVue.Button), {
2977
+ style: { "margin-top": "8px" },
2978
+ block: ""
2979
+ }, {
2970
2980
  default: vue.withCtx(() => [
2971
2981
  vue.createVNode(vue.unref(iconsVue.PlusOutlined)),
2972
- vue.createTextVNode("\u6DFB\u52A0\u5B50\u5B57\u6BB5")
2982
+ vue.createTextVNode(" \u6DFB\u52A0\u5B50\u5B57\u6BB5 ")
2973
2983
  ]),
2974
2984
  _: 1
2975
2985
  })
2976
2986
  ]),
2977
2987
  _: 1
2978
- }, 8, ["visible"])) : vue.createCommentVNode("v-if", true)
2988
+ }, 8, ["visible"])
2979
2989
  ]);
2980
2990
  };
2981
2991
  }
2982
2992
  });
2983
- var pureAssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "pure-associated-fields.vue"]]);
2993
+ var AssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__file", "associated-fields.vue"]]);
2984
2994
 
2985
2995
  const _hoisted_1$5 = /* @__PURE__ */ vue.createElementVNode("div", { style: { "margin": "18px 0 6px" } }, "\u4EC5\u83B7\u53D6", -1);
2986
2996
  const _hoisted_2$3 = /* @__PURE__ */ vue.createElementVNode("div", { style: { "margin-top": "7px" } }, "\u4E2D\u53EF\u5206\u9500\u7684\u5546\u54C1\u6570\u636E", -1);
2987
- const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
2997
+ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
2988
2998
  __name: "shop-data-filter",
2989
2999
  props: ["widgetFormRules", "defaultSelectValue"],
2990
3000
  emits: ["change"],
@@ -3078,7 +3088,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
3078
3088
  };
3079
3089
  }
3080
3090
  });
3081
- var ShopDataFilter = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "shop-data-filter.vue"]]);
3091
+ var ShopDataFilter = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["__file", "shop-data-filter.vue"]]);
3082
3092
 
3083
3093
  const label$2 = '商品';
3084
3094
  const fieldsMap$2 = {
@@ -3117,64 +3127,12 @@ var product = {
3117
3127
  props(rule, parentRule, widgetFormRules) {
3118
3128
  return [
3119
3129
  {
3120
- type: 'pureAssociatedFields',
3121
- component: pureAssociatedFields,
3130
+ type: 'AssociatedFields',
3131
+ component: AssociatedFields,
3122
3132
  title: '关联字段',
3123
3133
  field: fieldsMap$2['config.associatedFields'],
3124
3134
  props: {
3125
3135
  associatedFields: rule.config.associatedFields,
3126
- defaultOptions: [
3127
- {
3128
- value: '商品编号',
3129
- label: '商品编号',
3130
- },
3131
- ],
3132
- options: [
3133
- {
3134
- value: '商品名称',
3135
- label: '商品名称',
3136
- },
3137
- {
3138
- value: '商品简称',
3139
- label: '商品简称',
3140
- },
3141
- {
3142
- value: '商品图片',
3143
- label: '商品图片',
3144
- },
3145
- {
3146
- value: '建议零售价',
3147
- label: '建议零售价',
3148
- },
3149
- {
3150
- value: '商品箱规',
3151
- label: '商品箱规',
3152
- },
3153
- {
3154
- value: '商品单位',
3155
- label: '商品单位',
3156
- },
3157
- {
3158
- value: '一级分类',
3159
- label: '一级分类',
3160
- },
3161
- {
3162
- value: '二级分类',
3163
- label: '二级分类',
3164
- },
3165
- {
3166
- value: '三级分类',
3167
- label: '三级分类',
3168
- },
3169
- {
3170
- value: '商品类型',
3171
- label: '商品类型',
3172
- },
3173
- {
3174
- value: '商品标签',
3175
- label: '商品标签',
3176
- },
3177
- ],
3178
3136
  },
3179
3137
  effect: {
3180
3138
  required: true,
@@ -3236,6 +3194,33 @@ var product = {
3236
3194
  },
3237
3195
  };
3238
3196
 
3197
+ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
3198
+ __name: "shop-associated-fields",
3199
+ setup(__props) {
3200
+ const associatedFields = [
3201
+ {
3202
+ value: "\u5E97\u94FA\u7F16\u53F7",
3203
+ label: "\u5E97\u94FA\u7F16\u53F7"
3204
+ },
3205
+ {
3206
+ value: "\u5E97\u94FA\u540D\u79F0",
3207
+ label: "\u5E97\u94FA\u540D\u79F0"
3208
+ }
3209
+ ];
3210
+ return (_ctx, _cache) => {
3211
+ return vue.openBlock(), vue.createElementBlock("div", null, [
3212
+ (vue.openBlock(), vue.createElementBlock(vue.Fragment, null, vue.renderList(associatedFields, (item) => {
3213
+ return vue.createElementVNode("span", {
3214
+ key: item.value,
3215
+ class: "bm-shop-associated-fields-item"
3216
+ }, vue.toDisplayString(item.label), 1);
3217
+ }), 64))
3218
+ ]);
3219
+ };
3220
+ }
3221
+ });
3222
+ var ShopAssociatedFields = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["__file", "shop-associated-fields.vue"]]);
3223
+
3239
3224
  let i = 0;
3240
3225
  const label$1 = '店铺';
3241
3226
  const fieldsMap$1 = {
@@ -3275,37 +3260,13 @@ var shop = {
3275
3260
  props(rule, parentRule) {
3276
3261
  return [
3277
3262
  {
3278
- type: 'pureAssociatedFields',
3279
- component: pureAssociatedFields,
3263
+ type: 'ShopAssociatedFields',
3264
+ component: ShopAssociatedFields,
3280
3265
  title: '关联字段',
3281
3266
  field: 'config.associatedFields',
3282
- props: {
3283
- associatedFields: rule.config.associatedFields,
3284
- defaultOptions: [
3285
- {
3286
- value: '店铺编号',
3287
- label: '店铺编号',
3288
- },
3289
- {
3290
- value: '店铺名称',
3291
- label: '店铺名称',
3292
- },
3293
- ],
3294
- options: [],
3295
- },
3296
3267
  effect: {
3297
3268
  required: true,
3298
3269
  },
3299
- inject: true,
3300
- on: {
3301
- change({ api, self }, list) {
3302
- api.emit('change', self.field, list, self, api, true);
3303
- self.props.associatedFields = list;
3304
- nextTick(() => {
3305
- api.refresh();
3306
- });
3307
- },
3308
- },
3309
3270
  },
3310
3271
  {
3311
3272
  type: 'checkbox',
@@ -3354,8 +3315,8 @@ var shop = {
3354
3315
  required: rule.effect.required,
3355
3316
  },
3356
3317
  config: {
3318
+ dataFiltering: rule.config.dataFiltering,
3357
3319
  isMain: rule.config.isMain,
3358
- associatedFields: rule.config.associatedFields,
3359
3320
  },
3360
3321
  };
3361
3322
  },
@@ -3573,18 +3534,6 @@ const formDesignerProps = {
3573
3534
  type: Boolean,
3574
3535
  default: false,
3575
3536
  },
3576
- dragCheckFunc: {
3577
- type: Function,
3578
- default: (underlying_vm) => true,
3579
- },
3580
- formRulePipe: {
3581
- type: Function,
3582
- default: (obj) => obj,
3583
- },
3584
- addWidgetFunc: {
3585
- type: Function,
3586
- default: (pushRowWidget, pushTableWidgets) => null,
3587
- },
3588
3537
  };
3589
3538
 
3590
3539
  const _hoisted_1$3 = {
@@ -3686,12 +3635,6 @@ const widgetNamesRowAccept = [
3686
3635
  shop.name,
3687
3636
  materialType.name,
3688
3637
  ];
3689
- function pushTableWidgets(key, config) {
3690
- widgetsTableAccept[key] = config;
3691
- }
3692
- function pushRowWidgets(key) {
3693
- widgetNamesRowAccept.push(key);
3694
- }
3695
3638
  var ruleList = {
3696
3639
  [row.name]: row,
3697
3640
  [input.name]: input,
@@ -3906,7 +3849,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3906
3849
  if (rule?.props?.type === "textarea" && parentType === WidgetType.TableWidget) {
3907
3850
  rule.props.autoSize = true;
3908
3851
  }
3909
- if (rule.config?.config?.name === "product" && parentType === WidgetType.TableWidget) {
3852
+ if (rule.config.config.name === "product" && parentType === WidgetType.TableWidget) {
3910
3853
  rule.title.title = "\u5546\u54C1\u7F16\u53F7";
3911
3854
  }
3912
3855
  }
@@ -3920,8 +3863,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3920
3863
  people: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539",
3921
3864
  department: "\u9664\u201C\u5FC5\u586B\u3001\u9009\u9879\u201D\u5185\u5BB9\u8BBE\u7F6E\u4E0D\u53EF\u4FEE\u6539\uFF0C\u5176\u4ED6\u4FE1\u606F\u53EF\u4FEE\u6539"
3922
3865
  };
3923
- const tabData = typeof props.formRulePipe === "function" ? props.formRulePipe(createTab()) : [];
3924
- typeof props.addWidgetFunc === "function" && props.addWidgetFunc(pushRowWidgets, pushTableWidgets);
3866
+ const tabData = createTab();
3925
3867
  const activeKey = vue.ref("controlLibrary");
3926
3868
  const widgetFormRules = vue.reactive([]);
3927
3869
  const activeRule = vue.ref({});
@@ -3929,7 +3871,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3929
3871
  const fApi = vue.ref();
3930
3872
  const activeParentRule = vue.ref();
3931
3873
  const menuList = vue.computed(
3932
- () => tabData.find((tab) => tab.key === activeKey.value)?.menuList
3874
+ () => tabData.find((tab) => tab.key === activeKey.value).menuList
3933
3875
  );
3934
3876
  const activeProps = vue.computed(() => cacheProps[activeRule.value.field]);
3935
3877
  const activeRuleInList = vue.computed(
@@ -3960,10 +3902,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3960
3902
  }
3961
3903
  }
3962
3904
  function moveMenuItem(evt) {
3963
- return props?.dragCheckFunc(evt?.dragged?._underlying_vm_) && checkDragMove(evt);
3905
+ return checkDragMove(evt);
3964
3906
  }
3965
3907
  function moveFormItem(evt) {
3966
- return props?.dragCheckFunc(evt?.dragged?._underlying_vm_) && checkDragMove(evt);
3908
+ return checkDragMove(evt);
3967
3909
  }
3968
3910
  function handleMenuItemDragStart(evt) {
3969
3911
  const item = evt.item.children[0];
@@ -14,3 +14,4 @@ export * from './editor';
14
14
  export * from './videoView';
15
15
  export * from './attachment';
16
16
  export * from './edit-form';
17
+ export * from './cascader';
@@ -21,6 +21,7 @@ var editor = require('./editor');
21
21
  var videoView = require('./videoView');
22
22
  var attachment = require('./attachment');
23
23
  var editForm = require('./edit-form');
24
+ var cascader = require('./cascader');
24
25
 
25
26
 
26
27
 
@@ -138,3 +139,9 @@ Object.keys(editForm).forEach(function (k) {
138
139
  get: function () { return editForm[k]; }
139
140
  });
140
141
  });
142
+ Object.keys(cascader).forEach(function (k) {
143
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
144
+ enumerable: true,
145
+ get: function () { return cascader[k]; }
146
+ });
147
+ });