@king-one/antdv 1.2.15 → 1.2.17
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/CHANGELOG.md +12 -0
- package/dist/es/components/dept-selector/index.mjs +3 -2
- package/dist/es/components/dept-selector/src/dept.mjs +165 -159
- package/dist/es/components/dept-selector/src/types.mjs +31 -2
- package/dist/es/components/pro-selector/index.mjs +10 -7
- package/dist/es/components/pro-selector/src/components/org-tree.mjs +132 -129
- package/dist/es/components/pro-selector/src/pro-user.mjs +58 -77
- package/dist/es/components/pro-selector/src/types.mjs +42 -1
- package/dist/es/components/pro-sign/src/components/signature.vue.mjs +39 -36
- package/dist/es/components/pro-table/src/pro-table.vue2.mjs +91 -84
- package/dist/es/components/pro-table/utils.mjs +11 -10
- package/dist/es/components/pro-user-avatar/src/index.vue2.mjs +81 -80
- package/dist/es/components/pro-user-avatar/src/load-error.png.mjs +4 -0
- package/dist/es/components/role-selector/index.mjs +3 -2
- package/dist/es/components/role-selector/src/role.mjs +93 -80
- package/dist/es/components/role-selector/src/types.mjs +24 -3
- package/dist/es/index.mjs +80 -74
- package/dist/lib/components/dept-selector/index.js +1 -1
- package/dist/lib/components/dept-selector/src/dept.js +1 -1
- package/dist/lib/components/dept-selector/src/types.js +1 -1
- package/dist/lib/components/pro-selector/index.js +1 -1
- package/dist/lib/components/pro-selector/src/components/org-tree.js +1 -1
- package/dist/lib/components/pro-selector/src/pro-user.js +1 -1
- package/dist/lib/components/pro-selector/src/types.js +1 -1
- package/dist/lib/components/pro-sign/src/components/signature.vue.js +1 -1
- package/dist/lib/components/pro-table/src/pro-table.vue2.js +1 -1
- package/dist/lib/components/pro-table/utils.js +1 -1
- package/dist/lib/components/pro-user-avatar/src/index.vue2.js +1 -3
- package/dist/lib/components/pro-user-avatar/src/load-error.png.js +1 -0
- package/dist/lib/components/role-selector/index.js +1 -1
- package/dist/lib/components/role-selector/src/role.js +1 -1
- package/dist/lib/components/role-selector/src/types.js +1 -1
- package/dist/lib/index.js +1 -1
- package/dist/theme-chalk/fonts/iconfont.ttf +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff +0 -0
- package/dist/theme-chalk/fonts/iconfont.woff2 +0 -0
- package/dist/theme-chalk/icon.css +1 -1
- package/dist/theme-chalk/index.css +1 -1
- package/dist/theme-chalk/pro-user-avatar.css +1 -1
- package/dist/types/components/dept-selector/index.d.ts +55 -6
- package/dist/types/components/dept-selector/src/dept.d.ts +54 -6
- package/dist/types/components/dept-selector/src/types.d.ts +34 -2
- package/dist/types/components/pro-selector/index.d.ts +62 -42
- package/dist/types/components/pro-selector/src/components/org-tree.d.ts +1 -19
- package/dist/types/components/pro-selector/src/pro-user.d.ts +62 -44
- package/dist/types/components/pro-selector/src/types.d.ts +46 -0
- package/dist/types/components/pro-user-avatar/index.d.ts +0 -4
- package/dist/types/components/pro-user-avatar/src/types.d.ts +29 -3
- package/dist/types/components/role-selector/index.d.ts +40 -0
- package/dist/types/components/role-selector/src/role.d.ts +20 -0
- package/dist/types/components/role-selector/src/types.d.ts +20 -0
- package/global.d.ts +1 -0
- package/package.json +1 -1
|
@@ -5,30 +5,39 @@ import { SelectUserType, Department } from './src/types';
|
|
|
5
5
|
export * from './src/types';
|
|
6
6
|
export * from './src/hooks';
|
|
7
7
|
export declare const KUserSelector: SFCWithInstall<DefineComponent<{
|
|
8
|
-
visible: {
|
|
9
|
-
type: BooleanConstructor;
|
|
10
|
-
default:
|
|
8
|
+
readonly visible: {
|
|
9
|
+
readonly type: BooleanConstructor;
|
|
10
|
+
readonly default: false;
|
|
11
11
|
};
|
|
12
|
-
title: {
|
|
13
|
-
type: StringConstructor;
|
|
14
|
-
default:
|
|
12
|
+
readonly title: {
|
|
13
|
+
readonly type: StringConstructor;
|
|
14
|
+
readonly default: "";
|
|
15
15
|
};
|
|
16
|
-
modelValue: {
|
|
17
|
-
type: PropType< SelectUserType[]>;
|
|
18
|
-
default: () => never[];
|
|
16
|
+
readonly modelValue: {
|
|
17
|
+
readonly type: PropType< SelectUserType[]>;
|
|
18
|
+
readonly default: () => never[];
|
|
19
19
|
};
|
|
20
|
-
maxCount: {
|
|
21
|
-
type: NumberConstructor;
|
|
22
|
-
default:
|
|
20
|
+
readonly maxCount: {
|
|
21
|
+
readonly type: NumberConstructor;
|
|
22
|
+
readonly default: 25;
|
|
23
23
|
};
|
|
24
|
-
type: {
|
|
25
|
-
type: PropType<"checkbox" | "radio">;
|
|
26
|
-
default:
|
|
24
|
+
readonly type: {
|
|
25
|
+
readonly type: PropType<"checkbox" | "radio">;
|
|
26
|
+
readonly default: "checkbox";
|
|
27
27
|
};
|
|
28
|
-
|
|
29
|
-
type: PropType<() => Promise< Department[]>>;
|
|
30
|
-
default: () => Promise<never[]>;
|
|
28
|
+
readonly initData: {
|
|
29
|
+
readonly type: PropType<() => Promise< Department[]>>;
|
|
30
|
+
readonly default: () => Promise<never[]>;
|
|
31
31
|
};
|
|
32
|
+
readonly http: {
|
|
33
|
+
readonly type: PropType<any>;
|
|
34
|
+
readonly default: () => void;
|
|
35
|
+
};
|
|
36
|
+
readonly isBuiltInRequest: {
|
|
37
|
+
readonly type: BooleanConstructor;
|
|
38
|
+
readonly default: false;
|
|
39
|
+
};
|
|
40
|
+
readonly prefix: StringConstructor;
|
|
32
41
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
33
42
|
'update:visible': (visible: boolean) => true;
|
|
34
43
|
'update:modelValue': (modelValue: SelectUserType[]) => true;
|
|
@@ -36,30 +45,39 @@ export declare const KUserSelector: SFCWithInstall<DefineComponent<{
|
|
|
36
45
|
confirm: (modelValue: SelectUserType[]) => true;
|
|
37
46
|
cancel: () => true;
|
|
38
47
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
39
|
-
visible: {
|
|
40
|
-
type: BooleanConstructor;
|
|
41
|
-
default:
|
|
48
|
+
readonly visible: {
|
|
49
|
+
readonly type: BooleanConstructor;
|
|
50
|
+
readonly default: false;
|
|
51
|
+
};
|
|
52
|
+
readonly title: {
|
|
53
|
+
readonly type: StringConstructor;
|
|
54
|
+
readonly default: "";
|
|
55
|
+
};
|
|
56
|
+
readonly modelValue: {
|
|
57
|
+
readonly type: PropType< SelectUserType[]>;
|
|
58
|
+
readonly default: () => never[];
|
|
42
59
|
};
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
default:
|
|
60
|
+
readonly maxCount: {
|
|
61
|
+
readonly type: NumberConstructor;
|
|
62
|
+
readonly default: 25;
|
|
46
63
|
};
|
|
47
|
-
|
|
48
|
-
type: PropType<
|
|
49
|
-
default:
|
|
64
|
+
readonly type: {
|
|
65
|
+
readonly type: PropType<"checkbox" | "radio">;
|
|
66
|
+
readonly default: "checkbox";
|
|
50
67
|
};
|
|
51
|
-
|
|
52
|
-
type:
|
|
53
|
-
default:
|
|
68
|
+
readonly initData: {
|
|
69
|
+
readonly type: PropType<() => Promise< Department[]>>;
|
|
70
|
+
readonly default: () => Promise<never[]>;
|
|
54
71
|
};
|
|
55
|
-
|
|
56
|
-
type: PropType<
|
|
57
|
-
default:
|
|
72
|
+
readonly http: {
|
|
73
|
+
readonly type: PropType<any>;
|
|
74
|
+
readonly default: () => void;
|
|
58
75
|
};
|
|
59
|
-
|
|
60
|
-
type:
|
|
61
|
-
default:
|
|
76
|
+
readonly isBuiltInRequest: {
|
|
77
|
+
readonly type: BooleanConstructor;
|
|
78
|
+
readonly default: false;
|
|
62
79
|
};
|
|
80
|
+
readonly prefix: StringConstructor;
|
|
63
81
|
}>> & {
|
|
64
82
|
onCancel?: (() => any) | undefined;
|
|
65
83
|
onConfirm?: ((modelValue: SelectUserType[]) => any) | undefined;
|
|
@@ -67,11 +85,13 @@ export declare const KUserSelector: SFCWithInstall<DefineComponent<{
|
|
|
67
85
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
68
86
|
"onDelete-user"?: ((id: string) => any) | undefined;
|
|
69
87
|
}, {
|
|
70
|
-
type: "checkbox" | "radio";
|
|
71
|
-
title: string;
|
|
72
|
-
visible: boolean;
|
|
73
|
-
modelValue: SelectUserType[];
|
|
74
|
-
|
|
75
|
-
|
|
88
|
+
readonly type: "checkbox" | "radio";
|
|
89
|
+
readonly title: string;
|
|
90
|
+
readonly visible: boolean;
|
|
91
|
+
readonly modelValue: SelectUserType[];
|
|
92
|
+
readonly maxCount: number;
|
|
93
|
+
readonly http: any;
|
|
94
|
+
readonly initData: () => Promise< Department[]>;
|
|
95
|
+
readonly isBuiltInRequest: boolean;
|
|
76
96
|
}, {}>>;
|
|
77
97
|
export { ProUserSelector };
|
|
@@ -10,10 +10,6 @@ declare const _default: DefineComponent<{
|
|
|
10
10
|
type: PropType<DeptMember[]>;
|
|
11
11
|
default: () => never[];
|
|
12
12
|
};
|
|
13
|
-
initUserList: {
|
|
14
|
-
type: PropType<SelectUserType[]>;
|
|
15
|
-
default: () => never[];
|
|
16
|
-
};
|
|
17
13
|
keyword: {
|
|
18
14
|
type: StringConstructor;
|
|
19
15
|
default: string;
|
|
@@ -22,10 +18,6 @@ declare const _default: DefineComponent<{
|
|
|
22
18
|
type: PropType<() => Promise<Department[]>>;
|
|
23
19
|
default: () => Promise<never[]>;
|
|
24
20
|
};
|
|
25
|
-
maxCount: {
|
|
26
|
-
type: NumberConstructor;
|
|
27
|
-
default: number;
|
|
28
|
-
};
|
|
29
21
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
30
22
|
'update:selectUserList': (list: DeptMember[]) => DeptMember[];
|
|
31
23
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
@@ -33,10 +25,6 @@ declare const _default: DefineComponent<{
|
|
|
33
25
|
type: PropType<DeptMember[]>;
|
|
34
26
|
default: () => never[];
|
|
35
27
|
};
|
|
36
|
-
initUserList: {
|
|
37
|
-
type: PropType<SelectUserType[]>;
|
|
38
|
-
default: () => never[];
|
|
39
|
-
};
|
|
40
28
|
keyword: {
|
|
41
29
|
type: StringConstructor;
|
|
42
30
|
default: string;
|
|
@@ -45,17 +33,11 @@ declare const _default: DefineComponent<{
|
|
|
45
33
|
type: PropType<() => Promise<Department[]>>;
|
|
46
34
|
default: () => Promise<never[]>;
|
|
47
35
|
};
|
|
48
|
-
maxCount: {
|
|
49
|
-
type: NumberConstructor;
|
|
50
|
-
default: number;
|
|
51
|
-
};
|
|
52
36
|
}>> & {
|
|
53
37
|
"onUpdate:selectUserList"?: ((list: DeptMember[]) => any) | undefined;
|
|
54
38
|
}, {
|
|
55
|
-
|
|
39
|
+
initData: () => Promise<Department[]>;
|
|
56
40
|
selectUserList: DeptMember[];
|
|
57
|
-
initUserList: SelectUserType[];
|
|
58
41
|
keyword: string;
|
|
59
|
-
initData: () => Promise<Department[]>;
|
|
60
42
|
}, {}>;
|
|
61
43
|
export default _default;
|
|
@@ -1,31 +1,39 @@
|
|
|
1
1
|
import { PropType, DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes } from 'vue';
|
|
2
2
|
import { Department, SelectUserType } from './types';
|
|
3
3
|
declare const _default: DefineComponent<{
|
|
4
|
-
visible: {
|
|
5
|
-
type: BooleanConstructor;
|
|
6
|
-
default:
|
|
4
|
+
readonly visible: {
|
|
5
|
+
readonly type: BooleanConstructor;
|
|
6
|
+
readonly default: false;
|
|
7
7
|
};
|
|
8
|
-
title: {
|
|
9
|
-
type: StringConstructor;
|
|
10
|
-
default:
|
|
8
|
+
readonly title: {
|
|
9
|
+
readonly type: StringConstructor;
|
|
10
|
+
readonly default: "";
|
|
11
11
|
};
|
|
12
|
-
modelValue: {
|
|
13
|
-
type: PropType<SelectUserType[]>;
|
|
14
|
-
default: () => never[];
|
|
12
|
+
readonly modelValue: {
|
|
13
|
+
readonly type: PropType<SelectUserType[]>;
|
|
14
|
+
readonly default: () => never[];
|
|
15
15
|
};
|
|
16
|
-
maxCount: {
|
|
17
|
-
type: NumberConstructor;
|
|
18
|
-
default:
|
|
16
|
+
readonly maxCount: {
|
|
17
|
+
readonly type: NumberConstructor;
|
|
18
|
+
readonly default: 25;
|
|
19
19
|
};
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
default: string;
|
|
20
|
+
readonly type: {
|
|
21
|
+
readonly type: PropType<"checkbox" | "radio">;
|
|
22
|
+
readonly default: "checkbox";
|
|
24
23
|
};
|
|
25
|
-
|
|
26
|
-
type: PropType<() => Promise<Department[]>>;
|
|
27
|
-
default: () => Promise<never[]>;
|
|
24
|
+
readonly initData: {
|
|
25
|
+
readonly type: PropType<() => Promise<Department[]>>;
|
|
26
|
+
readonly default: () => Promise<never[]>;
|
|
28
27
|
};
|
|
28
|
+
readonly http: {
|
|
29
|
+
readonly type: PropType<any>;
|
|
30
|
+
readonly default: () => void;
|
|
31
|
+
};
|
|
32
|
+
readonly isBuiltInRequest: {
|
|
33
|
+
readonly type: BooleanConstructor;
|
|
34
|
+
readonly default: false;
|
|
35
|
+
};
|
|
36
|
+
readonly prefix: StringConstructor;
|
|
29
37
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
30
38
|
'update:visible': (visible: boolean) => true;
|
|
31
39
|
'update:modelValue': (modelValue: SelectUserType[]) => true;
|
|
@@ -33,31 +41,39 @@ declare const _default: DefineComponent<{
|
|
|
33
41
|
confirm: (modelValue: SelectUserType[]) => true;
|
|
34
42
|
cancel: () => true;
|
|
35
43
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
36
|
-
visible: {
|
|
37
|
-
type: BooleanConstructor;
|
|
38
|
-
default:
|
|
44
|
+
readonly visible: {
|
|
45
|
+
readonly type: BooleanConstructor;
|
|
46
|
+
readonly default: false;
|
|
47
|
+
};
|
|
48
|
+
readonly title: {
|
|
49
|
+
readonly type: StringConstructor;
|
|
50
|
+
readonly default: "";
|
|
51
|
+
};
|
|
52
|
+
readonly modelValue: {
|
|
53
|
+
readonly type: PropType<SelectUserType[]>;
|
|
54
|
+
readonly default: () => never[];
|
|
39
55
|
};
|
|
40
|
-
|
|
41
|
-
type:
|
|
42
|
-
default:
|
|
56
|
+
readonly maxCount: {
|
|
57
|
+
readonly type: NumberConstructor;
|
|
58
|
+
readonly default: 25;
|
|
43
59
|
};
|
|
44
|
-
|
|
45
|
-
type: PropType<
|
|
46
|
-
default:
|
|
60
|
+
readonly type: {
|
|
61
|
+
readonly type: PropType<"checkbox" | "radio">;
|
|
62
|
+
readonly default: "checkbox";
|
|
47
63
|
};
|
|
48
|
-
|
|
49
|
-
type:
|
|
50
|
-
default:
|
|
64
|
+
readonly initData: {
|
|
65
|
+
readonly type: PropType<() => Promise<Department[]>>;
|
|
66
|
+
readonly default: () => Promise<never[]>;
|
|
51
67
|
};
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
default: string;
|
|
68
|
+
readonly http: {
|
|
69
|
+
readonly type: PropType<any>;
|
|
70
|
+
readonly default: () => void;
|
|
56
71
|
};
|
|
57
|
-
|
|
58
|
-
type:
|
|
59
|
-
default:
|
|
72
|
+
readonly isBuiltInRequest: {
|
|
73
|
+
readonly type: BooleanConstructor;
|
|
74
|
+
readonly default: false;
|
|
60
75
|
};
|
|
76
|
+
readonly prefix: StringConstructor;
|
|
61
77
|
}>> & {
|
|
62
78
|
onCancel?: (() => any) | undefined;
|
|
63
79
|
onConfirm?: ((modelValue: SelectUserType[]) => any) | undefined;
|
|
@@ -65,11 +81,13 @@ declare const _default: DefineComponent<{
|
|
|
65
81
|
"onUpdate:visible"?: ((visible: boolean) => any) | undefined;
|
|
66
82
|
"onDelete-user"?: ((id: string) => any) | undefined;
|
|
67
83
|
}, {
|
|
68
|
-
type: "checkbox" | "radio";
|
|
69
|
-
title: string;
|
|
70
|
-
visible: boolean;
|
|
71
|
-
modelValue: SelectUserType[];
|
|
72
|
-
|
|
73
|
-
|
|
84
|
+
readonly type: "checkbox" | "radio";
|
|
85
|
+
readonly title: string;
|
|
86
|
+
readonly visible: boolean;
|
|
87
|
+
readonly modelValue: SelectUserType[];
|
|
88
|
+
readonly maxCount: number;
|
|
89
|
+
readonly http: any;
|
|
90
|
+
readonly initData: () => Promise<Department[]>;
|
|
91
|
+
readonly isBuiltInRequest: boolean;
|
|
74
92
|
}, {}>;
|
|
75
93
|
export default _default;
|
|
@@ -1,3 +1,48 @@
|
|
|
1
|
+
import { InjectionKey, PropType, ExtractPropTypes } from 'vue';
|
|
2
|
+
export declare const selectUserContextKey: InjectionKey<{
|
|
3
|
+
maxCount?: number;
|
|
4
|
+
initData?: () => Promise<Department[]>;
|
|
5
|
+
http?: any;
|
|
6
|
+
isBuiltInRequest?: boolean;
|
|
7
|
+
prefix?: string;
|
|
8
|
+
}>;
|
|
9
|
+
export declare const UserSelectorProps: {
|
|
10
|
+
readonly visible: {
|
|
11
|
+
readonly type: BooleanConstructor;
|
|
12
|
+
readonly default: false;
|
|
13
|
+
};
|
|
14
|
+
readonly title: {
|
|
15
|
+
readonly type: StringConstructor;
|
|
16
|
+
readonly default: "";
|
|
17
|
+
};
|
|
18
|
+
readonly modelValue: {
|
|
19
|
+
readonly type: PropType<SelectUserType[]>;
|
|
20
|
+
readonly default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
readonly maxCount: {
|
|
23
|
+
readonly type: NumberConstructor;
|
|
24
|
+
readonly default: 25;
|
|
25
|
+
};
|
|
26
|
+
/** @description 单选还是多选,默认多选,单选逻辑后续在实现,单选感觉不能使用当前的 UI 展示 */
|
|
27
|
+
readonly type: {
|
|
28
|
+
readonly type: PropType<"checkbox" | "radio">;
|
|
29
|
+
readonly default: "checkbox";
|
|
30
|
+
};
|
|
31
|
+
readonly initData: {
|
|
32
|
+
readonly type: PropType<() => Promise<Department[]>>;
|
|
33
|
+
readonly default: () => Promise<never[]>;
|
|
34
|
+
};
|
|
35
|
+
readonly http: {
|
|
36
|
+
readonly type: PropType<any>;
|
|
37
|
+
readonly default: () => void;
|
|
38
|
+
};
|
|
39
|
+
readonly isBuiltInRequest: {
|
|
40
|
+
readonly type: BooleanConstructor;
|
|
41
|
+
readonly default: false;
|
|
42
|
+
};
|
|
43
|
+
readonly prefix: StringConstructor;
|
|
44
|
+
};
|
|
45
|
+
export declare const GTE_ORGTREE_URL = "/security/dept/user/tree";
|
|
1
46
|
export interface DeptMember {
|
|
2
47
|
id: string;
|
|
3
48
|
username: string | null;
|
|
@@ -30,6 +75,7 @@ export interface Department {
|
|
|
30
75
|
subsidiaryLegalName?: string | null;
|
|
31
76
|
checkedUserIds?: string[] | null;
|
|
32
77
|
}
|
|
78
|
+
export type UserSelectorPropsType = ExtractPropTypes<typeof UserSelectorProps>;
|
|
33
79
|
export interface SelectUserType {
|
|
34
80
|
id: string;
|
|
35
81
|
realName: string;
|
|
@@ -5,7 +5,6 @@ export * from './src/types';
|
|
|
5
5
|
export declare const KUserAvatar: SFCWithInstall<DefineComponent<{
|
|
6
6
|
name: {
|
|
7
7
|
type: PropType<string>;
|
|
8
|
-
required: true;
|
|
9
8
|
default: string;
|
|
10
9
|
};
|
|
11
10
|
size: {
|
|
@@ -37,7 +36,6 @@ export declare const KUserAvatar: SFCWithInstall<DefineComponent<{
|
|
|
37
36
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
38
37
|
name: {
|
|
39
38
|
type: PropType<string>;
|
|
40
|
-
required: true;
|
|
41
39
|
default: string;
|
|
42
40
|
};
|
|
43
41
|
size: {
|
|
@@ -69,7 +67,6 @@ export declare const KUserAvatar: SFCWithInstall<DefineComponent<{
|
|
|
69
67
|
export declare const KProUserAvatar: SFCWithInstall<DefineComponent<{
|
|
70
68
|
name: {
|
|
71
69
|
type: PropType<string>;
|
|
72
|
-
required: true;
|
|
73
70
|
default: string;
|
|
74
71
|
};
|
|
75
72
|
size: {
|
|
@@ -101,7 +98,6 @@ export declare const KProUserAvatar: SFCWithInstall<DefineComponent<{
|
|
|
101
98
|
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
102
99
|
name: {
|
|
103
100
|
type: PropType<string>;
|
|
104
|
-
required: true;
|
|
105
101
|
default: string;
|
|
106
102
|
};
|
|
107
103
|
size: {
|
|
@@ -1,17 +1,43 @@
|
|
|
1
1
|
export type SizeType = 'small' | 'default' | 'large';
|
|
2
2
|
export type Props = {
|
|
3
|
-
|
|
3
|
+
/**
|
|
4
|
+
* @description 显示文字
|
|
5
|
+
*/
|
|
6
|
+
name?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @description 图片地址
|
|
9
|
+
*/
|
|
4
10
|
avatar?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @description 大小
|
|
13
|
+
*/
|
|
5
14
|
size?: SizeType;
|
|
15
|
+
/**
|
|
16
|
+
* @description 圆角
|
|
17
|
+
*/
|
|
6
18
|
round?: string;
|
|
19
|
+
/**
|
|
20
|
+
* @description 显示文字时字体大小
|
|
21
|
+
*/
|
|
7
22
|
fontSize?: string;
|
|
23
|
+
/**
|
|
24
|
+
* @description 是否开启预览
|
|
25
|
+
*/
|
|
8
26
|
preview?: boolean;
|
|
9
27
|
};
|
|
10
|
-
export interface
|
|
28
|
+
export interface UserAvatarEmits {
|
|
11
29
|
(e: 'error', event: Event): void;
|
|
12
30
|
}
|
|
13
|
-
export interface
|
|
31
|
+
export interface UserAvatarExpose {
|
|
32
|
+
/**
|
|
33
|
+
* 预览图片
|
|
34
|
+
* @returns
|
|
35
|
+
*/
|
|
14
36
|
handlePreview: () => void;
|
|
37
|
+
/**
|
|
38
|
+
* 检查懒加载
|
|
39
|
+
* @returns
|
|
40
|
+
*/
|
|
15
41
|
checkLazyLoading: () => {
|
|
16
42
|
hasNativeLazyLoading: boolean;
|
|
17
43
|
hasStartedLoading: boolean;
|
|
@@ -16,6 +16,15 @@ export declare const KRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
16
16
|
readonly type: PropType< RoleSelectorOption[]>;
|
|
17
17
|
readonly default: () => never[];
|
|
18
18
|
};
|
|
19
|
+
readonly isBuiltInRequest: {
|
|
20
|
+
readonly type: BooleanConstructor;
|
|
21
|
+
readonly default: false;
|
|
22
|
+
};
|
|
23
|
+
readonly http: {
|
|
24
|
+
readonly type: PropType<any>;
|
|
25
|
+
readonly default: () => void;
|
|
26
|
+
};
|
|
27
|
+
readonly prefix: StringConstructor;
|
|
19
28
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
20
29
|
'update:visible': (value: boolean) => boolean;
|
|
21
30
|
'update:modelValue': (value: RoleSelectorOption[] | RoleSelectorOption) => boolean;
|
|
@@ -33,6 +42,15 @@ export declare const KRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
33
42
|
readonly type: PropType< RoleSelectorOption[]>;
|
|
34
43
|
readonly default: () => never[];
|
|
35
44
|
};
|
|
45
|
+
readonly isBuiltInRequest: {
|
|
46
|
+
readonly type: BooleanConstructor;
|
|
47
|
+
readonly default: false;
|
|
48
|
+
};
|
|
49
|
+
readonly http: {
|
|
50
|
+
readonly type: PropType<any>;
|
|
51
|
+
readonly default: () => void;
|
|
52
|
+
};
|
|
53
|
+
readonly prefix: StringConstructor;
|
|
36
54
|
}>> & {
|
|
37
55
|
"onUpdate:modelValue"?: ((value: RoleSelectorOption | RoleSelectorOption[]) => any) | undefined;
|
|
38
56
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -41,6 +59,8 @@ export declare const KRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
41
59
|
readonly visible: boolean;
|
|
42
60
|
readonly modelValue: RoleSelectorOption | RoleSelectorOption[];
|
|
43
61
|
readonly options: RoleSelectorOption[];
|
|
62
|
+
readonly http: any;
|
|
63
|
+
readonly isBuiltInRequest: boolean;
|
|
44
64
|
}, {}>>;
|
|
45
65
|
export declare const KProRoleSelector: SFCWithInstall<DefineComponent<{
|
|
46
66
|
readonly visible: BooleanConstructor;
|
|
@@ -56,6 +76,15 @@ export declare const KProRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
56
76
|
readonly type: PropType< RoleSelectorOption[]>;
|
|
57
77
|
readonly default: () => never[];
|
|
58
78
|
};
|
|
79
|
+
readonly isBuiltInRequest: {
|
|
80
|
+
readonly type: BooleanConstructor;
|
|
81
|
+
readonly default: false;
|
|
82
|
+
};
|
|
83
|
+
readonly http: {
|
|
84
|
+
readonly type: PropType<any>;
|
|
85
|
+
readonly default: () => void;
|
|
86
|
+
};
|
|
87
|
+
readonly prefix: StringConstructor;
|
|
59
88
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
60
89
|
'update:visible': (value: boolean) => boolean;
|
|
61
90
|
'update:modelValue': (value: RoleSelectorOption[] | RoleSelectorOption) => boolean;
|
|
@@ -73,6 +102,15 @@ export declare const KProRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
73
102
|
readonly type: PropType< RoleSelectorOption[]>;
|
|
74
103
|
readonly default: () => never[];
|
|
75
104
|
};
|
|
105
|
+
readonly isBuiltInRequest: {
|
|
106
|
+
readonly type: BooleanConstructor;
|
|
107
|
+
readonly default: false;
|
|
108
|
+
};
|
|
109
|
+
readonly http: {
|
|
110
|
+
readonly type: PropType<any>;
|
|
111
|
+
readonly default: () => void;
|
|
112
|
+
};
|
|
113
|
+
readonly prefix: StringConstructor;
|
|
76
114
|
}>> & {
|
|
77
115
|
"onUpdate:modelValue"?: ((value: RoleSelectorOption | RoleSelectorOption[]) => any) | undefined;
|
|
78
116
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -81,5 +119,7 @@ export declare const KProRoleSelector: SFCWithInstall<DefineComponent<{
|
|
|
81
119
|
readonly visible: boolean;
|
|
82
120
|
readonly modelValue: RoleSelectorOption | RoleSelectorOption[];
|
|
83
121
|
readonly options: RoleSelectorOption[];
|
|
122
|
+
readonly http: any;
|
|
123
|
+
readonly isBuiltInRequest: boolean;
|
|
84
124
|
}, {}>>;
|
|
85
125
|
export default KRoleSelector;
|
|
@@ -14,6 +14,15 @@ declare const RoleSelector: DefineComponent<{
|
|
|
14
14
|
readonly type: PropType<RoleSelectorOption[]>;
|
|
15
15
|
readonly default: () => never[];
|
|
16
16
|
};
|
|
17
|
+
readonly isBuiltInRequest: {
|
|
18
|
+
readonly type: BooleanConstructor;
|
|
19
|
+
readonly default: false;
|
|
20
|
+
};
|
|
21
|
+
readonly http: {
|
|
22
|
+
readonly type: PropType<any>;
|
|
23
|
+
readonly default: () => void;
|
|
24
|
+
};
|
|
25
|
+
readonly prefix: StringConstructor;
|
|
17
26
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
18
27
|
'update:visible': (value: boolean) => boolean;
|
|
19
28
|
'update:modelValue': (value: RoleSelectorOption[] | RoleSelectorOption) => boolean;
|
|
@@ -31,6 +40,15 @@ declare const RoleSelector: DefineComponent<{
|
|
|
31
40
|
readonly type: PropType<RoleSelectorOption[]>;
|
|
32
41
|
readonly default: () => never[];
|
|
33
42
|
};
|
|
43
|
+
readonly isBuiltInRequest: {
|
|
44
|
+
readonly type: BooleanConstructor;
|
|
45
|
+
readonly default: false;
|
|
46
|
+
};
|
|
47
|
+
readonly http: {
|
|
48
|
+
readonly type: PropType<any>;
|
|
49
|
+
readonly default: () => void;
|
|
50
|
+
};
|
|
51
|
+
readonly prefix: StringConstructor;
|
|
34
52
|
}>> & {
|
|
35
53
|
"onUpdate:modelValue"?: ((value: RoleSelectorOption | RoleSelectorOption[]) => any) | undefined;
|
|
36
54
|
"onUpdate:visible"?: ((value: boolean) => any) | undefined;
|
|
@@ -39,5 +57,7 @@ declare const RoleSelector: DefineComponent<{
|
|
|
39
57
|
readonly visible: boolean;
|
|
40
58
|
readonly modelValue: RoleSelectorOption | RoleSelectorOption[];
|
|
41
59
|
readonly options: RoleSelectorOption[];
|
|
60
|
+
readonly http: any;
|
|
61
|
+
readonly isBuiltInRequest: boolean;
|
|
42
62
|
}, {}>;
|
|
43
63
|
export default RoleSelector;
|
|
@@ -17,7 +17,27 @@ export declare const roleSelectorProps: {
|
|
|
17
17
|
readonly type: PropType<RoleSelectorOption[]>;
|
|
18
18
|
readonly default: () => never[];
|
|
19
19
|
};
|
|
20
|
+
/**
|
|
21
|
+
* 是否使用内置请求,内置请求会走用户中心即
|
|
22
|
+
* ${prefix}security/company/role/page?pageNum=1&pageSize=1000
|
|
23
|
+
*/
|
|
24
|
+
readonly isBuiltInRequest: {
|
|
25
|
+
readonly type: BooleanConstructor;
|
|
26
|
+
readonly default: false;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* axios 实例
|
|
30
|
+
*/
|
|
31
|
+
readonly http: {
|
|
32
|
+
readonly type: PropType<any>;
|
|
33
|
+
readonly default: () => void;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* 请求前缀,如 qy-user-service
|
|
37
|
+
*/
|
|
38
|
+
readonly prefix: StringConstructor;
|
|
20
39
|
};
|
|
40
|
+
export declare const GTE_OPTIONS_URL = "/security/company/role/page?pageNum=1&pageSize=1000";
|
|
21
41
|
export declare const roleSelectorEmits: {
|
|
22
42
|
'update:visible': (value: boolean) => boolean;
|
|
23
43
|
'update:modelValue': (value: RoleSelectorOption[] | RoleSelectorOption) => boolean;
|
package/global.d.ts
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
// GlobalComponents for Volar
|
|
3
3
|
declare module 'vue' {
|
|
4
4
|
export interface GlobalComponents {
|
|
5
|
+
K.DSStore: typeof import('@king-one/antdv')['K.DSStore'];
|
|
5
6
|
KCollapseTranstion: typeof import('@king-one/antdv')['KCollapseTranstion'];
|
|
6
7
|
KCoverScrollBar: typeof import('@king-one/antdv')['KCoverScrollBar'];
|
|
7
8
|
KDeptSelector: typeof import('@king-one/antdv')['KDeptSelector'];
|