bm-admin-ui 1.0.40-alpha → 1.0.42-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 (123) hide show
  1. package/es/components/attachment/index.d.ts +70 -0
  2. package/es/components/attachment/index.js +273 -0
  3. package/es/components/attachment/src/attachment.vue.d.ts +69 -0
  4. package/es/components/breadcrumb/index.d.ts +162 -0
  5. package/es/components/breadcrumb/index.js +158 -0
  6. package/es/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
  7. package/es/components/button/index.d.ts +303 -1
  8. package/es/components/editor/index.d.ts +305 -0
  9. package/es/components/editor/index.js +12549 -0
  10. package/es/components/editor/src/editor.vue.d.ts +304 -0
  11. package/es/components/editor/src/props.d.ts +31 -0
  12. package/es/components/feedback/index.d.ts +1028 -2
  13. package/es/components/float-table/__test__/index.test.d.ts +1 -0
  14. package/es/components/float-table/index.d.ts +68 -1
  15. package/es/components/flow-designer/index.d.ts +5 -1
  16. package/es/components/form-create/index.js +59 -27
  17. package/es/components/form-designer/index.js +42 -9
  18. package/es/components/index.d.ts +3 -0
  19. package/es/components/index.js +3 -0
  20. package/es/components/input-tags-display/index.d.ts +138 -1
  21. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  22. package/es/components/over-tooltips/index.d.ts +33 -1
  23. package/es/components/search-filter/index.d.ts +233 -1
  24. package/es/components/search-filter/src/search-filter.vue.d.ts +3 -3
  25. package/es/components/select-all/index.d.ts +752 -1
  26. package/es/components/select-all/src/selectAll.vue.d.ts +5 -5
  27. package/es/components/shops-filter/index.d.ts +97 -1
  28. package/es/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  29. package/es/components/staffs-selector/index.d.ts +1095 -1
  30. package/es/components/staffs-selector/index.js +535 -505
  31. package/es/components/staffs-selector/src/action.d.ts +66 -0
  32. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
  33. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
  34. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
  35. package/es/components/timeline/index.d.ts +111 -2
  36. package/es/components/upload/index.d.ts +139 -2
  37. package/es/components/upload/index.js +212 -169
  38. package/es/components/upload/src/props.d.ts +50 -0
  39. package/es/components/upload/src/upload.vue.d.ts +44 -11
  40. package/es/utils/with-install.d.ts +7 -1
  41. package/es/utils/with-install.js +1 -0
  42. package/index.esm.js +81686 -71590
  43. package/index.js +81685 -71586
  44. package/lib/components/attachment/index.d.ts +70 -0
  45. package/lib/components/attachment/index.js +278 -0
  46. package/lib/components/attachment/src/attachment.vue.d.ts +69 -0
  47. package/lib/components/breadcrumb/index.d.ts +162 -0
  48. package/lib/components/breadcrumb/index.js +168 -0
  49. package/lib/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
  50. package/lib/components/button/index.d.ts +303 -1
  51. package/lib/components/editor/index.d.ts +305 -0
  52. package/lib/components/editor/index.js +12554 -0
  53. package/lib/components/editor/src/editor.vue.d.ts +304 -0
  54. package/lib/components/editor/src/props.d.ts +31 -0
  55. package/lib/components/feedback/index.d.ts +1028 -2
  56. package/lib/components/float-table/__test__/index.test.d.ts +1 -0
  57. package/lib/components/float-table/index.d.ts +68 -1
  58. package/lib/components/flow-designer/index.d.ts +5 -1
  59. package/lib/components/form-create/index.js +59 -27
  60. package/lib/components/form-designer/index.js +42 -9
  61. package/lib/components/index.d.ts +3 -0
  62. package/lib/components/index.js +21 -0
  63. package/lib/components/input-tags-display/index.d.ts +138 -1
  64. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  65. package/lib/components/over-tooltips/index.d.ts +33 -1
  66. package/lib/components/search-filter/index.d.ts +233 -1
  67. package/lib/components/search-filter/src/search-filter.vue.d.ts +3 -3
  68. package/lib/components/select-all/index.d.ts +752 -1
  69. package/lib/components/select-all/src/selectAll.vue.d.ts +5 -5
  70. package/lib/components/shops-filter/index.d.ts +97 -1
  71. package/lib/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  72. package/lib/components/staffs-selector/index.d.ts +1095 -1
  73. package/lib/components/staffs-selector/index.js +536 -506
  74. package/lib/components/staffs-selector/src/action.d.ts +66 -0
  75. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
  76. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
  77. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
  78. package/lib/components/timeline/index.d.ts +111 -2
  79. package/lib/components/upload/index.d.ts +139 -2
  80. package/lib/components/upload/index.js +210 -167
  81. package/lib/components/upload/src/props.d.ts +50 -0
  82. package/lib/components/upload/src/upload.vue.d.ts +44 -11
  83. package/lib/utils/with-install.d.ts +7 -1
  84. package/lib/utils/with-install.js +1 -0
  85. package/package.json +1 -1
  86. package/theme-chalk/attachment.css +1 -0
  87. package/theme-chalk/breadcrumb.css +1 -0
  88. package/theme-chalk/editor.css +16 -0
  89. package/theme-chalk/index.css +16 -1
  90. package/theme-chalk/staffs-selector.css +1 -1
  91. package/theme-chalk/upload.css +1 -1
  92. package/types/components/attachment/index.d.ts +70 -0
  93. package/types/components/attachment/src/attachment.vue.d.ts +69 -0
  94. package/types/components/breadcrumb/index.d.ts +162 -0
  95. package/types/components/breadcrumb/src/breadcrumb.vue.d.ts +161 -0
  96. package/types/components/button/index.d.ts +303 -1
  97. package/types/components/editor/index.d.ts +305 -0
  98. package/types/components/editor/src/editor.vue.d.ts +304 -0
  99. package/types/components/editor/src/props.d.ts +31 -0
  100. package/types/components/feedback/index.d.ts +1028 -2
  101. package/types/components/float-table/__test__/index.test.d.ts +1 -0
  102. package/types/components/float-table/index.d.ts +68 -1
  103. package/types/components/flow-designer/index.d.ts +5 -1
  104. package/types/components/index.d.ts +3 -0
  105. package/types/components/input-tags-display/index.d.ts +138 -1
  106. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  107. package/types/components/over-tooltips/index.d.ts +33 -1
  108. package/types/components/search-filter/index.d.ts +233 -1
  109. package/types/components/search-filter/src/search-filter.vue.d.ts +3 -3
  110. package/types/components/select-all/index.d.ts +752 -1
  111. package/types/components/select-all/src/selectAll.vue.d.ts +5 -5
  112. package/types/components/shops-filter/index.d.ts +97 -1
  113. package/types/components/shops-filter/src/shops-filter.vue.d.ts +1 -1
  114. package/types/components/staffs-selector/index.d.ts +1095 -1
  115. package/types/components/staffs-selector/src/action.d.ts +66 -0
  116. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +11 -49
  117. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +998 -10
  118. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +18 -11
  119. package/types/components/timeline/index.d.ts +111 -2
  120. package/types/components/upload/index.d.ts +139 -2
  121. package/types/components/upload/src/props.d.ts +50 -0
  122. package/types/components/upload/src/upload.vue.d.ts +44 -11
  123. package/types/utils/with-install.d.ts +7 -1
@@ -1,3 +1,70 @@
1
- declare const BmFloatTable: any;
1
+ declare const BmFloatTable: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<{
2
+ name: string;
3
+ props: {
4
+ config: {
5
+ type: ObjectConstructor;
6
+ required: boolean;
7
+ default: () => {};
8
+ };
9
+ pagerProps: {
10
+ type: ObjectConstructor;
11
+ default: () => {};
12
+ };
13
+ events: {
14
+ type: ObjectConstructor;
15
+ default: () => {};
16
+ };
17
+ isNeedFloatHandle: {
18
+ type: BooleanConstructor;
19
+ default: boolean;
20
+ };
21
+ size: {
22
+ type: StringConstructor;
23
+ default: string;
24
+ };
25
+ };
26
+ emits: string[];
27
+ setup(props: any, { emit }: {
28
+ emit: any;
29
+ }): {
30
+ setItemRef(el: any, column: any, rowid: any): void;
31
+ leaveFloatTable(): void;
32
+ scrollTo(config?: {}): void;
33
+ pageNoChange(val: any): Promise<void>;
34
+ pageSizeChange(val: any, size: any): Promise<void>;
35
+ floatMouseLeave(): void;
36
+ floatOverMouse(): void;
37
+ goAnimationEndFn(): void;
38
+ scrollNotShowFloat(): void;
39
+ classes: import("vue").ComputedRef<(string | {
40
+ floatHandleTable: any;
41
+ })[]>;
42
+ gridOptions: import("vue").ComputedRef<any>;
43
+ gridEvents: import("vue").ComputedRef<any>;
44
+ pager: import("vue").ComputedRef<any>;
45
+ simpleImage: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
46
+ [key: string]: any;
47
+ }> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
+ [key: string]: any;
49
+ }> | null | undefined)[]>;
50
+ floatRefsId: import("vue").Ref<{}>;
51
+ floatId: import("vue").Ref<string>;
52
+ isShowFloatHandle: import("vue").Ref<boolean>;
53
+ atVisible: import("vue").Ref<boolean>;
54
+ goAnimationEnd: import("vue").Ref<boolean>;
55
+ floatPosition: import("vue").Ref<{
56
+ top: string;
57
+ height: string;
58
+ }>;
59
+ trNodes: import("vue").Ref<any>;
60
+ isInScroll: import("vue").Ref<boolean>;
61
+ inMaxScorllX: import("vue").Ref<boolean>;
62
+ floatRow: import("vue").Ref<{}>;
63
+ floatRowIndex: import("vue").Ref<undefined>;
64
+ floatHandleDomCol: import("vue").Ref<any>;
65
+ floatTable: import("vue").Ref<any>;
66
+ xGrid: import("vue").Ref<any>;
67
+ };
68
+ }>;
2
69
  export { BmFloatTable };
3
70
  export default BmFloatTable;
@@ -1,3 +1,7 @@
1
- declare const BmFlowDesigner: any;
1
+ declare const BmFlowDesigner: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{}, {
2
+ container: import("vue").Ref<any>;
3
+ lf: any;
4
+ init: () => void;
5
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>>;
2
6
  export { BmFlowDesigner };
3
7
  export default BmFlowDesigner;
@@ -794,7 +794,7 @@ const _sfc_main$a = /* @__PURE__ */ vue.defineComponent({
794
794
  vue.watch(
795
795
  () => props.defaultSelected,
796
796
  (val) => {
797
- selected.value = val;
797
+ selected.value = val || [];
798
798
  },
799
799
  {
800
800
  immediate: true
@@ -989,6 +989,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
989
989
  const params = vue.computed(() => ({
990
990
  timestamp: timestamp.value,
991
991
  pageType: 1,
992
+ status: 1,
992
993
  templateName: templateName.value,
993
994
  categoryCode: selectTypeKeys.value?.[0],
994
995
  secondCategoryCode: selectTypeKeys.value?.[1],
@@ -1003,6 +1004,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1003
1004
  total: 0
1004
1005
  });
1005
1006
  const timestamp = vue.ref("");
1007
+ let initLoadFlag = true;
1006
1008
  function initType() {
1007
1009
  props.fetchMaterialType({
1008
1010
  level: 1,
@@ -1049,7 +1051,11 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1049
1051
  return result;
1050
1052
  }
1051
1053
  function handleTreeSelect(selectedKeys, e) {
1052
- selectTypeKeys.value = getSelectTypeKeys(e.node);
1054
+ if (selectedKeys.length) {
1055
+ selectTypeKeys.value = getSelectTypeKeys(e.node);
1056
+ } else {
1057
+ selectTypeKeys.value = [];
1058
+ }
1053
1059
  pagination.current = 1;
1054
1060
  getTem();
1055
1061
  }
@@ -1081,7 +1087,15 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1081
1087
  emits("update:visible", false);
1082
1088
  }
1083
1089
  initType();
1084
- getTem();
1090
+ vue.watch(
1091
+ () => props.visible,
1092
+ (visible) => {
1093
+ if (visible && initLoadFlag) {
1094
+ getTem();
1095
+ initLoadFlag = false;
1096
+ }
1097
+ }
1098
+ );
1085
1099
  return (_ctx, _cache) => {
1086
1100
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Modal), {
1087
1101
  title: "\u9009\u62E9\u7D20\u6750\u6A21\u677F",
@@ -1207,7 +1221,7 @@ const _hoisted_6$3 = ["onClick"];
1207
1221
  const _hoisted_7$3 = ["onClick"];
1208
1222
  const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
1209
1223
  __name: "table-widget",
1210
- props: ["rule", "extraConfig"],
1224
+ props: ["rule", "extraConfig", "disabled"],
1211
1225
  emits: ["change"],
1212
1226
  setup(__props, { emit: emits }) {
1213
1227
  const props = __props;
@@ -1264,7 +1278,7 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
1264
1278
  function initConfig() {
1265
1279
  columns.splice(0, columns.length);
1266
1280
  data.splice(0, data.length);
1267
- const childRules = props.rule.config.childRules;
1281
+ const childRules = lodashEs.cloneDeep(props.rule.config.childRules);
1268
1282
  const value = props.rule.value;
1269
1283
  if (deleteFeature.value) {
1270
1284
  columns.push({
@@ -1272,6 +1286,11 @@ const _sfc_main$7 = /* @__PURE__ */ vue.defineComponent({
1272
1286
  width: "54px"
1273
1287
  });
1274
1288
  }
1289
+ if (props.disabled) {
1290
+ childRules.forEach((rule) => {
1291
+ rule.disabled = true;
1292
+ });
1293
+ }
1275
1294
  childRules?.length && columns.push(
1276
1295
  ...childRules.reduce((pre, cur) => {
1277
1296
  if (cur.hidden) {
@@ -1549,7 +1568,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1549
1568
  "uploadPictureRule",
1550
1569
  "extraConfig",
1551
1570
  "formCreateInject",
1552
- "value"
1571
+ "value",
1572
+ "disabled"
1553
1573
  ],
1554
1574
  emits: ["change"],
1555
1575
  setup(__props, { emit: emits }) {
@@ -1573,7 +1593,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1573
1593
  visible.value = true;
1574
1594
  }
1575
1595
  function handleSelect(tempId) {
1576
- return getTempDetail(tempId).then((result) => {
1596
+ getTempDetail(tempId).then((result) => {
1577
1597
  const activePane2 = getAcitvePane();
1578
1598
  activePane2.tempSelected = result;
1579
1599
  activePane2.tableRule = getTableRule(result.coverageArr);
@@ -1675,7 +1695,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1675
1695
  index = props.value.index;
1676
1696
  panes.splice(0, panes.length);
1677
1697
  value.panes.forEach((pane, index2) => {
1678
- pane.tempSelected = {};
1698
+ if (!pane.tempSelected)
1699
+ pane.tempSelected = {};
1679
1700
  if (index2 === 0) {
1680
1701
  activeKey.value = pane.key;
1681
1702
  }
@@ -1686,9 +1707,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1686
1707
  function handTabChange() {
1687
1708
  const activePane2 = getAcitvePane();
1688
1709
  if (activePane2.tempIdSelected) {
1689
- handleSelect(activePane2.tempIdSelected).then(() => {
1690
- delete activePane2.tempIdSelected;
1691
- });
1710
+ handleSelect(activePane2.tempIdSelected);
1711
+ delete activePane2.tempIdSelected;
1692
1712
  }
1693
1713
  }
1694
1714
  props.value && initValue(props.value);
@@ -1752,15 +1772,17 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1752
1772
  vue.createTextVNode(vue.toDisplayString(pane.tempSelected.templateName) + " ", 1),
1753
1773
  vue.createVNode(vue.unref(antDesignVue.Button), {
1754
1774
  type: "link",
1775
+ disabled: __props.disabled?.includes("selectBtn"),
1755
1776
  onClick: selectTemp
1756
1777
  }, {
1757
1778
  default: vue.withCtx(() => [
1758
1779
  vue.createTextVNode("\u66F4\u6362\u6A21\u677F")
1759
1780
  ]),
1760
1781
  _: 1
1761
- })
1782
+ }, 8, ["disabled"])
1762
1783
  ])) : (vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Button), {
1763
1784
  key: 1,
1785
+ disabled: __props.disabled?.includes("selectBtn"),
1764
1786
  onClick: selectTemp
1765
1787
  }, {
1766
1788
  default: vue.withCtx(() => [
@@ -1768,7 +1790,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1768
1790
  vue.createTextVNode(" \u9009\u62E9\u6A21\u677F ")
1769
1791
  ]),
1770
1792
  _: 1
1771
- }))
1793
+ }, 8, ["disabled"]))
1772
1794
  ]),
1773
1795
  _: 2
1774
1796
  }, 1024)
@@ -1912,7 +1934,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1912
1934
  "upload-props": {
1913
1935
  listType: "picture-card",
1914
1936
  text: "\u4E0A\u4F20\u56FE\u7247",
1915
- multiple: true
1937
+ multiple: true,
1938
+ disabled: __props.disabled?.includes("uploadPic")
1916
1939
  },
1917
1940
  "extra-props": {
1918
1941
  maxCount: 9
@@ -1920,7 +1943,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1920
1943
  "upload-request": __props.extraConfig.uploadRequest,
1921
1944
  "default-list": pane.uploadList,
1922
1945
  onUpdate: handleUpload
1923
- }, null, 8, ["upload-request", "default-list"])
1946
+ }, null, 8, ["upload-props", "upload-request", "default-list"])
1924
1947
  ]),
1925
1948
  _: 2
1926
1949
  }, 1024)
@@ -1936,8 +1959,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1936
1959
  pane.tableRule ? (vue.openBlock(), vue.createBlock(TableWidget, {
1937
1960
  key: 0,
1938
1961
  rule: pane.tableRule,
1962
+ disabled: __props.disabled?.includes("editTable"),
1939
1963
  onChange: handleTableDataChange
1940
- }, null, 8, ["rule"])) : vue.createCommentVNode("v-if", true)
1964
+ }, null, 8, ["rule", "disabled"])) : vue.createCommentVNode("v-if", true)
1941
1965
  ]),
1942
1966
  _: 2
1943
1967
  }, 1024)
@@ -2189,11 +2213,12 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2189
2213
  emits: ["change"],
2190
2214
  setup(__props, { emit: emits }) {
2191
2215
  const props = __props;
2216
+ const value = vue.ref(props.value);
2192
2217
  const options = vue.ref([]);
2193
2218
  const keyword = vue.ref("");
2194
- const debounceFetch = lodashEs.debounce((value) => {
2219
+ const debounceFetch = lodashEs.debounce((value2) => {
2195
2220
  props.extraConfig.fetch(postData.value).then((data) => {
2196
- if (value === keyword.value)
2221
+ if (value2 === keyword.value)
2197
2222
  options.value = data;
2198
2223
  });
2199
2224
  }, 300);
@@ -2206,17 +2231,18 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2206
2231
  options.value = data;
2207
2232
  });
2208
2233
  }
2209
- function handleChange(value, option) {
2234
+ function handleChange(value2, option) {
2210
2235
  emits("change", option);
2211
2236
  }
2212
- function handleSearch(value) {
2213
- keyword.value = value;
2214
- debounceFetch(value);
2237
+ function handleSearch(value2) {
2238
+ keyword.value = value2;
2239
+ debounceFetch(value2);
2215
2240
  }
2216
2241
  initOptions();
2217
2242
  return (_ctx, _cache) => {
2218
2243
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Select), {
2219
- value: __props.value,
2244
+ value: value.value,
2245
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2220
2246
  placeholder: "\u8BF7\u9009\u62E9",
2221
2247
  "show-search": "",
2222
2248
  "show-arrow": false,
@@ -2886,18 +2912,20 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
2886
2912
  const fApi = vue.ref();
2887
2913
  const rule = vue.ref([]);
2888
2914
  const processFormPermissions = vue.computed(
2889
- () => props.formPermissions.reduce((result, item) => {
2915
+ () => props.formPermissions ? props.formPermissions.reduce((result, item) => {
2890
2916
  if (item.disabled) {
2891
2917
  if (item.name === "picture") {
2892
2918
  ((item.props = {}).uploadProps = {}).disabled = true;
2919
+ } else if (item.name === "materialTemp") {
2920
+ (item.props = {}).disabled = item.disabled;
2893
2921
  } else {
2894
2922
  (item.props = {}).disabled = true;
2895
2923
  }
2896
- delete item.disabled;
2897
2924
  }
2925
+ delete item.disabled;
2898
2926
  result[item.field] = item;
2899
2927
  return result;
2900
- }, {})
2928
+ }, {}) : {}
2901
2929
  );
2902
2930
  function setRule(fdRule) {
2903
2931
  fdRule = getRuleData(fdRule);
@@ -2922,13 +2950,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
2922
2950
  childRule.disabled = rulePermission.props?.disabled;
2923
2951
  }
2924
2952
  });
2953
+ } else if (data.name === "materialTemp") {
2954
+ rule2.children[1] = mergeFormPermission(data.field, rule2.children[1]);
2955
+ return rule2;
2925
2956
  }
2926
2957
  return mergeFormPermission(data.field, rule2);
2927
2958
  });
2928
2959
  }
2929
2960
  function mergeFormPermission(field, rule2) {
2930
- if (processFormPermissions.value[field])
2961
+ if (processFormPermissions.value[field]) {
2931
2962
  rule2 = lodashEs.merge(rule2, processFormPermissions.value[field]);
2963
+ }
2932
2964
  return rule2;
2933
2965
  }
2934
2966
  function handleValue(value) {
@@ -145,8 +145,8 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
145
145
  function handleRowWidgetMouseleave() {
146
146
  props.rule.config.isHover = true;
147
147
  }
148
- function handleRowWidgetSetActiveRule(element) {
149
- emits("setActiveRule", element, props.rule);
148
+ function handleNestSetActiveRule(element, parentRule) {
149
+ emits("setActiveRule", element, parentRule || props.rule);
150
150
  }
151
151
  function handleRowWidgetCopy(rule) {
152
152
  emitCopyEvt(rule, props.rule);
@@ -154,7 +154,7 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
154
154
  function handleRowWidgetDelete(rule) {
155
155
  emitDeleteEvt(rule, props.rule);
156
156
  }
157
- function handleRowWidgetAdd(rule) {
157
+ function handleNestAdd(rule) {
158
158
  emits("widgetAdd", rule, props.rule);
159
159
  }
160
160
  return (_ctx, _cache) => {
@@ -179,10 +179,10 @@ const _sfc_main$h = /* @__PURE__ */ vue.defineComponent({
179
179
  rule: [__props.rule],
180
180
  onNestMouseenter: handleRowWidgetMouseenter,
181
181
  onNestMouseleave: handleRowWidgetMouseleave,
182
- onNestSetActiveRule: handleRowWidgetSetActiveRule,
182
+ onNestSetActiveRule: handleNestSetActiveRule,
183
183
  onNestCopy: handleRowWidgetCopy,
184
184
  onNestDelete: handleRowWidgetDelete,
185
- onNestAdd: handleRowWidgetAdd
185
+ onNestAdd: handleNestAdd
186
186
  }, null, 8, ["option", "rule"])) : (vue.openBlock(), vue.createBlock(WidgetInstruction, {
187
187
  key: 1,
188
188
  rule: __props.rule
@@ -274,8 +274,8 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
274
274
  function handleMouseleave() {
275
275
  emits("mouseleave");
276
276
  }
277
- function emitSetActiveRuleEvt(rule) {
278
- emits("set-active-rule", rule);
277
+ function emitSetActiveRuleEvt(rule, parentRule = void 0) {
278
+ emits("set-active-rule", rule, parentRule);
279
279
  }
280
280
  function handleClick(element) {
281
281
  emitSetActiveRuleEvt(element);
@@ -294,6 +294,9 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
294
294
  function handleDelete(rule) {
295
295
  emits("delete", rule);
296
296
  }
297
+ function handleWidgetInTableActive(rule, parentRule) {
298
+ emitSetActiveRuleEvt(rule, parentRule);
299
+ }
297
300
  return (_ctx, _cache) => {
298
301
  const _component_ACol = vue.resolveComponent("ACol");
299
302
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$d, [
@@ -332,7 +335,8 @@ const _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
332
335
  onMouseleave: handleMouseleave,
333
336
  onClick: vue.withModifiers(($event) => handleClick(element), ["stop"]),
334
337
  onCopy: handleCopy,
335
- onDelete: handleDelete
338
+ onDelete: handleDelete,
339
+ onSetActiveRule: handleWidgetInTableActive
336
340
  }, null, 8, ["rule", "active-rule", "parent-rule", "onClick"]),
337
341
  vue.createVNode(DragPlaceholder)
338
342
  ]),
@@ -1619,6 +1623,9 @@ var instruction = {
1619
1623
  minRows: 5,
1620
1624
  },
1621
1625
  },
1626
+ effect: {
1627
+ required: '请输入说明文字',
1628
+ },
1622
1629
  title: label$9,
1623
1630
  field: fieldsMap$9.value,
1624
1631
  value: rule.value,
@@ -3238,6 +3245,14 @@ var shop = {
3238
3245
  field: fieldsMap$1['config.isMain'],
3239
3246
  value: rule.config.isMain,
3240
3247
  hidden: !!parentRule,
3248
+ inject: true,
3249
+ on: {
3250
+ change({ api, self }, value) {
3251
+ if (value) {
3252
+ api.mergeRule(fieldsMap$1['effect.required'], { value: true });
3253
+ }
3254
+ },
3255
+ },
3241
3256
  },
3242
3257
  {
3243
3258
  type: 'switch',
@@ -3766,7 +3781,8 @@ const __default__ = {
3766
3781
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3767
3782
  ...__default__,
3768
3783
  props: formDesignerProps,
3769
- setup(__props, { expose }) {
3784
+ emits: ["initPresetRule"],
3785
+ setup(__props, { expose, emit: emits }) {
3770
3786
  const props = __props;
3771
3787
  FC__default["default"].component("TableHeadCount", TableHeadCount);
3772
3788
  FC__default["default"].component("TableColumn", TableColumn);
@@ -3929,6 +3945,10 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3929
3945
  antDesignVue.message.error("\u8BE5\u63A7\u4EF6\u5DF2\u88AB\u8BBE\u4E3A\u6570\u636E\u8FC7\u6EE4\u6761\u4EF6\uFF0C\u4E0D\u53EF\u5220\u9664\u3002");
3930
3946
  return;
3931
3947
  }
3948
+ if (props.flowCondition[targetRule.field]) {
3949
+ antDesignVue.message.error("\u8BE5\u7EC4\u4EF6\u5728\u201C\u6761\u4EF6\u5206\u652F\u540D\u79F0\u201D\u5DF2\u88AB\u8BBE\u4E3A\u5BA1\u6279\u6761\u4EF6\uFF0C\u4E0D\u53EF\u5220\u9664\u3002");
3950
+ return;
3951
+ }
3932
3952
  const parentList = parentRule?.config?.childRules || widgetFormRules;
3933
3953
  const index = parentList.findIndex((rule) => rule.field === targetRule.field);
3934
3954
  parentList.splice(index, 1);
@@ -3965,6 +3985,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3965
3985
  vue.nextTick(() => {
3966
3986
  item.props.activeRule = rule;
3967
3987
  });
3988
+ if (item.type === WidgetType.RowWidget && item?.config?.childRules?.length) {
3989
+ item.config.childRules.forEach((childRule) => {
3990
+ if (childRule.type === WidgetType.TableWidget) {
3991
+ vue.nextTick(() => {
3992
+ childRule.props.activeRule = rule;
3993
+ });
3994
+ }
3995
+ });
3996
+ }
3968
3997
  }
3969
3998
  });
3970
3999
  if (!cacheProps[rule.field]) {
@@ -4065,6 +4094,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4065
4094
  if (!rule?.title?.title && config.name !== "instruction") {
4066
4095
  pass = false;
4067
4096
  }
4097
+ if (!rule?.value && config.name === "instruction") {
4098
+ pass = false;
4099
+ }
4068
4100
  if (config.name === "table" && !childRules.length) {
4069
4101
  pass = false;
4070
4102
  }
@@ -4106,6 +4138,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4106
4138
  () => props.presetRules,
4107
4139
  (presetRules) => {
4108
4140
  widgetFormRules.push(...presetRules);
4141
+ emits("initPresetRule", widgetFormRules);
4109
4142
  }
4110
4143
  );
4111
4144
  vue.watch(
@@ -10,3 +10,6 @@ export * from './upload';
10
10
  export * from './timeline';
11
11
  export * from './input-tags-display';
12
12
  export * from './select-all';
13
+ export * from './breadcrumb';
14
+ export * from './editor';
15
+ export * from './attachment';
@@ -16,6 +16,9 @@ var upload = require('./upload');
16
16
  var timeline = require('./timeline');
17
17
  var inputTagsDisplay = require('./input-tags-display');
18
18
  var selectAll = require('./select-all');
19
+ var breadcrumb = require('./breadcrumb');
20
+ var editor = require('./editor');
21
+ var attachment = require('./attachment');
19
22
 
20
23
 
21
24
 
@@ -103,3 +106,21 @@ Object.keys(selectAll).forEach(function (k) {
103
106
  get: function () { return selectAll[k]; }
104
107
  });
105
108
  });
109
+ Object.keys(breadcrumb).forEach(function (k) {
110
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
111
+ enumerable: true,
112
+ get: function () { return breadcrumb[k]; }
113
+ });
114
+ });
115
+ Object.keys(editor).forEach(function (k) {
116
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
117
+ enumerable: true,
118
+ get: function () { return editor[k]; }
119
+ });
120
+ });
121
+ Object.keys(attachment).forEach(function (k) {
122
+ if (k !== 'default' && !exports.hasOwnProperty(k)) Object.defineProperty(exports, k, {
123
+ enumerable: true,
124
+ get: function () { return attachment[k]; }
125
+ });
126
+ });
@@ -1,3 +1,140 @@
1
- declare const BmTagsDisplay: any;
1
+ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWithInstall<import("vue").DefineComponent<{
2
+ disabled: {
3
+ type: BooleanConstructor;
4
+ default: boolean;
5
+ };
6
+ list: {
7
+ type: ArrayConstructor;
8
+ default: () => {
9
+ key: any;
10
+ title: string;
11
+ }[];
12
+ };
13
+ showEmpty: {
14
+ type: BooleanConstructor;
15
+ default: boolean;
16
+ };
17
+ placeholder: {
18
+ type: StringConstructor;
19
+ default: string;
20
+ };
21
+ showEmptyBtn: {
22
+ type: BooleanConstructor;
23
+ default: boolean;
24
+ };
25
+ unitStr: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ };
29
+ btnText: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ toolTipProps: {
34
+ type: ObjectConstructor;
35
+ default: () => {};
36
+ };
37
+ placement: {
38
+ type: StringConstructor;
39
+ default: string;
40
+ };
41
+ fieldNames: {
42
+ type: ObjectConstructor;
43
+ default: () => {
44
+ key: string;
45
+ title: string;
46
+ };
47
+ };
48
+ alwaysInvoke: {
49
+ type: BooleanConstructor;
50
+ default: boolean;
51
+ };
52
+ }, {
53
+ containId: string;
54
+ clear: () => void;
55
+ toAddTags: () => void;
56
+ tooltipConfig: import("vue").Ref<{
57
+ align: undefined;
58
+ arrowPointAtCenter: boolean;
59
+ autoAdjustOverflow: boolean;
60
+ color: string;
61
+ defaultVisible: boolean;
62
+ destroyTooltipOnHide: boolean;
63
+ getPopupContainer: () => HTMLElement;
64
+ mouseEnterDelay: number;
65
+ mouseLeaveDelay: number;
66
+ overlayClassName: string;
67
+ overlayStyle: null;
68
+ placement: string;
69
+ trigger: string;
70
+ }>;
71
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("clear" | "update:list" | "addClick")[], "clear" | "update:list" | "addClick", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
72
+ disabled: {
73
+ type: BooleanConstructor;
74
+ default: boolean;
75
+ };
76
+ list: {
77
+ type: ArrayConstructor;
78
+ default: () => {
79
+ key: any;
80
+ title: string;
81
+ }[];
82
+ };
83
+ showEmpty: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ placeholder: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ showEmptyBtn: {
92
+ type: BooleanConstructor;
93
+ default: boolean;
94
+ };
95
+ unitStr: {
96
+ type: StringConstructor;
97
+ default: string;
98
+ };
99
+ btnText: {
100
+ type: StringConstructor;
101
+ default: string;
102
+ };
103
+ toolTipProps: {
104
+ type: ObjectConstructor;
105
+ default: () => {};
106
+ };
107
+ placement: {
108
+ type: StringConstructor;
109
+ default: string;
110
+ };
111
+ fieldNames: {
112
+ type: ObjectConstructor;
113
+ default: () => {
114
+ key: string;
115
+ title: string;
116
+ };
117
+ };
118
+ alwaysInvoke: {
119
+ type: BooleanConstructor;
120
+ default: boolean;
121
+ };
122
+ }>> & {
123
+ onClear?: ((...args: any[]) => any) | undefined;
124
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
125
+ onAddClick?: ((...args: any[]) => any) | undefined;
126
+ }, {
127
+ disabled: boolean;
128
+ list: unknown[];
129
+ placeholder: string;
130
+ placement: string;
131
+ showEmpty: boolean;
132
+ showEmptyBtn: boolean;
133
+ unitStr: string;
134
+ btnText: string;
135
+ toolTipProps: Record<string, any>;
136
+ fieldNames: Record<string, any>;
137
+ alwaysInvoke: boolean;
138
+ }>>;
2
139
  export { BmTagsDisplay };
3
140
  export default BmTagsDisplay;
@@ -123,9 +123,9 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onAddClick?: ((...args: any[]) => any) | undefined;
124
124
  }, {
125
125
  disabled: boolean;
126
+ list: unknown[];
126
127
  placeholder: string;
127
128
  placement: string;
128
- list: unknown[];
129
129
  showEmpty: boolean;
130
130
  showEmptyBtn: boolean;
131
131
  unitStr: string;