bm-admin-ui 1.0.12-alpha → 1.0.13-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 +25 -21
- package/es/components/float-table/index.d.ts +2 -2
- package/es/components/float-table/index.js +36 -27
- package/es/components/float-table/src/float-table.vue.d.ts +2 -2
- package/es/components/index.d.ts +1 -0
- package/es/components/index.js +1 -0
- package/es/components/input-tags-display/index.d.ts +75 -0
- package/es/components/input-tags-display/index.js +1286 -0
- package/es/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
- package/es/components/multi-cascader-compose/index.js +28 -25
- package/es/components/over-tooltips/index.js +27 -20
- package/es/components/search-filter/index.d.ts +1 -3
- package/es/components/search-filter/index.js +48 -36
- package/es/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/es/components/shops-filter/index.js +23 -30
- package/es/components/staffs-selector/index.d.ts +27 -0
- package/es/components/staffs-selector/index.js +150 -103
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- 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.js +86 -76
- package/index.esm.js +37839 -1300
- package/index.js +37839 -1299
- package/lib/components/feedback/index.js +24 -20
- package/lib/components/float-table/index.d.ts +2 -2
- package/lib/components/float-table/index.js +36 -27
- package/lib/components/float-table/src/float-table.vue.d.ts +2 -2
- package/lib/components/index.d.ts +1 -0
- package/lib/components/index.js +7 -0
- package/lib/components/input-tags-display/index.d.ts +75 -0
- package/lib/components/input-tags-display/index.js +1296 -0
- package/lib/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
- package/lib/components/multi-cascader-compose/index.js +28 -25
- package/lib/components/over-tooltips/index.js +27 -20
- package/lib/components/search-filter/index.d.ts +1 -3
- package/lib/components/search-filter/index.js +48 -36
- package/lib/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/lib/components/shops-filter/index.js +23 -30
- package/lib/components/staffs-selector/index.d.ts +27 -0
- package/lib/components/staffs-selector/index.js +150 -103
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- 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.js +86 -76
- package/package.json +29 -29
- package/theme-chalk/button.css +1 -1
- package/theme-chalk/feedback.css +1 -1
- package/theme-chalk/float-table.css +1 -1
- package/theme-chalk/floating-vue.css +1 -1
- package/theme-chalk/flow-designer.css +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -0
- package/theme-chalk/modal.css +1 -1
- package/theme-chalk/multi-cascader-compose.css +1 -1
- package/theme-chalk/over-tooltips.css +1 -1
- package/theme-chalk/search-filter.css +1 -1
- package/theme-chalk/staffs-selector.css +1 -1
- package/theme-chalk/timeline.css +1 -1
- package/theme-chalk/upload.css +1 -1
- package/types/components/float-table/index.d.ts +2 -2
- package/types/components/float-table/src/float-table.vue.d.ts +2 -2
- package/types/components/index.d.ts +1 -0
- package/types/components/input-tags-display/index.d.ts +75 -0
- package/types/components/input-tags-display/src/input-tags-display.vue.d.ts +72 -0
- package/types/components/search-filter/index.d.ts +1 -3
- package/types/components/search-filter/src/search-filter.vue.d.ts +1 -3
- package/types/components/staffs-selector/index.d.ts +27 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +21 -3
- 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
|
@@ -84,7 +84,7 @@ function boundAlpha(a) {
|
|
|
84
84
|
*/
|
|
85
85
|
function convertToPercentage(n) {
|
|
86
86
|
if (n <= 1) {
|
|
87
|
-
return Number(n) * 100
|
|
87
|
+
return "".concat(Number(n) * 100, "%");
|
|
88
88
|
}
|
|
89
89
|
return n;
|
|
90
90
|
}
|
|
@@ -466,12 +466,12 @@ var CSS_INTEGER = '[-\\+]?\\d+%?';
|
|
|
466
466
|
// <http://www.w3.org/TR/css3-values/#number-value>
|
|
467
467
|
var CSS_NUMBER = '[-\\+]?\\d*\\.\\d+%?';
|
|
468
468
|
// Allow positive/negative integer/number. Don't capture the either/or, just the entire outcome.
|
|
469
|
-
var CSS_UNIT = "(?:"
|
|
469
|
+
var CSS_UNIT = "(?:".concat(CSS_NUMBER, ")|(?:").concat(CSS_INTEGER, ")");
|
|
470
470
|
// Actual matching.
|
|
471
471
|
// Parentheses and commas are optional, but not required.
|
|
472
472
|
// Whitespace can take the place of commas or opening paren
|
|
473
|
-
var PERMISSIVE_MATCH3 = "[\\s|\\(]+("
|
|
474
|
-
var PERMISSIVE_MATCH4 = "[\\s|\\(]+("
|
|
473
|
+
var PERMISSIVE_MATCH3 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
474
|
+
var PERMISSIVE_MATCH4 = "[\\s|\\(]+(".concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")[,|\\s]+(").concat(CSS_UNIT, ")\\s*\\)?");
|
|
475
475
|
var matchers = {
|
|
476
476
|
CSS_UNIT: new RegExp(CSS_UNIT),
|
|
477
477
|
rgb: new RegExp('rgb' + PERMISSIVE_MATCH3),
|
|
@@ -796,19 +796,6 @@ Object.keys(presetPrimaryColors).forEach(function (key) {
|
|
|
796
796
|
});
|
|
797
797
|
presetDarkPalettes[key].primary = presetDarkPalettes[key][5];
|
|
798
798
|
});
|
|
799
|
-
presetPalettes.red;
|
|
800
|
-
presetPalettes.volcano;
|
|
801
|
-
presetPalettes.gold;
|
|
802
|
-
presetPalettes.orange;
|
|
803
|
-
presetPalettes.yellow;
|
|
804
|
-
presetPalettes.lime;
|
|
805
|
-
presetPalettes.green;
|
|
806
|
-
presetPalettes.cyan;
|
|
807
|
-
presetPalettes.blue;
|
|
808
|
-
presetPalettes.geekblue;
|
|
809
|
-
presetPalettes.purple;
|
|
810
|
-
presetPalettes.magenta;
|
|
811
|
-
presetPalettes.grey;
|
|
812
799
|
|
|
813
800
|
// https://github.com/substack/insert-css
|
|
814
801
|
var containers = []; // will store container HTMLElement references
|
|
@@ -1206,6 +1193,14 @@ const _sfc_main$3 = vue.defineComponent({
|
|
|
1206
1193
|
curlistKeys: {
|
|
1207
1194
|
type: Set,
|
|
1208
1195
|
default: () => /* @__PURE__ */ new Set()
|
|
1196
|
+
},
|
|
1197
|
+
showCount: {
|
|
1198
|
+
type: Boolean,
|
|
1199
|
+
default: true
|
|
1200
|
+
},
|
|
1201
|
+
unitStr: {
|
|
1202
|
+
type: String,
|
|
1203
|
+
default: "\u4EBA"
|
|
1209
1204
|
}
|
|
1210
1205
|
},
|
|
1211
1206
|
emits: ["fetchList", "update:selected"],
|
|
@@ -1265,39 +1260,50 @@ const _sfc_main$3 = vue.defineComponent({
|
|
|
1265
1260
|
return data ? data.title : "\u672A\u77E5";
|
|
1266
1261
|
}
|
|
1267
1262
|
};
|
|
1268
|
-
vue.watch(
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
state.isFulfill = true;
|
|
1275
|
-
else
|
|
1276
|
-
state.isFulfill = false;
|
|
1277
|
-
methods.setState();
|
|
1278
|
-
emit("update:selected", list);
|
|
1279
|
-
}, { deep: true });
|
|
1280
|
-
vue.watch(() => state.departmentChecked, () => {
|
|
1281
|
-
let flatMap = props.dataMap;
|
|
1282
|
-
let curlistKeys = props.curlistKeys;
|
|
1283
|
-
let hadselected = new Set(props.selected);
|
|
1284
|
-
let curselect = new Set(state.departmentChecked);
|
|
1285
|
-
for (let key of hadselected) {
|
|
1286
|
-
if (curlistKeys.has(key) && (!curselect.has(key) || curselect.has(key) && curselect.has(flatMap.get(key)["parent"]))) {
|
|
1287
|
-
hadselected.delete(key);
|
|
1263
|
+
vue.watch(
|
|
1264
|
+
() => state.listChecked,
|
|
1265
|
+
() => {
|
|
1266
|
+
let list = [];
|
|
1267
|
+
for (let [key, value] of Object.entries(state.listChecked)) {
|
|
1268
|
+
value && list.push(key);
|
|
1288
1269
|
}
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1270
|
+
if (props.limit > 0 && list.length >= props.limit)
|
|
1271
|
+
state.isFulfill = true;
|
|
1272
|
+
else
|
|
1273
|
+
state.isFulfill = false;
|
|
1274
|
+
methods.setState();
|
|
1275
|
+
emit("update:selected", list);
|
|
1276
|
+
},
|
|
1277
|
+
{ deep: true }
|
|
1278
|
+
);
|
|
1279
|
+
vue.watch(
|
|
1280
|
+
() => state.departmentChecked,
|
|
1281
|
+
() => {
|
|
1282
|
+
let flatMap = props.dataMap;
|
|
1283
|
+
let curlistKeys = props.curlistKeys;
|
|
1284
|
+
let hadselected = new Set(props.selected);
|
|
1285
|
+
let curselect = new Set(state.departmentChecked);
|
|
1286
|
+
for (let key of hadselected) {
|
|
1287
|
+
if (curlistKeys.has(key) && (!curselect.has(key) || curselect.has(key) && curselect.has(flatMap.get(key)["parent"]))) {
|
|
1288
|
+
hadselected.delete(key);
|
|
1289
|
+
}
|
|
1290
|
+
}
|
|
1291
|
+
for (let key of curselect) {
|
|
1292
|
+
let obj = flatMap.get(key);
|
|
1293
|
+
if (obj && !curselect.has(obj["parent"])) {
|
|
1294
|
+
hadselected.add(key);
|
|
1295
|
+
}
|
|
1294
1296
|
}
|
|
1297
|
+
emit("update:selected", Array.from(hadselected));
|
|
1298
|
+
},
|
|
1299
|
+
{ deep: true }
|
|
1300
|
+
);
|
|
1301
|
+
vue.watch(
|
|
1302
|
+
() => props.list,
|
|
1303
|
+
() => {
|
|
1304
|
+
!props.isTree && methods.setState();
|
|
1295
1305
|
}
|
|
1296
|
-
|
|
1297
|
-
}, { deep: true });
|
|
1298
|
-
vue.watch(() => props.list, () => {
|
|
1299
|
-
!props.isTree && methods.setState();
|
|
1300
|
-
});
|
|
1306
|
+
);
|
|
1301
1307
|
vue.onMounted(() => {
|
|
1302
1308
|
let list = props.selected;
|
|
1303
1309
|
list && list.forEach((key) => {
|
|
@@ -1328,7 +1334,10 @@ const _hoisted_9$1 = {
|
|
|
1328
1334
|
};
|
|
1329
1335
|
const _hoisted_10$1 = { style: { "color": "#9393a3", "font-size": "12px", "font-weight": "400" } };
|
|
1330
1336
|
const _hoisted_11$1 = { class: "__selector-chosen-panel" };
|
|
1331
|
-
const _hoisted_12$1 = {
|
|
1337
|
+
const _hoisted_12$1 = {
|
|
1338
|
+
key: 0,
|
|
1339
|
+
class: "__chosen-panel-tip"
|
|
1340
|
+
};
|
|
1332
1341
|
const _hoisted_13$1 = {
|
|
1333
1342
|
key: 0,
|
|
1334
1343
|
class: "__limit-tip"
|
|
@@ -1418,10 +1427,10 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1418
1427
|
])
|
|
1419
1428
|
]),
|
|
1420
1429
|
vue.createElementVNode("div", _hoisted_11$1, [
|
|
1421
|
-
vue.
|
|
1430
|
+
_ctx.showCount ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_12$1, [
|
|
1422
1431
|
vue.createElementVNode("span", null, "\u5DF2\u9009\u62E9" + vue.toDisplayString(_ctx.selected && _ctx.selected.length || 0) + "\u4EBA", 1),
|
|
1423
|
-
_ctx.limit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$1, "\u6700\u591A\u9009\u62E9" + vue.toDisplayString(_ctx.limit) +
|
|
1424
|
-
]),
|
|
1432
|
+
_ctx.limit ? (vue.openBlock(), vue.createElementBlock("span", _hoisted_13$1, "\u6700\u591A\u9009\u62E9" + vue.toDisplayString(_ctx.limit) + vue.toDisplayString(_ctx.unitStr), 1)) : vue.createCommentVNode("v-if", true)
|
|
1433
|
+
])) : vue.createCommentVNode("v-if", true),
|
|
1425
1434
|
vue.createElementVNode("div", _hoisted_14$1, [
|
|
1426
1435
|
(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.selected, (item) => {
|
|
1427
1436
|
return vue.openBlock(), vue.createElementBlock("div", {
|
|
@@ -1631,57 +1640,73 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
1631
1640
|
return data ? data.title : "\u672A\u77E5";
|
|
1632
1641
|
}
|
|
1633
1642
|
};
|
|
1634
|
-
vue.watch(
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1643
|
+
vue.watch(
|
|
1644
|
+
() => departmentChecked,
|
|
1645
|
+
() => {
|
|
1646
|
+
let flatMap = props.dataMap;
|
|
1647
|
+
let curlistKeys = props.curlistKeys;
|
|
1648
|
+
let hadselected = new Set(props.selected);
|
|
1649
|
+
let curselect = new Set(departmentChecked.value);
|
|
1650
|
+
for (let key of hadselected) {
|
|
1651
|
+
if (curlistKeys.has(key) && (!curselect.has(key) || curselect.has(key) && curselect.has(flatMap.get(key)["parent"]))) {
|
|
1652
|
+
hadselected.delete(key);
|
|
1653
|
+
}
|
|
1642
1654
|
}
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1655
|
+
for (let key of curselect) {
|
|
1656
|
+
let obj = flatMap.get(key);
|
|
1657
|
+
if (obj && !curselect.has(obj["parent"])) {
|
|
1658
|
+
hadselected.add(key);
|
|
1659
|
+
}
|
|
1648
1660
|
}
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1661
|
+
emit("update:selected", Array.from(hadselected));
|
|
1662
|
+
},
|
|
1663
|
+
{ deep: true }
|
|
1664
|
+
);
|
|
1665
|
+
vue.watch(
|
|
1666
|
+
() => staffsChecked,
|
|
1667
|
+
() => {
|
|
1668
|
+
let set = new Set(props.selected.length ? props.selected : null);
|
|
1669
|
+
for (let [key, value] of Object.entries(staffsChecked.value)) {
|
|
1670
|
+
if (value) {
|
|
1671
|
+
set.add(key);
|
|
1672
|
+
} else {
|
|
1673
|
+
set.has(key) && set.delete(key);
|
|
1674
|
+
}
|
|
1659
1675
|
}
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1676
|
+
emit("update:selected", Array.from(set));
|
|
1677
|
+
},
|
|
1678
|
+
{ deep: true }
|
|
1679
|
+
);
|
|
1680
|
+
vue.watch(
|
|
1681
|
+
() => shopChecked,
|
|
1682
|
+
() => {
|
|
1683
|
+
let set = new Set(props.selected.length ? props.selected : null);
|
|
1684
|
+
for (let [key, value] of Object.entries(shopChecked.value)) {
|
|
1685
|
+
if (value) {
|
|
1686
|
+
set.add(key);
|
|
1687
|
+
} else {
|
|
1688
|
+
set.has(key) && set.delete(key);
|
|
1689
|
+
}
|
|
1670
1690
|
}
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1691
|
+
emit("update:selected", Array.from(set));
|
|
1692
|
+
},
|
|
1693
|
+
{ deep: true }
|
|
1694
|
+
);
|
|
1695
|
+
vue.watch(
|
|
1696
|
+
() => groupChecked,
|
|
1697
|
+
() => {
|
|
1698
|
+
let set = new Set(props.selected.length ? props.selected : null);
|
|
1699
|
+
for (let [key, value] of Object.entries(groupChecked.value)) {
|
|
1700
|
+
if (value) {
|
|
1701
|
+
set.add(key);
|
|
1702
|
+
} else {
|
|
1703
|
+
set.has(key) && set.delete(key);
|
|
1704
|
+
}
|
|
1681
1705
|
}
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1706
|
+
emit("update:selected", Array.from(set));
|
|
1707
|
+
},
|
|
1708
|
+
{ deep: true }
|
|
1709
|
+
);
|
|
1685
1710
|
vue.onMounted(() => {
|
|
1686
1711
|
let list = props.selected;
|
|
1687
1712
|
list && list.forEach((key) => {
|
|
@@ -1848,7 +1873,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
1848
1873
|
]);
|
|
1849
1874
|
}), 128))
|
|
1850
1875
|
])) : vue.createCommentVNode("v-if", true)
|
|
1851
|
-
],
|
|
1876
|
+
], 64))
|
|
1852
1877
|
])
|
|
1853
1878
|
]),
|
|
1854
1879
|
vue.createElementVNode("div", _hoisted_14, [
|
|
@@ -1908,6 +1933,18 @@ const _sfc_main = vue.defineComponent({
|
|
|
1908
1933
|
forceStatic: {
|
|
1909
1934
|
type: Boolean,
|
|
1910
1935
|
default: false
|
|
1936
|
+
},
|
|
1937
|
+
immediateFetch: {
|
|
1938
|
+
type: Boolean,
|
|
1939
|
+
default: false
|
|
1940
|
+
},
|
|
1941
|
+
showCount: {
|
|
1942
|
+
type: Boolean,
|
|
1943
|
+
default: true
|
|
1944
|
+
},
|
|
1945
|
+
unitStr: {
|
|
1946
|
+
type: String,
|
|
1947
|
+
default: "\u4EBA"
|
|
1911
1948
|
}
|
|
1912
1949
|
},
|
|
1913
1950
|
emits: ["update:visible", "update:select"],
|
|
@@ -1952,11 +1989,14 @@ const _sfc_main = vue.defineComponent({
|
|
|
1952
1989
|
return map;
|
|
1953
1990
|
},
|
|
1954
1991
|
summitSelect() {
|
|
1955
|
-
if (typeof state.selected
|
|
1992
|
+
if (["string", "number"].includes(typeof state.selected)) {
|
|
1956
1993
|
emit("update:select", [state.dataMap.get(state.selected)]);
|
|
1957
1994
|
} else if (state.selected instanceof Array) {
|
|
1958
|
-
emit(
|
|
1959
|
-
|
|
1995
|
+
emit(
|
|
1996
|
+
"update:select",
|
|
1997
|
+
state.selected.map((item) => state.dataMap.get(item))
|
|
1998
|
+
);
|
|
1999
|
+
} else ;
|
|
1960
2000
|
state.list = [];
|
|
1961
2001
|
methods.modalCancel();
|
|
1962
2002
|
}
|
|
@@ -1976,6 +2016,11 @@ const _sfc_main = vue.defineComponent({
|
|
|
1976
2016
|
return 648;
|
|
1977
2017
|
})
|
|
1978
2018
|
});
|
|
2019
|
+
vue.watch(() => props.visible, (val) => {
|
|
2020
|
+
if (val && props.immediateFetch) {
|
|
2021
|
+
methods.fetch({});
|
|
2022
|
+
}
|
|
2023
|
+
}, { immediate: true });
|
|
1979
2024
|
return {
|
|
1980
2025
|
...methods,
|
|
1981
2026
|
...vue.toRefs(state)
|
|
@@ -2024,8 +2069,10 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
2024
2069
|
"curlist-keys": _ctx.curlistKeys,
|
|
2025
2070
|
"is-tree": _ctx.multipTree,
|
|
2026
2071
|
"data-map": _ctx.dataMap,
|
|
2027
|
-
onFetchList: _ctx.fetch
|
|
2028
|
-
|
|
2072
|
+
onFetchList: _ctx.fetch,
|
|
2073
|
+
showCount: _ctx.showCount,
|
|
2074
|
+
unitStr: _ctx.unitStr
|
|
2075
|
+
}, null, 8, ["selected", "limit", "list", "curlist-keys", "is-tree", "data-map", "onFetchList", "showCount", "unitStr"]))
|
|
2029
2076
|
])
|
|
2030
2077
|
]),
|
|
2031
2078
|
_: 1
|
|
@@ -23,6 +23,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
23
23
|
type: SetConstructor;
|
|
24
24
|
default: () => Set<unknown>;
|
|
25
25
|
};
|
|
26
|
+
showCount: {
|
|
27
|
+
type: BooleanConstructor;
|
|
28
|
+
default: boolean;
|
|
29
|
+
};
|
|
30
|
+
unitStr: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
26
34
|
}, {
|
|
27
35
|
changeAllOption(): void;
|
|
28
36
|
search(): void;
|
|
@@ -32,9 +40,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
32
40
|
searchVal: import("vue").Ref<string>;
|
|
33
41
|
selectAll: import("vue").Ref<boolean>;
|
|
34
42
|
indeterminate: import("vue").Ref<boolean>;
|
|
35
|
-
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
43
|
+
emptyPic: import("vue").Ref<JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
44
|
[key: string]: any;
|
|
37
|
-
}> | null | undefined) |
|
|
45
|
+
}> | null | undefined) | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
46
|
[key: string]: any;
|
|
39
47
|
}> | null | undefined)[]>;
|
|
40
48
|
listChecked: import("vue").Ref<{}>;
|
|
@@ -65,15 +73,25 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
73
|
type: SetConstructor;
|
|
66
74
|
default: () => Set<unknown>;
|
|
67
75
|
};
|
|
76
|
+
showCount: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
unitStr: {
|
|
81
|
+
type: StringConstructor;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
68
84
|
}>> & {
|
|
69
85
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
70
86
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
71
87
|
}, {
|
|
72
|
-
selected: unknown[];
|
|
73
88
|
list: unknown[];
|
|
89
|
+
showCount: boolean;
|
|
90
|
+
selected: unknown[];
|
|
74
91
|
limit: number;
|
|
75
92
|
dataMap: Map<unknown, unknown>;
|
|
76
93
|
isTree: boolean;
|
|
77
94
|
curlistKeys: Set<unknown>;
|
|
95
|
+
unitStr: string;
|
|
78
96
|
}>;
|
|
79
97
|
export default _default;
|
|
@@ -25,7 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
26
26
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
27
27
|
}, {
|
|
28
|
-
selected: string;
|
|
29
28
|
list: unknown[];
|
|
29
|
+
selected: string;
|
|
30
30
|
}>;
|
|
31
31
|
export default _default;
|
|
@@ -27,6 +27,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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 _default: import("vue").DefineComponent<{
|
|
|
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,8 +98,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
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 default _default;
|
|
@@ -54,8 +54,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
54
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
55
55
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
}, {
|
|
57
|
-
selected: unknown[];
|
|
58
57
|
list: unknown[];
|
|
58
|
+
selected: unknown[];
|
|
59
59
|
dataMap: Map<unknown, unknown>;
|
|
60
60
|
curlistKeys: Set<unknown>;
|
|
61
61
|
}>;
|
|
@@ -38,16 +38,16 @@ function isPlainObject(o) {
|
|
|
38
38
|
return true;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
function t(){return t=Object.assign
|
|
41
|
+
function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);}return e},t.apply(this,arguments)}function r(e,t){if(null==e)return {};var r,n,i={},o=Object.keys(e);for(n=0;n<o.length;n++)t.indexOf(r=o[n])>=0||(i[r]=e[r]);return i}const n={silent:!1,logLevel:"warn"},i=["validator"],o=Object.prototype,a=o.toString,s=o.hasOwnProperty,u=/^\s*function (\w+)/;function l(e){var t;const r=null!==(t=null==e?void 0:e.type)&&void 0!==t?t:e;if(r){const e=r.toString().match(u);return e?e[1]:""}return ""}const c=isPlainObject,f=e=>e;let d=f;if("production"!==process.env.NODE_ENV){const e="undefined"!=typeof console;d=e?function(e,t=n.logLevel){!1===n.silent&&console[t](`[VueTypes warn]: ${e}`);}:f;}const p=(e,t)=>s.call(e,t),y=Number.isInteger||function(e){return "number"==typeof e&&isFinite(e)&&Math.floor(e)===e},v=Array.isArray||function(e){return "[object Array]"===a.call(e)},h=e=>"[object Function]"===a.call(e),b=e=>c(e)&&p(e,"_vueTypes_name"),g=e=>c(e)&&(p(e,"type")||["_vueTypes_name","validator","default","required"].some(t=>p(e,t)));function O(e,t){return Object.defineProperty(e.bind(t),"__original",{value:e})}function m(e,t,r=!1){let n,i=!0,o="";n=c(e)?e:{type:e};const a=b(n)?n._vueTypes_name+" - ":"";if(g(n)&&null!==n.type){if(void 0===n.type||!0===n.type)return i;if(!n.required&&void 0===t)return i;v(n.type)?(i=n.type.some(e=>!0===m(e,t,!0)),o=n.type.map(e=>l(e)).join(" or ")):(o=l(n),i="Array"===o?v(t):"Object"===o?c(t):"String"===o||"Number"===o||"Boolean"===o||"Function"===o?function(e){if(null==e)return "";const t=e.constructor.toString().match(u);return t?t[1]:""}(t)===o:t instanceof n.type);}if(!i){const e=`${a}value "${t}" should be of type "${o}"`;return !1===r?(d(e),!1):e}if(p(n,"validator")&&h(n.validator)){const e=d,o=[];if(d=e=>{o.push(e);},i=n.validator(t),d=e,!i){const e=(o.length>1?"* ":"")+o.join("\n* ");return o.length=0,!1===r?(d(e),i):e}}return i}function j(e,t){const r=Object.defineProperties(t,{_vueTypes_name:{value:e,writable:!0},isRequired:{get(){return this.required=!0,this}},def:{value(e){return void 0===e?(p(this,"default")&&delete this.default,this):h(e)||!0===m(this,e,!0)?(this.default=v(e)?()=>[...e]:c(e)?()=>Object.assign({},e):e,this):(d(`${this._vueTypes_name} - invalid default value: "${e}"`),this)}}}),{validator:n}=r;return h(n)&&(r.validator=O(n,r)),r}function _(e,t){const r=j(e,t);return Object.defineProperty(r,"validate",{value(e){return h(this.validator)&&d(`${this._vueTypes_name} - calling .validate() will overwrite the current custom validator function. Validator info:\n${JSON.stringify(this)}`),this.validator=O(e,this),this}})}function T(e,t,n){const o=function(e){const t={};return Object.getOwnPropertyNames(e).forEach(r=>{t[r]=Object.getOwnPropertyDescriptor(e,r);}),Object.defineProperties({},t)}(t);if(o._vueTypes_name=e,!c(n))return o;const{validator:a}=n,s=r(n,i);if(h(a)){let{validator:e}=o;e&&(e=null!==(l=(u=e).__original)&&void 0!==l?l:u),o.validator=O(e?function(t){return e.call(this,t)&&a.call(this,t)}:a,o);}var u,l;return Object.assign(o,s)}function $(e){return e.replace(/^(?!\s*$)/gm," ")}const w=()=>_("any",{}),P=()=>_("function",{type:Function}),x=()=>_("boolean",{type:Boolean}),E=()=>_("string",{type:String}),N=()=>_("number",{type:Number}),q=()=>_("array",{type:Array}),A=()=>_("object",{type:Object}),V=()=>j("integer",{type:Number,validator:e=>y(e)}),S=()=>j("symbol",{validator:e=>"symbol"==typeof e});function D(e,t="custom validation failed"){if("function"!=typeof e)throw new TypeError("[VueTypes error]: You must provide a function as argument");return j(e.name||"<<anonymous function>>",{type:null,validator(r){const n=e(r);return n||d(`${this._vueTypes_name} - ${t}`),n}})}function L(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument.");const t=`oneOf - value should be one of "${e.join('", "')}".`,r=e.reduce((e,t)=>{if(null!=t){const r=t.constructor;-1===e.indexOf(r)&&e.push(r);}return e},[]);return j("oneOf",{type:r.length>0?r:void 0,validator(r){const n=-1!==e.indexOf(r);return n||d(t),n}})}function F(e){if(!v(e))throw new TypeError("[VueTypes error]: You must provide an array as argument");let t=!1,r=[];for(let n=0;n<e.length;n+=1){const i=e[n];if(g(i)){if(b(i)&&"oneOf"===i._vueTypes_name&&i.type){r=r.concat(i.type);continue}if(h(i.validator)&&(t=!0),!0===i.type||!i.type){d('oneOfType - invalid usage of "true" or "null" as types.');continue}r=r.concat(i.type);}else r.push(i);}r=r.filter((e,t)=>r.indexOf(e)===t);const n=r.length>0?r:null;return j("oneOfType",t?{type:n,validator(t){const r=[],n=e.some(e=>{const n=m(b(e)&&"oneOf"===e._vueTypes_name?e.type||null:e,t,!0);return "string"==typeof n&&r.push(n),!0===n});return n||d(`oneOfType - provided value does not match any of the ${r.length} passed-in validators:\n${$(r.join("\n"))}`),n}}:{type:n})}function Y(e){return j("arrayOf",{type:Array,validator(t){let r="";const n=t.every(t=>(r=m(e,t,!0),!0===r));return n||d(`arrayOf - value validation error:\n${$(r)}`),n}})}function B(e){return j("instanceOf",{type:e})}function I(e){return j("objectOf",{type:Object,validator(t){let r="";const n=Object.keys(t).every(n=>(r=m(e,t[n],!0),!0===r));return n||d(`objectOf - value validation error:\n${$(r)}`),n}})}function J(e){const t=Object.keys(e),r=t.filter(t=>{var r;return !(null===(r=e[t])||void 0===r||!r.required)}),n=j("shape",{type:Object,validator(n){if(!c(n))return !1;const i=Object.keys(n);if(r.length>0&&r.some(e=>-1===i.indexOf(e))){const e=r.filter(e=>-1===i.indexOf(e));return d(1===e.length?`shape - required property "${e[0]}" is not defined.`:`shape - required properties "${e.join('", "')}" are not defined.`),!1}return i.every(r=>{if(-1===t.indexOf(r))return !0===this._vueTypes_isLoose||(d(`shape - shape definition does not include a "${r}" property. Allowed keys: "${t.join('", "')}".`),!1);const i=m(e[r],n[r],!0);return "string"==typeof i&&d(`shape - "${r}" property validation error:\n ${$(i)}`),!0===i})}});return Object.defineProperty(n,"_vueTypes_isLoose",{writable:!0,value:!1}),Object.defineProperty(n,"loose",{get(){return this._vueTypes_isLoose=!0,this}}),n}const M=["name","validate","getter"],R=/*#__PURE__*/(()=>{var e;return (e=class{static get any(){return w()}static get func(){return P().def(this.defaults.func)}static get bool(){return x().def(this.defaults.bool)}static get string(){return E().def(this.defaults.string)}static get number(){return N().def(this.defaults.number)}static get array(){return q().def(this.defaults.array)}static get object(){return A().def(this.defaults.object)}static get integer(){return V().def(this.defaults.integer)}static get symbol(){return S()}static get nullable(){return {type:null}}static extend(e){if(v(e))return e.forEach(e=>this.extend(e)),this;const{name:t,validate:n=!1,getter:i=!1}=e,o=r(e,M);if(p(this,t))throw new TypeError(`[VueTypes error]: Type "${t}" already defined`);const{type:a}=o;if(b(a))return delete o.type,Object.defineProperty(this,t,i?{get:()=>T(t,a,o)}:{value(...e){const r=T(t,a,o);return r.validator&&(r.validator=r.validator.bind(r,...e)),r}});let s;return s=i?{get(){const e=Object.assign({},o);return n?_(t,e):j(t,e)},enumerable:!0}:{value(...e){const r=Object.assign({},o);let i;return i=n?_(t,r):j(t,r),r.validator&&(i.validator=r.validator.bind(i,...e)),i},enumerable:!0},Object.defineProperty(this,t,s)}}).defaults={},e.sensibleDefaults=void 0,e.config=n,e.custom=D,e.oneOf=L,e.instanceOf=B,e.oneOfType=F,e.arrayOf=Y,e.objectOf=I,e.shape=J,e.utils={validate:(e,t)=>!0===m(t,e,!0),toType:(e,t,r=!1)=>r?_(e,t):j(e,t)},e})();function z(e={func:()=>{},bool:!0,string:"",number:0,array:()=>[],object:()=>({}),integer:0}){var r;return (r=class extends R{static get sensibleDefaults(){return t({},this.defaults)}static set sensibleDefaults(r){this.defaults=!1!==r?t({},!0!==r?r:e):{};}}).defaults=t({},e),r}class C extends(z()){}
|
|
42
42
|
|
|
43
43
|
const timelineProps = () => ({
|
|
44
|
-
mode:
|
|
45
|
-
labelWidth:
|
|
44
|
+
mode: C.oneOf(['left', 'right']).def('left'),
|
|
45
|
+
labelWidth: C.string.def(''),
|
|
46
46
|
});
|
|
47
47
|
const timelineItemProps = () => ({
|
|
48
|
-
color:
|
|
49
|
-
dot:
|
|
50
|
-
label:
|
|
48
|
+
color: C.oneOf(['blue', 'red', 'green', 'gray']).def('blue'),
|
|
49
|
+
dot: C.any,
|
|
50
|
+
label: C.any,
|
|
51
51
|
});
|
|
52
52
|
|
|
53
53
|
var _export_sfc = (sfc, props) => {
|