iv-npm 1.1.6 → 1.1.7
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/package.json +1 -1
- package/packages/ui/dist/business-ui/component/IVMrpLineDropdown.d.ts +11 -1
- package/packages/ui/dist/business-ui/component/IVMrpOrgDropdown.d.ts +15 -1
- package/packages/ui/dist/business-ui/component/IVMrpProdBaseDropdown.d.ts +11 -1
- package/packages/ui/dist/business-ui/component/IVMrpSetofbookDropdown.d.ts +26 -1
- package/packages/ui/dist/index.cjs.js +35 -58
- package/packages/ui/dist/index.esm.js +35 -58
- package/packages/ui/dist/index.umd.js +35 -58
- package/packages/ui/dist/index.umd.js.map +1 -1
package/package.json
CHANGED
|
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
20
24
|
};
|
|
21
25
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
26
|
[key: string]: any;
|
|
@@ -36,8 +40,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
fieldNames: {
|
|
37
41
|
type: null;
|
|
38
42
|
required: false;
|
|
43
|
+
default: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
39
47
|
};
|
|
40
48
|
}>> & {
|
|
41
49
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
43
53
|
export default _default;
|
|
@@ -17,6 +17,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
replaceFields: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
20
26
|
};
|
|
21
27
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
28
|
[key: string]: any;
|
|
@@ -36,8 +42,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
42
|
replaceFields: {
|
|
37
43
|
type: null;
|
|
38
44
|
required: false;
|
|
45
|
+
default: {
|
|
46
|
+
children: string;
|
|
47
|
+
label: string;
|
|
48
|
+
key: string;
|
|
49
|
+
value: string;
|
|
50
|
+
};
|
|
39
51
|
};
|
|
40
52
|
}>> & {
|
|
41
53
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
54
|
+
}, {
|
|
55
|
+
replaceFields: any;
|
|
56
|
+
}>;
|
|
43
57
|
export default _default;
|
|
@@ -17,6 +17,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
fieldNames: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: {
|
|
21
|
+
label: string;
|
|
22
|
+
value: string;
|
|
23
|
+
};
|
|
20
24
|
};
|
|
21
25
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
26
|
[key: string]: any;
|
|
@@ -36,8 +40,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
40
|
fieldNames: {
|
|
37
41
|
type: null;
|
|
38
42
|
required: false;
|
|
43
|
+
default: {
|
|
44
|
+
label: string;
|
|
45
|
+
value: string;
|
|
46
|
+
};
|
|
39
47
|
};
|
|
40
48
|
}>> & {
|
|
41
49
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
50
|
+
}, {
|
|
51
|
+
fieldNames: any;
|
|
52
|
+
}>;
|
|
43
53
|
export default _default;
|
|
@@ -17,6 +17,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
17
17
|
replaceFields: {
|
|
18
18
|
type: null;
|
|
19
19
|
required: false;
|
|
20
|
+
default: {
|
|
21
|
+
children: string;
|
|
22
|
+
label: string;
|
|
23
|
+
key: string;
|
|
24
|
+
value: string;
|
|
25
|
+
};
|
|
26
|
+
};
|
|
27
|
+
multiple: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
required: false;
|
|
30
|
+
default: boolean;
|
|
20
31
|
};
|
|
21
32
|
}, (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
33
|
[key: string]: any;
|
|
@@ -36,8 +47,22 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
36
47
|
replaceFields: {
|
|
37
48
|
type: null;
|
|
38
49
|
required: false;
|
|
50
|
+
default: {
|
|
51
|
+
children: string;
|
|
52
|
+
label: string;
|
|
53
|
+
key: string;
|
|
54
|
+
value: string;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
57
|
+
multiple: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
required: false;
|
|
60
|
+
default: boolean;
|
|
39
61
|
};
|
|
40
62
|
}>> & {
|
|
41
63
|
"onUpdate:value"?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, {
|
|
64
|
+
}, {
|
|
65
|
+
replaceFields: any;
|
|
66
|
+
multiple: boolean;
|
|
67
|
+
}>;
|
|
43
68
|
export default _default;
|
|
@@ -628,15 +628,18 @@ var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
|
628
628
|
},
|
|
629
629
|
replaceFields: {
|
|
630
630
|
type: null,
|
|
631
|
-
required: false
|
|
631
|
+
required: false,
|
|
632
|
+
"default": {
|
|
633
|
+
children: "children",
|
|
634
|
+
label: "displayName",
|
|
635
|
+
key: "id",
|
|
636
|
+
value: "id"
|
|
637
|
+
}
|
|
632
638
|
}
|
|
633
639
|
},
|
|
634
640
|
emits: ["update:value"],
|
|
635
641
|
setup: function setup(__props, _ref) {
|
|
636
642
|
var emit = _ref.emit;
|
|
637
|
-
|
|
638
|
-
var _a;
|
|
639
|
-
|
|
640
643
|
var props = __props;
|
|
641
644
|
/**
|
|
642
645
|
* 获取数据-------------------------------------
|
|
@@ -679,17 +682,7 @@ var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
|
679
682
|
return _ref2.apply(this, arguments);
|
|
680
683
|
};
|
|
681
684
|
}();
|
|
682
|
-
/**
|
|
683
|
-
* 默认参数-------------------------------------
|
|
684
|
-
* */
|
|
685
|
-
|
|
686
685
|
|
|
687
|
-
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
688
|
-
children: "children",
|
|
689
|
-
label: "displayName",
|
|
690
|
-
key: "id",
|
|
691
|
-
value: "id"
|
|
692
|
-
});
|
|
693
686
|
var inputV = vue.computed({
|
|
694
687
|
get: function get() {
|
|
695
688
|
return props.value;
|
|
@@ -755,7 +748,7 @@ var script$3 = /*#__PURE__*/vue.defineComponent({
|
|
|
755
748
|
style: {
|
|
756
749
|
"width": "300px"
|
|
757
750
|
},
|
|
758
|
-
replaceFields: replaceFields
|
|
751
|
+
replaceFields: __props.replaceFields
|
|
759
752
|
}, null, 8
|
|
760
753
|
/* PROPS */
|
|
761
754
|
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
@@ -796,15 +789,16 @@ var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
|
796
789
|
},
|
|
797
790
|
fieldNames: {
|
|
798
791
|
type: null,
|
|
799
|
-
required: false
|
|
792
|
+
required: false,
|
|
793
|
+
"default": {
|
|
794
|
+
label: "name",
|
|
795
|
+
value: "id"
|
|
796
|
+
}
|
|
800
797
|
}
|
|
801
798
|
},
|
|
802
799
|
emits: ["update:value"],
|
|
803
800
|
setup: function setup(__props, _ref) {
|
|
804
801
|
var emit = _ref.emit;
|
|
805
|
-
|
|
806
|
-
var _a;
|
|
807
|
-
|
|
808
802
|
var props = __props;
|
|
809
803
|
/**
|
|
810
804
|
* 获取数据-------------------------------------
|
|
@@ -843,15 +837,7 @@ var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
|
843
837
|
return _ref2.apply(this, arguments);
|
|
844
838
|
};
|
|
845
839
|
}();
|
|
846
|
-
/**
|
|
847
|
-
* 默认参数-------------------------------------
|
|
848
|
-
* */
|
|
849
840
|
|
|
850
|
-
|
|
851
|
-
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
852
|
-
label: "name",
|
|
853
|
-
value: "id"
|
|
854
|
-
});
|
|
855
841
|
var inputV = vue.computed({
|
|
856
842
|
get: function get() {
|
|
857
843
|
return props.value;
|
|
@@ -917,7 +903,7 @@ var script$2 = /*#__PURE__*/vue.defineComponent({
|
|
|
917
903
|
},
|
|
918
904
|
placeholder: "请选择",
|
|
919
905
|
options: dataV.value,
|
|
920
|
-
fieldNames: fieldNames
|
|
906
|
+
fieldNames: __props.fieldNames
|
|
921
907
|
}, null, 8
|
|
922
908
|
/* PROPS */
|
|
923
909
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -958,15 +944,16 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
|
958
944
|
},
|
|
959
945
|
fieldNames: {
|
|
960
946
|
type: null,
|
|
961
|
-
required: false
|
|
947
|
+
required: false,
|
|
948
|
+
"default": {
|
|
949
|
+
label: "displayName",
|
|
950
|
+
value: "id"
|
|
951
|
+
}
|
|
962
952
|
}
|
|
963
953
|
},
|
|
964
954
|
emits: ["update:value"],
|
|
965
955
|
setup: function setup(__props, _ref) {
|
|
966
956
|
var emit = _ref.emit;
|
|
967
|
-
|
|
968
|
-
var _a;
|
|
969
|
-
|
|
970
957
|
var props = __props;
|
|
971
958
|
/**
|
|
972
959
|
* 获取数据-------------------------------------
|
|
@@ -1009,15 +996,7 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
|
1009
996
|
return _ref2.apply(this, arguments);
|
|
1010
997
|
};
|
|
1011
998
|
}();
|
|
1012
|
-
/**
|
|
1013
|
-
* 默认参数-------------------------------------
|
|
1014
|
-
* */
|
|
1015
|
-
|
|
1016
999
|
|
|
1017
|
-
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1018
|
-
label: "displayName",
|
|
1019
|
-
value: "id"
|
|
1020
|
-
});
|
|
1021
1000
|
var inputV = vue.computed({
|
|
1022
1001
|
get: function get() {
|
|
1023
1002
|
return props.value;
|
|
@@ -1083,7 +1062,7 @@ var script$1 = /*#__PURE__*/vue.defineComponent({
|
|
|
1083
1062
|
},
|
|
1084
1063
|
placeholder: "请选择",
|
|
1085
1064
|
options: dataV.value,
|
|
1086
|
-
fieldNames: fieldNames
|
|
1065
|
+
fieldNames: __props.fieldNames
|
|
1087
1066
|
}, null, 8
|
|
1088
1067
|
/* PROPS */
|
|
1089
1068
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -1124,15 +1103,23 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1124
1103
|
},
|
|
1125
1104
|
replaceFields: {
|
|
1126
1105
|
type: null,
|
|
1127
|
-
required: false
|
|
1106
|
+
required: false,
|
|
1107
|
+
"default": {
|
|
1108
|
+
children: "children",
|
|
1109
|
+
label: "name",
|
|
1110
|
+
key: "id",
|
|
1111
|
+
value: "id"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
multiple: {
|
|
1115
|
+
type: Boolean,
|
|
1116
|
+
required: false,
|
|
1117
|
+
"default": true
|
|
1128
1118
|
}
|
|
1129
1119
|
},
|
|
1130
1120
|
emits: ["update:value"],
|
|
1131
1121
|
setup: function setup(__props, _ref) {
|
|
1132
1122
|
var emit = _ref.emit;
|
|
1133
|
-
|
|
1134
|
-
var _a;
|
|
1135
|
-
|
|
1136
1123
|
var props = __props;
|
|
1137
1124
|
/**
|
|
1138
1125
|
* 获取数据-------------------------------------
|
|
@@ -1175,17 +1162,7 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1175
1162
|
return _ref2.apply(this, arguments);
|
|
1176
1163
|
};
|
|
1177
1164
|
}();
|
|
1178
|
-
/**
|
|
1179
|
-
* 默认参数-------------------------------------
|
|
1180
|
-
* */
|
|
1181
|
-
|
|
1182
1165
|
|
|
1183
|
-
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1184
|
-
children: "children",
|
|
1185
|
-
label: "name",
|
|
1186
|
-
key: "id",
|
|
1187
|
-
value: "id"
|
|
1188
|
-
});
|
|
1189
1166
|
var inputV = vue.computed({
|
|
1190
1167
|
get: function get() {
|
|
1191
1168
|
return props.value;
|
|
@@ -1250,15 +1227,15 @@ var script = /*#__PURE__*/vue.defineComponent({
|
|
|
1250
1227
|
},
|
|
1251
1228
|
placeholder: "请选择",
|
|
1252
1229
|
showArrow: "",
|
|
1253
|
-
multiple:
|
|
1230
|
+
multiple: __props.multiple,
|
|
1254
1231
|
treeDefaultExpandAll: "",
|
|
1255
1232
|
style: {
|
|
1256
1233
|
"width": "300px"
|
|
1257
1234
|
},
|
|
1258
|
-
replaceFields: replaceFields
|
|
1235
|
+
replaceFields: __props.replaceFields
|
|
1259
1236
|
}, null, 8
|
|
1260
1237
|
/* PROPS */
|
|
1261
|
-
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1238
|
+
, ["value", "tree-data", "getPopupContainer", "multiple", "replaceFields"])];
|
|
1262
1239
|
}),
|
|
1263
1240
|
_: 1
|
|
1264
1241
|
/* STABLE */
|
|
@@ -624,15 +624,18 @@ var script$3 = /*#__PURE__*/defineComponent({
|
|
|
624
624
|
},
|
|
625
625
|
replaceFields: {
|
|
626
626
|
type: null,
|
|
627
|
-
required: false
|
|
627
|
+
required: false,
|
|
628
|
+
"default": {
|
|
629
|
+
children: "children",
|
|
630
|
+
label: "displayName",
|
|
631
|
+
key: "id",
|
|
632
|
+
value: "id"
|
|
633
|
+
}
|
|
628
634
|
}
|
|
629
635
|
},
|
|
630
636
|
emits: ["update:value"],
|
|
631
637
|
setup: function setup(__props, _ref) {
|
|
632
638
|
var emit = _ref.emit;
|
|
633
|
-
|
|
634
|
-
var _a;
|
|
635
|
-
|
|
636
639
|
var props = __props;
|
|
637
640
|
/**
|
|
638
641
|
* 获取数据-------------------------------------
|
|
@@ -675,17 +678,7 @@ var script$3 = /*#__PURE__*/defineComponent({
|
|
|
675
678
|
return _ref2.apply(this, arguments);
|
|
676
679
|
};
|
|
677
680
|
}();
|
|
678
|
-
/**
|
|
679
|
-
* 默认参数-------------------------------------
|
|
680
|
-
* */
|
|
681
|
-
|
|
682
681
|
|
|
683
|
-
var replaceFields = ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
684
|
-
children: "children",
|
|
685
|
-
label: "displayName",
|
|
686
|
-
key: "id",
|
|
687
|
-
value: "id"
|
|
688
|
-
});
|
|
689
682
|
var inputV = computed({
|
|
690
683
|
get: function get() {
|
|
691
684
|
return props.value;
|
|
@@ -751,7 +744,7 @@ var script$3 = /*#__PURE__*/defineComponent({
|
|
|
751
744
|
style: {
|
|
752
745
|
"width": "300px"
|
|
753
746
|
},
|
|
754
|
-
replaceFields: replaceFields
|
|
747
|
+
replaceFields: __props.replaceFields
|
|
755
748
|
}, null, 8
|
|
756
749
|
/* PROPS */
|
|
757
750
|
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
@@ -792,15 +785,16 @@ var script$2 = /*#__PURE__*/defineComponent({
|
|
|
792
785
|
},
|
|
793
786
|
fieldNames: {
|
|
794
787
|
type: null,
|
|
795
|
-
required: false
|
|
788
|
+
required: false,
|
|
789
|
+
"default": {
|
|
790
|
+
label: "name",
|
|
791
|
+
value: "id"
|
|
792
|
+
}
|
|
796
793
|
}
|
|
797
794
|
},
|
|
798
795
|
emits: ["update:value"],
|
|
799
796
|
setup: function setup(__props, _ref) {
|
|
800
797
|
var emit = _ref.emit;
|
|
801
|
-
|
|
802
|
-
var _a;
|
|
803
|
-
|
|
804
798
|
var props = __props;
|
|
805
799
|
/**
|
|
806
800
|
* 获取数据-------------------------------------
|
|
@@ -839,15 +833,7 @@ var script$2 = /*#__PURE__*/defineComponent({
|
|
|
839
833
|
return _ref2.apply(this, arguments);
|
|
840
834
|
};
|
|
841
835
|
}();
|
|
842
|
-
/**
|
|
843
|
-
* 默认参数-------------------------------------
|
|
844
|
-
* */
|
|
845
836
|
|
|
846
|
-
|
|
847
|
-
var fieldNames = ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
848
|
-
label: "name",
|
|
849
|
-
value: "id"
|
|
850
|
-
});
|
|
851
837
|
var inputV = computed({
|
|
852
838
|
get: function get() {
|
|
853
839
|
return props.value;
|
|
@@ -913,7 +899,7 @@ var script$2 = /*#__PURE__*/defineComponent({
|
|
|
913
899
|
},
|
|
914
900
|
placeholder: "请选择",
|
|
915
901
|
options: dataV.value,
|
|
916
|
-
fieldNames: fieldNames
|
|
902
|
+
fieldNames: __props.fieldNames
|
|
917
903
|
}, null, 8
|
|
918
904
|
/* PROPS */
|
|
919
905
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -954,15 +940,16 @@ var script$1 = /*#__PURE__*/defineComponent({
|
|
|
954
940
|
},
|
|
955
941
|
fieldNames: {
|
|
956
942
|
type: null,
|
|
957
|
-
required: false
|
|
943
|
+
required: false,
|
|
944
|
+
"default": {
|
|
945
|
+
label: "displayName",
|
|
946
|
+
value: "id"
|
|
947
|
+
}
|
|
958
948
|
}
|
|
959
949
|
},
|
|
960
950
|
emits: ["update:value"],
|
|
961
951
|
setup: function setup(__props, _ref) {
|
|
962
952
|
var emit = _ref.emit;
|
|
963
|
-
|
|
964
|
-
var _a;
|
|
965
|
-
|
|
966
953
|
var props = __props;
|
|
967
954
|
/**
|
|
968
955
|
* 获取数据-------------------------------------
|
|
@@ -1005,15 +992,7 @@ var script$1 = /*#__PURE__*/defineComponent({
|
|
|
1005
992
|
return _ref2.apply(this, arguments);
|
|
1006
993
|
};
|
|
1007
994
|
}();
|
|
1008
|
-
/**
|
|
1009
|
-
* 默认参数-------------------------------------
|
|
1010
|
-
* */
|
|
1011
|
-
|
|
1012
995
|
|
|
1013
|
-
var fieldNames = ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1014
|
-
label: "displayName",
|
|
1015
|
-
value: "id"
|
|
1016
|
-
});
|
|
1017
996
|
var inputV = computed({
|
|
1018
997
|
get: function get() {
|
|
1019
998
|
return props.value;
|
|
@@ -1079,7 +1058,7 @@ var script$1 = /*#__PURE__*/defineComponent({
|
|
|
1079
1058
|
},
|
|
1080
1059
|
placeholder: "请选择",
|
|
1081
1060
|
options: dataV.value,
|
|
1082
|
-
fieldNames: fieldNames
|
|
1061
|
+
fieldNames: __props.fieldNames
|
|
1083
1062
|
}, null, 8
|
|
1084
1063
|
/* PROPS */
|
|
1085
1064
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -1120,15 +1099,23 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1120
1099
|
},
|
|
1121
1100
|
replaceFields: {
|
|
1122
1101
|
type: null,
|
|
1123
|
-
required: false
|
|
1102
|
+
required: false,
|
|
1103
|
+
"default": {
|
|
1104
|
+
children: "children",
|
|
1105
|
+
label: "name",
|
|
1106
|
+
key: "id",
|
|
1107
|
+
value: "id"
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
multiple: {
|
|
1111
|
+
type: Boolean,
|
|
1112
|
+
required: false,
|
|
1113
|
+
"default": true
|
|
1124
1114
|
}
|
|
1125
1115
|
},
|
|
1126
1116
|
emits: ["update:value"],
|
|
1127
1117
|
setup: function setup(__props, _ref) {
|
|
1128
1118
|
var emit = _ref.emit;
|
|
1129
|
-
|
|
1130
|
-
var _a;
|
|
1131
|
-
|
|
1132
1119
|
var props = __props;
|
|
1133
1120
|
/**
|
|
1134
1121
|
* 获取数据-------------------------------------
|
|
@@ -1171,17 +1158,7 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1171
1158
|
return _ref2.apply(this, arguments);
|
|
1172
1159
|
};
|
|
1173
1160
|
}();
|
|
1174
|
-
/**
|
|
1175
|
-
* 默认参数-------------------------------------
|
|
1176
|
-
* */
|
|
1177
|
-
|
|
1178
1161
|
|
|
1179
|
-
var replaceFields = ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1180
|
-
children: "children",
|
|
1181
|
-
label: "name",
|
|
1182
|
-
key: "id",
|
|
1183
|
-
value: "id"
|
|
1184
|
-
});
|
|
1185
1162
|
var inputV = computed({
|
|
1186
1163
|
get: function get() {
|
|
1187
1164
|
return props.value;
|
|
@@ -1246,15 +1223,15 @@ var script = /*#__PURE__*/defineComponent({
|
|
|
1246
1223
|
},
|
|
1247
1224
|
placeholder: "请选择",
|
|
1248
1225
|
showArrow: "",
|
|
1249
|
-
multiple:
|
|
1226
|
+
multiple: __props.multiple,
|
|
1250
1227
|
treeDefaultExpandAll: "",
|
|
1251
1228
|
style: {
|
|
1252
1229
|
"width": "300px"
|
|
1253
1230
|
},
|
|
1254
|
-
replaceFields: replaceFields
|
|
1231
|
+
replaceFields: __props.replaceFields
|
|
1255
1232
|
}, null, 8
|
|
1256
1233
|
/* PROPS */
|
|
1257
|
-
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1234
|
+
, ["value", "tree-data", "getPopupContainer", "multiple", "replaceFields"])];
|
|
1258
1235
|
}),
|
|
1259
1236
|
_: 1
|
|
1260
1237
|
/* STABLE */
|
|
@@ -628,15 +628,18 @@
|
|
|
628
628
|
},
|
|
629
629
|
replaceFields: {
|
|
630
630
|
type: null,
|
|
631
|
-
required: false
|
|
631
|
+
required: false,
|
|
632
|
+
"default": {
|
|
633
|
+
children: "children",
|
|
634
|
+
label: "displayName",
|
|
635
|
+
key: "id",
|
|
636
|
+
value: "id"
|
|
637
|
+
}
|
|
632
638
|
}
|
|
633
639
|
},
|
|
634
640
|
emits: ["update:value"],
|
|
635
641
|
setup: function setup(__props, _ref) {
|
|
636
642
|
var emit = _ref.emit;
|
|
637
|
-
|
|
638
|
-
var _a;
|
|
639
|
-
|
|
640
643
|
var props = __props;
|
|
641
644
|
/**
|
|
642
645
|
* 获取数据-------------------------------------
|
|
@@ -679,17 +682,7 @@
|
|
|
679
682
|
return _ref2.apply(this, arguments);
|
|
680
683
|
};
|
|
681
684
|
}();
|
|
682
|
-
/**
|
|
683
|
-
* 默认参数-------------------------------------
|
|
684
|
-
* */
|
|
685
|
-
|
|
686
685
|
|
|
687
|
-
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
688
|
-
children: "children",
|
|
689
|
-
label: "displayName",
|
|
690
|
-
key: "id",
|
|
691
|
-
value: "id"
|
|
692
|
-
});
|
|
693
686
|
var inputV = vue.computed({
|
|
694
687
|
get: function get() {
|
|
695
688
|
return props.value;
|
|
@@ -755,7 +748,7 @@
|
|
|
755
748
|
style: {
|
|
756
749
|
"width": "300px"
|
|
757
750
|
},
|
|
758
|
-
replaceFields: replaceFields
|
|
751
|
+
replaceFields: __props.replaceFields
|
|
759
752
|
}, null, 8
|
|
760
753
|
/* PROPS */
|
|
761
754
|
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
@@ -796,15 +789,16 @@
|
|
|
796
789
|
},
|
|
797
790
|
fieldNames: {
|
|
798
791
|
type: null,
|
|
799
|
-
required: false
|
|
792
|
+
required: false,
|
|
793
|
+
"default": {
|
|
794
|
+
label: "name",
|
|
795
|
+
value: "id"
|
|
796
|
+
}
|
|
800
797
|
}
|
|
801
798
|
},
|
|
802
799
|
emits: ["update:value"],
|
|
803
800
|
setup: function setup(__props, _ref) {
|
|
804
801
|
var emit = _ref.emit;
|
|
805
|
-
|
|
806
|
-
var _a;
|
|
807
|
-
|
|
808
802
|
var props = __props;
|
|
809
803
|
/**
|
|
810
804
|
* 获取数据-------------------------------------
|
|
@@ -843,15 +837,7 @@
|
|
|
843
837
|
return _ref2.apply(this, arguments);
|
|
844
838
|
};
|
|
845
839
|
}();
|
|
846
|
-
/**
|
|
847
|
-
* 默认参数-------------------------------------
|
|
848
|
-
* */
|
|
849
840
|
|
|
850
|
-
|
|
851
|
-
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
852
|
-
label: "name",
|
|
853
|
-
value: "id"
|
|
854
|
-
});
|
|
855
841
|
var inputV = vue.computed({
|
|
856
842
|
get: function get() {
|
|
857
843
|
return props.value;
|
|
@@ -917,7 +903,7 @@
|
|
|
917
903
|
},
|
|
918
904
|
placeholder: "请选择",
|
|
919
905
|
options: dataV.value,
|
|
920
|
-
fieldNames: fieldNames
|
|
906
|
+
fieldNames: __props.fieldNames
|
|
921
907
|
}, null, 8
|
|
922
908
|
/* PROPS */
|
|
923
909
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -958,15 +944,16 @@
|
|
|
958
944
|
},
|
|
959
945
|
fieldNames: {
|
|
960
946
|
type: null,
|
|
961
|
-
required: false
|
|
947
|
+
required: false,
|
|
948
|
+
"default": {
|
|
949
|
+
label: "displayName",
|
|
950
|
+
value: "id"
|
|
951
|
+
}
|
|
962
952
|
}
|
|
963
953
|
},
|
|
964
954
|
emits: ["update:value"],
|
|
965
955
|
setup: function setup(__props, _ref) {
|
|
966
956
|
var emit = _ref.emit;
|
|
967
|
-
|
|
968
|
-
var _a;
|
|
969
|
-
|
|
970
957
|
var props = __props;
|
|
971
958
|
/**
|
|
972
959
|
* 获取数据-------------------------------------
|
|
@@ -1009,15 +996,7 @@
|
|
|
1009
996
|
return _ref2.apply(this, arguments);
|
|
1010
997
|
};
|
|
1011
998
|
}();
|
|
1012
|
-
/**
|
|
1013
|
-
* 默认参数-------------------------------------
|
|
1014
|
-
* */
|
|
1015
|
-
|
|
1016
999
|
|
|
1017
|
-
var fieldNames = vue.ref((_a = props.fieldNames) !== null && _a !== void 0 ? _a : {
|
|
1018
|
-
label: "displayName",
|
|
1019
|
-
value: "id"
|
|
1020
|
-
});
|
|
1021
1000
|
var inputV = vue.computed({
|
|
1022
1001
|
get: function get() {
|
|
1023
1002
|
return props.value;
|
|
@@ -1083,7 +1062,7 @@
|
|
|
1083
1062
|
},
|
|
1084
1063
|
placeholder: "请选择",
|
|
1085
1064
|
options: dataV.value,
|
|
1086
|
-
fieldNames: fieldNames
|
|
1065
|
+
fieldNames: __props.fieldNames
|
|
1087
1066
|
}, null, 8
|
|
1088
1067
|
/* PROPS */
|
|
1089
1068
|
, ["getPopupContainer", "value", "options", "fieldNames"])];
|
|
@@ -1124,15 +1103,23 @@
|
|
|
1124
1103
|
},
|
|
1125
1104
|
replaceFields: {
|
|
1126
1105
|
type: null,
|
|
1127
|
-
required: false
|
|
1106
|
+
required: false,
|
|
1107
|
+
"default": {
|
|
1108
|
+
children: "children",
|
|
1109
|
+
label: "name",
|
|
1110
|
+
key: "id",
|
|
1111
|
+
value: "id"
|
|
1112
|
+
}
|
|
1113
|
+
},
|
|
1114
|
+
multiple: {
|
|
1115
|
+
type: Boolean,
|
|
1116
|
+
required: false,
|
|
1117
|
+
"default": true
|
|
1128
1118
|
}
|
|
1129
1119
|
},
|
|
1130
1120
|
emits: ["update:value"],
|
|
1131
1121
|
setup: function setup(__props, _ref) {
|
|
1132
1122
|
var emit = _ref.emit;
|
|
1133
|
-
|
|
1134
|
-
var _a;
|
|
1135
|
-
|
|
1136
1123
|
var props = __props;
|
|
1137
1124
|
/**
|
|
1138
1125
|
* 获取数据-------------------------------------
|
|
@@ -1175,17 +1162,7 @@
|
|
|
1175
1162
|
return _ref2.apply(this, arguments);
|
|
1176
1163
|
};
|
|
1177
1164
|
}();
|
|
1178
|
-
/**
|
|
1179
|
-
* 默认参数-------------------------------------
|
|
1180
|
-
* */
|
|
1181
|
-
|
|
1182
1165
|
|
|
1183
|
-
var replaceFields = vue.ref((_a = props.replaceFields) !== null && _a !== void 0 ? _a : {
|
|
1184
|
-
children: "children",
|
|
1185
|
-
label: "name",
|
|
1186
|
-
key: "id",
|
|
1187
|
-
value: "id"
|
|
1188
|
-
});
|
|
1189
1166
|
var inputV = vue.computed({
|
|
1190
1167
|
get: function get() {
|
|
1191
1168
|
return props.value;
|
|
@@ -1250,15 +1227,15 @@
|
|
|
1250
1227
|
},
|
|
1251
1228
|
placeholder: "请选择",
|
|
1252
1229
|
showArrow: "",
|
|
1253
|
-
multiple:
|
|
1230
|
+
multiple: __props.multiple,
|
|
1254
1231
|
treeDefaultExpandAll: "",
|
|
1255
1232
|
style: {
|
|
1256
1233
|
"width": "300px"
|
|
1257
1234
|
},
|
|
1258
|
-
replaceFields: replaceFields
|
|
1235
|
+
replaceFields: __props.replaceFields
|
|
1259
1236
|
}, null, 8
|
|
1260
1237
|
/* PROPS */
|
|
1261
|
-
, ["value", "tree-data", "getPopupContainer", "replaceFields"])];
|
|
1238
|
+
, ["value", "tree-data", "getPopupContainer", "multiple", "replaceFields"])];
|
|
1262
1239
|
}),
|
|
1263
1240
|
_: 1
|
|
1264
1241
|
/* STABLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\nexport {\n arrToTree,\n assign,\n findTree,\n isObject,\n isPlainObject,\n tranListToTreeData\n};\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","assign","Object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,SAASA,aAAT,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;EAChC,EAAA,IAAMC,GAAG,GAAGD,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAcL,GAAG,CAACM,EAAzB,CAAA;EAAA,GAAZ,CAAZ,CAAA;EACA,EAAA,IAAI,CAACJ,GAAG,CAACK,MAAT,EACE,OAAA;IACFP,GAAG,CAACQ,QAAJ,GAAeN,GAAf,CAAA;EACAF,EAAAA,GAAG,CAACQ,QAAJ,CAAaC,OAAb,CAAqB,UAACL,CAAD,EAAO;EAC1BL,IAAAA,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAAb,CAAA;KADF,CAAA,CAAA;EAGA,EAAA,OAAOD,GAAP,CAAA;EACD,CAAA;EACD,SAASU,kBAAT,CAA4BT,IAA5B,EAAkC;EAChC,EAAA,IAAMU,OAAO,GAAGV,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAc,IAArB,CAAA;EAAA,GAAZ,CAAhB,CAAA;EACAM,EAAAA,OAAO,CAACF,OAAR,CAAgB,UAACL,CAAD,EAAA;EAAA,IAAA,OAAOL,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAApB,CAAA;KAAhB,CAAA,CAAA;EACA,EAAA,OAAOU,OAAP,CAAA;EACD,CAAA;EA8BD,IAAIC,QAAQ,GAAG,SAAXA,QAAW,CAACC,GAAD,EAAA;EAAA,EAAA,OAASA,GAAG,KAAK,IAAR,IAAgB,OAAOA,CAAAA,GAAP,MAAe,QAAxC,CAAA;EAAA,CAAf;EAGA,IAAIC,MAAM,GAAGC,MAAM,CAACD,MAApB
|
|
1
|
+
{"version":3,"file":"index.umd.js","sources":["../../shared/dist/utils/index.mjs"],"sourcesContent":["// utils/arr/tree.ts\nfunction arrToTree(list, parentMark, childrenMark) {\n let result = [], temp;\n for (let i = 0; i < list.length; i++) {\n if (!list[i][parentMark]) {\n temp = list.filter(\n (item) => item[parentMark] === list[i][childrenMark]\n );\n if (temp.length > 0) {\n list[i].children = temp;\n }\n result.push(list[i]);\n }\n }\n return result;\n}\nfunction _loadChildren(obj, list) {\n const arr = list.filter((x) => x.parentId == obj.id);\n if (!arr.length)\n return;\n obj.children = arr;\n obj.children.forEach((x) => {\n _loadChildren(x, list);\n });\n return obj;\n}\nfunction tranListToTreeData(list) {\n const results = list.filter((x) => x.parentId == null);\n results.forEach((x) => _loadChildren(x, list));\n return results;\n}\nfunction findTree(id, list, idName) {\n let result;\n if (!list.length)\n return;\n const fn = (id2, list2, idName2) => {\n list2.find((_e) => {\n if (_e[idName2] === id2) {\n result = _e;\n } else if (_e.children && _e.children.length !== 0)\n return fn(id2, _e.children, idName2);\n });\n };\n fn(id, list, idName);\n return result;\n}\n\n// utils/obj/judge.ts\nfunction isPlainObject(obj) {\n let proto, Ctor;\n if (!obj || toString.call(obj) !== \"[object Object]\") {\n return false;\n }\n proto = Object.getPrototypeOf(obj);\n if (!proto) {\n return true;\n }\n Ctor = {}.hasOwnProperty.call(proto, \"constructor\") && proto.constructor;\n return typeof Ctor === \"function\" && {}.hasOwnProperty.toString.call(Ctor) === {}.hasOwnProperty.toString.call(Object);\n}\nvar isObject = (val) => val !== null && typeof val === \"object\";\n\n// utils/obj/cache.ts\nvar assign = Object.assign;\nexport {\n arrToTree,\n assign,\n findTree,\n isObject,\n isPlainObject,\n tranListToTreeData\n};\n"],"names":["_loadChildren","obj","list","arr","filter","x","parentId","id","length","children","forEach","tranListToTreeData","results","isObject","val","assign","Object"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBA,SAASA,aAAT,CAAuBC,GAAvB,EAA4BC,IAA5B,EAAkC;EAChC,EAAA,IAAMC,GAAG,GAAGD,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAcL,GAAG,CAACM,EAAzB,CAAA;EAAA,GAAZ,CAAZ,CAAA;EACA,EAAA,IAAI,CAACJ,GAAG,CAACK,MAAT,EACE,OAAA;IACFP,GAAG,CAACQ,QAAJ,GAAeN,GAAf,CAAA;EACAF,EAAAA,GAAG,CAACQ,QAAJ,CAAaC,OAAb,CAAqB,UAACL,CAAD,EAAO;EAC1BL,IAAAA,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAAb,CAAA;KADF,CAAA,CAAA;EAGA,EAAA,OAAOD,GAAP,CAAA;EACD,CAAA;EACD,SAASU,kBAAT,CAA4BT,IAA5B,EAAkC;EAChC,EAAA,IAAMU,OAAO,GAAGV,IAAI,CAACE,MAAL,CAAY,UAACC,CAAD,EAAA;EAAA,IAAA,OAAOA,CAAC,CAACC,QAAF,IAAc,IAArB,CAAA;EAAA,GAAZ,CAAhB,CAAA;EACAM,EAAAA,OAAO,CAACF,OAAR,CAAgB,UAACL,CAAD,EAAA;EAAA,IAAA,OAAOL,aAAa,CAACK,CAAD,EAAIH,IAAJ,CAApB,CAAA;KAAhB,CAAA,CAAA;EACA,EAAA,OAAOU,OAAP,CAAA;EACD,CAAA;EA8BD,IAAIC,QAAQ,GAAG,SAAXA,QAAW,CAACC,GAAD,EAAA;EAAA,EAAA,OAASA,GAAG,KAAK,IAAR,IAAgB,OAAOA,CAAAA,GAAP,MAAe,QAAxC,CAAA;EAAA,CAAf;EAGA,IAAIC,MAAM,GAAGC,MAAM,CAACD,MAApB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|