bm-admin-ui 1.2.52-alpha → 1.2.54-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/cascader/index.js +77 -77
- package/es/components/edit-form/index.js +1 -1
- package/es/components/flow-designer/index.js +1 -1
- package/es/components/form-create/index.js +23 -6
- package/es/components/staffs-selector/index.d.ts +25 -0
- package/es/components/staffs-selector/index.js +127 -43
- package/es/components/staffs-selector/src/action.d.ts +4 -0
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +11 -0
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +25 -0
- package/lib/components/cascader/index.js +77 -77
- package/lib/components/edit-form/index.js +1 -1
- package/lib/components/flow-designer/index.js +1 -1
- package/lib/components/form-create/index.js +23 -6
- package/lib/components/staffs-selector/index.d.ts +25 -0
- package/lib/components/staffs-selector/index.js +126 -42
- package/lib/components/staffs-selector/src/action.d.ts +4 -0
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +11 -0
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +25 -0
- package/package.json +34 -34
- package/types/components/staffs-selector/index.d.ts +25 -0
- package/types/components/staffs-selector/src/action.d.ts +4 -0
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +11 -0
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +25 -0
|
@@ -36,6 +36,12 @@ const selectProps = {
|
|
|
36
36
|
return Promise.resolve([]);
|
|
37
37
|
},
|
|
38
38
|
},
|
|
39
|
+
lazyload: {
|
|
40
|
+
type: Function,
|
|
41
|
+
default: () => {
|
|
42
|
+
return Promise.resolve([]);
|
|
43
|
+
},
|
|
44
|
+
},
|
|
39
45
|
select: {
|
|
40
46
|
type: Array || Object,
|
|
41
47
|
defualt: () => [],
|
|
@@ -365,10 +371,17 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
365
371
|
selected: {
|
|
366
372
|
type: Array,
|
|
367
373
|
default: () => []
|
|
374
|
+
},
|
|
375
|
+
loadData: {
|
|
376
|
+
type: Function,
|
|
377
|
+
default: () => {
|
|
378
|
+
return Promise.resolve([]);
|
|
379
|
+
}
|
|
368
380
|
}
|
|
369
381
|
},
|
|
370
382
|
emits: ["fetchList", "update:selected"],
|
|
371
383
|
setup(props, { emit }) {
|
|
384
|
+
const allListData = vue.ref([]);
|
|
372
385
|
const treeRef = vue.ref();
|
|
373
386
|
const state = vue.reactive({
|
|
374
387
|
searchVal: "",
|
|
@@ -377,51 +390,126 @@ const _sfc_main$1 = vue.defineComponent({
|
|
|
377
390
|
emptyPic: antDesignVue.Empty.PRESENTED_IMAGE_SIMPLE,
|
|
378
391
|
isFulfill: false
|
|
379
392
|
});
|
|
393
|
+
const showTree = vue.ref(true);
|
|
394
|
+
let treeTimeout = null;
|
|
380
395
|
const methods = {
|
|
381
396
|
search() {
|
|
382
397
|
let data = state.searchVal ? { searchVal: state.searchVal } : { searchVal: "" };
|
|
383
|
-
|
|
398
|
+
if (!state.searchVal) {
|
|
399
|
+
showTree.value = false;
|
|
400
|
+
if (treeTimeout)
|
|
401
|
+
clearTimeout(treeTimeout);
|
|
402
|
+
treeTimeout = setTimeout(() => {
|
|
403
|
+
showTree.value = true;
|
|
404
|
+
});
|
|
405
|
+
}
|
|
406
|
+
emit("fetchList", {
|
|
407
|
+
...data,
|
|
408
|
+
area: "department"
|
|
409
|
+
});
|
|
384
410
|
}
|
|
385
411
|
};
|
|
412
|
+
function treeDataToMap(treeData, oldMap, oldSet) {
|
|
413
|
+
const nodeMap = /* @__PURE__ */ new Map();
|
|
414
|
+
const nodeSet = /* @__PURE__ */ new Set();
|
|
415
|
+
function traverseNode(node) {
|
|
416
|
+
if (typeof node === "object" && node !== null && node["id"] !== void 0) {
|
|
417
|
+
nodeMap.set(node["id"], node);
|
|
418
|
+
nodeSet.add(node["id"]);
|
|
419
|
+
} else {
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
if (Array.isArray(node["children"])) {
|
|
423
|
+
node["children"].forEach((childNode) => traverseNode(childNode));
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
if (Array.isArray(treeData)) {
|
|
427
|
+
treeData.forEach((rootNode) => traverseNode(rootNode));
|
|
428
|
+
} else {
|
|
429
|
+
traverseNode(treeData);
|
|
430
|
+
}
|
|
431
|
+
if (oldMap) {
|
|
432
|
+
nodeMap.forEach((node, id) => {
|
|
433
|
+
oldMap.set(id, node);
|
|
434
|
+
});
|
|
435
|
+
}
|
|
436
|
+
if (oldSet) {
|
|
437
|
+
nodeSet.forEach((node, id) => {
|
|
438
|
+
oldSet.add(id);
|
|
439
|
+
});
|
|
440
|
+
}
|
|
441
|
+
return {
|
|
442
|
+
nodeMap,
|
|
443
|
+
nodeSet
|
|
444
|
+
};
|
|
445
|
+
}
|
|
386
446
|
function changeTreeCheck(checkedKeys) {
|
|
387
|
-
|
|
388
|
-
let
|
|
447
|
+
console.log("checkedKeys:", checkedKeys, allListData.value);
|
|
448
|
+
let flatMap = treeDataToMap(
|
|
449
|
+
allListData.value,
|
|
450
|
+
selectState.dataMap,
|
|
451
|
+
null
|
|
452
|
+
).nodeMap;
|
|
453
|
+
selectState.dataMap.forEach((node, id) => {
|
|
454
|
+
flatMap.set(id, node);
|
|
455
|
+
});
|
|
456
|
+
selectState.dataMap = flatMap;
|
|
457
|
+
flatMap.forEach((node, id) => {
|
|
458
|
+
selectState.dataMap.set(id, node);
|
|
459
|
+
});
|
|
460
|
+
let curlistKeys = treeDataToMap(
|
|
461
|
+
allListData.value,
|
|
462
|
+
null,
|
|
463
|
+
selectState.curlistKeys
|
|
464
|
+
).nodeSet;
|
|
389
465
|
let hadselected = new Set(selectState.multipDepartment);
|
|
390
466
|
let curselect = new Set(checkedKeys);
|
|
391
|
-
console.log(hadselected, curselect);
|
|
392
467
|
for (let key of hadselected) {
|
|
393
|
-
if (curlistKeys.has(key) && (!curselect.has(key) || curselect.has(key) && curselect.has(flatMap.get(key)["parent"]))) {
|
|
468
|
+
if (curlistKeys.has(String(key)) && (!curselect.has(String(key)) || curselect.has(String(key)) && curselect.has(flatMap.get(String(key))["parent"]))) {
|
|
394
469
|
hadselected.delete(key);
|
|
395
470
|
}
|
|
396
471
|
}
|
|
397
472
|
for (let key of curselect) {
|
|
398
|
-
let obj = flatMap.get(key);
|
|
473
|
+
let obj = flatMap.get(String(key));
|
|
399
474
|
if (obj && !curselect.has(obj["parent"])) {
|
|
400
|
-
hadselected.add(key);
|
|
475
|
+
hadselected.add(String(key));
|
|
401
476
|
}
|
|
402
477
|
}
|
|
403
|
-
let arr = Array.from(hadselected) || [];
|
|
404
|
-
if (props.limit && props.limit > 0 && arr.length > props.limit) {
|
|
405
|
-
antDesignVue.message.error("\u52FE\u9009\u540E\u5C06\u8D85\u8FC7\u4EBA\u5458\u9650\u5236");
|
|
406
|
-
return;
|
|
407
|
-
}
|
|
408
478
|
selectState.multipDepartment = Array.from(hadselected) || [];
|
|
409
|
-
console.log(selectState.multipDepartment);
|
|
479
|
+
console.log("multipDepartment:", selectState.multipDepartment);
|
|
410
480
|
}
|
|
481
|
+
const realLoadData = (treeNode) => {
|
|
482
|
+
if (!props.loadData)
|
|
483
|
+
return Promise.resolve([]);
|
|
484
|
+
return props.loadData(treeNode, list);
|
|
485
|
+
};
|
|
486
|
+
vue.watch(
|
|
487
|
+
() => list.value,
|
|
488
|
+
(newVal) => {
|
|
489
|
+
if (newVal && newVal.length) {
|
|
490
|
+
allListData.value = [...allListData.value, ...newVal];
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
);
|
|
411
494
|
return {
|
|
412
495
|
changeTreeCheck,
|
|
413
496
|
...vue.toRefs(state),
|
|
414
497
|
...vue.toRefs(selectState),
|
|
415
498
|
treeRef,
|
|
416
499
|
list,
|
|
417
|
-
...methods
|
|
500
|
+
...methods,
|
|
501
|
+
realLoadData,
|
|
502
|
+
showTree
|
|
418
503
|
};
|
|
419
504
|
}
|
|
420
505
|
});
|
|
421
506
|
const _hoisted_1$1 = { class: "multiple-selector" };
|
|
422
507
|
const _hoisted_2$1 = { class: "__selector-modal-panel" };
|
|
423
508
|
const _hoisted_3$1 = { class: "__search-panel" };
|
|
424
|
-
const _hoisted_4$1 = {
|
|
509
|
+
const _hoisted_4$1 = {
|
|
510
|
+
key: 0,
|
|
511
|
+
class: "__selector-modal-options"
|
|
512
|
+
};
|
|
425
513
|
const _hoisted_5$1 = { class: "department-option-item" };
|
|
426
514
|
const _hoisted_6$1 = {
|
|
427
515
|
key: 0,
|
|
@@ -445,29 +533,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
445
533
|
value: _ctx.searchVal,
|
|
446
534
|
"onUpdate:value": _cache[0] || (_cache[0] = ($event) => _ctx.searchVal = $event),
|
|
447
535
|
placeholder: "\u8BF7\u8F93\u5165\u90E8\u95E8\u540D\u79F0",
|
|
448
|
-
|
|
536
|
+
onInput: _ctx.search
|
|
449
537
|
}, {
|
|
450
538
|
suffix: vue.withCtx(() => [
|
|
451
539
|
vue.createVNode(_component_search_outlined, { style: { color: "#9393A3" } })
|
|
452
540
|
]),
|
|
453
541
|
_: 1
|
|
454
|
-
}, 8, ["value", "
|
|
455
|
-
vue.
|
|
542
|
+
}, 8, ["value", "onInput"]),
|
|
543
|
+
_ctx.showTree ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_4$1, [
|
|
456
544
|
vue.createVNode(_component_ATree, {
|
|
457
545
|
ref: "treeRef",
|
|
458
546
|
"checked-keys": _ctx.multipDepartment,
|
|
459
547
|
checkable: "",
|
|
460
548
|
"tree-data": _ctx.list,
|
|
549
|
+
"load-data": _ctx.realLoadData,
|
|
461
550
|
onCheck: _ctx.changeTreeCheck
|
|
462
551
|
}, {
|
|
463
|
-
title: vue.withCtx(({ title,
|
|
552
|
+
title: vue.withCtx(({ title, description }) => [
|
|
464
553
|
vue.createElementVNode("div", _hoisted_5$1, [
|
|
465
|
-
vue.createElementVNode("span", null, vue.toDisplayString(title)
|
|
554
|
+
vue.createElementVNode("span", null, vue.toDisplayString(title), 1),
|
|
466
555
|
description ? (vue.openBlock(), vue.createElementBlock("p", _hoisted_6$1, vue.toDisplayString(description), 1)) : vue.createCommentVNode("v-if", true)
|
|
467
556
|
])
|
|
468
557
|
]),
|
|
469
558
|
_: 1
|
|
470
|
-
}, 8, ["checked-keys", "tree-data", "onCheck"]),
|
|
559
|
+
}, 8, ["checked-keys", "tree-data", "load-data", "onCheck"]),
|
|
471
560
|
_ctx.list && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_7, [
|
|
472
561
|
vue.createVNode(_component_Empty, { image: _ctx.emptyPic }, {
|
|
473
562
|
description: vue.withCtx(() => [
|
|
@@ -476,7 +565,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
476
565
|
_: 1
|
|
477
566
|
}, 8, ["image"])
|
|
478
567
|
])) : vue.createCommentVNode("v-if", true)
|
|
479
|
-
])
|
|
568
|
+
])) : vue.createCommentVNode("v-if", true)
|
|
480
569
|
])
|
|
481
570
|
])
|
|
482
571
|
]);
|
|
@@ -534,26 +623,14 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
534
623
|
list.value = [];
|
|
535
624
|
selectState.searched = !!params?.searchVal;
|
|
536
625
|
let isDepartTree = props.mode === MODE.DEPARTMENT;
|
|
537
|
-
if (isDepartTree) {
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
while (queues.length) {
|
|
546
|
-
let node = queues.shift();
|
|
547
|
-
if (node["title"] && node["title"].includes(params?.searchVal || "")) {
|
|
548
|
-
result.push({ ...node });
|
|
549
|
-
}
|
|
550
|
-
if (node.children)
|
|
551
|
-
queues.push(...node.children);
|
|
552
|
-
}
|
|
553
|
-
list.value = result;
|
|
554
|
-
} else {
|
|
555
|
-
list.value = departNative.value;
|
|
556
|
-
}
|
|
626
|
+
if (params.area === "department" || isDepartTree) {
|
|
627
|
+
props.load({
|
|
628
|
+
departmentName: params.searchVal
|
|
629
|
+
}).then((data) => {
|
|
630
|
+
list.value = data;
|
|
631
|
+
departNative.value = data;
|
|
632
|
+
});
|
|
633
|
+
selectState.dataMap = flatListFunc(list.value);
|
|
557
634
|
return;
|
|
558
635
|
}
|
|
559
636
|
if (params.searchVal) {
|
|
@@ -640,6 +717,12 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
640
717
|
index > -1 && selectState.multipDepartment.splice(index, 1);
|
|
641
718
|
}
|
|
642
719
|
}
|
|
720
|
+
function onLoadData(treeNode, list2) {
|
|
721
|
+
if (props.lazyload) {
|
|
722
|
+
return props.lazyload(treeNode, list2);
|
|
723
|
+
}
|
|
724
|
+
return Promise.resolve([]);
|
|
725
|
+
}
|
|
643
726
|
vue.watch(
|
|
644
727
|
() => props.visible,
|
|
645
728
|
(val) => {
|
|
@@ -693,6 +776,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
693
776
|
selected: selected.value,
|
|
694
777
|
"onUpdate:selected": _cache[1] || (_cache[1] = ($event) => selected.value = $event),
|
|
695
778
|
limit: _ctx.limit,
|
|
779
|
+
"load-data": onLoadData,
|
|
696
780
|
onFetchList: fetch
|
|
697
781
|
}, null, 8, ["selected", "limit"])) : (vue.openBlock(), vue.createBlock(multipleCmp, {
|
|
698
782
|
key: 2,
|
|
@@ -25,6 +25,10 @@ export declare const selectProps: {
|
|
|
25
25
|
type: FunctionConstructor;
|
|
26
26
|
default: () => Promise<never[]>;
|
|
27
27
|
};
|
|
28
|
+
lazyload: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
default: () => Promise<never[]>;
|
|
31
|
+
};
|
|
28
32
|
select: {
|
|
29
33
|
type: ArrayConstructor;
|
|
30
34
|
defualt: () => never[];
|
|
@@ -7,7 +7,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: ArrayConstructor;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
|
+
loadData: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
default: () => Promise<never[]>;
|
|
13
|
+
};
|
|
10
14
|
}, {
|
|
15
|
+
realLoadData: (treeNode: any) => any;
|
|
16
|
+
showTree: import("vue").Ref<boolean>;
|
|
11
17
|
search(): void;
|
|
12
18
|
treeRef: import("vue").Ref<any>;
|
|
13
19
|
list: any;
|
|
@@ -36,10 +42,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
42
|
type: ArrayConstructor;
|
|
37
43
|
default: () => never[];
|
|
38
44
|
};
|
|
45
|
+
loadData: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
default: () => Promise<never[]>;
|
|
48
|
+
};
|
|
39
49
|
}>> & {
|
|
40
50
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
51
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
42
52
|
}, {
|
|
53
|
+
loadData: Function;
|
|
43
54
|
selected: unknown[];
|
|
44
55
|
limit: number;
|
|
45
56
|
}>;
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: FunctionConstructor;
|
|
20
20
|
default: () => Promise<never[]>;
|
|
21
21
|
};
|
|
22
|
+
lazyload: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
default: () => Promise<never[]>;
|
|
25
|
+
};
|
|
22
26
|
select: {
|
|
23
27
|
type: ArrayConstructor;
|
|
24
28
|
defualt: () => never[];
|
|
@@ -65,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
69
|
type: FunctionConstructor;
|
|
66
70
|
default: () => Promise<never[]>;
|
|
67
71
|
};
|
|
72
|
+
lazyload: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
default: () => Promise<never[]>;
|
|
75
|
+
};
|
|
68
76
|
select: {
|
|
69
77
|
type: ArrayConstructor;
|
|
70
78
|
defualt: () => never[];
|
|
@@ -109,6 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
117
|
summitSelect: () => void;
|
|
110
118
|
getOptionName: (key: any) => any;
|
|
111
119
|
deleteOptions: (key: any) => void;
|
|
120
|
+
onLoadData: (treeNode: any, list: any) => any;
|
|
112
121
|
AModal: {
|
|
113
122
|
new (...args: any[]): {
|
|
114
123
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -972,7 +981,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
972
981
|
type: ArrayConstructor;
|
|
973
982
|
default: () => never[];
|
|
974
983
|
};
|
|
984
|
+
loadData: {
|
|
985
|
+
type: FunctionConstructor;
|
|
986
|
+
default: () => Promise<never[]>;
|
|
987
|
+
};
|
|
975
988
|
}, {
|
|
989
|
+
realLoadData: (treeNode: any) => any;
|
|
990
|
+
showTree: import("vue").Ref<boolean>;
|
|
976
991
|
search(): void;
|
|
977
992
|
treeRef: import("vue").Ref<any>;
|
|
978
993
|
list: any;
|
|
@@ -1001,10 +1016,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1001
1016
|
type: ArrayConstructor;
|
|
1002
1017
|
default: () => never[];
|
|
1003
1018
|
};
|
|
1019
|
+
loadData: {
|
|
1020
|
+
type: FunctionConstructor;
|
|
1021
|
+
default: () => Promise<never[]>;
|
|
1022
|
+
};
|
|
1004
1023
|
}>> & {
|
|
1005
1024
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1006
1025
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1007
1026
|
}, {
|
|
1027
|
+
loadData: Function;
|
|
1008
1028
|
selected: unknown[];
|
|
1009
1029
|
limit: number;
|
|
1010
1030
|
}>;
|
|
@@ -1030,6 +1050,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1030
1050
|
type: FunctionConstructor;
|
|
1031
1051
|
default: () => Promise<never[]>;
|
|
1032
1052
|
};
|
|
1053
|
+
lazyload: {
|
|
1054
|
+
type: FunctionConstructor;
|
|
1055
|
+
default: () => Promise<never[]>;
|
|
1056
|
+
};
|
|
1033
1057
|
select: {
|
|
1034
1058
|
type: ArrayConstructor;
|
|
1035
1059
|
defualt: () => never[];
|
|
@@ -1067,6 +1091,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1067
1091
|
unitStr: string;
|
|
1068
1092
|
limit: number;
|
|
1069
1093
|
load: Function;
|
|
1094
|
+
lazyload: Function;
|
|
1070
1095
|
forceStatic: boolean;
|
|
1071
1096
|
immediateFetch: boolean;
|
|
1072
1097
|
}>;
|
package/package.json
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "bm-admin-ui",
|
|
3
|
-
"version": "1.2.
|
|
4
|
-
"private": false,
|
|
5
|
-
"description": "An Admin Component Library for Bm",
|
|
6
|
-
"license": "UNLICENSED",
|
|
7
|
-
"repository": {
|
|
8
|
-
"type": "git",
|
|
9
|
-
"url": "http://gitlab.admin.bluemoon.com.cn/Frontend-web/bm-admin-ui"
|
|
10
|
-
},
|
|
11
|
-
"main": "lib/index.js",
|
|
12
|
-
"module": "es/index.js",
|
|
13
|
-
"unpkg": "index.js",
|
|
14
|
-
"peerDependencies": {
|
|
15
|
-
"vue": "^3.2.31"
|
|
16
|
-
},
|
|
17
|
-
"dependencies": {
|
|
18
|
-
"@ant-design/icons-vue": "^6.1.0",
|
|
19
|
-
"@form-create/ant-design-vue": "^3.1.12",
|
|
20
|
-
"@logicflow/core": "1.1",
|
|
21
|
-
"@logicflow/extension": "1.1",
|
|
22
|
-
"ant-design-vue": "^3.2.10",
|
|
23
|
-
"bm-admin-icons": "^0.2.7",
|
|
24
|
-
"dayjs": "^1.11.4",
|
|
25
|
-
"floating-vue": "2.0.0-beta.17",
|
|
26
|
-
"lodash-es": "^4.17.21",
|
|
27
|
-
"vuedraggable": "^4.1.0",
|
|
28
|
-
"vxe-table": "4.2.3",
|
|
29
|
-
"xe-utils": "3.5.4"
|
|
30
|
-
},
|
|
31
|
-
"sideEffects": [
|
|
32
|
-
"theme-chalk/*.css"
|
|
33
|
-
]
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "bm-admin-ui",
|
|
3
|
+
"version": "1.2.54-alpha",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "An Admin Component Library for Bm",
|
|
6
|
+
"license": "UNLICENSED",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "http://gitlab.admin.bluemoon.com.cn/Frontend-web/bm-admin-ui"
|
|
10
|
+
},
|
|
11
|
+
"main": "lib/index.js",
|
|
12
|
+
"module": "es/index.js",
|
|
13
|
+
"unpkg": "index.js",
|
|
14
|
+
"peerDependencies": {
|
|
15
|
+
"vue": "^3.2.31"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"@ant-design/icons-vue": "^6.1.0",
|
|
19
|
+
"@form-create/ant-design-vue": "^3.1.12",
|
|
20
|
+
"@logicflow/core": "1.1",
|
|
21
|
+
"@logicflow/extension": "1.1",
|
|
22
|
+
"ant-design-vue": "^3.2.10",
|
|
23
|
+
"bm-admin-icons": "^0.2.7",
|
|
24
|
+
"dayjs": "^1.11.4",
|
|
25
|
+
"floating-vue": "2.0.0-beta.17",
|
|
26
|
+
"lodash-es": "^4.17.21",
|
|
27
|
+
"vuedraggable": "^4.1.0",
|
|
28
|
+
"vxe-table": "4.2.3",
|
|
29
|
+
"xe-utils": "3.5.4"
|
|
30
|
+
},
|
|
31
|
+
"sideEffects": [
|
|
32
|
+
"theme-chalk/*.css"
|
|
33
|
+
]
|
|
34
|
+
}
|
|
@@ -19,6 +19,10 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
19
19
|
type: FunctionConstructor;
|
|
20
20
|
default: () => Promise<never[]>;
|
|
21
21
|
};
|
|
22
|
+
lazyload: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
default: () => Promise<never[]>;
|
|
25
|
+
};
|
|
22
26
|
select: {
|
|
23
27
|
type: ArrayConstructor;
|
|
24
28
|
defualt: () => never[];
|
|
@@ -65,6 +69,10 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
65
69
|
type: FunctionConstructor;
|
|
66
70
|
default: () => Promise<never[]>;
|
|
67
71
|
};
|
|
72
|
+
lazyload: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
default: () => Promise<never[]>;
|
|
75
|
+
};
|
|
68
76
|
select: {
|
|
69
77
|
type: ArrayConstructor;
|
|
70
78
|
defualt: () => never[];
|
|
@@ -109,6 +117,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
109
117
|
summitSelect: () => void;
|
|
110
118
|
getOptionName: (key: any) => any;
|
|
111
119
|
deleteOptions: (key: any) => void;
|
|
120
|
+
onLoadData: (treeNode: any, list: any) => any;
|
|
112
121
|
AModal: {
|
|
113
122
|
new (...args: any[]): {
|
|
114
123
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -972,7 +981,13 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
972
981
|
type: ArrayConstructor;
|
|
973
982
|
default: () => never[];
|
|
974
983
|
};
|
|
984
|
+
loadData: {
|
|
985
|
+
type: FunctionConstructor;
|
|
986
|
+
default: () => Promise<never[]>;
|
|
987
|
+
};
|
|
975
988
|
}, {
|
|
989
|
+
realLoadData: (treeNode: any) => any;
|
|
990
|
+
showTree: import("vue").Ref<boolean>;
|
|
976
991
|
search(): void;
|
|
977
992
|
treeRef: import("vue").Ref<any>;
|
|
978
993
|
list: any;
|
|
@@ -1001,10 +1016,15 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1001
1016
|
type: ArrayConstructor;
|
|
1002
1017
|
default: () => never[];
|
|
1003
1018
|
};
|
|
1019
|
+
loadData: {
|
|
1020
|
+
type: FunctionConstructor;
|
|
1021
|
+
default: () => Promise<never[]>;
|
|
1022
|
+
};
|
|
1004
1023
|
}>> & {
|
|
1005
1024
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1006
1025
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1007
1026
|
}, {
|
|
1027
|
+
loadData: Function;
|
|
1008
1028
|
selected: unknown[];
|
|
1009
1029
|
limit: number;
|
|
1010
1030
|
}>;
|
|
@@ -1030,6 +1050,10 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1030
1050
|
type: FunctionConstructor;
|
|
1031
1051
|
default: () => Promise<never[]>;
|
|
1032
1052
|
};
|
|
1053
|
+
lazyload: {
|
|
1054
|
+
type: FunctionConstructor;
|
|
1055
|
+
default: () => Promise<never[]>;
|
|
1056
|
+
};
|
|
1033
1057
|
select: {
|
|
1034
1058
|
type: ArrayConstructor;
|
|
1035
1059
|
defualt: () => never[];
|
|
@@ -1067,6 +1091,7 @@ declare const BmStaffsSelector: import("bm-admin-ui/es/utils/with-install").SFCW
|
|
|
1067
1091
|
unitStr: string;
|
|
1068
1092
|
limit: number;
|
|
1069
1093
|
load: Function;
|
|
1094
|
+
lazyload: Function;
|
|
1070
1095
|
forceStatic: boolean;
|
|
1071
1096
|
immediateFetch: boolean;
|
|
1072
1097
|
}>>;
|
|
@@ -25,6 +25,10 @@ export declare const selectProps: {
|
|
|
25
25
|
type: FunctionConstructor;
|
|
26
26
|
default: () => Promise<never[]>;
|
|
27
27
|
};
|
|
28
|
+
lazyload: {
|
|
29
|
+
type: FunctionConstructor;
|
|
30
|
+
default: () => Promise<never[]>;
|
|
31
|
+
};
|
|
28
32
|
select: {
|
|
29
33
|
type: ArrayConstructor;
|
|
30
34
|
defualt: () => never[];
|
|
@@ -7,7 +7,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: ArrayConstructor;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
|
+
loadData: {
|
|
11
|
+
type: FunctionConstructor;
|
|
12
|
+
default: () => Promise<never[]>;
|
|
13
|
+
};
|
|
10
14
|
}, {
|
|
15
|
+
realLoadData: (treeNode: any) => any;
|
|
16
|
+
showTree: import("vue").Ref<boolean>;
|
|
11
17
|
search(): void;
|
|
12
18
|
treeRef: import("vue").Ref<any>;
|
|
13
19
|
list: any;
|
|
@@ -36,10 +42,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
42
|
type: ArrayConstructor;
|
|
37
43
|
default: () => never[];
|
|
38
44
|
};
|
|
45
|
+
loadData: {
|
|
46
|
+
type: FunctionConstructor;
|
|
47
|
+
default: () => Promise<never[]>;
|
|
48
|
+
};
|
|
39
49
|
}>> & {
|
|
40
50
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
41
51
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
42
52
|
}, {
|
|
53
|
+
loadData: Function;
|
|
43
54
|
selected: unknown[];
|
|
44
55
|
limit: number;
|
|
45
56
|
}>;
|
|
@@ -19,6 +19,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
19
19
|
type: FunctionConstructor;
|
|
20
20
|
default: () => Promise<never[]>;
|
|
21
21
|
};
|
|
22
|
+
lazyload: {
|
|
23
|
+
type: FunctionConstructor;
|
|
24
|
+
default: () => Promise<never[]>;
|
|
25
|
+
};
|
|
22
26
|
select: {
|
|
23
27
|
type: ArrayConstructor;
|
|
24
28
|
defualt: () => never[];
|
|
@@ -65,6 +69,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
65
69
|
type: FunctionConstructor;
|
|
66
70
|
default: () => Promise<never[]>;
|
|
67
71
|
};
|
|
72
|
+
lazyload: {
|
|
73
|
+
type: FunctionConstructor;
|
|
74
|
+
default: () => Promise<never[]>;
|
|
75
|
+
};
|
|
68
76
|
select: {
|
|
69
77
|
type: ArrayConstructor;
|
|
70
78
|
defualt: () => never[];
|
|
@@ -109,6 +117,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
109
117
|
summitSelect: () => void;
|
|
110
118
|
getOptionName: (key: any) => any;
|
|
111
119
|
deleteOptions: (key: any) => void;
|
|
120
|
+
onLoadData: (treeNode: any, list: any) => any;
|
|
112
121
|
AModal: {
|
|
113
122
|
new (...args: any[]): {
|
|
114
123
|
$: import("vue").ComponentInternalInstance;
|
|
@@ -972,7 +981,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
972
981
|
type: ArrayConstructor;
|
|
973
982
|
default: () => never[];
|
|
974
983
|
};
|
|
984
|
+
loadData: {
|
|
985
|
+
type: FunctionConstructor;
|
|
986
|
+
default: () => Promise<never[]>;
|
|
987
|
+
};
|
|
975
988
|
}, {
|
|
989
|
+
realLoadData: (treeNode: any) => any;
|
|
990
|
+
showTree: import("vue").Ref<boolean>;
|
|
976
991
|
search(): void;
|
|
977
992
|
treeRef: import("vue").Ref<any>;
|
|
978
993
|
list: any;
|
|
@@ -1001,10 +1016,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1001
1016
|
type: ArrayConstructor;
|
|
1002
1017
|
default: () => never[];
|
|
1003
1018
|
};
|
|
1019
|
+
loadData: {
|
|
1020
|
+
type: FunctionConstructor;
|
|
1021
|
+
default: () => Promise<never[]>;
|
|
1022
|
+
};
|
|
1004
1023
|
}>> & {
|
|
1005
1024
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1006
1025
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1007
1026
|
}, {
|
|
1027
|
+
loadData: Function;
|
|
1008
1028
|
selected: unknown[];
|
|
1009
1029
|
limit: number;
|
|
1010
1030
|
}>;
|
|
@@ -1030,6 +1050,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1030
1050
|
type: FunctionConstructor;
|
|
1031
1051
|
default: () => Promise<never[]>;
|
|
1032
1052
|
};
|
|
1053
|
+
lazyload: {
|
|
1054
|
+
type: FunctionConstructor;
|
|
1055
|
+
default: () => Promise<never[]>;
|
|
1056
|
+
};
|
|
1033
1057
|
select: {
|
|
1034
1058
|
type: ArrayConstructor;
|
|
1035
1059
|
defualt: () => never[];
|
|
@@ -1067,6 +1091,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1067
1091
|
unitStr: string;
|
|
1068
1092
|
limit: number;
|
|
1069
1093
|
load: Function;
|
|
1094
|
+
lazyload: Function;
|
|
1070
1095
|
forceStatic: boolean;
|
|
1071
1096
|
immediateFetch: boolean;
|
|
1072
1097
|
}>;
|