@done-coding/admin-core 0.8.3-alpha.0 → 0.9.0
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/bridge/config-hook.mjs +37 -0
- package/es/bridge/index.mjs +157 -62
- package/es/bridge/plugin.mjs +29 -0
- package/es/bridge/theme.mjs +62 -0
- package/es/components/app-layout/AppBody.vue.mjs +1 -1
- package/es/components/app-layout/AppBody.vue2.mjs +47 -49
- package/es/components/app-layout/AppBreadcrumb.vue.mjs +1 -1
- package/es/components/app-layout/AppBreadcrumb.vue2.mjs +35 -41
- package/es/components/app-layout/AppFooter.vue.mjs +2 -2
- package/es/components/app-layout/AppFooter.vue2.mjs +8 -8
- package/es/components/app-layout/AppHeader.vue.mjs +1 -1
- package/es/components/app-layout/AppHeader.vue2.mjs +60 -69
- package/es/components/app-layout/AppLayout.vue.mjs +2 -2
- package/es/components/app-layout/AppLayout.vue2.mjs +95 -93
- package/es/components/app-layout/AppSidebar.vue.mjs +2 -2
- package/es/components/app-layout/AppSidebar.vue2.mjs +79 -82
- package/es/components/app-layout/AppTheme.vue.mjs +7 -0
- package/es/components/app-layout/AppTheme.vue2.mjs +38 -0
- package/es/components/data-view/DataListView.vue.mjs +2 -2
- package/es/components/data-view/DataListView.vue2.mjs +36 -36
- package/es/components/display/ActionConfirm.vue2.mjs +16 -16
- package/es/components/display/HeightProvider.vue.mjs +10 -10
- package/es/components/display/TabsHeader.vue.mjs +4 -4
- package/es/components/display/TabsHeader.vue2.mjs +34 -34
- package/es/components/display/TabsMain.vue.mjs +40 -39
- package/es/components/display/TabsRefineFlow.vue.mjs +30 -28
- package/es/components/form/FormItem.vue.mjs +1 -1
- package/es/components/form/FormItem.vue2.mjs +75 -81
- package/es/components/form/FormMain.vue.mjs +81 -88
- package/es/components/form/FormRadioGroup.vue.mjs +42 -49
- package/es/components/form/FormSearch.vue.mjs +1 -1
- package/es/components/form/FormSearch.vue2.mjs +116 -123
- package/es/components/form/FormSelect.vue.mjs +34 -40
- package/es/components/form/FormSubmitBtn.vue.mjs +23 -28
- package/es/components/form/FormSubmitPanel.vue.mjs +2 -2
- package/es/components/form/FormSubmitPanel.vue2.mjs +16 -16
- package/es/components/form/FormTree.vue.mjs +16 -21
- package/es/components/form/FormVerifyCode.vue.mjs +37 -43
- package/es/components/form/FormVerifyImage.vue.mjs +2 -2
- package/es/components/form/FormVerifyImage.vue2.mjs +36 -41
- package/es/components/list-page/ListPage.vue.mjs +2 -2
- package/es/components/list-page/ListPage.vue2.mjs +134 -139
- package/es/components/menu/MenuItemSub.vue.mjs +41 -48
- package/es/components/menu/MenuTree.vue.mjs +58 -65
- package/es/components/misc/AutoRefresh.vue.mjs +2 -2
- package/es/components/misc/AutoRefresh.vue2.mjs +44 -51
- package/es/components/misc/AutoRefreshGroup.vue.mjs +2 -2
- package/es/components/misc/AutoRefreshGroup.vue2.mjs +37 -43
- package/es/components/modal/ConfirmModal.vue.mjs +3 -3
- package/es/components/modal/ConfirmModal.vue2.mjs +93 -100
- package/es/components/modal/DetailModal.vue.mjs +38 -41
- package/es/components/panel/PanelEditSwitch.vue.mjs +1 -1
- package/es/components/panel/PanelEditSwitch.vue2.mjs +50 -55
- package/es/components/panel/PanelMain.vue.mjs +2 -2
- package/es/components/panel/PanelMain.vue2.mjs +67 -74
- package/es/components/table/TableMain.vue.mjs +2 -2
- package/es/components/table/TableMain.vue2.mjs +221 -229
- package/es/components/table/TableToolbar.vue.mjs +2 -2
- package/es/components/table/TableToolbar.vue2.mjs +115 -126
- package/es/hooks/use-admin-theme-apply.mjs +84 -0
- package/es/hooks/use-admin-viewport-apply.mjs +27 -0
- package/es/index.mjs +125 -117
- package/es/inject/key.mjs +7 -4
- package/es/store/app.mjs +75 -84
- package/es/style.css +1 -1
- package/es/utils/theme-scale.mjs +37 -0
- package/package.json +2 -4
- package/types/bridge/config-hook.d.ts +91 -0
- package/types/bridge/index.d.ts +108 -8
- package/types/bridge/plugin.d.ts +39 -0
- package/types/bridge/theme.d.ts +66 -0
- package/types/components/app-layout/AppTheme.vue.d.ts +2 -0
- package/types/components/app-layout/types.d.ts +1 -1
- package/types/components/form/FormItem.vue.d.ts +12 -12
- package/types/components/form/FormTree.vue.d.ts +50 -50
- package/types/components/menu/MenuTree.vue.d.ts +10 -10
- package/types/components/modal/ModalShelf.vue.d.ts +1 -1
- package/types/components/table/TableMain.vue.d.ts +1 -1
- package/types/hooks/activated.d.ts +2 -2
- package/types/hooks/feel-size.d.ts +1 -1
- package/types/hooks/index.d.ts +2 -0
- package/types/hooks/menus-dispatch.d.ts +5 -5
- package/types/hooks/use-admin-theme-apply.d.ts +17 -0
- package/types/hooks/use-admin-viewport-apply.d.ts +15 -0
- package/types/hooks/use-breakpoint.d.ts +1 -1
- package/types/inject/key.d.ts +18 -0
- package/types/store/app.d.ts +138 -59
- package/types/utils/index.d.ts +1 -0
- package/types/utils/theme-scale.d.ts +35 -0
|
@@ -13,10 +13,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
13
13
|
}>, {
|
|
14
14
|
tree: FormTreeItem[];
|
|
15
15
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
16
|
-
elTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
16
|
+
elTree: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
17
17
|
readonly data: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData) | (((new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData)) | null)[], unknown, unknown, () => never[], boolean>;
|
|
18
18
|
readonly emptyText: {
|
|
19
|
-
readonly type:
|
|
19
|
+
readonly type: import('vue').PropType<string>;
|
|
20
20
|
readonly required: false;
|
|
21
21
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
22
22
|
__epPropKey: true;
|
|
@@ -31,25 +31,25 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
31
31
|
readonly checkDescendants: BooleanConstructor;
|
|
32
32
|
readonly autoExpandParent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
33
33
|
readonly defaultCheckedKeys: {
|
|
34
|
-
readonly type:
|
|
34
|
+
readonly type: import('vue').PropType<import('element-plus').TreeKey[]>;
|
|
35
35
|
readonly required: false;
|
|
36
36
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
37
37
|
__epPropKey: true;
|
|
38
38
|
};
|
|
39
39
|
readonly defaultExpandedKeys: {
|
|
40
|
-
readonly type:
|
|
40
|
+
readonly type: import('vue').PropType<import('element-plus').TreeKey[]>;
|
|
41
41
|
readonly required: false;
|
|
42
42
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
43
43
|
__epPropKey: true;
|
|
44
44
|
};
|
|
45
45
|
readonly currentNodeKey: {
|
|
46
|
-
readonly type:
|
|
46
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>>;
|
|
47
47
|
readonly required: false;
|
|
48
48
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
49
49
|
__epPropKey: true;
|
|
50
50
|
};
|
|
51
51
|
readonly renderContent: {
|
|
52
|
-
readonly type:
|
|
52
|
+
readonly type: import('vue').PropType<import('element-plus').RenderContentFunction>;
|
|
53
53
|
readonly required: false;
|
|
54
54
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
55
55
|
__epPropKey: true;
|
|
@@ -57,13 +57,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
57
57
|
readonly showCheckbox: BooleanConstructor;
|
|
58
58
|
readonly draggable: BooleanConstructor;
|
|
59
59
|
readonly allowDrag: {
|
|
60
|
-
readonly type:
|
|
60
|
+
readonly type: import('vue').PropType<import('element-plus').AllowDragFunction>;
|
|
61
61
|
readonly required: false;
|
|
62
62
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
63
63
|
__epPropKey: true;
|
|
64
64
|
};
|
|
65
65
|
readonly allowDrop: {
|
|
66
|
-
readonly type:
|
|
66
|
+
readonly type: import('vue').PropType<import('element-plus').AllowDropFunction>;
|
|
67
67
|
readonly required: false;
|
|
68
68
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
69
69
|
__epPropKey: true;
|
|
@@ -76,13 +76,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
76
76
|
readonly lazy: BooleanConstructor;
|
|
77
77
|
readonly highlightCurrent: BooleanConstructor;
|
|
78
78
|
readonly load: {
|
|
79
|
-
readonly type:
|
|
79
|
+
readonly type: import('vue').PropType<import('element-plus').LoadFunction>;
|
|
80
80
|
readonly required: false;
|
|
81
81
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
82
82
|
__epPropKey: true;
|
|
83
83
|
};
|
|
84
84
|
readonly filterNodeMethod: {
|
|
85
|
-
readonly type:
|
|
85
|
+
readonly type: import('vue').PropType<import('element-plus').FilterNodeMethodFunction>;
|
|
86
86
|
readonly required: false;
|
|
87
87
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
88
88
|
__epPropKey: true;
|
|
@@ -90,7 +90,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
90
90
|
readonly accordion: BooleanConstructor;
|
|
91
91
|
readonly indent: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 18, boolean>;
|
|
92
92
|
readonly icon: {
|
|
93
|
-
readonly type:
|
|
93
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>>;
|
|
94
94
|
readonly required: false;
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
@@ -111,7 +111,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
111
111
|
"onNode-drag-over"?: ((draggingNode: import('element-plus/es/components/tree/src/model/node.mjs').Node, dropNode: import('element-plus/es/components/tree/src/model/node.mjs').Node, evt: DragEvent) => any) | undefined;
|
|
112
112
|
}>, {
|
|
113
113
|
ns: {
|
|
114
|
-
namespace:
|
|
114
|
+
namespace: import('vue').ComputedRef<string>;
|
|
115
115
|
b: (blockSuffix?: string) => string;
|
|
116
116
|
e: (element?: string) => string;
|
|
117
117
|
m: (modifier?: string) => string;
|
|
@@ -128,7 +128,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
128
128
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
129
129
|
cssVarBlockName: (name: string) => string;
|
|
130
130
|
};
|
|
131
|
-
store:
|
|
131
|
+
store: import('vue').Ref<{
|
|
132
132
|
currentNode: {
|
|
133
133
|
id: number;
|
|
134
134
|
text: string | null;
|
|
@@ -415,7 +415,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
415
415
|
setUserCurrentNode: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node, shouldAutoExpandParent?: boolean) => void;
|
|
416
416
|
setCurrentNodeKey: (key: import('element-plus').TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
417
417
|
}>;
|
|
418
|
-
root:
|
|
418
|
+
root: import('vue').Ref<{
|
|
419
419
|
id: number;
|
|
420
420
|
text: string | null;
|
|
421
421
|
checked: boolean;
|
|
@@ -504,7 +504,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
504
504
|
eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => void) => void;
|
|
505
505
|
reInitChecked: () => void;
|
|
506
506
|
}>;
|
|
507
|
-
currentNode:
|
|
507
|
+
currentNode: import('vue').Ref<{
|
|
508
508
|
id: number;
|
|
509
509
|
text: string | null;
|
|
510
510
|
checked: boolean;
|
|
@@ -593,7 +593,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
593
593
|
eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => void) => void;
|
|
594
594
|
reInitChecked: () => void;
|
|
595
595
|
} | null>;
|
|
596
|
-
dragState:
|
|
596
|
+
dragState: import('vue').Ref<{
|
|
597
597
|
allowDrop: boolean;
|
|
598
598
|
dropType: import('element-plus').NodeDropType | null;
|
|
599
599
|
draggingNode: {
|
|
@@ -800,9 +800,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
800
800
|
$el?: HTMLElement | undefined;
|
|
801
801
|
} | null;
|
|
802
802
|
}>;
|
|
803
|
-
el$:
|
|
804
|
-
dropIndicator$:
|
|
805
|
-
isEmpty:
|
|
803
|
+
el$: import('vue').Ref<import('element-plus').Nullable<HTMLElement>, import('element-plus').Nullable<HTMLElement>>;
|
|
804
|
+
dropIndicator$: import('vue').Ref<import('element-plus').Nullable<HTMLElement>, import('element-plus').Nullable<HTMLElement>>;
|
|
805
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
806
806
|
filter: (value: import('element-plus').FilterValue) => void;
|
|
807
807
|
getNodeKey: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => any;
|
|
808
808
|
getNodePath: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData) => import('element-plus').TreeNodeData[];
|
|
@@ -857,13 +857,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
857
857
|
readonly checkDescendants: boolean;
|
|
858
858
|
readonly highlightCurrent: boolean;
|
|
859
859
|
}, true, {}, {}, {
|
|
860
|
-
ElTreeNode: import('vue').DefineComponent<
|
|
860
|
+
ElTreeNode: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
861
861
|
node: {
|
|
862
862
|
type: typeof import('element-plus/es/components/tree/src/model/node.mjs').Node;
|
|
863
863
|
default: () => {};
|
|
864
864
|
};
|
|
865
865
|
props: {
|
|
866
|
-
type:
|
|
866
|
+
type: import('vue').PropType<import('element-plus').TreeOptionProps>;
|
|
867
867
|
default: () => {};
|
|
868
868
|
};
|
|
869
869
|
accordion: BooleanConstructor;
|
|
@@ -872,7 +872,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
872
872
|
showCheckbox: BooleanConstructor;
|
|
873
873
|
}>, {
|
|
874
874
|
ns: {
|
|
875
|
-
namespace:
|
|
875
|
+
namespace: import('vue').ComputedRef<string>;
|
|
876
876
|
b: (blockSuffix?: string) => string;
|
|
877
877
|
e: (element?: string) => string;
|
|
878
878
|
m: (modifier?: string) => string;
|
|
@@ -889,12 +889,12 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
889
889
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
890
890
|
cssVarBlockName: (name: string) => string;
|
|
891
891
|
};
|
|
892
|
-
node$:
|
|
892
|
+
node$: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
893
893
|
tree: import('element-plus').RootTreeType;
|
|
894
|
-
expanded:
|
|
895
|
-
childNodeRendered:
|
|
896
|
-
oldChecked:
|
|
897
|
-
oldIndeterminate:
|
|
894
|
+
expanded: import('vue').Ref<boolean, boolean>;
|
|
895
|
+
childNodeRendered: import('vue').Ref<boolean, boolean>;
|
|
896
|
+
oldChecked: import('vue').Ref<boolean | undefined, boolean | undefined>;
|
|
897
|
+
oldIndeterminate: import('vue').Ref<boolean | undefined, boolean | undefined>;
|
|
898
898
|
getNodeKey: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => any;
|
|
899
899
|
getNodeClass: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => {
|
|
900
900
|
[key: string]: boolean;
|
|
@@ -910,13 +910,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
910
910
|
handleDrop: (event: DragEvent) => void;
|
|
911
911
|
handleDragEnd: (event: DragEvent) => void;
|
|
912
912
|
CaretRight: import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
913
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "node-expand"[], "node-expand", import('vue').PublicProps, Readonly<
|
|
913
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "node-expand"[], "node-expand", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
914
914
|
node: {
|
|
915
915
|
type: typeof import('element-plus/es/components/tree/src/model/node.mjs').Node;
|
|
916
916
|
default: () => {};
|
|
917
917
|
};
|
|
918
918
|
props: {
|
|
919
|
-
type:
|
|
919
|
+
type: import('vue').PropType<import('element-plus').TreeOptionProps>;
|
|
920
920
|
default: () => {};
|
|
921
921
|
};
|
|
922
922
|
accordion: BooleanConstructor;
|
|
@@ -1174,13 +1174,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1174
1174
|
};
|
|
1175
1175
|
});
|
|
1176
1176
|
};
|
|
1177
|
-
NodeContent: import('vue').DefineComponent<
|
|
1177
|
+
NodeContent: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1178
1178
|
node: {
|
|
1179
1179
|
type: ObjectConstructor;
|
|
1180
1180
|
required: true;
|
|
1181
1181
|
};
|
|
1182
1182
|
renderContent: FunctionConstructor;
|
|
1183
|
-
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<
|
|
1183
|
+
}>, () => any, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
1184
1184
|
node: {
|
|
1185
1185
|
type: ObjectConstructor;
|
|
1186
1186
|
required: true;
|
|
@@ -1213,10 +1213,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1213
1213
|
C: {};
|
|
1214
1214
|
M: {};
|
|
1215
1215
|
Defaults: {};
|
|
1216
|
-
}, Readonly<
|
|
1216
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
1217
1217
|
readonly data: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData) | (((new (...args: any[]) => import('element-plus').TreeData) | (() => import('element-plus').TreeData)) | null)[], unknown, unknown, () => never[], boolean>;
|
|
1218
1218
|
readonly emptyText: {
|
|
1219
|
-
readonly type:
|
|
1219
|
+
readonly type: import('vue').PropType<string>;
|
|
1220
1220
|
readonly required: false;
|
|
1221
1221
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1222
1222
|
__epPropKey: true;
|
|
@@ -1231,25 +1231,25 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1231
1231
|
readonly checkDescendants: BooleanConstructor;
|
|
1232
1232
|
readonly autoExpandParent: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1233
1233
|
readonly defaultCheckedKeys: {
|
|
1234
|
-
readonly type:
|
|
1234
|
+
readonly type: import('vue').PropType<import('element-plus').TreeKey[]>;
|
|
1235
1235
|
readonly required: false;
|
|
1236
1236
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1237
1237
|
__epPropKey: true;
|
|
1238
1238
|
};
|
|
1239
1239
|
readonly defaultExpandedKeys: {
|
|
1240
|
-
readonly type:
|
|
1240
|
+
readonly type: import('vue').PropType<import('element-plus').TreeKey[]>;
|
|
1241
1241
|
readonly required: false;
|
|
1242
1242
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1243
1243
|
__epPropKey: true;
|
|
1244
1244
|
};
|
|
1245
1245
|
readonly currentNodeKey: {
|
|
1246
|
-
readonly type:
|
|
1246
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | number) | (() => string | number) | (((new (...args: any[]) => string | number) | (() => string | number)) | null)[], unknown, unknown>>;
|
|
1247
1247
|
readonly required: false;
|
|
1248
1248
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1249
1249
|
__epPropKey: true;
|
|
1250
1250
|
};
|
|
1251
1251
|
readonly renderContent: {
|
|
1252
|
-
readonly type:
|
|
1252
|
+
readonly type: import('vue').PropType<import('element-plus').RenderContentFunction>;
|
|
1253
1253
|
readonly required: false;
|
|
1254
1254
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1255
1255
|
__epPropKey: true;
|
|
@@ -1257,13 +1257,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1257
1257
|
readonly showCheckbox: BooleanConstructor;
|
|
1258
1258
|
readonly draggable: BooleanConstructor;
|
|
1259
1259
|
readonly allowDrag: {
|
|
1260
|
-
readonly type:
|
|
1260
|
+
readonly type: import('vue').PropType<import('element-plus').AllowDragFunction>;
|
|
1261
1261
|
readonly required: false;
|
|
1262
1262
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1263
1263
|
__epPropKey: true;
|
|
1264
1264
|
};
|
|
1265
1265
|
readonly allowDrop: {
|
|
1266
|
-
readonly type:
|
|
1266
|
+
readonly type: import('vue').PropType<import('element-plus').AllowDropFunction>;
|
|
1267
1267
|
readonly required: false;
|
|
1268
1268
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1269
1269
|
__epPropKey: true;
|
|
@@ -1276,13 +1276,13 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1276
1276
|
readonly lazy: BooleanConstructor;
|
|
1277
1277
|
readonly highlightCurrent: BooleanConstructor;
|
|
1278
1278
|
readonly load: {
|
|
1279
|
-
readonly type:
|
|
1279
|
+
readonly type: import('vue').PropType<import('element-plus').LoadFunction>;
|
|
1280
1280
|
readonly required: false;
|
|
1281
1281
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1282
1282
|
__epPropKey: true;
|
|
1283
1283
|
};
|
|
1284
1284
|
readonly filterNodeMethod: {
|
|
1285
|
-
readonly type:
|
|
1285
|
+
readonly type: import('vue').PropType<import('element-plus').FilterNodeMethodFunction>;
|
|
1286
1286
|
readonly required: false;
|
|
1287
1287
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1288
1288
|
__epPropKey: true;
|
|
@@ -1290,7 +1290,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1290
1290
|
readonly accordion: BooleanConstructor;
|
|
1291
1291
|
readonly indent: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 18, boolean>;
|
|
1292
1292
|
readonly icon: {
|
|
1293
|
-
readonly type:
|
|
1293
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>>;
|
|
1294
1294
|
readonly required: false;
|
|
1295
1295
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
1296
1296
|
__epPropKey: true;
|
|
@@ -1311,7 +1311,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1311
1311
|
"onNode-drag-over"?: ((draggingNode: import('element-plus/es/components/tree/src/model/node.mjs').Node, dropNode: import('element-plus/es/components/tree/src/model/node.mjs').Node, evt: DragEvent) => any) | undefined;
|
|
1312
1312
|
}>, {
|
|
1313
1313
|
ns: {
|
|
1314
|
-
namespace:
|
|
1314
|
+
namespace: import('vue').ComputedRef<string>;
|
|
1315
1315
|
b: (blockSuffix?: string) => string;
|
|
1316
1316
|
e: (element?: string) => string;
|
|
1317
1317
|
m: (modifier?: string) => string;
|
|
@@ -1328,7 +1328,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1328
1328
|
cssVarBlock: (object: Record<string, string>) => Record<string, string>;
|
|
1329
1329
|
cssVarBlockName: (name: string) => string;
|
|
1330
1330
|
};
|
|
1331
|
-
store:
|
|
1331
|
+
store: import('vue').Ref<{
|
|
1332
1332
|
currentNode: {
|
|
1333
1333
|
id: number;
|
|
1334
1334
|
text: string | null;
|
|
@@ -1615,7 +1615,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1615
1615
|
setUserCurrentNode: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node, shouldAutoExpandParent?: boolean) => void;
|
|
1616
1616
|
setCurrentNodeKey: (key: import('element-plus').TreeKey | null, shouldAutoExpandParent?: boolean) => void;
|
|
1617
1617
|
}>;
|
|
1618
|
-
root:
|
|
1618
|
+
root: import('vue').Ref<{
|
|
1619
1619
|
id: number;
|
|
1620
1620
|
text: string | null;
|
|
1621
1621
|
checked: boolean;
|
|
@@ -1704,7 +1704,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1704
1704
|
eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => void) => void;
|
|
1705
1705
|
reInitChecked: () => void;
|
|
1706
1706
|
}>;
|
|
1707
|
-
currentNode:
|
|
1707
|
+
currentNode: import('vue').Ref<{
|
|
1708
1708
|
id: number;
|
|
1709
1709
|
text: string | null;
|
|
1710
1710
|
checked: boolean;
|
|
@@ -1793,7 +1793,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
1793
1793
|
eachNode: (callback: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => void) => void;
|
|
1794
1794
|
reInitChecked: () => void;
|
|
1795
1795
|
} | null>;
|
|
1796
|
-
dragState:
|
|
1796
|
+
dragState: import('vue').Ref<{
|
|
1797
1797
|
allowDrop: boolean;
|
|
1798
1798
|
dropType: import('element-plus').NodeDropType | null;
|
|
1799
1799
|
draggingNode: {
|
|
@@ -2000,9 +2000,9 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
2000
2000
|
$el?: HTMLElement | undefined;
|
|
2001
2001
|
} | null;
|
|
2002
2002
|
}>;
|
|
2003
|
-
el$:
|
|
2004
|
-
dropIndicator$:
|
|
2005
|
-
isEmpty:
|
|
2003
|
+
el$: import('vue').Ref<import('element-plus').Nullable<HTMLElement>, import('element-plus').Nullable<HTMLElement>>;
|
|
2004
|
+
dropIndicator$: import('vue').Ref<import('element-plus').Nullable<HTMLElement>, import('element-plus').Nullable<HTMLElement>>;
|
|
2005
|
+
isEmpty: import('vue').ComputedRef<boolean>;
|
|
2006
2006
|
filter: (value: import('element-plus').FilterValue) => void;
|
|
2007
2007
|
getNodeKey: (node: import('element-plus/es/components/tree/src/model/node.mjs').Node) => any;
|
|
2008
2008
|
getNodePath: (data: import('element-plus').TreeKey | import('element-plus').TreeNodeData) => import('element-plus').TreeNodeData[];
|
|
@@ -10,7 +10,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
10
10
|
open: (index: string) => void | undefined;
|
|
11
11
|
close: (index: string) => void | undefined;
|
|
12
12
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
13
|
-
elMenu: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<
|
|
13
|
+
elMenu: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
14
14
|
readonly mode: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
15
15
|
readonly defaultActive: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
16
16
|
readonly defaultOpeneds: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
@@ -25,11 +25,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
25
25
|
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
26
26
|
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
27
27
|
readonly popperOffset: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
28
|
-
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
28
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
29
29
|
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
30
30
|
readonly popperClass: StringConstructor;
|
|
31
31
|
readonly popperStyle: {
|
|
32
|
-
readonly type:
|
|
32
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties) | (((new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties)) | null)[], unknown, unknown>>;
|
|
33
33
|
readonly required: false;
|
|
34
34
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
35
35
|
__epPropKey: true;
|
|
@@ -41,7 +41,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
41
41
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
42
42
|
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure> | undefined) => any) | undefined;
|
|
43
43
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
44
|
-
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
44
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
45
45
|
[key: string]: any;
|
|
46
46
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
47
47
|
close: (index: string, indexPath: string[]) => boolean;
|
|
@@ -59,7 +59,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
59
59
|
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "click" | "hover", unknown>;
|
|
60
60
|
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
61
61
|
readonly popperOffset: number;
|
|
62
|
-
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
62
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
63
63
|
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
64
64
|
readonly uniqueOpened: boolean;
|
|
65
65
|
readonly router: boolean;
|
|
@@ -71,7 +71,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
71
71
|
C: {};
|
|
72
72
|
M: {};
|
|
73
73
|
Defaults: {};
|
|
74
|
-
}, Readonly<
|
|
74
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
75
75
|
readonly mode: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, "horizontal" | "vertical", unknown, "vertical", boolean>;
|
|
76
76
|
readonly defaultActive: import('element-plus/es/utils/index.mjs').EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
77
77
|
readonly defaultOpeneds: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string[]) | (() => string[]) | (((new (...args: any[]) => string[]) | (() => string[])) | null)[], unknown, unknown, () => [], boolean>;
|
|
@@ -86,11 +86,11 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
86
86
|
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
87
87
|
readonly ellipsis: import('element-plus/es/utils/index.mjs').EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
88
88
|
readonly popperOffset: import('element-plus/es/utils/index.mjs').EpPropFinalized<NumberConstructor, unknown, unknown, 6, boolean>;
|
|
89
|
-
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
89
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown, () => import('vue').DefineComponent<{}, void, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>, boolean>;
|
|
90
90
|
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropFinalized<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown, "dark", boolean>;
|
|
91
91
|
readonly popperClass: StringConstructor;
|
|
92
92
|
readonly popperStyle: {
|
|
93
|
-
readonly type:
|
|
93
|
+
readonly type: import('vue').PropType<import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties) | (((new (...args: any[]) => string | import('vue').CSSProperties) | (() => string | import('vue').CSSProperties)) | null)[], unknown, unknown>>;
|
|
94
94
|
readonly required: false;
|
|
95
95
|
readonly validator: ((val: unknown) => boolean) | undefined;
|
|
96
96
|
__epPropKey: true;
|
|
@@ -102,7 +102,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
102
102
|
onClose?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
103
103
|
onSelect?: ((index: string, indexPath: string[], item: import('element-plus').MenuItemClicked, routerResult?: Promise<void | import('vue-router').NavigationFailure> | undefined) => any) | undefined;
|
|
104
104
|
onOpen?: ((index: string, indexPath: string[]) => any) | undefined;
|
|
105
|
-
}>, () => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
105
|
+
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
106
106
|
[key: string]: any;
|
|
107
107
|
}>, {}, {}, {}, {
|
|
108
108
|
readonly collapse: boolean;
|
|
@@ -116,7 +116,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {
|
|
|
116
116
|
readonly menuTrigger: import('element-plus/es/utils/index.mjs').EpPropMergeType<StringConstructor, "click" | "hover", unknown>;
|
|
117
117
|
readonly collapseTransition: import('element-plus/es/utils/index.mjs').EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
118
118
|
readonly popperOffset: number;
|
|
119
|
-
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | Component) & {}) | (() => string | Component) | (((new (...args: any[]) => (string | Component) & {}) | (() => string | Component)) | null)[], unknown, unknown>;
|
|
119
|
+
readonly ellipsisIcon: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component) | (((new (...args: any[]) => (string | import('vue').Component) & {}) | (() => string | import('vue').Component)) | null)[], unknown, unknown>;
|
|
120
120
|
readonly popperEffect: import('element-plus/es/utils/index.mjs').EpPropMergeType<(new (...args: any[]) => string) | (() => import('element-plus').PopperEffect) | (((new (...args: any[]) => string) | (() => import('element-plus').PopperEffect)) | null)[], unknown, unknown>;
|
|
121
121
|
readonly uniqueOpened: boolean;
|
|
122
122
|
readonly router: boolean;
|
|
@@ -13,7 +13,7 @@ declare function __VLS_template(): {
|
|
|
13
13
|
};
|
|
14
14
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
15
15
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
16
|
-
items: Ref<import('./modal-shelf-types').ShelfItem[]>;
|
|
16
|
+
items: import('vue').Ref<import('./modal-shelf-types').ShelfItem[]>;
|
|
17
17
|
level: ModalLevel;
|
|
18
18
|
evoke: (nsKey: string, component: Component | (() => Promise<Component>), options: {
|
|
19
19
|
payload: Record<string, unknown>;
|
|
@@ -29,7 +29,7 @@ declare const _default: <T extends Record<string, any>, SQ extends Record<string
|
|
|
29
29
|
exposeInfo: TableMainInstance;
|
|
30
30
|
}) => any>> & {
|
|
31
31
|
'custom-view-item'?(_: {
|
|
32
|
-
fieldComponentMap: Record<string, Component>;
|
|
32
|
+
fieldComponentMap: Record<string, import('vue').Component>;
|
|
33
33
|
row: T;
|
|
34
34
|
index: number;
|
|
35
35
|
selected: boolean;
|
|
@@ -5,8 +5,8 @@ export interface ActivatedInfo {
|
|
|
5
5
|
}
|
|
6
6
|
/** 是否激活 */
|
|
7
7
|
export declare const useActivated: (watchFn?: (info: ActivatedInfo) => void) => {
|
|
8
|
-
isActivated:
|
|
9
|
-
activatedInfo:
|
|
8
|
+
isActivated: import('vue').ComputedRef<boolean>;
|
|
9
|
+
activatedInfo: import('vue').ComputedRef<{
|
|
10
10
|
readonly isActivated: boolean;
|
|
11
11
|
readonly triggerType: "mounted" | "activated" | "deactivated" | "unmounted";
|
|
12
12
|
}>;
|
package/types/hooks/index.d.ts
CHANGED
|
@@ -8,8 +8,8 @@ export declare const useMenusDataDispatch: ({ getMenus, getMenuFlatList, getExtr
|
|
|
8
8
|
/** 判断是否提取1级路由模块到HEADER */
|
|
9
9
|
getExtractLevel1ToHeader: () => boolean;
|
|
10
10
|
}) => {
|
|
11
|
-
sidebarMenus:
|
|
12
|
-
headerMenus:
|
|
11
|
+
sidebarMenus: import('vue').ComputedRef<RouteMetaResolveRaw[]>;
|
|
12
|
+
headerMenus: import('vue').ComputedRef<{
|
|
13
13
|
children: never[];
|
|
14
14
|
path: string;
|
|
15
15
|
title: string;
|
|
@@ -26,7 +26,7 @@ export declare const useMenusDataDispatch: ({ getMenus, getMenuFlatList, getExtr
|
|
|
26
26
|
permissionEditShow: boolean;
|
|
27
27
|
needLogin: boolean;
|
|
28
28
|
}[]>;
|
|
29
|
-
activeMenu:
|
|
30
|
-
activeModuleMenu:
|
|
31
|
-
needRedirectToFirstChildMenu:
|
|
29
|
+
activeMenu: import('vue').ComputedRef<RouteMetaResolveRaw | undefined>;
|
|
30
|
+
activeModuleMenu: import('vue').ComputedRef<RouteMetaResolveRaw | undefined>;
|
|
31
|
+
needRedirectToFirstChildMenu: import('vue').ComputedRef<RouteMetaResolveRaw | undefined>;
|
|
32
32
|
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { DeepReadonly } from 'vue';
|
|
2
|
+
import { AppThemeConfig } from '../bridge';
|
|
3
|
+
/** `useAdminThemeApply` 入参。 */
|
|
4
|
+
export interface UseAdminThemeApplyOptions {
|
|
5
|
+
/** 当前风格 config 响应式获取器(= `bridge.APP_THEME_CONFIG`,含 light/dark) */
|
|
6
|
+
getThemeConfig: () => AppThemeConfig | DeepReadonly<AppThemeConfig>;
|
|
7
|
+
/** 是否暗色响应式获取器(= `bridge.themeIsDark.value`) */
|
|
8
|
+
getThemeIsDark: () => boolean;
|
|
9
|
+
/** 注入 document(测试 / SSR);缺省 `globalThis.document`,不存在时静默跳过 */
|
|
10
|
+
document?: Document;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* 启动 core 主题挂值——watch 风格 config 重写 `<style>`、watch 暗色 toggle `<html>.dark`。
|
|
14
|
+
*
|
|
15
|
+
* 在组件 setup(`AppLayout`)内调用以随组件作用域自动停 watch。返回 void。
|
|
16
|
+
*/
|
|
17
|
+
export declare function useAdminThemeApply(options: UseAdminThemeApplyOptions): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DeepReadonly } from 'vue';
|
|
2
|
+
import { AppLayoutViewportConfig } from '../bridge';
|
|
3
|
+
/** `useAdminViewportApply` 入参。 */
|
|
4
|
+
export interface UseAdminViewportApplyOptions {
|
|
5
|
+
/** viewport 边框配置响应式获取器(= `bridge.APP_LAYOUT_VIEWPORT_CONFIG`) */
|
|
6
|
+
getViewportConfig: () => AppLayoutViewportConfig | DeepReadonly<AppLayoutViewportConfig>;
|
|
7
|
+
/** 注入 document(测试 / SSR);缺省 `globalThis.document`,不存在时静默跳过 */
|
|
8
|
+
document?: Document;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* 启动 viewport CSS var 挂值——watch viewport config 重写 `<style>`。
|
|
12
|
+
*
|
|
13
|
+
* 在组件 setup(`AppLayout`)内调用以随组件作用域自动停 watch。返回 void。
|
|
14
|
+
*/
|
|
15
|
+
export declare function useAdminViewportApply(options: UseAdminViewportApplyOptions): void;
|
package/types/inject/key.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InjectionKey } from 'vue';
|
|
2
|
+
import { AdminBridge } from '../bridge';
|
|
2
3
|
import { ModalLevel, ShelfController } from '../components/modal';
|
|
3
4
|
import { AppLayoutAppStoreSlice, AppLayoutUserStoreSlice, AppLayoutBridgeSlice } from '../components/app-layout';
|
|
4
5
|
/**
|
|
@@ -52,3 +53,20 @@ export declare const APP_LAYOUT_USER_STORE_KEY: InjectionKey<AppLayoutUserStoreS
|
|
|
52
53
|
* Symbol.for 保证跨包同一性(同 APP_LAYOUT_APP_STORE_KEY / APP_LAYOUT_USER_STORE_KEY)。
|
|
53
54
|
*/
|
|
54
55
|
export declare const APP_LAYOUT_BRIDGE_KEY: InjectionKey<AppLayoutBridgeSlice>;
|
|
56
|
+
/**
|
|
57
|
+
* 整 admin bridge app 级注入 key(#插件系统一期挂载)。
|
|
58
|
+
* ---
|
|
59
|
+
* `bridge.install(app)`(即 `app.use(bridge)`)经 `app.provide(ADMIN_BRIDGE_KEY, bridge)`
|
|
60
|
+
* 把**整个 bridge 实例**注入应用级 provide 链;任意后代组件经 `inject(ADMIN_BRIDGE_KEY)`
|
|
61
|
+
* 取整 bridge(含 7 响应式只读配置视图 + `update` + 全部 auth/api/派生方法)。
|
|
62
|
+
* ---
|
|
63
|
+
* **opt-in**:仅当 app 显式 `app.use(bridge)` 时注入;未 use 则 `inject(ADMIN_BRIDGE_KEY)`
|
|
64
|
+
* 返回 `undefined`(不报错)。
|
|
65
|
+
* ---
|
|
66
|
+
* **区别于 `APP_LAYOUT_BRIDGE_KEY`**:后者是 AppLayout 族**组件级**窄切片(`AppLayoutBridgeSlice`
|
|
67
|
+
* Pick 子集,由 AppLayout 从 `props.adminBridge` 接收后 provide,供 layout 子组件 inject),
|
|
68
|
+
* 两 KEY 各管各、并存——本 KEY 注入的是 app 级**整 bridge**,非 layout 窄切片。
|
|
69
|
+
* ---
|
|
70
|
+
* Symbol.for 保证跨包/跨 chunk/跨 ESM 实例唯一(同 APP_LAYOUT_BRIDGE_KEY,规则 8)。
|
|
71
|
+
*/
|
|
72
|
+
export declare const ADMIN_BRIDGE_KEY: InjectionKey<AdminBridge>;
|