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.
- package/es/components/feedback/index.js +19 -2
- package/es/components/float-table/index.js +36 -27
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +66 -0
- package/es/components/input-tags-display/index.js +1280 -0
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/es/components/multi-cascader-compose/index.js +24 -8
- package/es/components/over-tooltips/index.d.ts +2 -2
- package/es/components/over-tooltips/index.js +41 -25
- package/es/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
- package/es/components/search-filter/index.js +42 -18
- package/es/components/shops-filter/index.js +19 -13
- package/es/components/staffs-selector/index.d.ts +27 -0
- package/es/components/staffs-selector/index.js +145 -85
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
- package/es/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/es/components/timeline/index.js +6 -6
- package/es/components/upload/index.d.ts +2 -2
- package/es/components/upload/index.js +94 -62
- package/es/components/upload/src/upload.vue.d.ts +2 -2
- package/index.esm.js +797 -476
- package/index.js +797 -475
- package/lib/components/feedback/index.js +19 -2
- package/lib/components/float-table/index.js +36 -27
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +66 -0
- package/lib/components/input-tags-display/index.js +1290 -0
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/lib/components/multi-cascader-compose/index.js +24 -8
- package/lib/components/over-tooltips/index.d.ts +2 -2
- package/lib/components/over-tooltips/index.js +40 -24
- package/lib/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
- package/lib/components/search-filter/index.js +42 -18
- package/lib/components/shops-filter/index.js +19 -13
- package/lib/components/staffs-selector/index.d.ts +27 -0
- package/lib/components/staffs-selector/index.js +145 -85
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
- package/lib/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/lib/components/timeline/index.js +6 -6
- package/lib/components/upload/index.d.ts +2 -2
- package/lib/components/upload/index.js +93 -61
- package/lib/components/upload/src/upload.vue.d.ts +2 -2
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -0
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/types/components/index.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +66 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +63 -0
- package/types/components/over-tooltips/index.d.ts +2 -2
- package/types/components/over-tooltips/src/over-tooltips.vue.d.ts +2 -2
- package/types/components/staffs-selector/index.d.ts +27 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +19 -1
- package/types/components/staffs-selector/src/radioCmp.vue.d.ts +1 -1
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +27 -0
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -1
- package/types/components/upload/index.d.ts +2 -2
- 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;
|
|
@@ -1339,7 +1339,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1339
1339
|
tempRes.push({ checked: true });
|
|
1340
1340
|
} else {
|
|
1341
1341
|
let tempRes2 = tempChildren[j];
|
|
1342
|
-
let tempIndex2 = props.modelValue.indexOf(
|
|
1342
|
+
let tempIndex2 = props.modelValue.indexOf(
|
|
1343
|
+
tempRes2[props.optionValueName]
|
|
1344
|
+
);
|
|
1343
1345
|
if (tempIndex2 !== -1) {
|
|
1344
1346
|
tempRes.push({ checked: true });
|
|
1345
1347
|
} else {
|
|
@@ -1365,7 +1367,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1365
1367
|
if (tempChildren) {
|
|
1366
1368
|
for (let j = 0; j < tempChildren.length; j++) {
|
|
1367
1369
|
let tempRes2 = tempChildren[j];
|
|
1368
|
-
let tempIndex2 = props.modelValue.indexOf(
|
|
1370
|
+
let tempIndex2 = props.modelValue.indexOf(
|
|
1371
|
+
tempRes2[props.optionValueName]
|
|
1372
|
+
);
|
|
1369
1373
|
if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
|
|
1370
1374
|
parentChecked = true;
|
|
1371
1375
|
break;
|
|
@@ -1447,7 +1451,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1447
1451
|
checked.push(tempOption?.[props.optionValueName]);
|
|
1448
1452
|
if (tempOption?.children) {
|
|
1449
1453
|
let allSonValues = getAllSonValues(tempOption.children);
|
|
1450
|
-
allSonValues = allSonValues.filter(
|
|
1454
|
+
allSonValues = allSonValues.filter(
|
|
1455
|
+
(item) => item !== tempOption?.[props.optionValueName]
|
|
1456
|
+
);
|
|
1451
1457
|
unChecked = unChecked.concat(allSonValues);
|
|
1452
1458
|
}
|
|
1453
1459
|
for (let i = level; i > 0; i--) {
|
|
@@ -1462,7 +1468,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1462
1468
|
checked.push(tempOption2[props.optionValueName]);
|
|
1463
1469
|
if (tempOption2.children) {
|
|
1464
1470
|
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1465
|
-
allSonValues = allSonValues.filter(
|
|
1471
|
+
allSonValues = allSonValues.filter(
|
|
1472
|
+
(item) => item !== tempOption2[props.optionValueName]
|
|
1473
|
+
);
|
|
1466
1474
|
unChecked = unChecked.concat(allSonValues);
|
|
1467
1475
|
}
|
|
1468
1476
|
}
|
|
@@ -1488,7 +1496,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1488
1496
|
if (tempStatus.checked) {
|
|
1489
1497
|
checked = [];
|
|
1490
1498
|
} else {
|
|
1491
|
-
checked = modulersOptions.value[level].children?.map(
|
|
1499
|
+
checked = modulersOptions.value[level].children?.map(
|
|
1500
|
+
(item) => item[props.optionValueName]
|
|
1501
|
+
) || [];
|
|
1492
1502
|
}
|
|
1493
1503
|
} else {
|
|
1494
1504
|
if (tempStatus.checked) {
|
|
@@ -1511,7 +1521,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1511
1521
|
checked.push(tempOption[props.optionValueName]);
|
|
1512
1522
|
if (tempOption.children) {
|
|
1513
1523
|
let allSonValues = getAllSonValues(tempOption.children);
|
|
1514
|
-
allSonValues = allSonValues.filter(
|
|
1524
|
+
allSonValues = allSonValues.filter(
|
|
1525
|
+
(item) => item !== tempOption[props.optionValueName]
|
|
1526
|
+
);
|
|
1515
1527
|
unChecked = unChecked.concat(allSonValues);
|
|
1516
1528
|
}
|
|
1517
1529
|
for (let i = level; i > 0; i--) {
|
|
@@ -1526,7 +1538,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1526
1538
|
checked.push(tempOption2[props.optionValueName]);
|
|
1527
1539
|
if (tempOption2.children) {
|
|
1528
1540
|
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1529
|
-
allSonValues = allSonValues.filter(
|
|
1541
|
+
allSonValues = allSonValues.filter(
|
|
1542
|
+
(item) => item !== tempOption2[props.optionValueName]
|
|
1543
|
+
);
|
|
1530
1544
|
unChecked = unChecked.concat(allSonValues);
|
|
1531
1545
|
}
|
|
1532
1546
|
}
|
|
@@ -1612,7 +1626,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1612
1626
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1613
1627
|
key: index,
|
|
1614
1628
|
class: vue.normalizeClass(["bm-multi-cascader-item", {
|
|
1615
|
-
"is-active": path.value.find(
|
|
1629
|
+
"is-active": path.value.find(
|
|
1630
|
+
(item) => option[props.optionValueName] === item[props.optionValueName]
|
|
1631
|
+
)
|
|
1616
1632
|
}]),
|
|
1617
1633
|
onClick: ($event) => handleClick(option, level, index)
|
|
1618
1634
|
}, [
|
|
@@ -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:
|
|
6
|
+
default: undefined;
|
|
7
7
|
};
|
|
8
8
|
labelTitle: {
|
|
9
9
|
type: StringConstructor;
|
|
10
|
-
default:
|
|
10
|
+
default: undefined;
|
|
11
11
|
};
|
|
12
12
|
line: {
|
|
13
13
|
type: NumberConstructor;
|
|
@@ -18,11 +18,11 @@ const _sfc_main = {
|
|
|
18
18
|
props: {
|
|
19
19
|
title: {
|
|
20
20
|
type: String,
|
|
21
|
-
default:
|
|
21
|
+
default: void 0
|
|
22
22
|
},
|
|
23
23
|
labelTitle: {
|
|
24
24
|
type: String,
|
|
25
|
-
default:
|
|
25
|
+
default: void 0
|
|
26
26
|
},
|
|
27
27
|
line: {
|
|
28
28
|
type: Number,
|
|
@@ -43,16 +43,19 @@ const _sfc_main = {
|
|
|
43
43
|
isShow: false,
|
|
44
44
|
openShow: false
|
|
45
45
|
});
|
|
46
|
-
const observer = new IntersectionObserver(
|
|
47
|
-
entries
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
46
|
+
const observer = new IntersectionObserver(
|
|
47
|
+
(entries) => {
|
|
48
|
+
entries.forEach((item) => {
|
|
49
|
+
if (item.intersectionRatio > 0.3) {
|
|
50
|
+
observerDom();
|
|
51
|
+
observer.disconnect();
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
threshold: 0.3
|
|
57
|
+
}
|
|
58
|
+
);
|
|
56
59
|
function observerDom() {
|
|
57
60
|
if (props.line === 1) {
|
|
58
61
|
if (mySelf.value.scrollWidth > mySelf.value.clientWidth) {
|
|
@@ -68,16 +71,20 @@ const _sfc_main = {
|
|
|
68
71
|
observer.disconnect();
|
|
69
72
|
});
|
|
70
73
|
let mySelf = vue.ref();
|
|
71
|
-
vue.watch(
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
mySelf.value && observer.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
74
|
+
vue.watch(
|
|
75
|
+
() => props.showAlways,
|
|
76
|
+
function(showAlways) {
|
|
77
|
+
if (showAlways)
|
|
78
|
+
state.openShow = showAlways;
|
|
79
|
+
mySelf.value && observer.unobserve(mySelf.value);
|
|
80
|
+
vue.nextTick(function() {
|
|
81
|
+
mySelf.value && observer.observe(mySelf.value);
|
|
82
|
+
});
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
immediate: true
|
|
86
|
+
}
|
|
87
|
+
);
|
|
81
88
|
const handleVisibleChange = (val) => {
|
|
82
89
|
state.isShow = !state.openShow ? false : val;
|
|
83
90
|
};
|
|
@@ -101,6 +108,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
101
108
|
"get-popup-container": $setup.getPopupContainer,
|
|
102
109
|
onVisibleChange: $setup.handleVisibleChange
|
|
103
110
|
}, {
|
|
111
|
+
title: vue.withCtx(() => [
|
|
112
|
+
vue.renderSlot(_ctx.$slots, "title")
|
|
113
|
+
]),
|
|
104
114
|
default: vue.withCtx(() => [
|
|
105
115
|
vue.createElementVNode("div", {
|
|
106
116
|
ref: "mySelf",
|
|
@@ -109,9 +119,15 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
109
119
|
WebkitLineClamp: $props.line
|
|
110
120
|
}),
|
|
111
121
|
class: vue.normalizeClass($props.line === 1 ? `bm-over-tooltip` : `bm-over-tooltip-multi`)
|
|
112
|
-
},
|
|
122
|
+
}, [
|
|
123
|
+
vue.renderSlot(_ctx.$slots, "default", {}, () => [
|
|
124
|
+
vue.renderSlot(_ctx.$slots, "title", {}, () => [
|
|
125
|
+
vue.createTextVNode(vue.toDisplayString($props.title), 1)
|
|
126
|
+
])
|
|
127
|
+
])
|
|
128
|
+
], 6)
|
|
113
129
|
]),
|
|
114
|
-
_:
|
|
130
|
+
_: 3
|
|
115
131
|
}, 8, ["visible", "title", "get-popup-container", "onVisibleChange"]);
|
|
116
132
|
}
|
|
117
133
|
var OverTooltips = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__file", "over-tooltips.vue"]]);
|
|
@@ -1490,7 +1490,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1490
1490
|
tempRes.push({ checked: true });
|
|
1491
1491
|
} else {
|
|
1492
1492
|
let tempRes2 = tempChildren[j];
|
|
1493
|
-
let tempIndex2 = props.modelValue.indexOf(
|
|
1493
|
+
let tempIndex2 = props.modelValue.indexOf(
|
|
1494
|
+
tempRes2[props.optionValueName]
|
|
1495
|
+
);
|
|
1494
1496
|
if (tempIndex2 !== -1) {
|
|
1495
1497
|
tempRes.push({ checked: true });
|
|
1496
1498
|
} else {
|
|
@@ -1516,7 +1518,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1516
1518
|
if (tempChildren) {
|
|
1517
1519
|
for (let j = 0; j < tempChildren.length; j++) {
|
|
1518
1520
|
let tempRes2 = tempChildren[j];
|
|
1519
|
-
let tempIndex2 = props.modelValue.indexOf(
|
|
1521
|
+
let tempIndex2 = props.modelValue.indexOf(
|
|
1522
|
+
tempRes2[props.optionValueName]
|
|
1523
|
+
);
|
|
1520
1524
|
if (path.value[i] && tempRes2[props.optionValueName] === path.value[i][props.optionValueName] && tempIndex2 !== -1) {
|
|
1521
1525
|
parentChecked = true;
|
|
1522
1526
|
break;
|
|
@@ -1598,7 +1602,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1598
1602
|
checked.push(tempOption?.[props.optionValueName]);
|
|
1599
1603
|
if (tempOption?.children) {
|
|
1600
1604
|
let allSonValues = getAllSonValues(tempOption.children);
|
|
1601
|
-
allSonValues = allSonValues.filter(
|
|
1605
|
+
allSonValues = allSonValues.filter(
|
|
1606
|
+
(item) => item !== tempOption?.[props.optionValueName]
|
|
1607
|
+
);
|
|
1602
1608
|
unChecked = unChecked.concat(allSonValues);
|
|
1603
1609
|
}
|
|
1604
1610
|
for (let i = level; i > 0; i--) {
|
|
@@ -1613,7 +1619,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1613
1619
|
checked.push(tempOption2[props.optionValueName]);
|
|
1614
1620
|
if (tempOption2.children) {
|
|
1615
1621
|
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1616
|
-
allSonValues = allSonValues.filter(
|
|
1622
|
+
allSonValues = allSonValues.filter(
|
|
1623
|
+
(item) => item !== tempOption2[props.optionValueName]
|
|
1624
|
+
);
|
|
1617
1625
|
unChecked = unChecked.concat(allSonValues);
|
|
1618
1626
|
}
|
|
1619
1627
|
}
|
|
@@ -1639,7 +1647,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1639
1647
|
if (tempStatus.checked) {
|
|
1640
1648
|
checked = [];
|
|
1641
1649
|
} else {
|
|
1642
|
-
checked = modulersOptions.value[level].children?.map(
|
|
1650
|
+
checked = modulersOptions.value[level].children?.map(
|
|
1651
|
+
(item) => item[props.optionValueName]
|
|
1652
|
+
) || [];
|
|
1643
1653
|
}
|
|
1644
1654
|
} else {
|
|
1645
1655
|
if (tempStatus.checked) {
|
|
@@ -1662,7 +1672,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1662
1672
|
checked.push(tempOption[props.optionValueName]);
|
|
1663
1673
|
if (tempOption.children) {
|
|
1664
1674
|
let allSonValues = getAllSonValues(tempOption.children);
|
|
1665
|
-
allSonValues = allSonValues.filter(
|
|
1675
|
+
allSonValues = allSonValues.filter(
|
|
1676
|
+
(item) => item !== tempOption[props.optionValueName]
|
|
1677
|
+
);
|
|
1666
1678
|
unChecked = unChecked.concat(allSonValues);
|
|
1667
1679
|
}
|
|
1668
1680
|
for (let i = level; i > 0; i--) {
|
|
@@ -1677,7 +1689,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1677
1689
|
checked.push(tempOption2[props.optionValueName]);
|
|
1678
1690
|
if (tempOption2.children) {
|
|
1679
1691
|
let allSonValues = getAllSonValues(tempOption2.children);
|
|
1680
|
-
allSonValues = allSonValues.filter(
|
|
1692
|
+
allSonValues = allSonValues.filter(
|
|
1693
|
+
(item) => item !== tempOption2[props.optionValueName]
|
|
1694
|
+
);
|
|
1681
1695
|
unChecked = unChecked.concat(allSonValues);
|
|
1682
1696
|
}
|
|
1683
1697
|
}
|
|
@@ -1763,7 +1777,9 @@ const _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
|
|
|
1763
1777
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
1764
1778
|
key: index,
|
|
1765
1779
|
class: vue.normalizeClass(["bm-multi-cascader-item", {
|
|
1766
|
-
"is-active": path.value.find(
|
|
1780
|
+
"is-active": path.value.find(
|
|
1781
|
+
(item) => option[props.optionValueName] === item[props.optionValueName]
|
|
1782
|
+
)
|
|
1767
1783
|
}]),
|
|
1768
1784
|
onClick: ($event) => handleClick(option, level, index)
|
|
1769
1785
|
}, [
|
|
@@ -1933,11 +1949,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1933
1949
|
vue.onBeforeUnmount(() => {
|
|
1934
1950
|
window.removeEventListener("resize", handleResize);
|
|
1935
1951
|
});
|
|
1936
|
-
vue.watch(
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1952
|
+
vue.watch(
|
|
1953
|
+
() => props.showExpandBtn,
|
|
1954
|
+
(val) => {
|
|
1955
|
+
handleShowExpandBtn(val);
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
immediate: true
|
|
1959
|
+
}
|
|
1960
|
+
);
|
|
1941
1961
|
const expandRule = vue.computed(() => {
|
|
1942
1962
|
const fixedCount = props.fixedCount && props.fixedCount >= 0 ? props.fixedCount : 0;
|
|
1943
1963
|
const fixedFields = props.fixedFields?.length ? props.fixedFields : [];
|
|
@@ -1956,11 +1976,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
1956
1976
|
});
|
|
1957
1977
|
}
|
|
1958
1978
|
}
|
|
1959
|
-
vue.watch(
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1979
|
+
vue.watch(
|
|
1980
|
+
isExpand,
|
|
1981
|
+
(val) => {
|
|
1982
|
+
handleChangeExpand(val);
|
|
1983
|
+
},
|
|
1984
|
+
{
|
|
1985
|
+
immediate: true
|
|
1986
|
+
}
|
|
1987
|
+
);
|
|
1964
1988
|
expose({
|
|
1965
1989
|
fApi
|
|
1966
1990
|
});
|
|
@@ -1337,22 +1337,28 @@ const _sfc_main = vue.defineComponent({
|
|
|
1337
1337
|
};
|
|
1338
1338
|
props.loadFilter().then((data) => {
|
|
1339
1339
|
state.filterArr = data;
|
|
1340
|
-
state.filterSelects = state.filterArr.map(
|
|
1341
|
-
|
|
1342
|
-
|
|
1340
|
+
state.filterSelects = state.filterArr.map(
|
|
1341
|
+
(item) => {
|
|
1342
|
+
return item.multiple ? [] : "";
|
|
1343
|
+
}
|
|
1344
|
+
);
|
|
1343
1345
|
}).finally(() => {
|
|
1344
1346
|
methods.fetchData();
|
|
1345
1347
|
});
|
|
1346
|
-
vue.watch(
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1348
|
+
vue.watch(
|
|
1349
|
+
() => state.shopCheck,
|
|
1350
|
+
() => {
|
|
1351
|
+
let list = [];
|
|
1352
|
+
for (let [key, value] of Object.entries(state.shopCheck)) {
|
|
1353
|
+
value && list.push(key);
|
|
1354
|
+
}
|
|
1355
|
+
state.selected = list;
|
|
1356
|
+
emit("update:selected", list);
|
|
1357
|
+
emit("change", list);
|
|
1358
|
+
methods.checkboxChange();
|
|
1359
|
+
},
|
|
1360
|
+
{ deep: true }
|
|
1361
|
+
);
|
|
1356
1362
|
if (props.showAlways) {
|
|
1357
1363
|
state.isActive = true;
|
|
1358
1364
|
}
|
|
@@ -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;
|