bm-admin-ui 1.0.65-alpha → 1.0.67-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/editor/index.js +8 -4
- package/es/components/form-create/index.js +47 -31
- package/es/components/form-designer/index.js +3 -2
- package/es/components/input-tags-display/index.js +3 -3
- package/es/components/staffs-selector/index.d.ts +51 -11
- package/es/components/staffs-selector/index.js +293 -223
- package/es/components/staffs-selector/src/action.d.ts +2 -0
- package/es/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/es/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/es/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/es/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/es/components/upload/index.js +8 -4
- package/lib/components/editor/index.js +8 -4
- package/lib/components/form-create/index.js +47 -31
- package/lib/components/form-designer/index.js +3 -2
- package/lib/components/input-tags-display/index.js +2 -2
- package/lib/components/staffs-selector/index.d.ts +51 -11
- package/lib/components/staffs-selector/index.js +291 -221
- package/lib/components/staffs-selector/src/action.d.ts +2 -0
- package/lib/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/lib/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/lib/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/lib/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
- package/lib/components/upload/index.js +8 -4
- package/package.json +1 -1
- package/theme-chalk/index.css +1 -1
- package/theme-chalk/input-tags-display.css +1 -1
- package/types/components/staffs-selector/index.d.ts +51 -11
- package/types/components/staffs-selector/src/action.d.ts +2 -0
- package/types/components/staffs-selector/src/departmentCmp.vue.d.ts +49 -0
- package/types/components/staffs-selector/src/multipleCmp.vue.d.ts +1 -10
- package/types/components/staffs-selector/src/staffs-selector.vue.d.ts +51 -11
- package/types/components/staffs-selector/src/variedCmp.vue.d.ts +1 -0
|
@@ -2,6 +2,7 @@ export declare const MODE: {
|
|
|
2
2
|
RADIO: string;
|
|
3
3
|
MULTIPLE: string;
|
|
4
4
|
VARIED: string;
|
|
5
|
+
DEPARTMENT: string;
|
|
5
6
|
};
|
|
6
7
|
export declare const selectProps: {
|
|
7
8
|
visible: {
|
|
@@ -61,6 +62,7 @@ export declare const selectState: {
|
|
|
61
62
|
dataMap: Map<string, any>;
|
|
62
63
|
curlistKeys: Set<string>;
|
|
63
64
|
activeKey: number;
|
|
65
|
+
fetchLoading: boolean;
|
|
64
66
|
};
|
|
65
67
|
export declare const list: any;
|
|
66
68
|
export declare const departNative: any;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
limit: {
|
|
3
|
+
type: NumberConstructor;
|
|
4
|
+
default: number;
|
|
5
|
+
};
|
|
6
|
+
selected: {
|
|
7
|
+
type: ArrayConstructor;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
}, {
|
|
11
|
+
search(): void;
|
|
12
|
+
list: any;
|
|
13
|
+
multipleChecked: import("vue").Ref<any>;
|
|
14
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
15
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
16
|
+
staffsChecked: import("vue").Ref<any>;
|
|
17
|
+
shopChecked: import("vue").Ref<any>;
|
|
18
|
+
groupChecked: import("vue").Ref<any>;
|
|
19
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
20
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
21
|
+
activeKey: import("vue").Ref<number>;
|
|
22
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
23
|
+
searchVal: import("vue").Ref<string>;
|
|
24
|
+
selectAll: import("vue").Ref<boolean>;
|
|
25
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
26
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
|
+
[key: string]: any;
|
|
28
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
|
+
[key: string]: any;
|
|
30
|
+
}> | null | undefined)[]>;
|
|
31
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
32
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
33
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
34
|
+
limit: {
|
|
35
|
+
type: NumberConstructor;
|
|
36
|
+
default: number;
|
|
37
|
+
};
|
|
38
|
+
selected: {
|
|
39
|
+
type: ArrayConstructor;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
}>> & {
|
|
43
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
44
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
45
|
+
}, {
|
|
46
|
+
selected: unknown[];
|
|
47
|
+
limit: number;
|
|
48
|
+
}>;
|
|
49
|
+
export default _default;
|
|
@@ -7,10 +7,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
7
7
|
type: ArrayConstructor;
|
|
8
8
|
default: () => never[];
|
|
9
9
|
};
|
|
10
|
-
isTree: {
|
|
11
|
-
type: BooleanConstructor;
|
|
12
|
-
default: boolean;
|
|
13
|
-
};
|
|
14
10
|
}, {
|
|
15
11
|
changeAllOption(): void;
|
|
16
12
|
search(): void;
|
|
@@ -25,6 +21,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
21
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
26
22
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
27
23
|
activeKey: import("vue").Ref<number>;
|
|
24
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
28
25
|
searchVal: import("vue").Ref<string>;
|
|
29
26
|
selectAll: import("vue").Ref<boolean>;
|
|
30
27
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -34,7 +31,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
34
31
|
[key: string]: any;
|
|
35
32
|
}> | null | undefined)[]>;
|
|
36
33
|
isFulfill: import("vue").Ref<boolean>;
|
|
37
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
38
34
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
39
35
|
limit: {
|
|
40
36
|
type: NumberConstructor;
|
|
@@ -44,16 +40,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
40
|
type: ArrayConstructor;
|
|
45
41
|
default: () => never[];
|
|
46
42
|
};
|
|
47
|
-
isTree: {
|
|
48
|
-
type: BooleanConstructor;
|
|
49
|
-
default: boolean;
|
|
50
|
-
};
|
|
51
43
|
}>> & {
|
|
52
44
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
53
45
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
54
46
|
}, {
|
|
55
47
|
selected: unknown[];
|
|
56
48
|
limit: number;
|
|
57
|
-
isTree: boolean;
|
|
58
49
|
}>;
|
|
59
50
|
export default _default;
|
|
@@ -96,7 +96,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
96
96
|
fetch: (params: {
|
|
97
97
|
searchVal?: string;
|
|
98
98
|
area?: string;
|
|
99
|
-
}) => void
|
|
99
|
+
}) => Promise<void>;
|
|
100
100
|
flatListFunc: (list: any) => Map<string, any>;
|
|
101
101
|
findDataByKey: (key: string) => any;
|
|
102
102
|
summitSelect: () => void;
|
|
@@ -889,10 +889,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
889
889
|
type: ArrayConstructor;
|
|
890
890
|
default: () => never[];
|
|
891
891
|
};
|
|
892
|
-
isTree: {
|
|
893
|
-
type: BooleanConstructor;
|
|
894
|
-
default: boolean;
|
|
895
|
-
};
|
|
896
892
|
}, {
|
|
897
893
|
changeAllOption(): void;
|
|
898
894
|
search(): void;
|
|
@@ -907,6 +903,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
907
903
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
908
904
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
909
905
|
activeKey: import("vue").Ref<number>;
|
|
906
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
910
907
|
searchVal: import("vue").Ref<string>;
|
|
911
908
|
selectAll: import("vue").Ref<boolean>;
|
|
912
909
|
indeterminate: import("vue").Ref<boolean>;
|
|
@@ -916,7 +913,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
916
913
|
[key: string]: any;
|
|
917
914
|
}> | null | undefined)[]>;
|
|
918
915
|
isFulfill: import("vue").Ref<boolean>;
|
|
919
|
-
changeTreeCheck: (checkedKeys: any) => void;
|
|
920
916
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
921
917
|
limit: {
|
|
922
918
|
type: NumberConstructor;
|
|
@@ -926,17 +922,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
926
922
|
type: ArrayConstructor;
|
|
927
923
|
default: () => never[];
|
|
928
924
|
};
|
|
929
|
-
isTree: {
|
|
930
|
-
type: BooleanConstructor;
|
|
931
|
-
default: boolean;
|
|
932
|
-
};
|
|
933
925
|
}>> & {
|
|
934
926
|
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
935
927
|
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
936
928
|
}, {
|
|
937
929
|
selected: unknown[];
|
|
938
930
|
limit: number;
|
|
939
|
-
isTree: boolean;
|
|
940
931
|
}>;
|
|
941
932
|
radioCmp: import("vue").DefineComponent<{
|
|
942
933
|
list: {
|
|
@@ -995,6 +986,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
995
986
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
996
987
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
997
988
|
activeKey: import("vue").Ref<number>;
|
|
989
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
998
990
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
999
991
|
[key: string]: any;
|
|
1000
992
|
}>;
|
|
@@ -1036,6 +1028,54 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
1036
1028
|
dataMap: Map<unknown, unknown>;
|
|
1037
1029
|
curlistKeys: Set<unknown>;
|
|
1038
1030
|
}>;
|
|
1031
|
+
departmentCmp: import("vue").DefineComponent<{
|
|
1032
|
+
limit: {
|
|
1033
|
+
type: NumberConstructor;
|
|
1034
|
+
default: number;
|
|
1035
|
+
};
|
|
1036
|
+
selected: {
|
|
1037
|
+
type: ArrayConstructor;
|
|
1038
|
+
default: () => never[];
|
|
1039
|
+
};
|
|
1040
|
+
}, {
|
|
1041
|
+
search(): void;
|
|
1042
|
+
list: any;
|
|
1043
|
+
multipleChecked: import("vue").Ref<any>;
|
|
1044
|
+
departmentChecked: import("vue").Ref<string[]>;
|
|
1045
|
+
multipDepartment: import("vue").Ref<string[]>;
|
|
1046
|
+
staffsChecked: import("vue").Ref<any>;
|
|
1047
|
+
shopChecked: import("vue").Ref<any>;
|
|
1048
|
+
groupChecked: import("vue").Ref<any>;
|
|
1049
|
+
dataMap: import("vue").Ref<Map<string, any>>;
|
|
1050
|
+
curlistKeys: import("vue").Ref<Set<string>>;
|
|
1051
|
+
activeKey: import("vue").Ref<number>;
|
|
1052
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
1053
|
+
searchVal: import("vue").Ref<string>;
|
|
1054
|
+
selectAll: import("vue").Ref<boolean>;
|
|
1055
|
+
indeterminate: import("vue").Ref<boolean>;
|
|
1056
|
+
emptyPic: import("vue").Ref<(string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1057
|
+
[key: string]: any;
|
|
1058
|
+
}> | null | undefined) | JSX.Element | (string | number | boolean | void | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1059
|
+
[key: string]: any;
|
|
1060
|
+
}> | null | undefined)[]>;
|
|
1061
|
+
isFulfill: import("vue").Ref<boolean>;
|
|
1062
|
+
changeTreeCheck: (checkedKeys: any) => void;
|
|
1063
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:selected" | "fetchList")[], "update:selected" | "fetchList", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1064
|
+
limit: {
|
|
1065
|
+
type: NumberConstructor;
|
|
1066
|
+
default: number;
|
|
1067
|
+
};
|
|
1068
|
+
selected: {
|
|
1069
|
+
type: ArrayConstructor;
|
|
1070
|
+
default: () => never[];
|
|
1071
|
+
};
|
|
1072
|
+
}>> & {
|
|
1073
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
1074
|
+
onFetchList?: ((...args: any[]) => any) | undefined;
|
|
1075
|
+
}, {
|
|
1076
|
+
selected: unknown[];
|
|
1077
|
+
limit: number;
|
|
1078
|
+
}>;
|
|
1039
1079
|
list: any;
|
|
1040
1080
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:visible" | "update:select")[], "change" | "update:visible" | "update:select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
1041
1081
|
visible: {
|
|
@@ -25,6 +25,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
25
|
dataMap: import("vue").Ref<Map<string, any>>;
|
|
26
26
|
curlistKeys: import("vue").Ref<Set<string>>;
|
|
27
27
|
activeKey: import("vue").Ref<number>;
|
|
28
|
+
fetchLoading: import("vue").Ref<boolean>;
|
|
28
29
|
indicator: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
29
30
|
[key: string]: any;
|
|
30
31
|
}>;
|
|
@@ -444,6 +444,9 @@ const _sfc_main = {
|
|
|
444
444
|
});
|
|
445
445
|
},
|
|
446
446
|
paste(event) {
|
|
447
|
+
if (uploadDisabled.value) {
|
|
448
|
+
return;
|
|
449
|
+
}
|
|
447
450
|
const items = event?.clipboardData?.items;
|
|
448
451
|
let file = null;
|
|
449
452
|
if (items && items.length) {
|
|
@@ -565,7 +568,7 @@ const _sfc_main = {
|
|
|
565
568
|
immediate: true
|
|
566
569
|
}
|
|
567
570
|
);
|
|
568
|
-
expose({ state, methods });
|
|
571
|
+
expose({ state, methods, paste: methods.paste });
|
|
569
572
|
return {
|
|
570
573
|
...toRefs(state),
|
|
571
574
|
icons,
|
|
@@ -754,7 +757,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
754
757
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
755
758
|
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
756
759
|
}, null, 8, _hoisted_9)) : createCommentVNode("v-if", true),
|
|
757
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
760
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
758
761
|
key: 1,
|
|
759
762
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
760
763
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
@@ -851,10 +854,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
851
854
|
class: "bm-upload__error-reload",
|
|
852
855
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
853
856
|
}, null, 8, _hoisted_32)) : createCommentVNode("v-if", true),
|
|
854
|
-
|
|
857
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (openBlock(), createElementBlock("div", {
|
|
858
|
+
key: 1,
|
|
855
859
|
class: "bm-upload__trash",
|
|
856
860
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
857
|
-
}, null, 8, _hoisted_33)
|
|
861
|
+
}, null, 8, _hoisted_33)) : createCommentVNode("v-if", true)
|
|
858
862
|
])
|
|
859
863
|
]),
|
|
860
864
|
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (openBlock(), createElementBlock("div", _hoisted_34, [
|
|
@@ -11863,6 +11863,9 @@ const _sfc_main$1 = {
|
|
|
11863
11863
|
});
|
|
11864
11864
|
},
|
|
11865
11865
|
paste(event) {
|
|
11866
|
+
if (uploadDisabled.value) {
|
|
11867
|
+
return;
|
|
11868
|
+
}
|
|
11866
11869
|
const items = event?.clipboardData?.items;
|
|
11867
11870
|
let file = null;
|
|
11868
11871
|
if (items && items.length) {
|
|
@@ -11984,7 +11987,7 @@ const _sfc_main$1 = {
|
|
|
11984
11987
|
immediate: true
|
|
11985
11988
|
}
|
|
11986
11989
|
);
|
|
11987
|
-
expose({ state, methods });
|
|
11990
|
+
expose({ state, methods, paste: methods.paste });
|
|
11988
11991
|
return {
|
|
11989
11992
|
...vue.toRefs(state),
|
|
11990
11993
|
icons,
|
|
@@ -12173,7 +12176,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12173
12176
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--view",
|
|
12174
12177
|
onClick: ($event) => _ctx.viewOnePicture(item)
|
|
12175
12178
|
}, null, 8, _hoisted_9)) : vue.createCommentVNode("v-if", true),
|
|
12176
|
-
!(_ctx.extraConfigs.hidenDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12179
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12177
12180
|
key: 1,
|
|
12178
12181
|
class: "bm-upload__picture-result__icon bm-upload__picture-result__icon--delete",
|
|
12179
12182
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
@@ -12270,10 +12273,11 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
12270
12273
|
class: "bm-upload__error-reload",
|
|
12271
12274
|
onClick: (e) => _ctx.reUpload(e, item.uid)
|
|
12272
12275
|
}, null, 8, _hoisted_32)) : vue.createCommentVNode("v-if", true),
|
|
12273
|
-
vue.
|
|
12276
|
+
!(_ctx.extraConfigs.hidenDelBtn ?? _ctx.extraConfigs.hideDelBtn ?? false) ? (vue.openBlock(), vue.createElementBlock("div", {
|
|
12277
|
+
key: 1,
|
|
12274
12278
|
class: "bm-upload__trash",
|
|
12275
12279
|
onClick: ($event) => _ctx.deleteFile(item.uid)
|
|
12276
|
-
}, null, 8, _hoisted_33)
|
|
12280
|
+
}, null, 8, _hoisted_33)) : vue.createCommentVNode("v-if", true)
|
|
12277
12281
|
])
|
|
12278
12282
|
]),
|
|
12279
12283
|
!item.isDoneDeloy || item.progress < 100 || item.status === "error" ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_34, [
|
|
@@ -256,6 +256,7 @@ var radio = {
|
|
|
256
256
|
title: data.title.title,
|
|
257
257
|
props: {
|
|
258
258
|
placeholder: data.props.placeholder,
|
|
259
|
+
allowClear: true,
|
|
259
260
|
},
|
|
260
261
|
options: data.options,
|
|
261
262
|
effect: {
|
|
@@ -276,6 +277,7 @@ var radio = {
|
|
|
276
277
|
title: data.title.title,
|
|
277
278
|
props: {
|
|
278
279
|
placeholder: data.props.placeholder,
|
|
280
|
+
allowClear: true,
|
|
279
281
|
},
|
|
280
282
|
options: data.options,
|
|
281
283
|
effect: {
|
|
@@ -301,6 +303,7 @@ var radio = {
|
|
|
301
303
|
placeholder: data.props.placeholder,
|
|
302
304
|
options: data.options,
|
|
303
305
|
disabled: data.disabled,
|
|
306
|
+
allowClear: true,
|
|
304
307
|
getPopupContainer: getContainer,
|
|
305
308
|
'onUpdate:value': (value) => {
|
|
306
309
|
row[field] = value;
|
|
@@ -320,7 +323,7 @@ var checkbox = {
|
|
|
320
323
|
type: data.type,
|
|
321
324
|
field: data.field,
|
|
322
325
|
title: data.title.title,
|
|
323
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
326
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
324
327
|
options: data.options,
|
|
325
328
|
effect: {
|
|
326
329
|
required: data.effect.required && '请选择',
|
|
@@ -339,7 +342,7 @@ var checkbox = {
|
|
|
339
342
|
type: data.type,
|
|
340
343
|
field: data.field,
|
|
341
344
|
title: data.title.title,
|
|
342
|
-
props: Object.assign({ placeholder: data.props.placeholder }, extraProps),
|
|
345
|
+
props: Object.assign({ placeholder: data.props.placeholder, allowClear: true }, extraProps),
|
|
343
346
|
options: data.options,
|
|
344
347
|
effect: {
|
|
345
348
|
required: data.effect.required && '请选择',
|
|
@@ -364,6 +367,7 @@ var checkbox = {
|
|
|
364
367
|
placeholder: data.props.placeholder,
|
|
365
368
|
options: data.options,
|
|
366
369
|
mode: 'multiple',
|
|
370
|
+
allowClear: true,
|
|
367
371
|
getPopupContainer: getContainer,
|
|
368
372
|
disabled: data.disabled,
|
|
369
373
|
'onUpdate:value': (value) => {
|
|
@@ -655,6 +659,7 @@ var picture = {
|
|
|
655
659
|
listType: 'picture-card',
|
|
656
660
|
text: '请选择',
|
|
657
661
|
multiple: maxCount > 1,
|
|
662
|
+
accept: '.jpg,.png',
|
|
658
663
|
},
|
|
659
664
|
extraProps: {
|
|
660
665
|
maxSize: 10,
|
|
@@ -797,6 +802,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
797
802
|
props: [
|
|
798
803
|
"title",
|
|
799
804
|
"mode",
|
|
805
|
+
"limit",
|
|
800
806
|
"placeholder",
|
|
801
807
|
"defaultSelected",
|
|
802
808
|
"load",
|
|
@@ -811,7 +817,7 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
811
817
|
label: "name",
|
|
812
818
|
value: "code"
|
|
813
819
|
};
|
|
814
|
-
const selected = vue.ref([]);
|
|
820
|
+
const selected = vue.ref(props.defaultSelected || []);
|
|
815
821
|
const visible = vue.ref(false);
|
|
816
822
|
function selectedChange(val) {
|
|
817
823
|
emits(
|
|
@@ -830,15 +836,6 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
830
836
|
function getPopupContainer() {
|
|
831
837
|
return document.body;
|
|
832
838
|
}
|
|
833
|
-
vue.watch(
|
|
834
|
-
() => props.defaultSelected,
|
|
835
|
-
(val) => {
|
|
836
|
-
selected.value = val || [];
|
|
837
|
-
},
|
|
838
|
-
{
|
|
839
|
-
immediate: true
|
|
840
|
-
}
|
|
841
|
-
);
|
|
842
839
|
vue.watch(selected, (val) => {
|
|
843
840
|
selectedChange(val);
|
|
844
841
|
});
|
|
@@ -863,8 +860,9 @@ const _sfc_main$b = /* @__PURE__ */ vue.defineComponent({
|
|
|
863
860
|
title: __props.title,
|
|
864
861
|
mode: __props.mode,
|
|
865
862
|
load: __props.load,
|
|
863
|
+
limit: __props.limit,
|
|
866
864
|
"immediate-fetch": __props.immediateFetch
|
|
867
|
-
}, null, 8, ["select", "visible", "title", "mode", "load", "immediate-fetch"])
|
|
865
|
+
}, null, 8, ["select", "visible", "title", "mode", "load", "limit", "immediate-fetch"])
|
|
868
866
|
]);
|
|
869
867
|
};
|
|
870
868
|
}
|
|
@@ -19191,7 +19189,7 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19191
19189
|
);
|
|
19192
19190
|
let index = 2;
|
|
19193
19191
|
const measrueDicts = vue.ref([]);
|
|
19194
|
-
const formData = vue.computed(() => props.formCreateInject.api.
|
|
19192
|
+
const formData = vue.computed(() => props.formCreateInject.api.bind());
|
|
19195
19193
|
function selectTemp() {
|
|
19196
19194
|
visible.value = true;
|
|
19197
19195
|
}
|
|
@@ -19420,6 +19418,9 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19420
19418
|
panes.splice(0);
|
|
19421
19419
|
activeKey.value = "\u7D20\u67501";
|
|
19422
19420
|
panes.push(initPane("\u7D20\u67501"));
|
|
19421
|
+
},
|
|
19422
|
+
{
|
|
19423
|
+
immediate: false
|
|
19423
19424
|
}
|
|
19424
19425
|
);
|
|
19425
19426
|
vue.watch(
|
|
@@ -19428,7 +19429,6 @@ const _sfc_main$6 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19428
19429
|
emitChange();
|
|
19429
19430
|
},
|
|
19430
19431
|
{
|
|
19431
|
-
immediate: true,
|
|
19432
19432
|
deep: true
|
|
19433
19433
|
}
|
|
19434
19434
|
);
|
|
@@ -19802,15 +19802,13 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19802
19802
|
if (Object.keys(result).length) {
|
|
19803
19803
|
emitChange(value);
|
|
19804
19804
|
} else {
|
|
19805
|
-
|
|
19806
|
-
inputValue.value = "";
|
|
19805
|
+
reset();
|
|
19807
19806
|
}
|
|
19808
19807
|
}).catch(() => {
|
|
19809
|
-
|
|
19810
|
-
inputValue.value = "";
|
|
19808
|
+
reset();
|
|
19811
19809
|
});
|
|
19812
19810
|
} else {
|
|
19813
|
-
|
|
19811
|
+
reset();
|
|
19814
19812
|
}
|
|
19815
19813
|
}
|
|
19816
19814
|
function handleChange(evt) {
|
|
@@ -19825,6 +19823,11 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19825
19823
|
function inputDisbale(shopField) {
|
|
19826
19824
|
return shopField && !formData.value[shopField];
|
|
19827
19825
|
}
|
|
19826
|
+
function reset() {
|
|
19827
|
+
emitChange("");
|
|
19828
|
+
inputValue.value = "";
|
|
19829
|
+
productInfo.value = {};
|
|
19830
|
+
}
|
|
19828
19831
|
vue.watch(
|
|
19829
19832
|
() => props.defalutValue,
|
|
19830
19833
|
(val) => {
|
|
@@ -19838,8 +19841,7 @@ const _sfc_main$5 = /* @__PURE__ */ vue.defineComponent({
|
|
|
19838
19841
|
() => formData.value[props.dataFiltering],
|
|
19839
19842
|
() => {
|
|
19840
19843
|
if (inputValue.value) {
|
|
19841
|
-
|
|
19842
|
-
inputValue.value = "";
|
|
19844
|
+
reset();
|
|
19843
19845
|
}
|
|
19844
19846
|
}
|
|
19845
19847
|
);
|
|
@@ -20043,11 +20045,14 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20043
20045
|
});
|
|
20044
20046
|
}
|
|
20045
20047
|
function handleChange(val, option) {
|
|
20046
|
-
emits(
|
|
20047
|
-
|
|
20048
|
-
|
|
20049
|
-
|
|
20050
|
-
|
|
20048
|
+
emits(
|
|
20049
|
+
"change",
|
|
20050
|
+
option ? {
|
|
20051
|
+
[fieldNames.value]: option.value,
|
|
20052
|
+
[fieldNames.label]: option.label,
|
|
20053
|
+
...option
|
|
20054
|
+
} : void 0
|
|
20055
|
+
);
|
|
20051
20056
|
}
|
|
20052
20057
|
function handleChangeConfirm(val, option) {
|
|
20053
20058
|
if (isAssociated.value) {
|
|
@@ -20078,6 +20083,7 @@ const _sfc_main$4 = /* @__PURE__ */ vue.defineComponent({
|
|
|
20078
20083
|
options: options.value,
|
|
20079
20084
|
"get-popup-container": vue.unref(getContainer),
|
|
20080
20085
|
disabled: __props.disabled,
|
|
20086
|
+
"allow-clear": "",
|
|
20081
20087
|
onChange: handleChangeConfirm,
|
|
20082
20088
|
onSearch: handleSearch
|
|
20083
20089
|
}, null, 8, ["value", "options", "get-popup-container", "disabled"]);
|
|
@@ -20394,8 +20400,9 @@ var department = {
|
|
|
20394
20400
|
title: data.title.title,
|
|
20395
20401
|
props: {
|
|
20396
20402
|
title: '添加部门',
|
|
20397
|
-
mode:
|
|
20403
|
+
mode: 'department',
|
|
20398
20404
|
placeholder: data.props.placeholder,
|
|
20405
|
+
limit: data.props.limit || 0,
|
|
20399
20406
|
immediateFetch: true,
|
|
20400
20407
|
unitStr: '个',
|
|
20401
20408
|
defaultSelected: data.value,
|
|
@@ -20438,7 +20445,8 @@ var department = {
|
|
|
20438
20445
|
title: data.title.title,
|
|
20439
20446
|
props: {
|
|
20440
20447
|
title: '添加部门',
|
|
20441
|
-
mode:
|
|
20448
|
+
mode: 'department',
|
|
20449
|
+
limit: data.props.limit,
|
|
20442
20450
|
placeholder: data.props.placeholder,
|
|
20443
20451
|
immediateFetch: true,
|
|
20444
20452
|
unitStr: '个',
|
|
@@ -20483,7 +20491,8 @@ var department = {
|
|
|
20483
20491
|
var _a;
|
|
20484
20492
|
return vue.h(StaffSelector, {
|
|
20485
20493
|
title: '添加部门',
|
|
20486
|
-
mode:
|
|
20494
|
+
mode: 'department',
|
|
20495
|
+
limit: data.props.limit,
|
|
20487
20496
|
placeholder: data.props.placeholder,
|
|
20488
20497
|
immediateFetch: true,
|
|
20489
20498
|
unitStr: '个',
|
|
@@ -20810,8 +20819,15 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20810
20819
|
if (formPermission) {
|
|
20811
20820
|
const { name } = formPermission;
|
|
20812
20821
|
if (formPermission.disabled) {
|
|
20813
|
-
if (name === "picture") {
|
|
20822
|
+
if (name === "picture" || name === "file") {
|
|
20823
|
+
if (!rule2.props.uploadProps) {
|
|
20824
|
+
rule2.props.uploadProps = {};
|
|
20825
|
+
}
|
|
20826
|
+
if (!rule2.props.extraProps) {
|
|
20827
|
+
rule2.props.extraProps = {};
|
|
20828
|
+
}
|
|
20814
20829
|
rule2.props.uploadProps.disabled = true;
|
|
20830
|
+
rule2.props.extraProps.hideDelBtn = true;
|
|
20815
20831
|
} else if (name === "materialTemp") {
|
|
20816
20832
|
rule2.props.disabled = formPermission.disabled;
|
|
20817
20833
|
} else {
|
|
@@ -3297,7 +3297,8 @@ var shop = {
|
|
|
3297
3297
|
info: '店铺控件在流程流转过程中涉及数据权限的控制,当表单中设置了多个店铺控件时,需设置其中1个店铺控件作为主控件。被设为主控件的店铺控件,流程流转过程中将以此店铺控件输入的数据作为数据权限判断依据。',
|
|
3298
3298
|
field: fieldsMap$1['config.isMain'],
|
|
3299
3299
|
value: rule.config.isMain,
|
|
3300
|
-
hidden:
|
|
3300
|
+
hidden: (parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.RowWidget ||
|
|
3301
|
+
(parentRule === null || parentRule === void 0 ? void 0 : parentRule.type) === WidgetType.TableWidget,
|
|
3301
3302
|
inject: true,
|
|
3302
3303
|
},
|
|
3303
3304
|
{
|
|
@@ -4242,7 +4243,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
4242
4243
|
}
|
|
4243
4244
|
function resetActiveRule() {
|
|
4244
4245
|
activeRule.value = {};
|
|
4245
|
-
activeParentRule.value =
|
|
4246
|
+
activeParentRule.value = {};
|
|
4246
4247
|
}
|
|
4247
4248
|
function getPopupContainer() {
|
|
4248
4249
|
return document.body;
|
|
@@ -222,9 +222,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
222
222
|
])) : vue.createCommentVNode("v-if", true),
|
|
223
223
|
_ctx.showEmpty && !_ctx.list.length ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_6, [
|
|
224
224
|
vue.createElementVNode("div", {
|
|
225
|
-
class: "selector-empty-input",
|
|
225
|
+
class: vue.normalizeClass(["selector-empty-input", { "empty-disabled": _ctx.disabled }]),
|
|
226
226
|
onClick: _cache[5] || (_cache[5] = vue.withModifiers((...args) => _ctx.toAddTags && _ctx.toAddTags(...args), ["stop"]))
|
|
227
|
-
}, " \xA0\xA0" + vue.toDisplayString(_ctx.placeholder),
|
|
227
|
+
}, " \xA0\xA0" + vue.toDisplayString(_ctx.placeholder), 3)
|
|
228
228
|
])) : vue.createCommentVNode("v-if", true),
|
|
229
229
|
_hoisted_7
|
|
230
230
|
]);
|