@liujitcn/kratos-admin-core 0.0.86 → 0.0.88
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/dist/package/declarations/src/components/Dialog/FormDialog.vue.d.ts +8 -8
- package/dist/package/declarations/src/components/Dialog/PasswordVerifyDialog.vue.d.ts +4 -4
- package/dist/package/declarations/src/components/Dialog/ProDialog.vue.d.ts +9 -9
- package/dist/package/declarations/src/components/Dict/DictLabel.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/Grid/index.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/ImportExcel/index.vue.d.ts +3 -3
- package/dist/package/declarations/src/components/Mfa/MfaRecoveryCodesDialog.vue.d.ts +2 -2
- package/dist/package/declarations/src/components/ProForm/components/ProFormItem.vue.d.ts +6 -6
- package/dist/package/declarations/src/components/ProForm/index.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/ProTable/index.vue.d.ts +16 -12
- package/dist/package/declarations/src/components/SearchForm/components/SearchFormItem.vue.d.ts +2 -2
- package/dist/package/declarations/src/components/SearchForm/index.vue.d.ts +2 -2
- package/dist/package/declarations/src/components/SelectFilter/index.vue.d.ts +2 -2
- package/dist/package/declarations/src/components/TenantSelect/index.vue.d.ts +1 -1
- package/dist/package/declarations/src/components/TreeFilter/index.vue.d.ts +18 -18
- package/dist/package/src/utils/request.ts +13 -1
- package/package.json +4 -4
|
@@ -32,11 +32,11 @@ declare function clearValidate(props?: string | string[]): void;
|
|
|
32
32
|
declare function open<T>(options: DialogOpenOptions<T>): Promise<boolean>;
|
|
33
33
|
/** 关闭弹窗并使未完成的打开请求失效。 */
|
|
34
34
|
declare function close(): void;
|
|
35
|
-
declare var
|
|
35
|
+
declare var __VLS_22: string, __VLS_23: any, __VLS_26: {};
|
|
36
36
|
type __VLS_Slots = {} & {
|
|
37
|
-
[K in NonNullable<typeof
|
|
37
|
+
[K in NonNullable<typeof __VLS_22>]?: (props: typeof __VLS_23) => any;
|
|
38
38
|
} & {
|
|
39
|
-
footer?: (props: typeof
|
|
39
|
+
footer?: (props: typeof __VLS_26) => any;
|
|
40
40
|
};
|
|
41
41
|
declare const __VLS_base: import("vue").DefineComponent<FormDialogProps, {
|
|
42
42
|
open: typeof open;
|
|
@@ -45,17 +45,17 @@ declare const __VLS_base: import("vue").DefineComponent<FormDialogProps, {
|
|
|
45
45
|
resetFields: typeof resetFields;
|
|
46
46
|
clearValidate: typeof clearValidate;
|
|
47
47
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
48
|
-
confirm: () => any;
|
|
49
|
-
close: () => any;
|
|
50
48
|
"update:modelValue": (value: boolean) => any;
|
|
49
|
+
close: () => any;
|
|
51
50
|
closed: () => any;
|
|
52
51
|
cancel: () => any;
|
|
52
|
+
confirm: () => any;
|
|
53
53
|
}, string, import("vue").PublicProps, Readonly<FormDialogProps> & Readonly<{
|
|
54
|
-
onConfirm?: (() => any) | undefined;
|
|
55
|
-
onClose?: (() => any) | undefined;
|
|
56
54
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
55
|
+
onClose?: (() => any) | undefined;
|
|
57
56
|
onClosed?: (() => any) | undefined;
|
|
58
57
|
onCancel?: (() => any) | undefined;
|
|
58
|
+
onConfirm?: (() => any) | undefined;
|
|
59
59
|
}>, {
|
|
60
60
|
title: string;
|
|
61
61
|
width: string | number;
|
|
@@ -67,7 +67,7 @@ declare const __VLS_base: import("vue").DefineComponent<FormDialogProps, {
|
|
|
67
67
|
cancelText: string;
|
|
68
68
|
confirmLoading: boolean;
|
|
69
69
|
colSpan: number;
|
|
70
|
-
rules:
|
|
70
|
+
rules: Partial<Record<string, Record<string, any> | import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>>>;
|
|
71
71
|
labelWidth: string;
|
|
72
72
|
labelPosition: ProFormLabelPosition;
|
|
73
73
|
gutter: number;
|
|
@@ -34,17 +34,17 @@ interface PasswordVerifyDialogProps {
|
|
|
34
34
|
labelPosition?: ProFormLabelPosition;
|
|
35
35
|
}
|
|
36
36
|
declare const __VLS_export: import("vue").DefineComponent<PasswordVerifyDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
-
confirm: (password: SecretCrypto) => any;
|
|
38
|
-
close: () => any;
|
|
39
37
|
"update:modelValue": (value: boolean) => any;
|
|
38
|
+
close: () => any;
|
|
40
39
|
closed: () => any;
|
|
41
40
|
cancel: () => any;
|
|
41
|
+
confirm: (password: SecretCrypto) => any;
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<PasswordVerifyDialogProps> & Readonly<{
|
|
43
|
-
onConfirm?: ((password: SecretCrypto) => any) | undefined;
|
|
44
|
-
onClose?: (() => any) | undefined;
|
|
45
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
46
45
|
onClosed?: (() => any) | undefined;
|
|
47
46
|
onCancel?: (() => any) | undefined;
|
|
47
|
+
onConfirm?: ((password: SecretCrypto) => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
description: string;
|
|
50
50
|
title: string;
|
|
@@ -18,33 +18,33 @@ interface ProDialogProps {
|
|
|
18
18
|
declare function open<T>(options: DialogOpenOptions<T>): Promise<boolean>;
|
|
19
19
|
/** 关闭弹窗并使未完成的打开请求失效。 */
|
|
20
20
|
declare function close(): void;
|
|
21
|
-
declare var
|
|
21
|
+
declare var __VLS_12: {
|
|
22
22
|
close: () => void;
|
|
23
23
|
titleId: string;
|
|
24
24
|
titleClass: string;
|
|
25
|
-
},
|
|
25
|
+
}, __VLS_14: {}, __VLS_17: {};
|
|
26
26
|
type __VLS_Slots = {} & {
|
|
27
|
-
header?: (props: typeof
|
|
27
|
+
header?: (props: typeof __VLS_12) => any;
|
|
28
28
|
} & {
|
|
29
|
-
default?: (props: typeof
|
|
29
|
+
default?: (props: typeof __VLS_14) => any;
|
|
30
30
|
} & {
|
|
31
|
-
footer?: (props: typeof
|
|
31
|
+
footer?: (props: typeof __VLS_17) => any;
|
|
32
32
|
};
|
|
33
33
|
declare const __VLS_base: import("vue").DefineComponent<ProDialogProps, {
|
|
34
34
|
open: typeof open;
|
|
35
35
|
close: typeof close;
|
|
36
36
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
37
|
-
confirm: () => any;
|
|
38
|
-
close: () => any;
|
|
39
37
|
"update:modelValue": (value: boolean) => any;
|
|
38
|
+
close: () => any;
|
|
40
39
|
closed: () => any;
|
|
41
40
|
cancel: () => any;
|
|
41
|
+
confirm: () => any;
|
|
42
42
|
}, string, import("vue").PublicProps, Readonly<ProDialogProps> & Readonly<{
|
|
43
|
-
onConfirm?: (() => any) | undefined;
|
|
44
|
-
onClose?: (() => any) | undefined;
|
|
45
43
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
44
|
+
onClose?: (() => any) | undefined;
|
|
46
45
|
onClosed?: (() => any) | undefined;
|
|
47
46
|
onCancel?: (() => any) | undefined;
|
|
47
|
+
onConfirm?: (() => any) | undefined;
|
|
48
48
|
}>, {
|
|
49
49
|
title: string;
|
|
50
50
|
width: string | number;
|
|
@@ -5,7 +5,7 @@ interface DictLabelProps {
|
|
|
5
5
|
size?: "default" | "large" | "small";
|
|
6
6
|
}
|
|
7
7
|
declare const __VLS_export: import("vue").DefineComponent<DictLabelProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<DictLabelProps> & Readonly<{}>, {
|
|
8
|
-
size: "
|
|
8
|
+
size: "large" | "default" | "small";
|
|
9
9
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
10
10
|
declare const _default: typeof __VLS_export;
|
|
11
11
|
export default _default;
|
|
@@ -13,7 +13,7 @@ type __VLS_Slots = {} & {
|
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<Props, {
|
|
14
14
|
breakPoint: globalThis.Ref<BreakPoint, BreakPoint>;
|
|
15
15
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
16
|
-
gap: [number, number]
|
|
16
|
+
gap: number | [number, number];
|
|
17
17
|
cols: number | Record<BreakPoint, number>;
|
|
18
18
|
collapsed: boolean;
|
|
19
19
|
collapsedRows: number;
|
|
@@ -7,11 +7,11 @@ export interface ExcelParameterProps {
|
|
|
7
7
|
importApi?: (params: any) => Promise<any>;
|
|
8
8
|
getTableList?: () => void;
|
|
9
9
|
}
|
|
10
|
-
declare var
|
|
10
|
+
declare var __VLS_39: {}, __VLS_53: {};
|
|
11
11
|
type __VLS_Slots = {} & {
|
|
12
|
-
empty?: (props: typeof
|
|
12
|
+
empty?: (props: typeof __VLS_39) => any;
|
|
13
13
|
} & {
|
|
14
|
-
tip?: (props: typeof
|
|
14
|
+
tip?: (props: typeof __VLS_53) => any;
|
|
15
15
|
};
|
|
16
16
|
declare const __VLS_base: import("vue").DefineComponent<{}, {
|
|
17
17
|
acceptParams: (params: ExcelParameterProps) => void;
|
|
@@ -6,11 +6,11 @@ interface MfaRecoveryCodesDialogProps {
|
|
|
6
6
|
codes: string[];
|
|
7
7
|
}
|
|
8
8
|
declare const __VLS_export: import("vue").DefineComponent<MfaRecoveryCodesDialogProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
9
|
-
confirm: () => any;
|
|
10
9
|
"update:modelValue": (value: boolean) => any;
|
|
10
|
+
confirm: () => any;
|
|
11
11
|
}, string, import("vue").PublicProps, Readonly<MfaRecoveryCodesDialogProps> & Readonly<{
|
|
12
|
-
onConfirm?: (() => any) | undefined;
|
|
13
12
|
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
13
|
+
onConfirm?: (() => any) | undefined;
|
|
14
14
|
}>, {
|
|
15
15
|
modelValue: boolean;
|
|
16
16
|
codes: string[];
|
|
@@ -4,23 +4,23 @@ interface ProFormItemProps {
|
|
|
4
4
|
field: ProFormField;
|
|
5
5
|
model: Record<string, any>;
|
|
6
6
|
}
|
|
7
|
-
declare var
|
|
7
|
+
declare var __VLS_14: string, __VLS_15: {
|
|
8
8
|
field: ProFormField;
|
|
9
9
|
model: Record<string, any>;
|
|
10
|
-
},
|
|
10
|
+
}, __VLS_140: string, __VLS_141: {
|
|
11
11
|
option: import("element-plus").TransferDataItem;
|
|
12
12
|
field: ProFormField;
|
|
13
13
|
model: Record<string, any>;
|
|
14
|
-
},
|
|
14
|
+
}, __VLS_179: string, __VLS_180: {
|
|
15
15
|
field: ProFormField;
|
|
16
16
|
model: Record<string, any>;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
[K in NonNullable<typeof
|
|
19
|
+
[K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
|
|
20
20
|
} & {
|
|
21
|
-
[K in NonNullable<typeof
|
|
21
|
+
[K in NonNullable<typeof __VLS_140>]?: (props: typeof __VLS_141) => any;
|
|
22
22
|
} & {
|
|
23
|
-
[K in NonNullable<typeof
|
|
23
|
+
[K in NonNullable<typeof __VLS_179>]?: (props: typeof __VLS_180) => any;
|
|
24
24
|
};
|
|
25
25
|
declare const __VLS_base: import("vue").DefineComponent<ProFormItemProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProFormItemProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
26
26
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -23,7 +23,7 @@ declare const __VLS_base: import("vue").DefineComponent<ProFormProps, {
|
|
|
23
23
|
clearValidate: typeof clearValidate;
|
|
24
24
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProFormProps> & Readonly<{}>, {
|
|
25
25
|
colSpan: number;
|
|
26
|
-
rules:
|
|
26
|
+
rules: Partial<Record<string, Record<string, any> | import("element-plus/es/utils/typescript.mjs").Arrayable<import("element-plus").FormItemRule>>>;
|
|
27
27
|
labelWidth: string;
|
|
28
28
|
labelPosition: ProFormLabelPosition;
|
|
29
29
|
gutter: number;
|
|
@@ -4,7 +4,7 @@ declare var __VLS_6: {
|
|
|
4
4
|
selectedList: any[];
|
|
5
5
|
selectedListIds: (string | number)[];
|
|
6
6
|
isSelected: boolean;
|
|
7
|
-
},
|
|
7
|
+
}, __VLS_17: {}, __VLS_79: {}, __VLS_95: "expand", __VLS_96: {
|
|
8
8
|
row: {
|
|
9
9
|
[x: string]: any;
|
|
10
10
|
};
|
|
@@ -12,23 +12,23 @@ declare var __VLS_6: {
|
|
|
12
12
|
[x: string]: any;
|
|
13
13
|
}>;
|
|
14
14
|
$index: number;
|
|
15
|
-
},
|
|
15
|
+
}, __VLS_130: string, __VLS_131: any, __VLS_134: {}, __VLS_137: {}, __VLS_139: {};
|
|
16
16
|
type __VLS_Slots = {} & {
|
|
17
17
|
[K in NonNullable<typeof __VLS_95>]?: (props: typeof __VLS_96) => any;
|
|
18
18
|
} & {
|
|
19
|
-
[K in NonNullable<typeof
|
|
19
|
+
[K in NonNullable<typeof __VLS_130>]?: (props: typeof __VLS_131) => any;
|
|
20
20
|
} & {
|
|
21
21
|
tableHeader?: (props: typeof __VLS_6) => any;
|
|
22
22
|
} & {
|
|
23
|
-
toolButton?: (props: typeof
|
|
23
|
+
toolButton?: (props: typeof __VLS_17) => any;
|
|
24
24
|
} & {
|
|
25
|
-
default?: (props: typeof
|
|
25
|
+
default?: (props: typeof __VLS_79) => any;
|
|
26
26
|
} & {
|
|
27
|
-
append?: (props: typeof
|
|
27
|
+
append?: (props: typeof __VLS_134) => any;
|
|
28
28
|
} & {
|
|
29
|
-
empty?: (props: typeof
|
|
29
|
+
empty?: (props: typeof __VLS_137) => any;
|
|
30
30
|
} & {
|
|
31
|
-
pagination?: (props: typeof
|
|
31
|
+
pagination?: (props: typeof __VLS_139) => any;
|
|
32
32
|
};
|
|
33
33
|
declare const __VLS_base: import("vue").DefineComponent<ProTableProps, {
|
|
34
34
|
element: globalThis.Ref<TableInstance | undefined, TableInstance | undefined>;
|
|
@@ -93,16 +93,20 @@ declare const __VLS_base: import("vue").DefineComponent<ProTableProps, {
|
|
|
93
93
|
oldIndex?: number;
|
|
94
94
|
}) => any) | undefined;
|
|
95
95
|
}>, {
|
|
96
|
-
columns: ColumnProps
|
|
96
|
+
columns: ColumnProps<{
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
}>[];
|
|
97
99
|
pagination: boolean;
|
|
98
100
|
border: boolean;
|
|
99
101
|
searchCol: number | Record<import("../Grid/interface/index.js").BreakPoint, number>;
|
|
100
102
|
rowKey: string;
|
|
101
|
-
headerActions: HeaderActionProps
|
|
103
|
+
headerActions: HeaderActionProps<{
|
|
104
|
+
[x: string]: any;
|
|
105
|
+
}>[];
|
|
102
106
|
requestAuto: boolean;
|
|
103
107
|
initParam: any;
|
|
104
|
-
toolButton: ("
|
|
105
|
-
restoreSelectedRowKeys:
|
|
108
|
+
toolButton: boolean | ("search" | "refresh" | "setting")[];
|
|
109
|
+
restoreSelectedRowKeys: (string | number)[];
|
|
106
110
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
107
111
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
108
112
|
declare const _default: typeof __VLS_export;
|
package/dist/package/declarations/src/components/SearchForm/components/SearchFormItem.vue.d.ts
CHANGED
|
@@ -6,9 +6,9 @@ interface SearchFormItem {
|
|
|
6
6
|
[key: string]: any;
|
|
7
7
|
};
|
|
8
8
|
}
|
|
9
|
-
declare var
|
|
9
|
+
declare var __VLS_43: {};
|
|
10
10
|
type __VLS_Slots = {} & {
|
|
11
|
-
default?: (props: typeof
|
|
11
|
+
default?: (props: typeof __VLS_43) => any;
|
|
12
12
|
};
|
|
13
13
|
declare const __VLS_base: import("vue").DefineComponent<SearchFormItem, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<SearchFormItem> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
14
14
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -18,7 +18,7 @@ interface ProTableProps {
|
|
|
18
18
|
reset: (params: any) => void;
|
|
19
19
|
showOperation?: boolean;
|
|
20
20
|
}
|
|
21
|
-
declare var
|
|
21
|
+
declare var __VLS_40: string, __VLS_41: {
|
|
22
22
|
field: SearchColumn;
|
|
23
23
|
model: {
|
|
24
24
|
[key: string]: any;
|
|
@@ -30,7 +30,7 @@ declare var __VLS_43: string | undefined, __VLS_44: {
|
|
|
30
30
|
prop: string | undefined;
|
|
31
31
|
};
|
|
32
32
|
type __VLS_Slots = {} & {
|
|
33
|
-
[K in NonNullable<typeof
|
|
33
|
+
[K in NonNullable<typeof __VLS_40>]?: (props: typeof __VLS_41) => any;
|
|
34
34
|
};
|
|
35
35
|
declare const __VLS_base: import("vue").DefineComponent<ProTableProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ProTableProps> & Readonly<{}>, {
|
|
36
36
|
columns: SearchColumn[];
|
|
@@ -18,11 +18,11 @@ interface SelectFilterProps {
|
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
declare var
|
|
21
|
+
declare var __VLS_9: {
|
|
22
22
|
row: OptionsProps;
|
|
23
23
|
};
|
|
24
24
|
type __VLS_Slots = {} & {
|
|
25
|
-
default?: (props: typeof
|
|
25
|
+
default?: (props: typeof __VLS_9) => any;
|
|
26
26
|
};
|
|
27
27
|
declare const __VLS_base: import("vue").DefineComponent<SelectFilterProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
28
28
|
change: (value: any) => any;
|
|
@@ -16,7 +16,7 @@ declare const __VLS_export: import("vue").DefineComponent<TenantSelectProps, {},
|
|
|
16
16
|
onChange?: ((value: string | number | undefined) => any) | undefined;
|
|
17
17
|
}>, {
|
|
18
18
|
options: SelectOptionResponse_Option[];
|
|
19
|
-
modelValue:
|
|
19
|
+
modelValue: string | number;
|
|
20
20
|
loading: boolean;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
declare const _default: typeof __VLS_export;
|
|
@@ -12,11 +12,11 @@ interface TreeFilterProps {
|
|
|
12
12
|
lazy?: boolean;
|
|
13
13
|
parentKey?: string;
|
|
14
14
|
}
|
|
15
|
-
declare var
|
|
15
|
+
declare var __VLS_70: {
|
|
16
16
|
row: any;
|
|
17
17
|
};
|
|
18
18
|
type __VLS_Slots = {} & {
|
|
19
|
-
default?: (props: typeof
|
|
19
|
+
default?: (props: typeof __VLS_70) => any;
|
|
20
20
|
};
|
|
21
21
|
declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
22
22
|
treeData: globalThis.Ref<{
|
|
@@ -459,9 +459,7 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
459
459
|
checkDescendants: boolean;
|
|
460
460
|
props: {
|
|
461
461
|
children?: string | undefined;
|
|
462
|
-
label
|
|
463
|
-
/** @type {typeof __VLS_50.click} */
|
|
464
|
-
? /** @type {typeof __VLS_50.click} */: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
462
|
+
label?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
465
463
|
disabled?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
466
464
|
isLeaf?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
467
465
|
class?: ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string | {
|
|
@@ -496,7 +494,9 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
496
494
|
setChecked: (data: import("element-plus").TreeKey | import("element-plus").TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
497
495
|
getCurrentNode: () => import("element-plus/es/components/tree/src/model/node.mjs").default | null;
|
|
498
496
|
setCurrentNode: (currentNode: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
499
|
-
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
497
|
+
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
498
|
+
/** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */
|
|
499
|
+
? /** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */: boolean) => void;
|
|
500
500
|
setCurrentNodeKey: (key: import("element-plus").TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
501
501
|
};
|
|
502
502
|
isLeafByUser: boolean | undefined;
|
|
@@ -2099,9 +2099,7 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
2099
2099
|
checkDescendants: boolean;
|
|
2100
2100
|
props: {
|
|
2101
2101
|
children?: string | undefined;
|
|
2102
|
-
label
|
|
2103
|
-
/** @type {typeof __VLS_50.click} */
|
|
2104
|
-
? /** @type {typeof __VLS_50.click} */: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
2102
|
+
label?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
2105
2103
|
disabled?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
2106
2104
|
isLeaf?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
2107
2105
|
class?: ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string | {
|
|
@@ -2136,7 +2134,9 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
2136
2134
|
setChecked: (data: import("element-plus").TreeKey | import("element-plus").TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
2137
2135
|
getCurrentNode: () => import("element-plus/es/components/tree/src/model/node.mjs").default | null;
|
|
2138
2136
|
setCurrentNode: (currentNode: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
2139
|
-
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
2137
|
+
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
2138
|
+
/** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */
|
|
2139
|
+
? /** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */: boolean) => void;
|
|
2140
2140
|
setCurrentNodeKey: (key: import("element-plus").TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
2141
2141
|
};
|
|
2142
2142
|
isLeafByUser: boolean | undefined;
|
|
@@ -3370,9 +3370,7 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
3370
3370
|
checkDescendants: boolean;
|
|
3371
3371
|
props: {
|
|
3372
3372
|
children?: string | undefined;
|
|
3373
|
-
label
|
|
3374
|
-
/** @type {typeof __VLS_50.click} */
|
|
3375
|
-
? /** @type {typeof __VLS_50.click} */: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
3373
|
+
label?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
3376
3374
|
disabled?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
3377
3375
|
isLeaf?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
3378
3376
|
class?: ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string | {
|
|
@@ -3407,7 +3405,9 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
3407
3405
|
setChecked: (data: import("element-plus").TreeKey | import("element-plus").TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
3408
3406
|
getCurrentNode: () => import("element-plus/es/components/tree/src/model/node.mjs").default | null;
|
|
3409
3407
|
setCurrentNode: (currentNode: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
3410
|
-
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
3408
|
+
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
3409
|
+
/** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */
|
|
3410
|
+
? /** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */: boolean) => void;
|
|
3411
3411
|
setCurrentNodeKey: (key: import("element-plus").TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
3412
3412
|
};
|
|
3413
3413
|
isLeafByUser: boolean | undefined;
|
|
@@ -5010,9 +5010,7 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
5010
5010
|
checkDescendants: boolean;
|
|
5011
5011
|
props: {
|
|
5012
5012
|
children?: string | undefined;
|
|
5013
|
-
label
|
|
5014
|
-
/** @type {typeof __VLS_50.click} */
|
|
5015
|
-
? /** @type {typeof __VLS_50.click} */: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
5013
|
+
label?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string) | undefined;
|
|
5016
5014
|
disabled?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
5017
5015
|
isLeaf?: string | ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => boolean) | undefined;
|
|
5018
5016
|
class?: ((data: import("element-plus").TreeNodeData, node: import("element-plus/es/components/tree/src/model/node.mjs").default) => string | {
|
|
@@ -5047,7 +5045,9 @@ declare const __VLS_base: import("vue").DefineComponent<TreeFilterProps, {
|
|
|
5047
5045
|
setChecked: (data: import("element-plus").TreeKey | import("element-plus").TreeNodeData, checked: boolean, deep: boolean) => void;
|
|
5048
5046
|
getCurrentNode: () => import("element-plus/es/components/tree/src/model/node.mjs").default | null;
|
|
5049
5047
|
setCurrentNode: (currentNode: import("element-plus/es/components/tree/src/model/node.mjs").default) => void;
|
|
5050
|
-
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
5048
|
+
setUserCurrentNode: (node: import("element-plus/es/components/tree/src/model/node.mjs").default, shouldAutoExpandParent
|
|
5049
|
+
/** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */
|
|
5050
|
+
? /** @ts-ignore @type { | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree'] | typeof __VLS_components.elTree | typeof __VLS_components.ElTree | typeof __VLS_components['el-tree']} */: boolean) => void;
|
|
5051
5051
|
setCurrentNodeKey: (key: import("element-plus").TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
5052
5052
|
};
|
|
5053
5053
|
isLeafByUser: boolean | undefined;
|
|
@@ -59,6 +59,18 @@ const AUTH_EXPIRED_EXCLUDED_URL_SET = new Set([
|
|
|
59
59
|
MFA_ENROLLMENT_CONFIRM_URL
|
|
60
60
|
]);
|
|
61
61
|
|
|
62
|
+
/** 删除查询参数中表示“未选择”的租户项目零值。 */
|
|
63
|
+
function compactTenantProjectQueryParams(value: unknown): unknown {
|
|
64
|
+
if (Array.isArray(value)) return value.map(item => compactTenantProjectQueryParams(item));
|
|
65
|
+
if (!value || typeof value !== "object") return value;
|
|
66
|
+
const result: Record<string, unknown> = {};
|
|
67
|
+
for (const [key, nested] of Object.entries(value as Record<string, unknown>)) {
|
|
68
|
+
if ((key === "tenant_id" || key === "project_id" || key.endsWith(".tenant_id") || key.endsWith(".project_id")) && nested === 0) continue;
|
|
69
|
+
result[key] = compactTenantProjectQueryParams(nested);
|
|
70
|
+
}
|
|
71
|
+
return result;
|
|
72
|
+
}
|
|
73
|
+
|
|
62
74
|
/** 支持自动重试的 Axios 请求配置。 */
|
|
63
75
|
type RetryableRequestConfig = InternalAxiosRequestConfig & {
|
|
64
76
|
/** 标记当前请求已经因认证失败重试过,避免刷新失败时递归重放。 */
|
|
@@ -109,7 +121,7 @@ const service = axios.create({
|
|
|
109
121
|
baseURL: requestBaseURL,
|
|
110
122
|
timeout: 50000,
|
|
111
123
|
headers: { "Content-Type": "application/json;charset=utf-8" },
|
|
112
|
-
paramsSerializer: params => qs.stringify(params),
|
|
124
|
+
paramsSerializer: params => qs.stringify(compactTenantProjectQueryParams(params)),
|
|
113
125
|
withCredentials: true
|
|
114
126
|
});
|
|
115
127
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@liujitcn/kratos-admin-core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.88",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "kratos-admin frontend runtime and base modules",
|
|
7
7
|
"author": {
|
|
@@ -41,13 +41,13 @@
|
|
|
41
41
|
"echarts": "^6.1.0",
|
|
42
42
|
"echarts-liquidfill": "^3.1.0",
|
|
43
43
|
"element-plus": "^2.7.6",
|
|
44
|
-
"go-captcha-vue": "2.0.
|
|
44
|
+
"go-captcha-vue": "2.0.7",
|
|
45
45
|
"highlight.js": "^11.11.1",
|
|
46
46
|
"md-editor-v3": "^6.5.5",
|
|
47
47
|
"md5": "^2.3.0",
|
|
48
48
|
"mitt": "^3.0.1",
|
|
49
49
|
"nprogress": "^0.2.0",
|
|
50
|
-
"pinia": "^
|
|
50
|
+
"pinia": "^4.0.3",
|
|
51
51
|
"pinia-plugin-persistedstate": "^4.7.1",
|
|
52
52
|
"qrcode-generator": "^2.0.4",
|
|
53
53
|
"qs": "^6.12.1",
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
"vuedraggable": "^4.1.0"
|
|
71
71
|
},
|
|
72
72
|
"engines": {
|
|
73
|
-
"node": "^
|
|
73
|
+
"node": "^24.0.0"
|
|
74
74
|
},
|
|
75
75
|
"browserslist": {
|
|
76
76
|
"production": [
|