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
@@ -0,0 +1 @@
1
+ export {};
@@ -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;
@@ -783,7 +783,7 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
783
783
  watch(
784
784
  () => props.defaultSelected,
785
785
  (val) => {
786
- selected.value = val;
786
+ selected.value = val || [];
787
787
  },
788
788
  {
789
789
  immediate: true
@@ -978,6 +978,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
978
978
  const params = computed(() => ({
979
979
  timestamp: timestamp.value,
980
980
  pageType: 1,
981
+ status: 1,
981
982
  templateName: templateName.value,
982
983
  categoryCode: selectTypeKeys.value?.[0],
983
984
  secondCategoryCode: selectTypeKeys.value?.[1],
@@ -992,6 +993,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
992
993
  total: 0
993
994
  });
994
995
  const timestamp = ref("");
996
+ let initLoadFlag = true;
995
997
  function initType() {
996
998
  props.fetchMaterialType({
997
999
  level: 1,
@@ -1038,7 +1040,11 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1038
1040
  return result;
1039
1041
  }
1040
1042
  function handleTreeSelect(selectedKeys, e) {
1041
- selectTypeKeys.value = getSelectTypeKeys(e.node);
1043
+ if (selectedKeys.length) {
1044
+ selectTypeKeys.value = getSelectTypeKeys(e.node);
1045
+ } else {
1046
+ selectTypeKeys.value = [];
1047
+ }
1042
1048
  pagination.current = 1;
1043
1049
  getTem();
1044
1050
  }
@@ -1070,7 +1076,15 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1070
1076
  emits("update:visible", false);
1071
1077
  }
1072
1078
  initType();
1073
- getTem();
1079
+ watch(
1080
+ () => props.visible,
1081
+ (visible) => {
1082
+ if (visible && initLoadFlag) {
1083
+ getTem();
1084
+ initLoadFlag = false;
1085
+ }
1086
+ }
1087
+ );
1074
1088
  return (_ctx, _cache) => {
1075
1089
  return openBlock(), createBlock(unref(Modal), {
1076
1090
  title: "\u9009\u62E9\u7D20\u6750\u6A21\u677F",
@@ -1196,7 +1210,7 @@ const _hoisted_6$3 = ["onClick"];
1196
1210
  const _hoisted_7$3 = ["onClick"];
1197
1211
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1198
1212
  __name: "table-widget",
1199
- props: ["rule", "extraConfig"],
1213
+ props: ["rule", "extraConfig", "disabled"],
1200
1214
  emits: ["change"],
1201
1215
  setup(__props, { emit: emits }) {
1202
1216
  const props = __props;
@@ -1253,7 +1267,7 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1253
1267
  function initConfig() {
1254
1268
  columns.splice(0, columns.length);
1255
1269
  data.splice(0, data.length);
1256
- const childRules = props.rule.config.childRules;
1270
+ const childRules = cloneDeep(props.rule.config.childRules);
1257
1271
  const value = props.rule.value;
1258
1272
  if (deleteFeature.value) {
1259
1273
  columns.push({
@@ -1261,6 +1275,11 @@ const _sfc_main$7 = /* @__PURE__ */ defineComponent({
1261
1275
  width: "54px"
1262
1276
  });
1263
1277
  }
1278
+ if (props.disabled) {
1279
+ childRules.forEach((rule) => {
1280
+ rule.disabled = true;
1281
+ });
1282
+ }
1264
1283
  childRules?.length && columns.push(
1265
1284
  ...childRules.reduce((pre, cur) => {
1266
1285
  if (cur.hidden) {
@@ -1538,7 +1557,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1538
1557
  "uploadPictureRule",
1539
1558
  "extraConfig",
1540
1559
  "formCreateInject",
1541
- "value"
1560
+ "value",
1561
+ "disabled"
1542
1562
  ],
1543
1563
  emits: ["change"],
1544
1564
  setup(__props, { emit: emits }) {
@@ -1562,7 +1582,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1562
1582
  visible.value = true;
1563
1583
  }
1564
1584
  function handleSelect(tempId) {
1565
- return getTempDetail(tempId).then((result) => {
1585
+ getTempDetail(tempId).then((result) => {
1566
1586
  const activePane2 = getAcitvePane();
1567
1587
  activePane2.tempSelected = result;
1568
1588
  activePane2.tableRule = getTableRule(result.coverageArr);
@@ -1664,7 +1684,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1664
1684
  index = props.value.index;
1665
1685
  panes.splice(0, panes.length);
1666
1686
  value.panes.forEach((pane, index2) => {
1667
- pane.tempSelected = {};
1687
+ if (!pane.tempSelected)
1688
+ pane.tempSelected = {};
1668
1689
  if (index2 === 0) {
1669
1690
  activeKey.value = pane.key;
1670
1691
  }
@@ -1675,9 +1696,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1675
1696
  function handTabChange() {
1676
1697
  const activePane2 = getAcitvePane();
1677
1698
  if (activePane2.tempIdSelected) {
1678
- handleSelect(activePane2.tempIdSelected).then(() => {
1679
- delete activePane2.tempIdSelected;
1680
- });
1699
+ handleSelect(activePane2.tempIdSelected);
1700
+ delete activePane2.tempIdSelected;
1681
1701
  }
1682
1702
  }
1683
1703
  props.value && initValue(props.value);
@@ -1741,15 +1761,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1741
1761
  createTextVNode(toDisplayString(pane.tempSelected.templateName) + " ", 1),
1742
1762
  createVNode(unref(Button), {
1743
1763
  type: "link",
1764
+ disabled: __props.disabled?.includes("selectBtn"),
1744
1765
  onClick: selectTemp
1745
1766
  }, {
1746
1767
  default: withCtx(() => [
1747
1768
  createTextVNode("\u66F4\u6362\u6A21\u677F")
1748
1769
  ]),
1749
1770
  _: 1
1750
- })
1771
+ }, 8, ["disabled"])
1751
1772
  ])) : (openBlock(), createBlock(unref(Button), {
1752
1773
  key: 1,
1774
+ disabled: __props.disabled?.includes("selectBtn"),
1753
1775
  onClick: selectTemp
1754
1776
  }, {
1755
1777
  default: withCtx(() => [
@@ -1757,7 +1779,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1757
1779
  createTextVNode(" \u9009\u62E9\u6A21\u677F ")
1758
1780
  ]),
1759
1781
  _: 1
1760
- }))
1782
+ }, 8, ["disabled"]))
1761
1783
  ]),
1762
1784
  _: 2
1763
1785
  }, 1024)
@@ -1901,7 +1923,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1901
1923
  "upload-props": {
1902
1924
  listType: "picture-card",
1903
1925
  text: "\u4E0A\u4F20\u56FE\u7247",
1904
- multiple: true
1926
+ multiple: true,
1927
+ disabled: __props.disabled?.includes("uploadPic")
1905
1928
  },
1906
1929
  "extra-props": {
1907
1930
  maxCount: 9
@@ -1909,7 +1932,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1909
1932
  "upload-request": __props.extraConfig.uploadRequest,
1910
1933
  "default-list": pane.uploadList,
1911
1934
  onUpdate: handleUpload
1912
- }, null, 8, ["upload-request", "default-list"])
1935
+ }, null, 8, ["upload-props", "upload-request", "default-list"])
1913
1936
  ]),
1914
1937
  _: 2
1915
1938
  }, 1024)
@@ -1925,8 +1948,9 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1925
1948
  pane.tableRule ? (openBlock(), createBlock(TableWidget, {
1926
1949
  key: 0,
1927
1950
  rule: pane.tableRule,
1951
+ disabled: __props.disabled?.includes("editTable"),
1928
1952
  onChange: handleTableDataChange
1929
- }, null, 8, ["rule"])) : createCommentVNode("v-if", true)
1953
+ }, null, 8, ["rule", "disabled"])) : createCommentVNode("v-if", true)
1930
1954
  ]),
1931
1955
  _: 2
1932
1956
  }, 1024)
@@ -2178,11 +2202,12 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2178
2202
  emits: ["change"],
2179
2203
  setup(__props, { emit: emits }) {
2180
2204
  const props = __props;
2205
+ const value = ref(props.value);
2181
2206
  const options = ref([]);
2182
2207
  const keyword = ref("");
2183
- const debounceFetch = debounce((value) => {
2208
+ const debounceFetch = debounce((value2) => {
2184
2209
  props.extraConfig.fetch(postData.value).then((data) => {
2185
- if (value === keyword.value)
2210
+ if (value2 === keyword.value)
2186
2211
  options.value = data;
2187
2212
  });
2188
2213
  }, 300);
@@ -2195,17 +2220,18 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2195
2220
  options.value = data;
2196
2221
  });
2197
2222
  }
2198
- function handleChange(value, option) {
2223
+ function handleChange(value2, option) {
2199
2224
  emits("change", option);
2200
2225
  }
2201
- function handleSearch(value) {
2202
- keyword.value = value;
2203
- debounceFetch(value);
2226
+ function handleSearch(value2) {
2227
+ keyword.value = value2;
2228
+ debounceFetch(value2);
2204
2229
  }
2205
2230
  initOptions();
2206
2231
  return (_ctx, _cache) => {
2207
2232
  return openBlock(), createBlock(unref(Select), {
2208
- value: __props.value,
2233
+ value: value.value,
2234
+ "onUpdate:value": _cache[0] || (_cache[0] = ($event) => value.value = $event),
2209
2235
  placeholder: "\u8BF7\u9009\u62E9",
2210
2236
  "show-search": "",
2211
2237
  "show-arrow": false,
@@ -2875,18 +2901,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2875
2901
  const fApi = ref();
2876
2902
  const rule = ref([]);
2877
2903
  const processFormPermissions = computed(
2878
- () => props.formPermissions.reduce((result, item) => {
2904
+ () => props.formPermissions ? props.formPermissions.reduce((result, item) => {
2879
2905
  if (item.disabled) {
2880
2906
  if (item.name === "picture") {
2881
2907
  ((item.props = {}).uploadProps = {}).disabled = true;
2908
+ } else if (item.name === "materialTemp") {
2909
+ (item.props = {}).disabled = item.disabled;
2882
2910
  } else {
2883
2911
  (item.props = {}).disabled = true;
2884
2912
  }
2885
- delete item.disabled;
2886
2913
  }
2914
+ delete item.disabled;
2887
2915
  result[item.field] = item;
2888
2916
  return result;
2889
- }, {})
2917
+ }, {}) : {}
2890
2918
  );
2891
2919
  function setRule(fdRule) {
2892
2920
  fdRule = getRuleData(fdRule);
@@ -2911,13 +2939,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
2911
2939
  childRule.disabled = rulePermission.props?.disabled;
2912
2940
  }
2913
2941
  });
2942
+ } else if (data.name === "materialTemp") {
2943
+ rule2.children[1] = mergeFormPermission(data.field, rule2.children[1]);
2944
+ return rule2;
2914
2945
  }
2915
2946
  return mergeFormPermission(data.field, rule2);
2916
2947
  });
2917
2948
  }
2918
2949
  function mergeFormPermission(field, rule2) {
2919
- if (processFormPermissions.value[field])
2950
+ if (processFormPermissions.value[field]) {
2920
2951
  rule2 = merge(rule2, processFormPermissions.value[field]);
2952
+ }
2921
2953
  return rule2;
2922
2954
  }
2923
2955
  function handleValue(value) {
@@ -135,8 +135,8 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
135
135
  function handleRowWidgetMouseleave() {
136
136
  props.rule.config.isHover = true;
137
137
  }
138
- function handleRowWidgetSetActiveRule(element) {
139
- emits("setActiveRule", element, props.rule);
138
+ function handleNestSetActiveRule(element, parentRule) {
139
+ emits("setActiveRule", element, parentRule || props.rule);
140
140
  }
141
141
  function handleRowWidgetCopy(rule) {
142
142
  emitCopyEvt(rule, props.rule);
@@ -144,7 +144,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
144
144
  function handleRowWidgetDelete(rule) {
145
145
  emitDeleteEvt(rule, props.rule);
146
146
  }
147
- function handleRowWidgetAdd(rule) {
147
+ function handleNestAdd(rule) {
148
148
  emits("widgetAdd", rule, props.rule);
149
149
  }
150
150
  return (_ctx, _cache) => {
@@ -169,10 +169,10 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
169
169
  rule: [__props.rule],
170
170
  onNestMouseenter: handleRowWidgetMouseenter,
171
171
  onNestMouseleave: handleRowWidgetMouseleave,
172
- onNestSetActiveRule: handleRowWidgetSetActiveRule,
172
+ onNestSetActiveRule: handleNestSetActiveRule,
173
173
  onNestCopy: handleRowWidgetCopy,
174
174
  onNestDelete: handleRowWidgetDelete,
175
- onNestAdd: handleRowWidgetAdd
175
+ onNestAdd: handleNestAdd
176
176
  }, null, 8, ["option", "rule"])) : (openBlock(), createBlock(WidgetInstruction, {
177
177
  key: 1,
178
178
  rule: __props.rule
@@ -264,8 +264,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
264
264
  function handleMouseleave() {
265
265
  emits("mouseleave");
266
266
  }
267
- function emitSetActiveRuleEvt(rule) {
268
- emits("set-active-rule", rule);
267
+ function emitSetActiveRuleEvt(rule, parentRule = void 0) {
268
+ emits("set-active-rule", rule, parentRule);
269
269
  }
270
270
  function handleClick(element) {
271
271
  emitSetActiveRuleEvt(element);
@@ -284,6 +284,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
284
284
  function handleDelete(rule) {
285
285
  emits("delete", rule);
286
286
  }
287
+ function handleWidgetInTableActive(rule, parentRule) {
288
+ emitSetActiveRuleEvt(rule, parentRule);
289
+ }
287
290
  return (_ctx, _cache) => {
288
291
  const _component_ACol = resolveComponent("ACol");
289
292
  return openBlock(), createElementBlock("div", _hoisted_1$d, [
@@ -322,7 +325,8 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
322
325
  onMouseleave: handleMouseleave,
323
326
  onClick: withModifiers(($event) => handleClick(element), ["stop"]),
324
327
  onCopy: handleCopy,
325
- onDelete: handleDelete
328
+ onDelete: handleDelete,
329
+ onSetActiveRule: handleWidgetInTableActive
326
330
  }, null, 8, ["rule", "active-rule", "parent-rule", "onClick"]),
327
331
  createVNode(DragPlaceholder)
328
332
  ]),
@@ -1609,6 +1613,9 @@ var instruction = {
1609
1613
  minRows: 5,
1610
1614
  },
1611
1615
  },
1616
+ effect: {
1617
+ required: '请输入说明文字',
1618
+ },
1612
1619
  title: label$9,
1613
1620
  field: fieldsMap$9.value,
1614
1621
  value: rule.value,
@@ -3228,6 +3235,14 @@ var shop = {
3228
3235
  field: fieldsMap$1['config.isMain'],
3229
3236
  value: rule.config.isMain,
3230
3237
  hidden: !!parentRule,
3238
+ inject: true,
3239
+ on: {
3240
+ change({ api, self }, value) {
3241
+ if (value) {
3242
+ api.mergeRule(fieldsMap$1['effect.required'], { value: true });
3243
+ }
3244
+ },
3245
+ },
3231
3246
  },
3232
3247
  {
3233
3248
  type: 'switch',
@@ -3756,7 +3771,8 @@ const __default__ = {
3756
3771
  const _sfc_main = /* @__PURE__ */ defineComponent({
3757
3772
  ...__default__,
3758
3773
  props: formDesignerProps,
3759
- setup(__props, { expose }) {
3774
+ emits: ["initPresetRule"],
3775
+ setup(__props, { expose, emit: emits }) {
3760
3776
  const props = __props;
3761
3777
  FC.component("TableHeadCount", TableHeadCount);
3762
3778
  FC.component("TableColumn", TableColumn);
@@ -3919,6 +3935,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3919
3935
  message.error("\u8BE5\u63A7\u4EF6\u5DF2\u88AB\u8BBE\u4E3A\u6570\u636E\u8FC7\u6EE4\u6761\u4EF6\uFF0C\u4E0D\u53EF\u5220\u9664\u3002");
3920
3936
  return;
3921
3937
  }
3938
+ if (props.flowCondition[targetRule.field]) {
3939
+ 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");
3940
+ return;
3941
+ }
3922
3942
  const parentList = parentRule?.config?.childRules || widgetFormRules;
3923
3943
  const index = parentList.findIndex((rule) => rule.field === targetRule.field);
3924
3944
  parentList.splice(index, 1);
@@ -3955,6 +3975,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
3955
3975
  nextTick(() => {
3956
3976
  item.props.activeRule = rule;
3957
3977
  });
3978
+ if (item.type === WidgetType.RowWidget && item?.config?.childRules?.length) {
3979
+ item.config.childRules.forEach((childRule) => {
3980
+ if (childRule.type === WidgetType.TableWidget) {
3981
+ nextTick(() => {
3982
+ childRule.props.activeRule = rule;
3983
+ });
3984
+ }
3985
+ });
3986
+ }
3958
3987
  }
3959
3988
  });
3960
3989
  if (!cacheProps[rule.field]) {
@@ -4055,6 +4084,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4055
4084
  if (!rule?.title?.title && config.name !== "instruction") {
4056
4085
  pass = false;
4057
4086
  }
4087
+ if (!rule?.value && config.name === "instruction") {
4088
+ pass = false;
4089
+ }
4058
4090
  if (config.name === "table" && !childRules.length) {
4059
4091
  pass = false;
4060
4092
  }
@@ -4096,6 +4128,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4096
4128
  () => props.presetRules,
4097
4129
  (presetRules) => {
4098
4130
  widgetFormRules.push(...presetRules);
4131
+ emits("initPresetRule", widgetFormRules);
4099
4132
  }
4100
4133
  );
4101
4134
  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';
@@ -12,3 +12,6 @@ export * from './upload';
12
12
  export * from './timeline';
13
13
  export * from './input-tags-display';
14
14
  export * from './select-all';
15
+ export * from './breadcrumb';
16
+ export * from './editor';
17
+ export * from './attachment';
@@ -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;