@keyblade/pro-components 0.0.10 → 1.0.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/pro-breadcrumb/index.d.ts +4 -16
- package/es/pro-breadcrumb/pro-breadcrumb.vue.d.ts +2 -6
- package/es/pro-breadcrumb/pro-breadcrumb.vue2.js +1 -2
- package/es/pro-drawer-form/index.d.ts +4 -55
- package/es/pro-drawer-form/pro-drawer-form.vue.d.ts +2 -19
- package/es/pro-drawer-form/pro-drawer-form.vue2.js +1 -2
- package/es/pro-layout/index.d.ts +4 -97
- package/es/pro-layout/pro-layout.vue.d.ts +2 -33
- package/es/pro-layout/pro-layout.vue.js +4 -4
- package/es/pro-layout/pro-layout.vue3.js +1 -2
- package/es/pro-menu/index.d.ts +4 -62
- package/es/pro-menu/pro-menu-item.vue.d.ts +4 -8
- package/es/pro-menu/pro-menu-item.vue2.js +1 -2
- package/es/pro-menu/pro-menu.vue.d.ts +1 -21
- package/es/pro-menu/pro-menu.vue2.js +1 -2
- package/es/pro-modal-form/index.d.ts +4 -55
- package/es/pro-modal-form/pro-modal-form.vue.d.ts +2 -19
- package/es/pro-modal-form/pro-modal-form.vue2.js +1 -2
- package/es/pro-page-wrapper/index.d.ts +7 -16
- package/es/pro-page-wrapper/pro-page-wrapper.vue.d.ts +2 -5
- package/es/pro-page-wrapper/pro-page-wrapper.vue.js +2 -0
- package/es/pro-page-wrapper/pro-page-wrapper.vue3.js +1 -2
- package/es/pro-reuse-tabs/index.d.ts +4 -25
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +2 -9
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue3.js +1 -2
- package/es/style.css +8 -8
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
1
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
2
2
|
declare const ProBreadcrumb: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: ComponentInternalInstance;
|
|
@@ -31,11 +31,7 @@ declare const ProBreadcrumb: {
|
|
|
31
31
|
required: false;
|
|
32
32
|
default: () => never[];
|
|
33
33
|
};
|
|
34
|
-
}>>, {
|
|
35
|
-
prefixClsName: string;
|
|
36
|
-
props: any;
|
|
37
|
-
injectValue: Ref<string[]>;
|
|
38
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
34
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
39
35
|
items: string[];
|
|
40
36
|
}, {}, string> & {
|
|
41
37
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -63,11 +59,7 @@ declare const ProBreadcrumb: {
|
|
|
63
59
|
required: false;
|
|
64
60
|
default: () => never[];
|
|
65
61
|
};
|
|
66
|
-
}>> & ShallowUnwrapRef<{
|
|
67
|
-
prefixClsName: string;
|
|
68
|
-
props: any;
|
|
69
|
-
injectValue: Ref<string[]>;
|
|
70
|
-
}> & {} & ComponentCustomProperties & {};
|
|
62
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
71
63
|
__isFragment?: undefined;
|
|
72
64
|
__isTeleport?: undefined;
|
|
73
65
|
__isSuspense?: undefined;
|
|
@@ -77,11 +69,7 @@ declare const ProBreadcrumb: {
|
|
|
77
69
|
required: false;
|
|
78
70
|
default: () => never[];
|
|
79
71
|
};
|
|
80
|
-
}>>, {
|
|
81
|
-
prefixClsName: string;
|
|
82
|
-
props: any;
|
|
83
|
-
injectValue: Ref<string[]>;
|
|
84
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
72
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
85
73
|
items: string[];
|
|
86
74
|
}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
87
75
|
install: (app: App) => void;
|
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType
|
|
1
|
+
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
declare const _sfc_main: DefineComponent<{
|
|
3
3
|
items: {
|
|
4
4
|
type: PropType<string[]>;
|
|
5
5
|
required: false;
|
|
6
6
|
default: () => never[];
|
|
7
7
|
};
|
|
8
|
-
}, {
|
|
9
|
-
prefixClsName: string;
|
|
10
|
-
props: any;
|
|
11
|
-
injectValue: Ref<string[]>;
|
|
12
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
8
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
13
9
|
items: {
|
|
14
10
|
type: PropType<string[]>;
|
|
15
11
|
required: false;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
2
2
|
import type { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
3
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
3
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
4
4
|
declare const ProDrawerForm: {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
$: ComponentInternalInstance;
|
|
@@ -443,24 +443,7 @@ declare const ProDrawerForm: {
|
|
|
443
443
|
}>> & {
|
|
444
444
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
445
445
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
446
|
-
}, {
|
|
447
|
-
attrs: {
|
|
448
|
-
onCancel: () => void;
|
|
449
|
-
'unmount-on-close': boolean | "";
|
|
450
|
-
};
|
|
451
|
-
slots: Readonly<{
|
|
452
|
-
[name: string]: Slot | undefined;
|
|
453
|
-
}>;
|
|
454
|
-
props: any;
|
|
455
|
-
emit: {
|
|
456
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
457
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
458
|
-
};
|
|
459
|
-
okLoading: Ref<boolean>;
|
|
460
|
-
onOk: () => void;
|
|
461
|
-
onBeforeCancel: () => boolean;
|
|
462
|
-
onCancel: () => void;
|
|
463
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], string, {}, {}, string> & {
|
|
446
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], string, {}, {}, string> & {
|
|
464
447
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
465
448
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
466
449
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -692,24 +675,7 @@ declare const ProDrawerForm: {
|
|
|
692
675
|
}>> & {
|
|
693
676
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
694
677
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
695
|
-
} & ShallowUnwrapRef<{
|
|
696
|
-
attrs: {
|
|
697
|
-
onCancel: () => void;
|
|
698
|
-
'unmount-on-close': boolean | "";
|
|
699
|
-
};
|
|
700
|
-
slots: Readonly<{
|
|
701
|
-
[name: string]: Slot | undefined;
|
|
702
|
-
}>;
|
|
703
|
-
props: any;
|
|
704
|
-
emit: {
|
|
705
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
706
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
707
|
-
};
|
|
708
|
-
okLoading: Ref<boolean>;
|
|
709
|
-
onOk: () => void;
|
|
710
|
-
onBeforeCancel: () => boolean;
|
|
711
|
-
onCancel: () => void;
|
|
712
|
-
}> & {} & ComponentCustomProperties & {};
|
|
678
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
713
679
|
__isFragment?: undefined;
|
|
714
680
|
__isTeleport?: undefined;
|
|
715
681
|
__isSuspense?: undefined;
|
|
@@ -925,24 +891,7 @@ declare const ProDrawerForm: {
|
|
|
925
891
|
}>> & {
|
|
926
892
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
927
893
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
928
|
-
}, {
|
|
929
|
-
attrs: {
|
|
930
|
-
onCancel: () => void;
|
|
931
|
-
'unmount-on-close': boolean | "";
|
|
932
|
-
};
|
|
933
|
-
slots: Readonly<{
|
|
934
|
-
[name: string]: Slot | undefined;
|
|
935
|
-
}>;
|
|
936
|
-
props: any;
|
|
937
|
-
emit: {
|
|
938
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
939
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
940
|
-
};
|
|
941
|
-
okLoading: Ref<boolean>;
|
|
942
|
-
onOk: () => void;
|
|
943
|
-
onBeforeCancel: () => boolean;
|
|
944
|
-
onCancel: () => void;
|
|
945
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
894
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
946
895
|
install: (app: App) => void;
|
|
947
896
|
};
|
|
948
897
|
export { ProDrawerForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
2
|
-
import type { DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
2
|
+
import type { DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, type PropType } from 'vue';
|
|
3
3
|
import type { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
4
4
|
declare const _sfc_main: DefineComponent<{
|
|
5
5
|
form: {
|
|
@@ -210,24 +210,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
210
210
|
} & ComponentCustomProperties & {}>;
|
|
211
211
|
required: false;
|
|
212
212
|
};
|
|
213
|
-
}, {
|
|
214
|
-
attrs: {
|
|
215
|
-
onCancel: () => void;
|
|
216
|
-
'unmount-on-close': '' | boolean;
|
|
217
|
-
};
|
|
218
|
-
slots: Readonly<{
|
|
219
|
-
[name: string]: Slot | undefined;
|
|
220
|
-
}>;
|
|
221
|
-
props: any;
|
|
222
|
-
emit: {
|
|
223
|
-
(event: 'finish', callback: (success: boolean) => void): void;
|
|
224
|
-
(event: 'failed', errors: Record<string, ValidatedError>): void;
|
|
225
|
-
};
|
|
226
|
-
okLoading: Ref<boolean>;
|
|
227
|
-
onOk: () => void;
|
|
228
|
-
onBeforeCancel: () => boolean;
|
|
229
|
-
onCancel: () => void;
|
|
230
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
213
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
231
214
|
form: {
|
|
232
215
|
type: PropType<{
|
|
233
216
|
$: ComponentInternalInstance;
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IProMenuItem } from '../pro-menu';
|
|
2
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
2
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
3
3
|
declare const ProLayout: {
|
|
4
4
|
new (...args: any[]): {
|
|
5
5
|
$: ComponentInternalInstance;
|
|
@@ -102,38 +102,7 @@ declare const ProLayout: {
|
|
|
102
102
|
};
|
|
103
103
|
}>> & {
|
|
104
104
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
105
|
-
}, {
|
|
106
|
-
prefixClsName: string;
|
|
107
|
-
props: any;
|
|
108
|
-
emit: (event: "collapse", collapsed: boolean) => void;
|
|
109
|
-
menuItems: Ref<IProMenuItem[]>;
|
|
110
|
-
slots: Readonly<{
|
|
111
|
-
[name: string]: Slot | undefined;
|
|
112
|
-
}>;
|
|
113
|
-
menuSelectedKeys: Ref<string[]>;
|
|
114
|
-
onMenuItemClick: (key: string) => void;
|
|
115
|
-
activeMenuItem: Ref<IProMenuItem | undefined>;
|
|
116
|
-
menuItemMap: Ref<Record<string, IProMenuItem>>;
|
|
117
|
-
breadcrumbItems: Ref<string[]>;
|
|
118
|
-
tabs: Ref<{
|
|
119
|
-
name: string;
|
|
120
|
-
parentNames: string[];
|
|
121
|
-
title: string;
|
|
122
|
-
fullPath: string;
|
|
123
|
-
active: boolean;
|
|
124
|
-
}[]>;
|
|
125
|
-
onTabClick: (key: string) => void;
|
|
126
|
-
onTabDelete: (key: string) => void;
|
|
127
|
-
keepAliveKeys: ComputedRef<string[]>;
|
|
128
|
-
headerHeight: number;
|
|
129
|
-
headerHeightWidthPx: string;
|
|
130
|
-
siderWidth: number;
|
|
131
|
-
siderCollapsedWidth: number;
|
|
132
|
-
siderWidthPx: string;
|
|
133
|
-
siderCollapsedWidthPx: string;
|
|
134
|
-
siderCollapsed: Ref<boolean>;
|
|
135
|
-
onSiderCollapse: (val: boolean) => void;
|
|
136
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
105
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
137
106
|
collapse: (collapsed: boolean) => true;
|
|
138
107
|
}, string, {
|
|
139
108
|
menuItems: IProMenuItem[];
|
|
@@ -201,38 +170,7 @@ declare const ProLayout: {
|
|
|
201
170
|
};
|
|
202
171
|
}>> & {
|
|
203
172
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
204
|
-
} & ShallowUnwrapRef<{
|
|
205
|
-
prefixClsName: string;
|
|
206
|
-
props: any;
|
|
207
|
-
emit: (event: "collapse", collapsed: boolean) => void;
|
|
208
|
-
menuItems: Ref<IProMenuItem[]>;
|
|
209
|
-
slots: Readonly<{
|
|
210
|
-
[name: string]: Slot | undefined;
|
|
211
|
-
}>;
|
|
212
|
-
menuSelectedKeys: Ref<string[]>;
|
|
213
|
-
onMenuItemClick: (key: string) => void;
|
|
214
|
-
activeMenuItem: Ref<IProMenuItem | undefined>;
|
|
215
|
-
menuItemMap: Ref<Record<string, IProMenuItem>>;
|
|
216
|
-
breadcrumbItems: Ref<string[]>;
|
|
217
|
-
tabs: Ref<{
|
|
218
|
-
name: string;
|
|
219
|
-
parentNames: string[];
|
|
220
|
-
title: string;
|
|
221
|
-
fullPath: string;
|
|
222
|
-
active: boolean;
|
|
223
|
-
}[]>;
|
|
224
|
-
onTabClick: (key: string) => void;
|
|
225
|
-
onTabDelete: (key: string) => void;
|
|
226
|
-
keepAliveKeys: ComputedRef<string[]>;
|
|
227
|
-
headerHeight: number;
|
|
228
|
-
headerHeightWidthPx: string;
|
|
229
|
-
siderWidth: number;
|
|
230
|
-
siderCollapsedWidth: number;
|
|
231
|
-
siderWidthPx: string;
|
|
232
|
-
siderCollapsedWidthPx: string;
|
|
233
|
-
siderCollapsed: Ref<boolean>;
|
|
234
|
-
onSiderCollapse: (val: boolean) => void;
|
|
235
|
-
}> & {} & ComponentCustomProperties & {};
|
|
173
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
236
174
|
__isFragment?: undefined;
|
|
237
175
|
__isTeleport?: undefined;
|
|
238
176
|
__isSuspense?: undefined;
|
|
@@ -274,38 +212,7 @@ declare const ProLayout: {
|
|
|
274
212
|
};
|
|
275
213
|
}>> & {
|
|
276
214
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
277
|
-
}, {
|
|
278
|
-
prefixClsName: string;
|
|
279
|
-
props: any;
|
|
280
|
-
emit: (event: "collapse", collapsed: boolean) => void;
|
|
281
|
-
menuItems: Ref<IProMenuItem[]>;
|
|
282
|
-
slots: Readonly<{
|
|
283
|
-
[name: string]: Slot | undefined;
|
|
284
|
-
}>;
|
|
285
|
-
menuSelectedKeys: Ref<string[]>;
|
|
286
|
-
onMenuItemClick: (key: string) => void;
|
|
287
|
-
activeMenuItem: Ref<IProMenuItem | undefined>;
|
|
288
|
-
menuItemMap: Ref<Record<string, IProMenuItem>>;
|
|
289
|
-
breadcrumbItems: Ref<string[]>;
|
|
290
|
-
tabs: Ref<{
|
|
291
|
-
name: string;
|
|
292
|
-
parentNames: string[];
|
|
293
|
-
title: string;
|
|
294
|
-
fullPath: string;
|
|
295
|
-
active: boolean;
|
|
296
|
-
}[]>;
|
|
297
|
-
onTabClick: (key: string) => void;
|
|
298
|
-
onTabDelete: (key: string) => void;
|
|
299
|
-
keepAliveKeys: ComputedRef<string[]>;
|
|
300
|
-
headerHeight: number;
|
|
301
|
-
headerHeightWidthPx: string;
|
|
302
|
-
siderWidth: number;
|
|
303
|
-
siderCollapsedWidth: number;
|
|
304
|
-
siderWidthPx: string;
|
|
305
|
-
siderCollapsedWidthPx: string;
|
|
306
|
-
siderCollapsed: Ref<boolean>;
|
|
307
|
-
onSiderCollapse: (val: boolean) => void;
|
|
308
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
215
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
309
216
|
collapse: (collapsed: boolean) => true;
|
|
310
217
|
}, string, {
|
|
311
218
|
menuItems: IProMenuItem[];
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefineComponent,
|
|
1
|
+
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProMenuItem } from '../pro-menu';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
menuItems: {
|
|
@@ -36,38 +36,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
36
36
|
required: false;
|
|
37
37
|
default: string;
|
|
38
38
|
};
|
|
39
|
-
}, {
|
|
40
|
-
prefixClsName: string;
|
|
41
|
-
props: any;
|
|
42
|
-
emit: (event: "collapse", collapsed: boolean) => void;
|
|
43
|
-
menuItems: Ref<IProMenuItem[]>;
|
|
44
|
-
slots: Readonly<{
|
|
45
|
-
[name: string]: Slot | undefined;
|
|
46
|
-
}>;
|
|
47
|
-
menuSelectedKeys: Ref<string[]>;
|
|
48
|
-
onMenuItemClick: (key: string) => void;
|
|
49
|
-
activeMenuItem: Ref<IProMenuItem | undefined>;
|
|
50
|
-
menuItemMap: Ref<Record<string, IProMenuItem>>;
|
|
51
|
-
breadcrumbItems: Ref<string[]>;
|
|
52
|
-
tabs: Ref<{
|
|
53
|
-
name: string;
|
|
54
|
-
parentNames: string[];
|
|
55
|
-
title: string;
|
|
56
|
-
fullPath: string;
|
|
57
|
-
active: boolean;
|
|
58
|
-
}[]>;
|
|
59
|
-
onTabClick: (key: string) => void;
|
|
60
|
-
onTabDelete: (key: string) => void;
|
|
61
|
-
keepAliveKeys: ComputedRef<string[]>;
|
|
62
|
-
headerHeight: number;
|
|
63
|
-
headerHeightWidthPx: string;
|
|
64
|
-
siderWidth: number;
|
|
65
|
-
siderCollapsedWidth: number;
|
|
66
|
-
siderWidthPx: string;
|
|
67
|
-
siderCollapsedWidthPx: string;
|
|
68
|
-
siderCollapsed: Ref<boolean>;
|
|
69
|
-
onSiderCollapse: (val: boolean) => void;
|
|
70
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
39
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
71
40
|
collapse: (collapsed: boolean) => true;
|
|
72
41
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
73
42
|
menuItems: {
|
|
@@ -46,9 +46,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
46
|
setup(__props, { emit }) {
|
|
47
47
|
const props = __props;
|
|
48
48
|
useCssVars((_ctx) => ({
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
49
|
+
"8877c9f2": headerHeightWidthPx,
|
|
50
|
+
"11b26174": siderWidthPx,
|
|
51
|
+
"601fa63f": siderCollapsedWidthPx
|
|
52
52
|
}));
|
|
53
53
|
const prefixClsName = "keyblade-pro-layout";
|
|
54
54
|
const { menuItems } = toRefs(props);
|
|
@@ -70,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
70
70
|
tabs.value.forEach((tab) => {
|
|
71
71
|
tab.parentNames.forEach((name) => {
|
|
72
72
|
const menuItem = menuItemMap.value[name];
|
|
73
|
-
if (menuItem.ignoreCache) {
|
|
73
|
+
if (menuItem == null ? void 0 : menuItem.ignoreCache) {
|
|
74
74
|
return;
|
|
75
75
|
}
|
|
76
76
|
keys.add(menuItem.name);
|
package/es/pro-menu/index.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Router } from 'vue-router';
|
|
2
1
|
import type { IProMenuItem } from './interface';
|
|
3
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
2
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
4
3
|
declare const ProMenu: {
|
|
5
4
|
new (...args: any[]): {
|
|
6
5
|
$: ComponentInternalInstance;
|
|
@@ -53,26 +52,7 @@ declare const ProMenu: {
|
|
|
53
52
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
54
53
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
55
54
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
|
56
|
-
}, {
|
|
57
|
-
prefixClsName: string;
|
|
58
|
-
props: any;
|
|
59
|
-
emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
|
|
60
|
-
onMenuItemClick: (key: string) => void;
|
|
61
|
-
ProMenuItem: DefineComponent<{
|
|
62
|
-
item: {
|
|
63
|
-
type: null;
|
|
64
|
-
required: true;
|
|
65
|
-
};
|
|
66
|
-
}, {
|
|
67
|
-
router: Router;
|
|
68
|
-
onMenuItemClick: (item: IProMenuItem) => void;
|
|
69
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
70
|
-
item: {
|
|
71
|
-
type: null;
|
|
72
|
-
required: true;
|
|
73
|
-
};
|
|
74
|
-
}>>, {}>;
|
|
75
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
55
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
76
56
|
collapse: (collapsed: boolean) => true;
|
|
77
57
|
'menu-item-click': (key: string) => true;
|
|
78
58
|
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
@@ -113,26 +93,7 @@ declare const ProMenu: {
|
|
|
113
93
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
114
94
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
115
95
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
|
116
|
-
} & ShallowUnwrapRef<{
|
|
117
|
-
prefixClsName: string;
|
|
118
|
-
props: any;
|
|
119
|
-
emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
|
|
120
|
-
onMenuItemClick: (key: string) => void;
|
|
121
|
-
ProMenuItem: DefineComponent<{
|
|
122
|
-
item: {
|
|
123
|
-
type: null;
|
|
124
|
-
required: true;
|
|
125
|
-
};
|
|
126
|
-
}, {
|
|
127
|
-
router: Router;
|
|
128
|
-
onMenuItemClick: (item: IProMenuItem) => void;
|
|
129
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
130
|
-
item: {
|
|
131
|
-
type: null;
|
|
132
|
-
required: true;
|
|
133
|
-
};
|
|
134
|
-
}>>, {}>;
|
|
135
|
-
}> & {} & ComponentCustomProperties & {};
|
|
96
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
136
97
|
__isFragment?: undefined;
|
|
137
98
|
__isTeleport?: undefined;
|
|
138
99
|
__isSuspense?: undefined;
|
|
@@ -153,26 +114,7 @@ declare const ProMenu: {
|
|
|
153
114
|
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
154
115
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
155
116
|
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
|
156
|
-
}, {
|
|
157
|
-
prefixClsName: string;
|
|
158
|
-
props: any;
|
|
159
|
-
emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
|
|
160
|
-
onMenuItemClick: (key: string) => void;
|
|
161
|
-
ProMenuItem: DefineComponent<{
|
|
162
|
-
item: {
|
|
163
|
-
type: null;
|
|
164
|
-
required: true;
|
|
165
|
-
};
|
|
166
|
-
}, {
|
|
167
|
-
router: Router;
|
|
168
|
-
onMenuItemClick: (item: IProMenuItem) => void;
|
|
169
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
170
|
-
item: {
|
|
171
|
-
type: null;
|
|
172
|
-
required: true;
|
|
173
|
-
};
|
|
174
|
-
}>>, {}>;
|
|
175
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
117
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
176
118
|
collapse: (collapsed: boolean) => true;
|
|
177
119
|
'menu-item-click': (key: string) => true;
|
|
178
120
|
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes } from 'vue';
|
|
1
|
+
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType as __PropType } from 'vue';
|
|
3
2
|
import type { IProMenuItem } from './interface';
|
|
4
3
|
declare const _sfc_main: DefineComponent<{
|
|
5
4
|
item: {
|
|
6
|
-
type:
|
|
5
|
+
type: __PropType<IProMenuItem>;
|
|
7
6
|
required: true;
|
|
8
7
|
};
|
|
9
|
-
}, {
|
|
10
|
-
router: Router;
|
|
11
|
-
onMenuItemClick: (item: IProMenuItem) => void;
|
|
12
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
8
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
13
9
|
item: {
|
|
14
|
-
type:
|
|
10
|
+
type: __PropType<IProMenuItem>;
|
|
15
11
|
required: true;
|
|
16
12
|
};
|
|
17
13
|
}>>, {}>;
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { Router } from 'vue-router';
|
|
2
1
|
import type { IProMenuItem } from './interface';
|
|
3
2
|
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
4
3
|
declare const _sfc_main: DefineComponent<{
|
|
@@ -14,26 +13,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
14
13
|
type: PropType<IProMenuItem[]>;
|
|
15
14
|
required: true;
|
|
16
15
|
};
|
|
17
|
-
}, {
|
|
18
|
-
prefixClsName: string;
|
|
19
|
-
props: any;
|
|
20
|
-
emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
|
|
21
|
-
onMenuItemClick: (key: string) => void;
|
|
22
|
-
ProMenuItem: DefineComponent<{
|
|
23
|
-
item: {
|
|
24
|
-
type: null;
|
|
25
|
-
required: true;
|
|
26
|
-
};
|
|
27
|
-
}, {
|
|
28
|
-
router: Router;
|
|
29
|
-
onMenuItemClick: (item: IProMenuItem) => void;
|
|
30
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
31
|
-
item: {
|
|
32
|
-
type: null;
|
|
33
|
-
required: true;
|
|
34
|
-
};
|
|
35
|
-
}>>, {}>;
|
|
36
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
16
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
37
17
|
collapse: (collapsed: boolean) => true;
|
|
38
18
|
'menu-item-click': (key: string) => true;
|
|
39
19
|
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
2
2
|
import type { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
3
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
3
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
4
4
|
declare const ProModalForm: {
|
|
5
5
|
new (...args: any[]): {
|
|
6
6
|
$: ComponentInternalInstance;
|
|
@@ -443,24 +443,7 @@ declare const ProModalForm: {
|
|
|
443
443
|
}>> & {
|
|
444
444
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
445
445
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
446
|
-
}, {
|
|
447
|
-
attrs: {
|
|
448
|
-
onCancel: () => void;
|
|
449
|
-
'unmount-on-close': boolean | "";
|
|
450
|
-
};
|
|
451
|
-
slots: Readonly<{
|
|
452
|
-
[name: string]: Slot | undefined;
|
|
453
|
-
}>;
|
|
454
|
-
props: any;
|
|
455
|
-
emit: {
|
|
456
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
457
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
458
|
-
};
|
|
459
|
-
okLoading: Ref<boolean>;
|
|
460
|
-
onOk: () => void;
|
|
461
|
-
onBeforeCancel: () => boolean;
|
|
462
|
-
onCancel: () => void;
|
|
463
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], string, {}, {}, string> & {
|
|
446
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], string, {}, {}, string> & {
|
|
464
447
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
465
448
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
466
449
|
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -692,24 +675,7 @@ declare const ProModalForm: {
|
|
|
692
675
|
}>> & {
|
|
693
676
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
694
677
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
695
|
-
} & ShallowUnwrapRef<{
|
|
696
|
-
attrs: {
|
|
697
|
-
onCancel: () => void;
|
|
698
|
-
'unmount-on-close': boolean | "";
|
|
699
|
-
};
|
|
700
|
-
slots: Readonly<{
|
|
701
|
-
[name: string]: Slot | undefined;
|
|
702
|
-
}>;
|
|
703
|
-
props: any;
|
|
704
|
-
emit: {
|
|
705
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
706
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
707
|
-
};
|
|
708
|
-
okLoading: Ref<boolean>;
|
|
709
|
-
onOk: () => void;
|
|
710
|
-
onBeforeCancel: () => boolean;
|
|
711
|
-
onCancel: () => void;
|
|
712
|
-
}> & {} & ComponentCustomProperties & {};
|
|
678
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
713
679
|
__isFragment?: undefined;
|
|
714
680
|
__isTeleport?: undefined;
|
|
715
681
|
__isSuspense?: undefined;
|
|
@@ -925,24 +891,7 @@ declare const ProModalForm: {
|
|
|
925
891
|
}>> & {
|
|
926
892
|
onFinish?: ((...args: any[]) => any) | undefined;
|
|
927
893
|
onFailed?: ((...args: any[]) => any) | undefined;
|
|
928
|
-
}, {
|
|
929
|
-
attrs: {
|
|
930
|
-
onCancel: () => void;
|
|
931
|
-
'unmount-on-close': boolean | "";
|
|
932
|
-
};
|
|
933
|
-
slots: Readonly<{
|
|
934
|
-
[name: string]: Slot | undefined;
|
|
935
|
-
}>;
|
|
936
|
-
props: any;
|
|
937
|
-
emit: {
|
|
938
|
-
(event: "finish", callback: (success: boolean) => void): void;
|
|
939
|
-
(event: "failed", errors: Record<string, ValidatedError>): void;
|
|
940
|
-
};
|
|
941
|
-
okLoading: Ref<boolean>;
|
|
942
|
-
onOk: () => void;
|
|
943
|
-
onBeforeCancel: () => boolean;
|
|
944
|
-
onCancel: () => void;
|
|
945
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
894
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
946
895
|
install: (app: App) => void;
|
|
947
896
|
};
|
|
948
897
|
export { ProModalForm };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { FieldData } from '@arco-design/web-vue/es/form/interface';
|
|
2
|
-
import type { DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties,
|
|
2
|
+
import type { DefineComponent, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, ExtractPropTypes, type PropType } from 'vue';
|
|
3
3
|
import type { FieldRule, ValidatedError } from '@arco-design/web-vue';
|
|
4
4
|
declare const _sfc_main: DefineComponent<{
|
|
5
5
|
form: {
|
|
@@ -210,24 +210,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
210
210
|
} & ComponentCustomProperties & {}>;
|
|
211
211
|
required: false;
|
|
212
212
|
};
|
|
213
|
-
}, {
|
|
214
|
-
attrs: {
|
|
215
|
-
onCancel: () => void;
|
|
216
|
-
'unmount-on-close': '' | boolean;
|
|
217
|
-
};
|
|
218
|
-
slots: Readonly<{
|
|
219
|
-
[name: string]: Slot | undefined;
|
|
220
|
-
}>;
|
|
221
|
-
props: any;
|
|
222
|
-
emit: {
|
|
223
|
-
(event: 'finish', callback: (success: boolean) => void): void;
|
|
224
|
-
(event: 'failed', errors: Record<string, ValidatedError>): void;
|
|
225
|
-
};
|
|
226
|
-
okLoading: Ref<boolean>;
|
|
227
|
-
onOk: () => void;
|
|
228
|
-
onBeforeCancel: () => boolean;
|
|
229
|
-
onCancel: () => void;
|
|
230
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
213
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("finish" | "failed")[], "finish" | "failed", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
231
214
|
form: {
|
|
232
215
|
type: PropType<{
|
|
233
216
|
$: ComponentInternalInstance;
|
|
@@ -4,8 +4,8 @@ declare const ProPageWrapper: {
|
|
|
4
4
|
$: ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
|
-
breadcrumbItems: string[];
|
|
8
7
|
hidePageWrapper: boolean;
|
|
8
|
+
breadcrumbItems: string[];
|
|
9
9
|
}> & Omit<Readonly<ExtractPropTypes<{
|
|
10
10
|
hidePageWrapper: {
|
|
11
11
|
type: PropType<boolean>;
|
|
@@ -17,7 +17,7 @@ declare const ProPageWrapper: {
|
|
|
17
17
|
required: false;
|
|
18
18
|
default: () => never[];
|
|
19
19
|
};
|
|
20
|
-
}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "
|
|
20
|
+
}>> & VNodeProps & AllowedComponentProps & ComponentCustomProps, "hidePageWrapper" | "breadcrumbItems">;
|
|
21
21
|
$attrs: {
|
|
22
22
|
[x: string]: unknown;
|
|
23
23
|
};
|
|
@@ -42,12 +42,9 @@ declare const ProPageWrapper: {
|
|
|
42
42
|
required: false;
|
|
43
43
|
default: () => never[];
|
|
44
44
|
};
|
|
45
|
-
}>>, {
|
|
46
|
-
prefixClsName: string;
|
|
47
|
-
prefixClsHideName: string;
|
|
48
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
49
|
-
breadcrumbItems: string[];
|
|
45
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
50
46
|
hidePageWrapper: boolean;
|
|
47
|
+
breadcrumbItems: string[];
|
|
51
48
|
}, {}, string> & {
|
|
52
49
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
50
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -79,10 +76,7 @@ declare const ProPageWrapper: {
|
|
|
79
76
|
required: false;
|
|
80
77
|
default: () => never[];
|
|
81
78
|
};
|
|
82
|
-
}>> & ShallowUnwrapRef<{
|
|
83
|
-
prefixClsName: string;
|
|
84
|
-
prefixClsHideName: string;
|
|
85
|
-
}> & {} & ComponentCustomProperties & {};
|
|
79
|
+
}>> & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
86
80
|
__isFragment?: undefined;
|
|
87
81
|
__isTeleport?: undefined;
|
|
88
82
|
__isSuspense?: undefined;
|
|
@@ -97,12 +91,9 @@ declare const ProPageWrapper: {
|
|
|
97
91
|
required: false;
|
|
98
92
|
default: () => never[];
|
|
99
93
|
};
|
|
100
|
-
}>>, {
|
|
101
|
-
prefixClsName: string;
|
|
102
|
-
prefixClsHideName: string;
|
|
103
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
104
|
-
breadcrumbItems: string[];
|
|
94
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
105
95
|
hidePageWrapper: boolean;
|
|
96
|
+
breadcrumbItems: string[];
|
|
106
97
|
}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
107
98
|
install: (app: App) => void;
|
|
108
99
|
};
|
|
@@ -12,10 +12,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
12
12
|
required: false;
|
|
13
13
|
default: () => never[];
|
|
14
14
|
};
|
|
15
|
-
}, {
|
|
16
|
-
prefixClsName: string;
|
|
17
|
-
prefixClsHideName: string;
|
|
18
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
15
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
19
16
|
/** 是否隐藏面包屑 */
|
|
20
17
|
hidePageWrapper: {
|
|
21
18
|
type: PropType<boolean>;
|
|
@@ -29,7 +26,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
29
26
|
default: () => never[];
|
|
30
27
|
};
|
|
31
28
|
}>>, {
|
|
32
|
-
breadcrumbItems: string[];
|
|
33
29
|
hidePageWrapper: boolean;
|
|
30
|
+
breadcrumbItems: string[];
|
|
34
31
|
}>;
|
|
35
32
|
export default _sfc_main;
|
|
@@ -2,11 +2,13 @@ import { defineComponent, resolveComponent, openBlock, createElementBlock, norma
|
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "pro-page-wrapper",
|
|
4
4
|
props: {
|
|
5
|
+
/** 是否隐藏面包屑 */
|
|
5
6
|
hidePageWrapper: {
|
|
6
7
|
type: Boolean,
|
|
7
8
|
required: false,
|
|
8
9
|
default: false
|
|
9
10
|
},
|
|
11
|
+
/** 面包屑 */
|
|
10
12
|
breadcrumbItems: {
|
|
11
13
|
type: Array,
|
|
12
14
|
required: false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { IProTab } from './interface';
|
|
2
|
-
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase,
|
|
2
|
+
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
3
3
|
declare const ProReuseTabs: {
|
|
4
4
|
new (...args: any[]): {
|
|
5
5
|
$: ComponentInternalInstance;
|
|
@@ -38,14 +38,7 @@ declare const ProReuseTabs: {
|
|
|
38
38
|
}>> & {
|
|
39
39
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
40
40
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
41
|
-
}, {
|
|
42
|
-
prefixClsName: string;
|
|
43
|
-
props: any;
|
|
44
|
-
emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
|
|
45
|
-
activeKey: ComputedRef<string | undefined>;
|
|
46
|
-
onTabClick: (key: string | number) => void;
|
|
47
|
-
onTabDelete: (key: string | number) => void;
|
|
48
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
41
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
49
42
|
'tab-click': (key: string) => true;
|
|
50
43
|
'tab-delete': (key: string) => true;
|
|
51
44
|
}, string, {
|
|
@@ -79,14 +72,7 @@ declare const ProReuseTabs: {
|
|
|
79
72
|
}>> & {
|
|
80
73
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
81
74
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
82
|
-
} & ShallowUnwrapRef<{
|
|
83
|
-
prefixClsName: string;
|
|
84
|
-
props: any;
|
|
85
|
-
emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
|
|
86
|
-
activeKey: ComputedRef<string | undefined>;
|
|
87
|
-
onTabClick: (key: string | number) => void;
|
|
88
|
-
onTabDelete: (key: string | number) => void;
|
|
89
|
-
}> & {} & ComponentCustomProperties & {};
|
|
75
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
90
76
|
__isFragment?: undefined;
|
|
91
77
|
__isTeleport?: undefined;
|
|
92
78
|
__isSuspense?: undefined;
|
|
@@ -99,14 +85,7 @@ declare const ProReuseTabs: {
|
|
|
99
85
|
}>> & {
|
|
100
86
|
"onTab-click"?: ((key: string) => any) | undefined;
|
|
101
87
|
"onTab-delete"?: ((key: string) => any) | undefined;
|
|
102
|
-
}, {
|
|
103
|
-
prefixClsName: string;
|
|
104
|
-
props: any;
|
|
105
|
-
emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
|
|
106
|
-
activeKey: ComputedRef<string | undefined>;
|
|
107
|
-
onTabClick: (key: string | number) => void;
|
|
108
|
-
onTabDelete: (key: string | number) => void;
|
|
109
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
88
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
110
89
|
'tab-click': (key: string) => true;
|
|
111
90
|
'tab-delete': (key: string) => true;
|
|
112
91
|
}, string, {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { DefineComponent,
|
|
1
|
+
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProTab } from './interface';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
tabs: {
|
|
@@ -6,14 +6,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
6
6
|
required: true;
|
|
7
7
|
default: () => never[];
|
|
8
8
|
};
|
|
9
|
-
}, {
|
|
10
|
-
prefixClsName: string;
|
|
11
|
-
props: any;
|
|
12
|
-
emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
|
|
13
|
-
activeKey: ComputedRef<string | undefined>;
|
|
14
|
-
onTabClick: (key: string | number) => void;
|
|
15
|
-
onTabDelete: (key: string | number) => void;
|
|
16
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
9
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
17
10
|
'tab-click': (key: string) => true;
|
|
18
11
|
'tab-delete': (key: string) => true;
|
|
19
12
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
package/es/style.css
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
.keyblade-pro-page-wrapper {
|
|
2
|
+
padding: 0 20px 20px 20px;
|
|
3
|
+
}
|
|
1
4
|
.keyblade-pro-layout {
|
|
2
5
|
width: 100%;
|
|
3
6
|
height: 100%;
|
|
@@ -10,7 +13,7 @@
|
|
|
10
13
|
top: 0;
|
|
11
14
|
left: 0;
|
|
12
15
|
width: 100%;
|
|
13
|
-
height: var(--
|
|
16
|
+
height: var(--8877c9f2);
|
|
14
17
|
z-index: 100;
|
|
15
18
|
display: flex;
|
|
16
19
|
align-items: center;
|
|
@@ -32,7 +35,7 @@
|
|
|
32
35
|
font-size: 18px;
|
|
33
36
|
}
|
|
34
37
|
.keyblade-pro-layout-sider {
|
|
35
|
-
padding-top: var(--
|
|
38
|
+
padding-top: var(--8877c9f2);
|
|
36
39
|
position: fixed;
|
|
37
40
|
top: 0;
|
|
38
41
|
left: 0;
|
|
@@ -47,8 +50,8 @@
|
|
|
47
50
|
overflow: auto;
|
|
48
51
|
}
|
|
49
52
|
.keyblade-pro-layout-body {
|
|
50
|
-
padding-top: var(--
|
|
51
|
-
padding-left: var(--
|
|
53
|
+
padding-top: var(--8877c9f2);
|
|
54
|
+
padding-left: var(--11b26174);
|
|
52
55
|
min-height: 100vh;
|
|
53
56
|
overflow-y: hidden;
|
|
54
57
|
background-color: var(--color-fill-2);
|
|
@@ -68,10 +71,7 @@
|
|
|
68
71
|
text-align: center;
|
|
69
72
|
}
|
|
70
73
|
.keyblade-pro-layout-body-collapsed {
|
|
71
|
-
padding-left: var(--
|
|
72
|
-
}
|
|
73
|
-
.keyblade-pro-page-wrapper {
|
|
74
|
-
padding: 0 20px 20px 20px;
|
|
74
|
+
padding-left: var(--601fa63f);
|
|
75
75
|
}
|
|
76
76
|
.keyblade-pro-reuse-tabs {
|
|
77
77
|
position: relative;
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@keyblade/pro-components",
|
|
3
3
|
"description": "KeyBlade Pro Components",
|
|
4
4
|
"author": "yangshuai <704807396@qq.com>",
|
|
5
|
-
"version": "0.0
|
|
5
|
+
"version": "1.0.0",
|
|
6
6
|
"private": false,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "es/index.js",
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"*.css"
|
|
20
20
|
],
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@arco-design/web-vue": "^2.
|
|
22
|
+
"@arco-design/web-vue": "^2.45.2",
|
|
23
23
|
"vue-router": "^4.1.6"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"vue": "^3.2.
|
|
26
|
+
"vue": "^3.2.47"
|
|
27
27
|
},
|
|
28
28
|
"scripts": {
|
|
29
29
|
"build": "vue-tsc --noEmit && vite build"
|