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
@@ -1002,7 +1002,12 @@ const _hoisted_6$4 = ["title"];
1002
1002
  const _hoisted_7$4 = { class: "bm-fc-select-material-temp__content__item-time" };
1003
1003
  const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1004
1004
  __name: "select-material-temp",
1005
- props: ["visible", "fetchMaterialType", "fetchMaterialTemp"],
1005
+ props: [
1006
+ "visible",
1007
+ "fetchMaterialType",
1008
+ "fetchMaterialTemp",
1009
+ "mainShopValue"
1010
+ ],
1006
1011
  emits: ["update:visible", "select"],
1007
1012
  setup(__props, { emit: emits }) {
1008
1013
  const props = __props;
@@ -1014,6 +1019,7 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1014
1019
  timestamp: timestamp.value,
1015
1020
  pageType: 1,
1016
1021
  status: 1,
1022
+ shopCodeList: props.mainShopValue ? [props.mainShopValue.value] : "",
1017
1023
  templateName: templateName.value,
1018
1024
  categoryCode: selectTypeKeys.value?.[0],
1019
1025
  secondCategoryCode: selectTypeKeys.value?.[1],
@@ -1120,6 +1126,12 @@ const _sfc_main$8 = /* @__PURE__ */ vue.defineComponent({
1120
1126
  }
1121
1127
  }
1122
1128
  );
1129
+ vue.watch(
1130
+ () => props.mainShopValue,
1131
+ () => {
1132
+ initLoadFlag = true;
1133
+ }
1134
+ );
1123
1135
  return (_ctx, _cache) => {
1124
1136
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Modal), {
1125
1137
  title: "\u9009\u62E9\u7D20\u6750\u6A21\u677F",
@@ -1643,10 +1655,23 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1643
1655
  index++;
1644
1656
  }
1645
1657
  function handleDelete(targetKey) {
1658
+ let lastIndex = 0;
1659
+ panes.forEach((pane, i) => {
1660
+ if (pane.key === targetKey) {
1661
+ lastIndex = i - 1;
1662
+ }
1663
+ });
1646
1664
  panes.splice(
1647
1665
  panes.findIndex((pane) => pane.key === targetKey),
1648
1666
  1
1649
1667
  );
1668
+ if (panes.length && activeKey.value === targetKey) {
1669
+ if (lastIndex >= 0) {
1670
+ activeKey.value = panes[lastIndex].key;
1671
+ } else {
1672
+ activeKey.value = panes[0].key;
1673
+ }
1674
+ }
1650
1675
  }
1651
1676
  function getTableRule(coverageArr) {
1652
1677
  const fieldTypeMap = {
@@ -1782,7 +1807,8 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
1782
1807
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(panes, (pane) => {
1783
1808
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.TabPane), {
1784
1809
  key: pane.key,
1785
- tab: pane.title
1810
+ tab: pane.title,
1811
+ closable: panes.length !== 1
1786
1812
  }, {
1787
1813
  default: vue.withCtx(() => [
1788
1814
  vue.createVNode(vue.unref(antDesignVue.FormItemRest), null, {
@@ -2000,7 +2026,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
2000
2026
  }, 1024)
2001
2027
  ]),
2002
2028
  _: 2
2003
- }, 1032, ["tab"]);
2029
+ }, 1032, ["tab", "closable"]);
2004
2030
  }), 128))
2005
2031
  ]),
2006
2032
  _: 1
@@ -2008,10 +2034,11 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
2008
2034
  vue.createVNode(SelectMaterialTemp, {
2009
2035
  visible: visible.value,
2010
2036
  "onUpdate:visible": _cache[1] || (_cache[1] = ($event) => visible.value = $event),
2037
+ "main-shop-value": vue.unref(mainShopValue),
2011
2038
  "fetch-material-type": __props.extraConfig.fetchMaterialType,
2012
2039
  "fetch-material-temp": __props.extraConfig.fetchMaterialTemp,
2013
2040
  onSelect: handleSelect
2014
- }, null, 8, ["visible", "fetch-material-type", "fetch-material-temp"])
2041
+ }, null, 8, ["visible", "main-shop-value", "fetch-material-type", "fetch-material-temp"])
2015
2042
  ], 64);
2016
2043
  };
2017
2044
  }
@@ -2245,7 +2272,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2245
2272
  props: [
2246
2273
  "value",
2247
2274
  "extraConfig",
2248
- "rule",
2275
+ "dataFiltering",
2249
2276
  "disabled",
2250
2277
  "formCreateInject"
2251
2278
  ],
@@ -2267,7 +2294,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2267
2294
  }, 300);
2268
2295
  const postData = vue.computed(() => ({
2269
2296
  keyword: keyword.value,
2270
- filterByUser: props.rule.config.dataFiltering
2297
+ filterByUser: props.dataFiltering
2271
2298
  }));
2272
2299
  function initOptions() {
2273
2300
  props.extraConfig.fetch(postData.value).then((data) => {
@@ -2275,10 +2302,10 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
2275
2302
  });
2276
2303
  }
2277
2304
  function handleChange(val, option) {
2278
- value.value = val;
2279
2305
  emits("change", {
2280
2306
  [fieldNames.value]: option.value,
2281
- [fieldNames.label]: option.label
2307
+ [fieldNames.label]: option.label,
2308
+ ...option
2282
2309
  });
2283
2310
  }
2284
2311
  function handleSearch(value2) {
@@ -2309,6 +2336,7 @@ var ShopWidget = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__file", "shop-widg
2309
2336
  var shop = {
2310
2337
  name: 'shop',
2311
2338
  rule(data, extraConfig) {
2339
+ var _a;
2312
2340
  const shopExtraConfig = extraConfig.shop;
2313
2341
  return {
2314
2342
  type: 'ShopWidget',
@@ -2319,7 +2347,7 @@ var shop = {
2319
2347
  required: data.effect.required && '请选择店铺',
2320
2348
  },
2321
2349
  props: {
2322
- rule: data,
2350
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2323
2351
  extraConfig: shopExtraConfig,
2324
2352
  value: data.value,
2325
2353
  },
@@ -2327,8 +2355,8 @@ var shop = {
2327
2355
  on: {
2328
2356
  change(inject, value) {
2329
2357
  const rule = inject.self;
2330
- rule.value = value;
2331
2358
  rule.props.value = value;
2359
+ rule.value = value;
2332
2360
  vue.nextTick(() => {
2333
2361
  setTimeout(() => {
2334
2362
  inject.api.validateField(rule.field);
@@ -2340,6 +2368,7 @@ var shop = {
2340
2368
  };
2341
2369
  },
2342
2370
  rowRule(data, extraConfig) {
2371
+ var _a;
2343
2372
  const shopExtraConfig = extraConfig.shop;
2344
2373
  return {
2345
2374
  type: 'ShopWidget',
@@ -2350,7 +2379,7 @@ var shop = {
2350
2379
  required: data.effect.required && '请选择店铺',
2351
2380
  },
2352
2381
  props: {
2353
- rule: data,
2382
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2354
2383
  extraConfig: shopExtraConfig,
2355
2384
  value: data.value,
2356
2385
  },
@@ -2382,8 +2411,9 @@ var shop = {
2382
2411
  minWidth: '138px',
2383
2412
  slots: {
2384
2413
  default({ row }) {
2414
+ var _a;
2385
2415
  return vue.h(ShopWidget, {
2386
- rule: data,
2416
+ dataFiltering: (_a = data.config) === null || _a === void 0 ? void 0 : _a.dataFiltering,
2387
2417
  extraConfig: extraConfig.shop,
2388
2418
  value: row[field],
2389
2419
  disabled: data.disabled,
@@ -2410,13 +2440,22 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2410
2440
  item.isLeaf = props.format === 1;
2411
2441
  });
2412
2442
  options.value = result;
2443
+ return options.value;
2444
+ }).then((options2) => {
2445
+ if (props.value.length) {
2446
+ if (props.multiple) {
2447
+ props.value.forEach((item) => loadValueOptions(item, options2));
2448
+ } else {
2449
+ loadValueOptions(props.value, options2);
2450
+ }
2451
+ }
2413
2452
  });
2414
2453
  }
2415
- function loadData(selectedOptions) {
2454
+ async function loadData(selectedOptions) {
2416
2455
  const optionLength = selectedOptions.length;
2417
2456
  const targetOption = selectedOptions[optionLength - 1];
2418
2457
  targetOption.loading = true;
2419
- props.config.fetch({
2458
+ return await props.config.fetch({
2420
2459
  level: optionLength + 1,
2421
2460
  relationCode: targetOption.value
2422
2461
  }).then((result) => {
@@ -2460,6 +2499,23 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2460
2499
  return pre;
2461
2500
  }, []);
2462
2501
  }
2502
+ async function loadValueOptions(value, options2) {
2503
+ const selectedOptions = [];
2504
+ for (const option of value) {
2505
+ let cur;
2506
+ if (selectedOptions.length) {
2507
+ cur = selectedOptions[selectedOptions.length - 1].children.find(
2508
+ (item) => item.value === option.value
2509
+ );
2510
+ } else {
2511
+ cur = options2.find((item) => item.value === option.value);
2512
+ }
2513
+ if (!cur.isLeaf) {
2514
+ selectedOptions.push(cur);
2515
+ await loadData(selectedOptions);
2516
+ }
2517
+ }
2518
+ }
2463
2519
  initOptions();
2464
2520
  return (_ctx, _cache) => {
2465
2521
  return vue.openBlock(), vue.createBlock(vue.unref(antDesignVue.Cascader), {
@@ -2468,6 +2524,7 @@ const _sfc_main$3 = /* @__PURE__ */ vue.defineComponent({
2468
2524
  multiple: __props.multiple,
2469
2525
  options: options.value,
2470
2526
  "load-data": loadData,
2527
+ "change-on-select": "",
2471
2528
  "get-popup-container": vue.unref(getContainer),
2472
2529
  onChange: handleChange
2473
2530
  }, null, 8, ["value", "multiple", "options", "get-popup-container"]);
@@ -3500,12 +3500,6 @@ const formDesignerProps = {
3500
3500
  return [];
3501
3501
  },
3502
3502
  },
3503
- presetRules: {
3504
- type: Array,
3505
- default() {
3506
- return [];
3507
- },
3508
- },
3509
3503
  flowCondition: {
3510
3504
  type: Object,
3511
3505
  default() {
@@ -3805,8 +3799,7 @@ const __default__ = {
3805
3799
  const _sfc_main = /* @__PURE__ */ vue.defineComponent({
3806
3800
  ...__default__,
3807
3801
  props: formDesignerProps,
3808
- emits: ["initPresetRule"],
3809
- setup(__props, { expose, emit: emits }) {
3802
+ setup(__props, { expose }) {
3810
3803
  const props = __props;
3811
3804
  FC__default["default"].component("TableHeadCount", TableHeadCount);
3812
3805
  FC__default["default"].component("TableColumn", TableColumn);
@@ -4076,19 +4069,22 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4076
4069
  function edit(formRules) {
4077
4070
  widgetFormRules.splice(0);
4078
4071
  formRules.forEach((item) => {
4079
- const rule = makeRule(ruleList[item.name]);
4080
- delete item.name;
4081
- if (item?.config?.childRules?.length) {
4082
- rule.config.childRules = item.config.childRules.map((childItem) => {
4083
- const childRule = makeRule(ruleList[childItem.name]);
4084
- delete childItem.name;
4085
- return childRule;
4086
- });
4087
- }
4088
- lodashEs.merge(rule, item);
4089
- widgetFormRules.push(rule);
4072
+ widgetFormRules.push(recursiveMakeRule(item));
4090
4073
  });
4091
4074
  }
4075
+ function recursiveMakeRule(item) {
4076
+ const rule = makeRule(ruleList[item.name]);
4077
+ delete item.name;
4078
+ if (item?.config?.childRules?.length) {
4079
+ rule.config.childRules = item.config.childRules.map((childItem) => {
4080
+ const childRule = recursiveMakeRule(childItem);
4081
+ delete childItem.name;
4082
+ return childRule;
4083
+ });
4084
+ }
4085
+ lodashEs.merge(rule, item);
4086
+ return rule;
4087
+ }
4092
4088
  function getRule(name) {
4093
4089
  return makeRule(ruleList[name]);
4094
4090
  }
@@ -4140,17 +4136,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
4140
4136
  requiredRule.props.disabled = !!flowCondition[activeRule.value.field];
4141
4137
  }
4142
4138
  }
4143
- vue.watch(
4144
- () => props.presetRules,
4145
- (presetRules) => {
4146
- widgetFormRules.push(...presetRules);
4147
- emits("initPresetRule", getFormRule());
4148
- }
4149
- );
4150
4139
  vue.watch(
4151
4140
  () => props.formRules,
4152
4141
  (formRules) => {
4153
4142
  formRules && edit(formRules);
4143
+ },
4144
+ {
4145
+ immediate: true
4154
4146
  }
4155
4147
  );
4156
4148
  vue.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;
@@ -229,7 +229,7 @@ const _sfc_main = {
229
229
  "updateDisabledStatus",
230
230
  "updateIsUploadingStatus"
231
231
  ],
232
- setup(props, { emit }) {
232
+ setup(props, { emit, expose }) {
233
233
  let acceptList = [
234
234
  ".xlsx",
235
235
  ".XLSX",
@@ -569,6 +569,7 @@ const _sfc_main = {
569
569
  immediate: true
570
570
  }
571
571
  );
572
+ expose({ state, methods });
572
573
  return {
573
574
  ...vue.toRefs(state),
574
575
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bm-admin-ui",
3
- "version": "1.0.46-alpha",
3
+ "version": "1.0.48-alpha",
4
4
  "private": false,
5
5
  "description": "An Admin Component Library for Bm",
6
6
  "license": "UNLICENSED",
@@ -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
  }, {
@@ -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
  }, {
@@ -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;