bm-admin-ui 1.0.11-alpha → 1.0.14-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 (65) hide show
  1. package/es/components/feedback/index.js +19 -2
  2. package/es/components/float-table/index.js +36 -27
  3. package/es/components/index.d.ts +1 -0
  4. package/es/components/index.js +1 -0
  5. package/es/components/input-tags-display/index.d.ts +66 -0
  6. package/es/components/input-tags-display/index.js +1280 -0
  7. package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
  8. package/es/components/multi-cascader-compose/index.js +24 -8
  9. package/es/components/over-tooltips/index.d.ts +2 -2
  10. package/es/components/over-tooltips/index.js +41 -25
  11. package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  12. package/es/components/search-filter/index.js +42 -18
  13. package/es/components/shops-filter/index.js +19 -13
  14. package/es/components/staffs-selector/index.d.ts +27 -0
  15. package/es/components/staffs-selector/index.js +145 -85
  16. package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  17. package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  18. package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  19. package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  20. package/es/components/timeline/index.js +6 -6
  21. package/es/components/upload/index.d.ts +2 -2
  22. package/es/components/upload/index.js +94 -62
  23. package/es/components/upload/src/upload.vue.d.ts +2 -2
  24. package/index.esm.js +797 -476
  25. package/index.js +797 -475
  26. package/lib/components/feedback/index.js +19 -2
  27. package/lib/components/float-table/index.js +36 -27
  28. package/lib/components/index.d.ts +1 -0
  29. package/lib/components/index.js +7 -0
  30. package/lib/components/input-tags-display/index.d.ts +66 -0
  31. package/lib/components/input-tags-display/index.js +1290 -0
  32. package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
  33. package/lib/components/multi-cascader-compose/index.js +24 -8
  34. package/lib/components/over-tooltips/index.d.ts +2 -2
  35. package/lib/components/over-tooltips/index.js +40 -24
  36. package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  37. package/lib/components/search-filter/index.js +42 -18
  38. package/lib/components/shops-filter/index.js +19 -13
  39. package/lib/components/staffs-selector/index.d.ts +27 -0
  40. package/lib/components/staffs-selector/index.js +145 -85
  41. package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  42. package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  43. package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  44. package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  45. package/lib/components/timeline/index.js +6 -6
  46. package/lib/components/upload/index.d.ts +2 -2
  47. package/lib/components/upload/index.js +93 -61
  48. package/lib/components/upload/src/upload.vue.d.ts +2 -2
  49. package/package.json +1 -1
  50. package/theme-chalk/index.css +1 -1
  51. package/theme-chalk/input-tags-display.css +1 -0
  52. package/theme-chalk/over-tooltips.css +1 -1
  53. package/theme-chalk/staffs-selector.css +1 -1
  54. package/types/components/index.d.ts +1 -0
  55. package/types/components/input-tags-display/index.d.ts +66 -0
  56. package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
  57. package/types/components/over-tooltips/index.d.ts +2 -2
  58. package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
  59. package/types/components/staffs-selector/index.d.ts +27 -0
  60. package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
  61. package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
  62. package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
  63. package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
  64. package/types/components/upload/index.d.ts +2 -2
  65. package/types/components/upload/src/upload.vue.d.ts +2 -2
@@ -0,0 +1,63 @@
1
+ declare type ItemType = {
2
+ key: string | number | any;
3
+ title: string;
4
+ };
5
+ declare const _default: import("vue").DefineComponent<{
6
+ list: {
7
+ type: ArrayConstructor;
8
+ default: () => ItemType[];
9
+ };
10
+ showEmpty: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ showEmptyBtn: {
15
+ type: BooleanConstructor;
16
+ default: boolean;
17
+ };
18
+ btnText: {
19
+ type: StringConstructor;
20
+ default: string;
21
+ };
22
+ placement: {
23
+ type: StringConstructor;
24
+ default: string;
25
+ };
26
+ }, {
27
+ containId: string;
28
+ clear: () => void;
29
+ toAddTags: () => void;
30
+ getPopupContainer: () => HTMLElement;
31
+ }, 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<{
32
+ list: {
33
+ type: ArrayConstructor;
34
+ default: () => ItemType[];
35
+ };
36
+ showEmpty: {
37
+ type: BooleanConstructor;
38
+ default: boolean;
39
+ };
40
+ showEmptyBtn: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ btnText: {
45
+ type: StringConstructor;
46
+ default: string;
47
+ };
48
+ placement: {
49
+ type: StringConstructor;
50
+ default: string;
51
+ };
52
+ }>> & {
53
+ onClear?: ((...args: any[]) => any) | undefined;
54
+ "onUpdate:list"?: ((...args: any[]) => any) | undefined;
55
+ onAddClick?: ((...args: any[]) => any) | undefined;
56
+ }, {
57
+ placement: string;
58
+ list: unknown[];
59
+ showEmpty: boolean;
60
+ showEmptyBtn: boolean;
61
+ btnText: string;
62
+ }>;
63
+ export default _default;
@@ -1335,7 +1335,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1335
1335
  tempRes.push({ checked: true });
1336
1336
  } else {
1337
1337
  let tempRes2 = tempChildren[j];
1338
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1338
+ let tempIndex2 = props.modelValue.indexOf(
1339
+ tempRes2[props.optionValueName]
1340
+ );
1339
1341
  if (tempIndex2 !== -1) {
1340
1342
  tempRes.push({ checked: true });
1341
1343
  } else {
@@ -1361,7 +1363,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1361
1363
  if (tempChildren) {
1362
1364
  for (let j = 0; j < tempChildren.length; j++) {
1363
1365
  let tempRes2 = tempChildren[j];
1364
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1366
+ let tempIndex2 = props.modelValue.indexOf(
1367
+ tempRes2[props.optionValueName]
1368
+ );
1365
1369
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1366
1370
  parentChecked = true;
1367
1371
  break;
@@ -1443,7 +1447,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1443
1447
  checked.push(tempOption?.[props.optionValueName]);
1444
1448
  if (tempOption?.children) {
1445
1449
  let allSonValues = getAllSonValues(tempOption.children);
1446
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1450
+ allSonValues = allSonValues.filter(
1451
+ (item) => item !== tempOption?.[props.optionValueName]
1452
+ );
1447
1453
  unChecked = unChecked.concat(allSonValues);
1448
1454
  }
1449
1455
  for (let i = level; i > 0; i--) {
@@ -1458,7 +1464,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1458
1464
  checked.push(tempOption2[props.optionValueName]);
1459
1465
  if (tempOption2.children) {
1460
1466
  let allSonValues = getAllSonValues(tempOption2.children);
1461
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1467
+ allSonValues = allSonValues.filter(
1468
+ (item) => item !== tempOption2[props.optionValueName]
1469
+ );
1462
1470
  unChecked = unChecked.concat(allSonValues);
1463
1471
  }
1464
1472
  }
@@ -1484,7 +1492,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1484
1492
  if (tempStatus.checked) {
1485
1493
  checked = [];
1486
1494
  } else {
1487
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1495
+ checked = modulersOptions.value[level].children?.map(
1496
+ (item) => item[props.optionValueName]
1497
+ ) || [];
1488
1498
  }
1489
1499
  } else {
1490
1500
  if (tempStatus.checked) {
@@ -1507,7 +1517,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1507
1517
  checked.push(tempOption[props.optionValueName]);
1508
1518
  if (tempOption.children) {
1509
1519
  let allSonValues = getAllSonValues(tempOption.children);
1510
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1520
+ allSonValues = allSonValues.filter(
1521
+ (item) => item !== tempOption[props.optionValueName]
1522
+ );
1511
1523
  unChecked = unChecked.concat(allSonValues);
1512
1524
  }
1513
1525
  for (let i = level; i > 0; i--) {
@@ -1522,7 +1534,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1522
1534
  checked.push(tempOption2[props.optionValueName]);
1523
1535
  if (tempOption2.children) {
1524
1536
  let allSonValues = getAllSonValues(tempOption2.children);
1525
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1537
+ allSonValues = allSonValues.filter(
1538
+ (item) => item !== tempOption2[props.optionValueName]
1539
+ );
1526
1540
  unChecked = unChecked.concat(allSonValues);
1527
1541
  }
1528
1542
  }
@@ -1608,7 +1622,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1608
1622
  return openBlock(), createElementBlock("div", {
1609
1623
  key: index,
1610
1624
  class: normalizeClass(["bm-multi-cascader-item", {
1611
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1625
+ "is-active": path.value.find(
1626
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1627
+ )
1612
1628
  }]),
1613
1629
  onClick: ($event) => handleClick(option, level, index)
1614
1630
  }, [
@@ -3,11 +3,11 @@ declare const BmOverTooltips: import("bm-admin-ui/es/utils/with-install").SFCWit
3
3
  props: {
4
4
  title: {
5
5
  type: StringConstructor;
6
- default: string;
6
+ default: undefined;
7
7
  };
8
8
  labelTitle: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  line: {
13
13
  type: NumberConstructor;
@@ -1,5 +1,5 @@
1
1
  import { withInstall } from 'bm-admin-ui/es/utils/with-install';
2
- import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, createElementVNode, normalizeStyle, normalizeClass, toDisplayString } from 'vue';
2
+ import { reactive, onBeforeUnmount, ref, watch, nextTick, toRefs, resolveComponent, openBlock, createBlock, withCtx, renderSlot, createElementVNode, normalizeStyle, normalizeClass, createTextVNode, toDisplayString } from 'vue';
3
3
 
4
4
  var _export_sfc = (sfc, props) => {
5
5
  const target = sfc.__vccOpts || sfc;
@@ -14,11 +14,11 @@ const _sfc_main = {
14
14
  props: {
15
15
  title: {
16
16
  type: String,
17
- default: ""
17
+ default: void 0
18
18
  },
19
19
  labelTitle: {
20
20
  type: String,
21
- default: ""
21
+ default: void 0
22
22
  },
23
23
  line: {
24
24
  type: Number,
@@ -39,16 +39,19 @@ const _sfc_main = {
39
39
  isShow: false,
40
40
  openShow: false
41
41
  });
42
- const observer = new IntersectionObserver((entries) => {
43
- entries.forEach((item) => {
44
- if (item.intersectionRatio > 0.3) {
45
- observerDom();
46
- observer.disconnect();
47
- }
48
- });
49
- }, {
50
- threshold: 0.3
51
- });
42
+ const observer = new IntersectionObserver(
43
+ (entries) => {
44
+ entries.forEach((item) => {
45
+ if (item.intersectionRatio > 0.3) {
46
+ observerDom();
47
+ observer.disconnect();
48
+ }
49
+ });
50
+ },
51
+ {
52
+ threshold: 0.3
53
+ }
54
+ );
52
55
  function observerDom() {
53
56
  if (props.line === 1) {
54
57
  if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
@@ -64,16 +67,20 @@ const _sfc_main = {
64
67
  observer.disconnect();
65
68
  });
66
69
  let mySelf = ref();
67
- watch(() => props.showAlways, function(showAlways) {
68
- if (showAlways)
69
- state.openShow = showAlways;
70
- mySelf.value && observer.unobserve(mySelf.value);
71
- nextTick(function() {
72
- mySelf.value && observer.observe(mySelf.value);
73
- });
74
- }, {
75
- immediate: true
76
- });
70
+ watch(
71
+ () => props.showAlways,
72
+ function(showAlways) {
73
+ if (showAlways)
74
+ state.openShow = showAlways;
75
+ mySelf.value && observer.unobserve(mySelf.value);
76
+ nextTick(function() {
77
+ mySelf.value && observer.observe(mySelf.value);
78
+ });
79
+ },
80
+ {
81
+ immediate: true
82
+ }
83
+ );
77
84
  const handleVisibleChange = (val) => {
78
85
  state.isShow = !state.openShow ? false : val;
79
86
  };
@@ -97,6 +104,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
97
104
  "get-popup-container": $setup.getPopupContainer,
98
105
  onVisibleChange: $setup.handleVisibleChange
99
106
  }, {
107
+ title: withCtx(() => [
108
+ renderSlot(_ctx.$slots, "title")
109
+ ]),
100
110
  default: withCtx(() => [
101
111
  createElementVNode("div", {
102
112
  ref: "mySelf",
@@ -105,9 +115,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
105
115
  WebkitLineClamp: $props.line
106
116
  }),
107
117
  class: normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
108
- }, toDisplayString($props.title), 7)
118
+ }, [
119
+ renderSlot(_ctx.$slots, "default", {}, () => [
120
+ renderSlot(_ctx.$slots, "title", {}, () => [
121
+ createTextVNode(toDisplayString($props.title), 1)
122
+ ])
123
+ ])
124
+ ], 6)
109
125
  ]),
110
- _: 1
126
+ _: 3
111
127
  }, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
112
128
  }
113
129
  var OverTooltips = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "over-tooltips.vue"]]);
@@ -3,11 +3,11 @@ declare const _default: {
3
3
  props: {
4
4
  title: {
5
5
  type: StringConstructor;
6
- default: string;
6
+ default: undefined;
7
7
  };
8
8
  labelTitle: {
9
9
  type: StringConstructor;
10
- default: string;
10
+ default: undefined;
11
11
  };
12
12
  line: {
13
13
  type: NumberConstructor;
@@ -1482,7 +1482,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1482
1482
  tempRes.push({ checked: true });
1483
1483
  } else {
1484
1484
  let tempRes2 = tempChildren[j];
1485
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1485
+ let tempIndex2 = props.modelValue.indexOf(
1486
+ tempRes2[props.optionValueName]
1487
+ );
1486
1488
  if (tempIndex2 !== -1) {
1487
1489
  tempRes.push({ checked: true });
1488
1490
  } else {
@@ -1508,7 +1510,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1508
1510
  if (tempChildren) {
1509
1511
  for (let j = 0; j < tempChildren.length; j++) {
1510
1512
  let tempRes2 = tempChildren[j];
1511
- let tempIndex2 = props.modelValue.indexOf(tempRes2[props.optionValueName]);
1513
+ let tempIndex2 = props.modelValue.indexOf(
1514
+ tempRes2[props.optionValueName]
1515
+ );
1512
1516
  if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
1513
1517
  parentChecked = true;
1514
1518
  break;
@@ -1590,7 +1594,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1590
1594
  checked.push(tempOption?.[props.optionValueName]);
1591
1595
  if (tempOption?.children) {
1592
1596
  let allSonValues = getAllSonValues(tempOption.children);
1593
- allSonValues = allSonValues.filter((item) => item !== tempOption?.[props.optionValueName]);
1597
+ allSonValues = allSonValues.filter(
1598
+ (item) => item !== tempOption?.[props.optionValueName]
1599
+ );
1594
1600
  unChecked = unChecked.concat(allSonValues);
1595
1601
  }
1596
1602
  for (let i = level; i > 0; i--) {
@@ -1605,7 +1611,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1605
1611
  checked.push(tempOption2[props.optionValueName]);
1606
1612
  if (tempOption2.children) {
1607
1613
  let allSonValues = getAllSonValues(tempOption2.children);
1608
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1614
+ allSonValues = allSonValues.filter(
1615
+ (item) => item !== tempOption2[props.optionValueName]
1616
+ );
1609
1617
  unChecked = unChecked.concat(allSonValues);
1610
1618
  }
1611
1619
  }
@@ -1631,7 +1639,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1631
1639
  if (tempStatus.checked) {
1632
1640
  checked = [];
1633
1641
  } else {
1634
- checked = modulersOptions.value[level].children?.map((item) => item[props.optionValueName]) || [];
1642
+ checked = modulersOptions.value[level].children?.map(
1643
+ (item) => item[props.optionValueName]
1644
+ ) || [];
1635
1645
  }
1636
1646
  } else {
1637
1647
  if (tempStatus.checked) {
@@ -1654,7 +1664,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1654
1664
  checked.push(tempOption[props.optionValueName]);
1655
1665
  if (tempOption.children) {
1656
1666
  let allSonValues = getAllSonValues(tempOption.children);
1657
- allSonValues = allSonValues.filter((item) => item !== tempOption[props.optionValueName]);
1667
+ allSonValues = allSonValues.filter(
1668
+ (item) => item !== tempOption[props.optionValueName]
1669
+ );
1658
1670
  unChecked = unChecked.concat(allSonValues);
1659
1671
  }
1660
1672
  for (let i = level; i > 0; i--) {
@@ -1669,7 +1681,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1669
1681
  checked.push(tempOption2[props.optionValueName]);
1670
1682
  if (tempOption2.children) {
1671
1683
  let allSonValues = getAllSonValues(tempOption2.children);
1672
- allSonValues = allSonValues.filter((item) => item !== tempOption2[props.optionValueName]);
1684
+ allSonValues = allSonValues.filter(
1685
+ (item) => item !== tempOption2[props.optionValueName]
1686
+ );
1673
1687
  unChecked = unChecked.concat(allSonValues);
1674
1688
  }
1675
1689
  }
@@ -1755,7 +1769,9 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
1755
1769
  return openBlock(), createElementBlock("div", {
1756
1770
  key: index,
1757
1771
  class: normalizeClass(["bm-multi-cascader-item", {
1758
- "is-active": path.value.find((item) => option[props.optionValueName] === item[props.optionValueName])
1772
+ "is-active": path.value.find(
1773
+ (item) => option[props.optionValueName] === item[props.optionValueName]
1774
+ )
1759
1775
  }]),
1760
1776
  onClick: ($event) => handleClick(option, level, index)
1761
1777
  }, [
@@ -1925,11 +1941,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1925
1941
  onBeforeUnmount(() => {
1926
1942
  window.removeEventListener("resize", handleResize);
1927
1943
  });
1928
- watch(() => props.showExpandBtn, (val) => {
1929
- handleShowExpandBtn(val);
1930
- }, {
1931
- immediate: true
1932
- });
1944
+ watch(
1945
+ () => props.showExpandBtn,
1946
+ (val) => {
1947
+ handleShowExpandBtn(val);
1948
+ },
1949
+ {
1950
+ immediate: true
1951
+ }
1952
+ );
1933
1953
  const expandRule = computed(() => {
1934
1954
  const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
1935
1955
  const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
@@ -1948,11 +1968,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
1948
1968
  });
1949
1969
  }
1950
1970
  }
1951
- watch(isExpand, (val) => {
1952
- handleChangeExpand(val);
1953
- }, {
1954
- immediate: true
1955
- });
1971
+ watch(
1972
+ isExpand,
1973
+ (val) => {
1974
+ handleChangeExpand(val);
1975
+ },
1976
+ {
1977
+ immediate: true
1978
+ }
1979
+ );
1956
1980
  expose({
1957
1981
  fApi
1958
1982
  });
@@ -1326,22 +1326,28 @@ const _sfc_main = defineComponent({
1326
1326
  };
1327
1327
  props.loadFilter().then((data) => {
1328
1328
  state.filterArr = data;
1329
- state.filterSelects = state.filterArr.map((item) => {
1330
- return item.multiple ? [] : "";
1331
- });
1329
+ state.filterSelects = state.filterArr.map(
1330
+ (item) => {
1331
+ return item.multiple ? [] : "";
1332
+ }
1333
+ );
1332
1334
  }).finally(() => {
1333
1335
  methods.fetchData();
1334
1336
  });
1335
- watch(() => state.shopCheck, () => {
1336
- let list = [];
1337
- for (let [key, value] of Object.entries(state.shopCheck)) {
1338
- value && list.push(key);
1339
- }
1340
- state.selected = list;
1341
- emit("update:selected", list);
1342
- emit("change", list);
1343
- methods.checkboxChange();
1344
- }, { deep: true });
1337
+ watch(
1338
+ () => state.shopCheck,
1339
+ () => {
1340
+ let list = [];
1341
+ for (let [key, value] of Object.entries(state.shopCheck)) {
1342
+ value && list.push(key);
1343
+ }
1344
+ state.selected = list;
1345
+ emit("update:selected", list);
1346
+ emit("change", list);
1347
+ methods.checkboxChange();
1348
+ },
1349
+ { deep: true }
1350
+ );
1345
1351
  if (props.showAlways) {
1346
1352
  state.isActive = true;
1347
1353
  }
@@ -27,6 +27,18 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
27
27
  type: BooleanConstructor;
28
28
  default: boolean;
29
29
  };
30
+ immediateFetch: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ showCount: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ unitStr: {
39
+ type: StringConstructor;
40
+ default: string;
41
+ };
30
42
  }, {
31
43
  list: import("vue").Ref<any[]>;
32
44
  selected: import("vue").Ref<any>;
@@ -67,6 +79,18 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
67
79
  type: BooleanConstructor;
68
80
  default: boolean;
69
81
  };
82
+ immediateFetch: {
83
+ type: BooleanConstructor;
84
+ default: boolean;
85
+ };
86
+ showCount: {
87
+ type: BooleanConstructor;
88
+ default: boolean;
89
+ };
90
+ unitStr: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
70
94
  }>> & {
71
95
  "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
72
96
  "onUpdate:select"?: ((...args: any[]) => any) | undefined;
@@ -74,9 +98,12 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
74
98
  title: string;
75
99
  visible: boolean;
76
100
  mode: string;
101
+ showCount: boolean;
77
102
  limit: number;
103
+ unitStr: string;
78
104
  load: Function;
79
105
  forceStatic: boolean;
106
+ immediateFetch: boolean;
80
107
  }>>;
81
108
  export { BmStaffsSelector };
82
109
  export default BmStaffsSelector;