bm-admin-ui 1.0.46-alpha → 1.0.48-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 (45) hide show
  1. package/es/components/editor/index.d.ts +6 -5
  2. package/es/components/editor/index.js +2 -1
  3. package/es/components/editor/src/editor.vue.d.ts +6 -5
  4. package/es/components/form-create/index.js +71 -14
  5. package/es/components/form-designer/index.js +18 -26
  6. package/es/components/input-tags-display/index.d.ts +1 -1
  7. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  8. package/es/components/search-filter/index.d.ts +2 -2
  9. package/es/components/search-filter/src/search-filter.vue.d.ts +2 -2
  10. package/es/components/select-all/index.d.ts +1 -1
  11. package/es/components/select-all/src/selectAll.vue.d.ts +1 -1
  12. package/es/components/staffs-selector/index.d.ts +2 -2
  13. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
  14. package/es/components/upload/index.d.ts +2 -1
  15. package/es/components/upload/index.js +2 -1
  16. package/es/components/upload/src/upload.vue.d.ts +2 -1
  17. package/lib/components/editor/index.d.ts +6 -5
  18. package/lib/components/editor/index.js +2 -1
  19. package/lib/components/editor/src/editor.vue.d.ts +6 -5
  20. package/lib/components/form-create/index.js +71 -14
  21. package/lib/components/form-designer/index.js +18 -26
  22. package/lib/components/input-tags-display/index.d.ts +1 -1
  23. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  24. package/lib/components/search-filter/index.d.ts +2 -2
  25. package/lib/components/search-filter/src/search-filter.vue.d.ts +2 -2
  26. package/lib/components/select-all/index.d.ts +1 -1
  27. package/lib/components/select-all/src/selectAll.vue.d.ts +1 -1
  28. package/lib/components/staffs-selector/index.d.ts +2 -2
  29. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
  30. package/lib/components/upload/index.d.ts +2 -1
  31. package/lib/components/upload/index.js +2 -1
  32. package/lib/components/upload/src/upload.vue.d.ts +2 -1
  33. package/package.json +1 -1
  34. package/types/components/editor/index.d.ts +6 -5
  35. package/types/components/editor/src/editor.vue.d.ts +6 -5
  36. package/types/components/input-tags-display/index.d.ts +1 -1
  37. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +1 -1
  38. package/types/components/search-filter/index.d.ts +2 -2
  39. package/types/components/search-filter/src/search-filter.vue.d.ts +2 -2
  40. package/types/components/select-all/index.d.ts +1 -1
  41. package/types/components/select-all/src/selectAll.vue.d.ts +1 -1
  42. package/types/components/staffs-selector/index.d.ts +2 -2
  43. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +2 -2
  44. package/types/components/upload/index.d.ts +2 -1
  45. package/types/components/upload/src/upload.vue.d.ts +2 -1
@@ -60,10 +60,10 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
63
  onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
64
  onFocus?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onReady?: ((...args: any[]) => any) | undefined;
67
67
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
@@ -191,8 +191,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
191
191
  };
192
192
  };
193
193
  emits: string[];
194
- setup(props: any, { emit }: {
194
+ setup(props: any, { emit, expose }: {
195
195
  emit: any;
196
+ expose: any;
196
197
  }): {
197
198
  uploadDisabled: import("vue").ComputedRef<boolean>;
198
199
  updateUploadProgress(file: any, progress: any): void;
@@ -286,10 +287,10 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
286
287
  default: (...args: any[]) => any;
287
288
  };
288
289
  }>> & {
289
- onReady?: ((...args: any[]) => any) | undefined;
290
290
  onChange?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
292
291
  onFocus?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onReady?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
295
  onGetCount?: ((...args: any[]) => any) | undefined;
295
296
  }, {
@@ -11640,7 +11640,7 @@ const _sfc_main$1 = {
11640
11640
  "updateDisabledStatus",
11641
11641
  "updateIsUploadingStatus"
11642
11642
  ],
11643
- setup(props, { emit }) {
11643
+ setup(props, { emit, expose }) {
11644
11644
  let acceptList = [
11645
11645
  ".xlsx",
11646
11646
  ".XLSX",
@@ -11980,6 +11980,7 @@ const _sfc_main$1 = {
11980
11980
  immediate: true
11981
11981
  }
11982
11982
  );
11983
+ expose({ state, methods });
11983
11984
  return {
11984
11985
  ...toRefs(state),
11985
11986
  icons,
@@ -60,10 +60,10 @@ declare const _default: import("vue").DefineComponent<{
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
63
  onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
64
  onFocus?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onReady?: ((...args: any[]) => any) | undefined;
67
67
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
@@ -191,8 +191,9 @@ declare const _default: import("vue").DefineComponent<{
191
191
  };
192
192
  };
193
193
  emits: string[];
194
- setup(props: any, { emit }: {
194
+ setup(props: any, { emit, expose }: {
195
195
  emit: any;
196
+ expose: any;
196
197
  }): {
197
198
  uploadDisabled: import("vue").ComputedRef<boolean>;
198
199
  updateUploadProgress(file: any, progress: any): void;
@@ -286,10 +287,10 @@ declare const _default: import("vue").DefineComponent<{
286
287
  default: (...args: any[]) => any;
287
288
  };
288
289
  }>> & {
289
- onReady?: ((...args: any[]) => any) | undefined;
290
290
  onChange?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
292
291
  onFocus?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onReady?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
295
  onGetCount?: ((...args: any[]) => any) | undefined;
295
296
  }, {
@@ -992,7 +992,12 @@ const _hoisted_6$4 = ["title"];
992
992
  const _hoisted_7$4 = { class: "bm-fc-select-material-temp__content__item-time" };
993
993
  const _sfc_main$8 = /* @__PURE__ */ defineComponent({
994
994
  __name: "select-material-temp",
995
- props: ["visible", "fetchMaterialType", "fetchMaterialTemp"],
995
+ props: [
996
+ "visible",
997
+ "fetchMaterialType",
998
+ "fetchMaterialTemp",
999
+ "mainShopValue"
1000
+ ],
996
1001
  emits: ["update:visible", "select"],
997
1002
  setup(__props, { emit: emits }) {
998
1003
  const props = __props;
@@ -1004,6 +1009,7 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1004
1009
  timestamp: timestamp.value,
1005
1010
  pageType: 1,
1006
1011
  status: 1,
1012
+ shopCodeList: props.mainShopValue ? [props.mainShopValue.value] : "",
1007
1013
  templateName: templateName.value,
1008
1014
  categoryCode: selectTypeKeys.value?.[0],
1009
1015
  secondCategoryCode: selectTypeKeys.value?.[1],
@@ -1110,6 +1116,12 @@ const _sfc_main$8 = /* @__PURE__ */ defineComponent({
1110
1116
  }
1111
1117
  }
1112
1118
  );
1119
+ watch(
1120
+ () => props.mainShopValue,
1121
+ () => {
1122
+ initLoadFlag = true;
1123
+ }
1124
+ );
1113
1125
  return (_ctx, _cache) => {
1114
1126
  return openBlock(), createBlock(unref(Modal), {
1115
1127
  title: "\u9009\u62E9\u7D20\u6750\u6A21\u677F",
@@ -1633,10 +1645,23 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1633
1645
  index++;
1634
1646
  }
1635
1647
  function handleDelete(targetKey) {
1648
+ let lastIndex = 0;
1649
+ panes.forEach((pane, i) => {
1650
+ if (pane.key === targetKey) {
1651
+ lastIndex = i - 1;
1652
+ }
1653
+ });
1636
1654
  panes.splice(
1637
1655
  panes.findIndex((pane) => pane.key === targetKey),
1638
1656
  1
1639
1657
  );
1658
+ if (panes.length && activeKey.value === targetKey) {
1659
+ if (lastIndex >= 0) {
1660
+ activeKey.value = panes[lastIndex].key;
1661
+ } else {
1662
+ activeKey.value = panes[0].key;
1663
+ }
1664
+ }
1640
1665
  }
1641
1666
  function getTableRule(coverageArr) {
1642
1667
  const fieldTypeMap = {
@@ -1772,7 +1797,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1772
1797
  (openBlock(true), createElementBlock(Fragment, null, renderList(panes, (pane) => {
1773
1798
  return openBlock(), createBlock(unref(TabPane), {
1774
1799
  key: pane.key,
1775
- tab: pane.title
1800
+ tab: pane.title,
1801
+ closable: panes.length !== 1
1776
1802
  }, {
1777
1803
  default: withCtx(() => [
1778
1804
  createVNode(unref(FormItemRest), null, {
@@ -1990,7 +2016,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1990
2016
  }, 1024)
1991
2017
  ]),
1992
2018
  _: 2
1993
- }, 1032, ["tab"]);
2019
+ }, 1032, ["tab", "closable"]);
1994
2020
  }), 128))
1995
2021
  ]),
1996
2022
  _: 1
@@ -1998,10 +2024,11 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
1998
2024
  createVNode(SelectMaterialTemp, {
1999
2025
  visible: visible.value,
2000
2026
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
2027
+ "main-shop-value": unref(mainShopValue),
2001
2028
  "fetch-material-type": __props.extraConfig.fetchMaterialType,
2002
2029
  "fetch-material-temp": __props.extraConfig.fetchMaterialTemp,
2003
2030
  onSelect: handleSelect
2004
- }, null, 8, ["visible", "fetch-material-type", "fetch-material-temp"])
2031
+ }, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
2005
2032
  ], 64);
2006
2033
  };
2007
2034
  }
@@ -2235,7 +2262,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2235
2262
  props: [
2236
2263
  "value",
2237
2264
  "extraConfig",
2238
- "rule",
2265
+ "dataFiltering",
2239
2266
  "disabled",
2240
2267
  "formCreateInject"
2241
2268
  ],
@@ -2257,7 +2284,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2257
2284
  }, 300);
2258
2285
  const postData = computed(() => ({
2259
2286
  keyword: keyword.value,
2260
- filterByUser: props.rule.config.dataFiltering
2287
+ filterByUser: props.dataFiltering
2261
2288
  }));
2262
2289
  function initOptions() {
2263
2290
  props.extraConfig.fetch(postData.value).then((data) => {
@@ -2265,10 +2292,10 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
2265
2292
  });
2266
2293
  }
2267
2294
  function handleChange(val, option) {
2268
- value.value = val;
2269
2295
  emits("change", {
2270
2296
  [fieldNames.value]: option.value,
2271
- [fieldNames.label]: option.label
2297
+ [fieldNames.label]: option.label,
2298
+ ...option
2272
2299
  });
2273
2300
  }
2274
2301
  function handleSearch(value2) {
@@ -2299,6 +2326,7 @@ var ShopWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "shop-widg
2299
2326
  var shop = {
2300
2327
  name: 'shop',
2301
2328
  rule(data, extraConfig) {
2329
+ var _a;
2302
2330
  const shopExtraConfig = extraConfig.shop;
2303
2331
  return {
2304
2332
  type: 'ShopWidget',
@@ -2309,7 +2337,7 @@ var shop = {
2309
2337
  required: data.effect.required && '请选择店铺',
2310
2338
  },
2311
2339
  props: {
2312
- rule: data,
2340
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2313
2341
  extraConfig: shopExtraConfig,
2314
2342
  value: data.value,
2315
2343
  },
@@ -2317,8 +2345,8 @@ var shop = {
2317
2345
  on: {
2318
2346
  change(inject, value) {
2319
2347
  const rule = inject.self;
2320
- rule.value = value;
2321
2348
  rule.props.value = value;
2349
+ rule.value = value;
2322
2350
  nextTick(() => {
2323
2351
  setTimeout(() => {
2324
2352
  inject.api.validateField(rule.field);
@@ -2330,6 +2358,7 @@ var shop = {
2330
2358
  };
2331
2359
  },
2332
2360
  rowRule(data, extraConfig) {
2361
+ var _a;
2333
2362
  const shopExtraConfig = extraConfig.shop;
2334
2363
  return {
2335
2364
  type: 'ShopWidget',
@@ -2340,7 +2369,7 @@ var shop = {
2340
2369
  required: data.effect.required && '请选择店铺',
2341
2370
  },
2342
2371
  props: {
2343
- rule: data,
2372
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2344
2373
  extraConfig: shopExtraConfig,
2345
2374
  value: data.value,
2346
2375
  },
@@ -2372,8 +2401,9 @@ var shop = {
2372
2401
  minWidth: '138px',
2373
2402
  slots: {
2374
2403
  default({ row }) {
2404
+ var _a;
2375
2405
  return h(ShopWidget, {
2376
- rule: data,
2406
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2377
2407
  extraConfig: extraConfig.shop,
2378
2408
  value: row[field],
2379
2409
  disabled: data.disabled,
@@ -2400,13 +2430,22 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2400
2430
  item.isLeaf = props.format === 1;
2401
2431
  });
2402
2432
  options.value = result;
2433
+ return options.value;
2434
+ }).then((options2) => {
2435
+ if (props.value.length) {
2436
+ if (props.multiple) {
2437
+ props.value.forEach((item) => loadValueOptions(item, options2));
2438
+ } else {
2439
+ loadValueOptions(props.value, options2);
2440
+ }
2441
+ }
2403
2442
  });
2404
2443
  }
2405
- function loadData(selectedOptions) {
2444
+ async function loadData(selectedOptions) {
2406
2445
  const optionLength = selectedOptions.length;
2407
2446
  const targetOption = selectedOptions[optionLength - 1];
2408
2447
  targetOption.loading = true;
2409
- props.config.fetch({
2448
+ return await props.config.fetch({
2410
2449
  level: optionLength + 1,
2411
2450
  relationCode: targetOption.value
2412
2451
  }).then((result) => {
@@ -2450,6 +2489,23 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2450
2489
  return pre;
2451
2490
  }, []);
2452
2491
  }
2492
+ async function loadValueOptions(value, options2) {
2493
+ const selectedOptions = [];
2494
+ for (const option of value) {
2495
+ let cur;
2496
+ if (selectedOptions.length) {
2497
+ cur = selectedOptions[selectedOptions.length - 1].children.find(
2498
+ (item) => item.value === option.value
2499
+ );
2500
+ } else {
2501
+ cur = options2.find((item) => item.value === option.value);
2502
+ }
2503
+ if (!cur.isLeaf) {
2504
+ selectedOptions.push(cur);
2505
+ await loadData(selectedOptions);
2506
+ }
2507
+ }
2508
+ }
2453
2509
  initOptions();
2454
2510
  return (_ctx, _cache) => {
2455
2511
  return openBlock(), createBlock(unref(Cascader), {
@@ -2458,6 +2514,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
2458
2514
  multiple: __props.multiple,
2459
2515
  options: options.value,
2460
2516
  "load-data": loadData,
2517
+ "change-on-select": "",
2461
2518
  "get-popup-container": unref(getContainer),
2462
2519
  onChange: handleChange
2463
2520
  }, null, 8, ["value", "multiple", "options", "get-popup-container"]);
@@ -3490,12 +3490,6 @@ const formDesignerProps = {
3490
3490
  return [];
3491
3491
  },
3492
3492
  },
3493
- presetRules: {
3494
- type: Array,
3495
- default() {
3496
- return [];
3497
- },
3498
- },
3499
3493
  flowCondition: {
3500
3494
  type: Object,
3501
3495
  default() {
@@ -3795,8 +3789,7 @@ const __default__ = {
3795
3789
  const _sfc_main = /* @__PURE__ */ defineComponent({
3796
3790
  ...__default__,
3797
3791
  props: formDesignerProps,
3798
- emits: ["initPresetRule"],
3799
- setup(__props, { expose, emit: emits }) {
3792
+ setup(__props, { expose }) {
3800
3793
  const props = __props;
3801
3794
  FC.component("TableHeadCount", TableHeadCount);
3802
3795
  FC.component("TableColumn", TableColumn);
@@ -4066,19 +4059,22 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4066
4059
  function edit(formRules) {
4067
4060
  widgetFormRules.splice(0);
4068
4061
  formRules.forEach((item) => {
4069
- const rule = makeRule(ruleList[item.name]);
4070
- delete item.name;
4071
- if (item?.config?.childRules?.length) {
4072
- rule.config.childRules = item.config.childRules.map((childItem) => {
4073
- const childRule = makeRule(ruleList[childItem.name]);
4074
- delete childItem.name;
4075
- return childRule;
4076
- });
4077
- }
4078
- merge(rule, item);
4079
- widgetFormRules.push(rule);
4062
+ widgetFormRules.push(recursiveMakeRule(item));
4080
4063
  });
4081
4064
  }
4065
+ function recursiveMakeRule(item) {
4066
+ const rule = makeRule(ruleList[item.name]);
4067
+ delete item.name;
4068
+ if (item?.config?.childRules?.length) {
4069
+ rule.config.childRules = item.config.childRules.map((childItem) => {
4070
+ const childRule = recursiveMakeRule(childItem);
4071
+ delete childItem.name;
4072
+ return childRule;
4073
+ });
4074
+ }
4075
+ merge(rule, item);
4076
+ return rule;
4077
+ }
4082
4078
  function getRule(name) {
4083
4079
  return makeRule(ruleList[name]);
4084
4080
  }
@@ -4130,17 +4126,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
4130
4126
  requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
4131
4127
  }
4132
4128
  }
4133
- watch(
4134
- () => props.presetRules,
4135
- (presetRules) => {
4136
- widgetFormRules.push(...presetRules);
4137
- emits("initPresetRule", getFormRule());
4138
- }
4139
- );
4140
4129
  watch(
4141
4130
  () => props.formRules,
4142
4131
  (formRules) => {
4143
4132
  formRules && edit(formRules);
4133
+ },
4134
+ {
4135
+ immediate: true
4144
4136
  }
4145
4137
  );
4146
4138
  watch(activeProps, (activeProps2) => {
@@ -125,8 +125,8 @@ declare const BmTagsDisplay: import("bm-admin-ui/es/utils/with-install").SFCWith
125
125
  onAddClick?: ((...args: any[]) => any) | undefined;
126
126
  }, {
127
127
  disabled: boolean;
128
- list: unknown[];
129
128
  placeholder: string;
129
+ list: unknown[];
130
130
  placement: string;
131
131
  showEmpty: boolean;
132
132
  showEmptyBtn: boolean;
@@ -123,8 +123,8 @@ declare const _default: import("vue").DefineComponent<{
123
123
  onAddClick?: ((...args: any[]) => any) | undefined;
124
124
  }, {
125
125
  disabled: boolean;
126
- list: unknown[];
127
126
  placeholder: string;
127
+ list: unknown[];
128
128
  placement: string;
129
129
  showEmpty: boolean;
130
130
  showEmptyBtn: boolean;
@@ -110,9 +110,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
110
110
  default(): never[];
111
111
  };
112
112
  }>> & {
113
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
114
113
  onReset?: ((...args: any[]) => any) | undefined;
115
114
  onSubmit?: ((...args: any[]) => any) | undefined;
115
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
116
116
  onExpand?: ((...args: any[]) => any) | undefined;
117
117
  }>>;
118
118
  emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
@@ -212,9 +212,9 @@ declare const BmSearchFilter: import("bm-admin-ui/es/utils/with-install").SFCWit
212
212
  default(): never[];
213
213
  };
214
214
  }>> & {
215
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
216
215
  onReset?: ((...args: any[]) => any) | undefined;
217
216
  onSubmit?: ((...args: any[]) => any) | undefined;
217
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
218
218
  onExpand?: ((...args: any[]) => any) | undefined;
219
219
  }, {
220
220
  loading: boolean;
@@ -110,9 +110,9 @@ declare const _default: import("vue").DefineComponent<{
110
110
  default(): never[];
111
111
  };
112
112
  }>> & {
113
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
114
113
  onReset?: ((...args: any[]) => any) | undefined;
115
114
  onSubmit?: ((...args: any[]) => any) | undefined;
115
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
116
116
  onExpand?: ((...args: any[]) => any) | undefined;
117
117
  }>>;
118
118
  emits: (event: "submit" | "reset" | "update:value" | "expand", ...args: any[]) => void;
@@ -212,9 +212,9 @@ declare const _default: import("vue").DefineComponent<{
212
212
  default(): never[];
213
213
  };
214
214
  }>> & {
215
- "onUpdate:value"?: ((...args: any[]) => any) | undefined;
216
215
  onReset?: ((...args: any[]) => any) | undefined;
217
216
  onSubmit?: ((...args: any[]) => any) | undefined;
217
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
218
218
  onExpand?: ((...args: any[]) => any) | undefined;
219
219
  }, {
220
220
  loading: boolean;
@@ -734,7 +734,7 @@ declare const BmSelectAll: import("bm-admin-ui/es/utils/with-install").SFCWithIn
734
734
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
735
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
736
736
  };
737
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "onSelectAll" | "onChange")[], "update:value" | "onChange" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
737
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "onSelectAll" | "onChange")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
738
738
  value: {
739
739
  type: ArrayConstructor;
740
740
  required: true;
@@ -734,7 +734,7 @@ declare const _default: import("vue").DefineComponent<{
734
734
  readonly OptGroup: import("ant-design-vue/lib/vc-select/OptGroup").OptionGroupFC;
735
735
  readonly SECRET_COMBOBOX_MODE_DO_NOT_USE: "SECRET_COMBOBOX_MODE_DO_NOT_USE";
736
736
  };
737
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "onSelectAll" | "onChange")[], "update:value" | "onChange" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
737
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:value" | "onSelectAll" | "onChange")[], "onChange" | "update:value" | "onSelectAll", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
738
738
  value: {
739
739
  type: ArrayConstructor;
740
740
  required: true;
@@ -82,8 +82,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
82
82
  default: string;
83
83
  };
84
84
  }>> & {
85
- onChange?: ((...args: any[]) => any) | undefined;
86
85
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
86
+ onChange?: ((...args: any[]) => any) | undefined;
87
87
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
88
88
  }>>;
89
89
  emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
@@ -1079,8 +1079,8 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
1079
1079
  default: string;
1080
1080
  };
1081
1081
  }>> & {
1082
- onChange?: ((...args: any[]) => any) | undefined;
1083
1082
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1083
+ onChange?: ((...args: any[]) => any) | undefined;
1084
1084
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1085
1085
  }, {
1086
1086
  title: string;
@@ -82,8 +82,8 @@ declare const _default: import("vue").DefineComponent<{
82
82
  default: string;
83
83
  };
84
84
  }>> & {
85
- onChange?: ((...args: any[]) => any) | undefined;
86
85
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
86
+ onChange?: ((...args: any[]) => any) | undefined;
87
87
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
88
88
  }>>;
89
89
  emit: (event: "change" | "update:visible" | "update:select", ...args: any[]) => void;
@@ -1079,8 +1079,8 @@ declare const _default: import("vue").DefineComponent<{
1079
1079
  default: string;
1080
1080
  };
1081
1081
  }>> & {
1082
- onChange?: ((...args: any[]) => any) | undefined;
1083
1082
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
1083
+ onChange?: ((...args: any[]) => any) | undefined;
1084
1084
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
1085
1085
  }, {
1086
1086
  title: string;
@@ -71,8 +71,9 @@ declare const BmUpload: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
71
71
  };
72
72
  };
73
73
  emits: string[];
74
- setup(props: any, { emit }: {
74
+ setup(props: any, { emit, expose }: {
75
75
  emit: any;
76
+ expose: any;
76
77
  }): {
77
78
  uploadDisabled: import("vue").ComputedRef<boolean>;
78
79
  updateUploadProgress(file: any, progress: any): void;
@@ -225,7 +225,7 @@ const _sfc_main = {
225
225
  "updateDisabledStatus",
226
226
  "updateIsUploadingStatus"
227
227
  ],
228
- setup(props, { emit }) {
228
+ setup(props, { emit, expose }) {
229
229
  let acceptList = [
230
230
  ".xlsx",
231
231
  ".XLSX",
@@ -565,6 +565,7 @@ const _sfc_main = {
565
565
  immediate: true
566
566
  }
567
567
  );
568
+ expose({ state, methods });
568
569
  return {
569
570
  ...toRefs(state),
570
571
  icons,
@@ -71,8 +71,9 @@ declare const _default: {
71
71
  };
72
72
  };
73
73
  emits: string[];
74
- setup(props: any, { emit }: {
74
+ setup(props: any, { emit, expose }: {
75
75
  emit: any;
76
+ expose: any;
76
77
  }): {
77
78
  uploadDisabled: import("vue").ComputedRef<boolean>;
78
79
  updateUploadProgress(file: any, progress: any): void;
@@ -60,10 +60,10 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
63
  onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
64
  onFocus?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onReady?: ((...args: any[]) => any) | undefined;
67
67
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
@@ -191,8 +191,9 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
191
191
  };
192
192
  };
193
193
  emits: string[];
194
- setup(props: any, { emit }: {
194
+ setup(props: any, { emit, expose }: {
195
195
  emit: any;
196
+ expose: any;
196
197
  }): {
197
198
  uploadDisabled: import("vue").ComputedRef<boolean>;
198
199
  updateUploadProgress(file: any, progress: any): void;
@@ -286,10 +287,10 @@ declare const BmEditor: import("bm-admin-ui/es/utils/with-install").SFCWithInsta
286
287
  default: (...args: any[]) => any;
287
288
  };
288
289
  }>> & {
289
- onReady?: ((...args: any[]) => any) | undefined;
290
290
  onChange?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
292
291
  onFocus?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onReady?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
295
  onGetCount?: ((...args: any[]) => any) | undefined;
295
296
  }, {
@@ -11644,7 +11644,7 @@ const _sfc_main$1 = {
11644
11644
  "updateDisabledStatus",
11645
11645
  "updateIsUploadingStatus"
11646
11646
  ],
11647
- setup(props, { emit }) {
11647
+ setup(props, { emit, expose }) {
11648
11648
  let acceptList = [
11649
11649
  ".xlsx",
11650
11650
  ".XLSX",
@@ -11984,6 +11984,7 @@ const _sfc_main$1 = {
11984
11984
  immediate: true
11985
11985
  }
11986
11986
  );
11987
+ expose({ state, methods });
11987
11988
  return {
11988
11989
  ...vue.toRefs(state),
11989
11990
  icons,
@@ -60,10 +60,10 @@ declare const _default: import("vue").DefineComponent<{
60
60
  default: (...args: any[]) => any;
61
61
  };
62
62
  }>> & {
63
- onReady?: ((...args: any[]) => any) | undefined;
64
63
  onChange?: ((...args: any[]) => any) | undefined;
65
- onBlur?: ((...args: any[]) => any) | undefined;
66
64
  onFocus?: ((...args: any[]) => any) | undefined;
65
+ onBlur?: ((...args: any[]) => any) | undefined;
66
+ onReady?: ((...args: any[]) => any) | undefined;
67
67
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
68
68
  onGetCount?: ((...args: any[]) => any) | undefined;
69
69
  }>>;
@@ -191,8 +191,9 @@ declare const _default: import("vue").DefineComponent<{
191
191
  };
192
192
  };
193
193
  emits: string[];
194
- setup(props: any, { emit }: {
194
+ setup(props: any, { emit, expose }: {
195
195
  emit: any;
196
+ expose: any;
196
197
  }): {
197
198
  uploadDisabled: import("vue").ComputedRef<boolean>;
198
199
  updateUploadProgress(file: any, progress: any): void;
@@ -286,10 +287,10 @@ declare const _default: import("vue").DefineComponent<{
286
287
  default: (...args: any[]) => any;
287
288
  };
288
289
  }>> & {
289
- onReady?: ((...args: any[]) => any) | undefined;
290
290
  onChange?: ((...args: any[]) => any) | undefined;
291
- onBlur?: ((...args: any[]) => any) | undefined;
292
291
  onFocus?: ((...args: any[]) => any) | undefined;
292
+ onBlur?: ((...args: any[]) => any) | undefined;
293
+ onReady?: ((...args: any[]) => any) | undefined;
293
294
  "onUpdate:value"?: ((...args: any[]) => any) | undefined;
294
295
  onGetCount?: ((...args: any[]) => any) | undefined;
295
296
  }, {