@keyblade/pro-components 0.0.11 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/components.d.ts +2 -1
- package/es/index.d.ts +2 -1
- package/es/index.js +16 -12
- package/es/pro-breadcrumb/index.d.ts +4 -16
- package/es/pro-breadcrumb/index.js +1 -0
- package/es/pro-breadcrumb/pro-breadcrumb.vue.d.ts +2 -6
- package/es/pro-breadcrumb/pro-breadcrumb.vue.js +14 -6
- package/es/pro-breadcrumb/pro-breadcrumb.vue2.js +2 -3
- package/es/pro-breadcrumb/pro-breadcrumb.vue3.js +5 -0
- 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-keep-alive-router-view/index.d.ts +124 -0
- package/es/pro-keep-alive-router-view/index.js +11 -0
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.d.ts +45 -0
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue.js +57 -0
- package/es/pro-keep-alive-router-view/pro-keep-alive-router-view.vue2.js +4 -0
- package/es/pro-layout/hooks.d.ts +3 -2
- package/es/pro-layout/hooks.js +38 -8
- package/es/pro-layout/index.d.ts +19 -106
- package/es/pro-layout/index.js +3 -6
- package/es/pro-layout/pro-layout.vue.d.ts +7 -36
- package/es/pro-layout/pro-layout.vue.js +34 -59
- package/es/pro-layout/pro-layout.vue3.js +1 -2
- package/es/pro-menu/index.d.ts +5 -75
- package/es/pro-menu/interface.d.ts +5 -9
- package/es/pro-menu/pro-menu-item.vue.d.ts +4 -8
- package/es/pro-menu/pro-menu-item.vue.js +28 -4
- package/es/pro-menu/pro-menu-item.vue2.js +2 -3
- package/es/pro-menu/pro-menu-item.vue3.js +5 -0
- package/es/pro-menu/pro-menu.vue.d.ts +2 -26
- package/es/pro-menu/pro-menu.vue.js +3 -8
- 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 → pro-page-container}/index.d.ts +14 -23
- package/es/pro-page-container/index.js +14 -0
- package/es/{pro-page-wrapper/pro-page-wrapper.vue.d.ts → pro-page-container/pro-page-container.vue.d.ts} +4 -7
- package/es/{pro-page-wrapper/pro-page-wrapper.vue.js → pro-page-container/pro-page-container.vue.js} +8 -8
- package/es/pro-page-container/pro-page-container.vue2.js +4 -0
- package/es/pro-page-container/pro-page-container.vue3.js +5 -0
- 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 +24 -15
- package/package.json +3 -3
- package/src/index.ts +7 -3
- package/es/pro-page-wrapper/index.js +0 -14
- package/es/pro-page-wrapper/pro-page-wrapper.vue2.js +0 -4
- package/es/pro-page-wrapper/pro-page-wrapper.vue3.js +0 -6
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;
|
|
@@ -19,9 +18,7 @@ declare const ProMenu: {
|
|
|
19
18
|
required: true;
|
|
20
19
|
};
|
|
21
20
|
}>> & {
|
|
22
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
23
21
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
24
|
-
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
|
25
22
|
} & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
|
|
26
23
|
$attrs: {
|
|
27
24
|
[x: string]: unknown;
|
|
@@ -34,7 +31,7 @@ declare const ProMenu: {
|
|
|
34
31
|
}>;
|
|
35
32
|
$root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
36
33
|
$parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
37
|
-
$emit: (
|
|
34
|
+
$emit: (event: "menu-item-click", key: string) => void;
|
|
38
35
|
$el: any;
|
|
39
36
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
40
37
|
collapsed: {
|
|
@@ -50,32 +47,9 @@ declare const ProMenu: {
|
|
|
50
47
|
required: true;
|
|
51
48
|
};
|
|
52
49
|
}>> & {
|
|
53
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
54
50
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
55
|
-
|
|
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, {
|
|
76
|
-
collapse: (collapsed: boolean) => true;
|
|
51
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
77
52
|
'menu-item-click': (key: string) => true;
|
|
78
|
-
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
79
53
|
}, string, {}, {}, string> & {
|
|
80
54
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
81
55
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -110,29 +84,8 @@ declare const ProMenu: {
|
|
|
110
84
|
required: true;
|
|
111
85
|
};
|
|
112
86
|
}>> & {
|
|
113
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
114
87
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
115
|
-
|
|
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 & {};
|
|
88
|
+
} & ShallowUnwrapRef<{}> & {} & ComponentCustomProperties & {};
|
|
136
89
|
__isFragment?: undefined;
|
|
137
90
|
__isTeleport?: undefined;
|
|
138
91
|
__isSuspense?: undefined;
|
|
@@ -150,32 +103,9 @@ declare const ProMenu: {
|
|
|
150
103
|
required: true;
|
|
151
104
|
};
|
|
152
105
|
}>> & {
|
|
153
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
154
106
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
155
|
-
|
|
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, {
|
|
176
|
-
collapse: (collapsed: boolean) => true;
|
|
107
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
177
108
|
'menu-item-click': (key: string) => true;
|
|
178
|
-
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
179
109
|
}, string, {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
180
110
|
install: (app: App) => void;
|
|
181
111
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { RenderFunction, VNode } from 'vue';
|
|
2
1
|
export interface IProMenuItem {
|
|
3
2
|
/** 英文名称(唯一标识,不能重复) */
|
|
4
3
|
name: string;
|
|
@@ -8,22 +7,19 @@ export interface IProMenuItem {
|
|
|
8
7
|
title: string;
|
|
9
8
|
/**
|
|
10
9
|
* 图标
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
* RenderFunction:() => v(IconApps)
|
|
10
|
+
* arco design icon: 'icon-apps'
|
|
11
|
+
* url: 绝对路径或相对路径
|
|
14
12
|
* */
|
|
15
|
-
icon?: string
|
|
13
|
+
icon?: string;
|
|
16
14
|
/** 如果设置为 true,右侧菜单不显示 */
|
|
17
15
|
hideInMenu?: boolean;
|
|
18
16
|
/** 如果设置为 true,右侧菜单不显示下面子菜单 */
|
|
19
17
|
hideChildrenInMenu?: boolean;
|
|
20
|
-
/** 如果设置为 true
|
|
18
|
+
/** 如果设置为 true,则不会出现在多页签中 */
|
|
21
19
|
noAffix?: boolean;
|
|
22
20
|
/** 面包屑 */
|
|
23
21
|
breadcrumbs?: string[];
|
|
24
|
-
/**
|
|
25
|
-
hidePageWrapper?: boolean;
|
|
26
|
-
/** 如果设置为 true,页面将不会被缓存 */
|
|
22
|
+
/** 默认缓存,如果设置为 true,页面将不会被缓存 */
|
|
27
23
|
ignoreCache?: boolean;
|
|
28
24
|
/** 子元素 */
|
|
29
25
|
children?: IProMenuItem[];
|
|
@@ -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,5 +1,7 @@
|
|
|
1
|
-
import { defineComponent, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, createSlots, withCtx, createTextVNode, toDisplayString, renderList, createCommentVNode, resolveDynamicComponent } from "vue";
|
|
1
|
+
import { defineComponent, computed, resolveComponent, openBlock, createElementBlock, Fragment, createBlock, createSlots, withCtx, createTextVNode, toDisplayString, renderList, createCommentVNode, unref, resolveDynamicComponent, normalizeClass } from "vue";
|
|
2
2
|
import { useRouter } from "vue-router";
|
|
3
|
+
const _hoisted_1 = ["src"];
|
|
4
|
+
const _hoisted_2 = ["src"];
|
|
3
5
|
const __default__ = {
|
|
4
6
|
name: "KbProMenuItem"
|
|
5
7
|
};
|
|
@@ -9,7 +11,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
9
11
|
item: null
|
|
10
12
|
},
|
|
11
13
|
setup(__props) {
|
|
14
|
+
const props = __props;
|
|
15
|
+
const prefixItemClsName = "keyblade-pro-menu-item";
|
|
12
16
|
const router = useRouter();
|
|
17
|
+
const iconType = computed(() => {
|
|
18
|
+
var _a;
|
|
19
|
+
const icon = (_a = props.item) == null ? void 0 : _a.icon;
|
|
20
|
+
if (icon == null ? void 0 : icon.startsWith("icon")) {
|
|
21
|
+
return "icon";
|
|
22
|
+
}
|
|
23
|
+
return "url";
|
|
24
|
+
});
|
|
13
25
|
const onMenuItemClick = (item) => {
|
|
14
26
|
if (!(item == null ? void 0 : item.path)) {
|
|
15
27
|
return;
|
|
@@ -35,7 +47,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
47
|
default: withCtx(() => {
|
|
36
48
|
var _a2, _b2;
|
|
37
49
|
return [
|
|
38
|
-
!((_a2 = __props.item) == null ? void 0 : _a2.hideChildrenInMenu) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList((_b2 = __props.item) == null ? void 0 : _b2.children, (childItem) => {
|
|
50
|
+
!((_a2 = __props.item) == null ? void 0 : _a2.hideChildrenInMenu) ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(((_b2 = __props.item) == null ? void 0 : _b2.children) || [], (childItem) => {
|
|
39
51
|
return openBlock(), createBlock(_component_kb_pro_menu_item, {
|
|
40
52
|
key: childItem.name,
|
|
41
53
|
item: childItem
|
|
@@ -48,7 +60,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
48
60
|
((_d = __props.item) == null ? void 0 : _d.icon) ? {
|
|
49
61
|
name: "icon",
|
|
50
62
|
fn: withCtx(() => [
|
|
51
|
-
(openBlock(), createBlock(resolveDynamicComponent(__props.item.icon)))
|
|
63
|
+
unref(iconType) === "icon" ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.icon), { key: 0 })) : createCommentVNode("", true),
|
|
64
|
+
unref(iconType) === "url" ? (openBlock(), createElementBlock("img", {
|
|
65
|
+
key: 1,
|
|
66
|
+
class: normalizeClass(`${prefixItemClsName}-img`),
|
|
67
|
+
src: __props.item.icon,
|
|
68
|
+
alt: ""
|
|
69
|
+
}, null, 10, _hoisted_1)) : createCommentVNode("", true)
|
|
52
70
|
]),
|
|
53
71
|
key: "0"
|
|
54
72
|
} : void 0
|
|
@@ -65,7 +83,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
83
|
((_h = __props.item) == null ? void 0 : _h.icon) ? {
|
|
66
84
|
name: "icon",
|
|
67
85
|
fn: withCtx(() => [
|
|
68
|
-
(openBlock(), createBlock(resolveDynamicComponent(__props.item.icon)))
|
|
86
|
+
unref(iconType) === "icon" ? (openBlock(), createBlock(resolveDynamicComponent(__props.item.icon), { key: 0 })) : createCommentVNode("", true),
|
|
87
|
+
unref(iconType) === "url" ? (openBlock(), createElementBlock("img", {
|
|
88
|
+
key: 1,
|
|
89
|
+
class: normalizeClass(`${prefixItemClsName}-img`),
|
|
90
|
+
src: __props.item.icon,
|
|
91
|
+
alt: ""
|
|
92
|
+
}, null, 10, _hoisted_2)) : createCommentVNode("", true)
|
|
69
93
|
]),
|
|
70
94
|
key: "0"
|
|
71
95
|
} : void 0
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import type { Router } from 'vue-router';
|
|
2
|
-
import type { IProMenuItem } from './interface';
|
|
3
1
|
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
+
import type { IProMenuItem } from './interface';
|
|
4
3
|
declare const _sfc_main: DefineComponent<{
|
|
5
4
|
collapsed: {
|
|
6
5
|
type: PropType<boolean>;
|
|
@@ -14,29 +13,8 @@ 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, {
|
|
37
|
-
collapse: (collapsed: boolean) => true;
|
|
16
|
+
}, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
38
17
|
'menu-item-click': (key: string) => true;
|
|
39
|
-
'sub-menu-click': (key: string, openKeys: string[]) => true;
|
|
40
18
|
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
|
|
41
19
|
collapsed: {
|
|
42
20
|
type: PropType<boolean>;
|
|
@@ -51,8 +29,6 @@ declare const _sfc_main: DefineComponent<{
|
|
|
51
29
|
required: true;
|
|
52
30
|
};
|
|
53
31
|
}>> & {
|
|
54
|
-
onCollapse?: ((collapsed: boolean) => any) | undefined;
|
|
55
32
|
"onMenu-item-click"?: ((key: string) => any) | undefined;
|
|
56
|
-
"onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
|
|
57
33
|
}, {}>;
|
|
58
34
|
export default _sfc_main;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { defineComponent, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createElementBlock, Fragment, renderList } from "vue";
|
|
2
2
|
import _sfc_main$1 from "./pro-menu-item.vue.js";
|
|
3
|
+
import "./pro-menu-item.vue2.js";
|
|
3
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
4
5
|
__name: "pro-menu",
|
|
5
6
|
props: {
|
|
@@ -17,9 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
17
18
|
}
|
|
18
19
|
},
|
|
19
20
|
emits: {
|
|
20
|
-
"
|
|
21
|
-
"menu-item-click": (key) => true,
|
|
22
|
-
"sub-menu-click": (key, openKeys) => true
|
|
21
|
+
"menu-item-click": (key) => true
|
|
23
22
|
},
|
|
24
23
|
setup(__props, { emit }) {
|
|
25
24
|
const props = __props;
|
|
@@ -51,12 +50,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
51
50
|
class: normalizeClass(prefixClsName),
|
|
52
51
|
collapsed: __props.collapsed,
|
|
53
52
|
"selected-keys": __props.selectedKeys,
|
|
54
|
-
"show-collapse-button": "",
|
|
55
53
|
"auto-open-selected": "",
|
|
56
|
-
|
|
57
|
-
onCollapse: _cache[0] || (_cache[0] = ($event) => emit("collapse", $event)),
|
|
58
|
-
onMenuItemClick,
|
|
59
|
-
onSubMenuClick: _cache[1] || (_cache[1] = (_key, _openKeys) => emit("sub-menu-click", _key, _openKeys))
|
|
54
|
+
onMenuItemClick
|
|
60
55
|
}, {
|
|
61
56
|
default: withCtx(() => [
|
|
62
57
|
(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
@@ -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;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
2
|
-
declare const
|
|
2
|
+
declare const ProPageContainer: {
|
|
3
3
|
new (...args: any[]): {
|
|
4
4
|
$: ComponentInternalInstance;
|
|
5
5
|
$data: {};
|
|
6
6
|
$props: Partial<{
|
|
7
|
+
hideBreadcrumb: boolean;
|
|
7
8
|
breadcrumbItems: string[];
|
|
8
|
-
hidePageWrapper: boolean;
|
|
9
9
|
}> & Omit<Readonly<ExtractPropTypes<{
|
|
10
|
-
|
|
10
|
+
hideBreadcrumb: {
|
|
11
11
|
type: PropType<boolean>;
|
|
12
12
|
required: false;
|
|
13
13
|
default: 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, "hideBreadcrumb" | "breadcrumbItems">;
|
|
21
21
|
$attrs: {
|
|
22
22
|
[x: string]: unknown;
|
|
23
23
|
};
|
|
@@ -32,7 +32,7 @@ declare const ProPageWrapper: {
|
|
|
32
32
|
$emit: (event: string, ...args: any[]) => void;
|
|
33
33
|
$el: any;
|
|
34
34
|
$options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
35
|
-
|
|
35
|
+
hideBreadcrumb: {
|
|
36
36
|
type: PropType<boolean>;
|
|
37
37
|
required: false;
|
|
38
38
|
default: boolean;
|
|
@@ -42,12 +42,9 @@ declare const ProPageWrapper: {
|
|
|
42
42
|
required: false;
|
|
43
43
|
default: () => never[];
|
|
44
44
|
};
|
|
45
|
-
}>>, {
|
|
46
|
-
|
|
47
|
-
prefixClsHideName: string;
|
|
48
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
45
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
46
|
+
hideBreadcrumb: boolean;
|
|
49
47
|
breadcrumbItems: string[];
|
|
50
|
-
hidePageWrapper: boolean;
|
|
51
48
|
}, {}, string> & {
|
|
52
49
|
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
53
50
|
created?: ((() => void) | (() => void)[]) | undefined;
|
|
@@ -69,7 +66,7 @@ declare const ProPageWrapper: {
|
|
|
69
66
|
$nextTick: typeof nextTick;
|
|
70
67
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: WatchOptions<boolean> | undefined): WatchStopHandle;
|
|
71
68
|
} & Readonly<ExtractPropTypes<{
|
|
72
|
-
|
|
69
|
+
hideBreadcrumb: {
|
|
73
70
|
type: PropType<boolean>;
|
|
74
71
|
required: false;
|
|
75
72
|
default: boolean;
|
|
@@ -79,15 +76,12 @@ 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;
|
|
89
83
|
} & ComponentOptionsBase<Readonly<ExtractPropTypes<{
|
|
90
|
-
|
|
84
|
+
hideBreadcrumb: {
|
|
91
85
|
type: PropType<boolean>;
|
|
92
86
|
required: false;
|
|
93
87
|
default: boolean;
|
|
@@ -97,14 +91,11 @@ declare const ProPageWrapper: {
|
|
|
97
91
|
required: false;
|
|
98
92
|
default: () => never[];
|
|
99
93
|
};
|
|
100
|
-
}>>, {
|
|
101
|
-
|
|
102
|
-
prefixClsHideName: string;
|
|
103
|
-
}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
94
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
95
|
+
hideBreadcrumb: boolean;
|
|
104
96
|
breadcrumbItems: string[];
|
|
105
|
-
hidePageWrapper: boolean;
|
|
106
97
|
}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
107
98
|
install: (app: App) => void;
|
|
108
99
|
};
|
|
109
|
-
export {
|
|
110
|
-
export default
|
|
100
|
+
export { ProPageContainer };
|
|
101
|
+
export default ProPageContainer;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import _sfc_main from "./pro-page-container.vue.js";
|
|
2
|
+
import "./pro-page-container.vue2.js";
|
|
3
|
+
import { ProBreadcrumb } from "../pro-breadcrumb/index.js";
|
|
4
|
+
const ProPageContainer = Object.assign(_sfc_main, {
|
|
5
|
+
install: (app) => {
|
|
6
|
+
app.use(ProBreadcrumb);
|
|
7
|
+
app.component("KbProPageContainer", _sfc_main);
|
|
8
|
+
}
|
|
9
|
+
});
|
|
10
|
+
const ProPageContainer$1 = ProPageContainer;
|
|
11
|
+
export {
|
|
12
|
+
ProPageContainer,
|
|
13
|
+
ProPageContainer$1 as default
|
|
14
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { DefineComponent, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, PropType } from 'vue';
|
|
2
2
|
declare const _sfc_main: DefineComponent<{
|
|
3
3
|
/** 是否隐藏面包屑 */
|
|
4
|
-
|
|
4
|
+
hideBreadcrumb: {
|
|
5
5
|
type: PropType<boolean>;
|
|
6
6
|
required: false;
|
|
7
7
|
default: boolean;
|
|
@@ -12,12 +12,9 @@ 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
|
+
hideBreadcrumb: {
|
|
21
18
|
type: PropType<boolean>;
|
|
22
19
|
required: false;
|
|
23
20
|
default: boolean;
|
|
@@ -29,7 +26,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
29
26
|
default: () => never[];
|
|
30
27
|
};
|
|
31
28
|
}>>, {
|
|
29
|
+
hideBreadcrumb: boolean;
|
|
32
30
|
breadcrumbItems: string[];
|
|
33
|
-
hidePageWrapper: boolean;
|
|
34
31
|
}>;
|
|
35
32
|
export default _sfc_main;
|