@keyblade/pro-components 0.0.3 → 0.0.4
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/index.d.ts +1 -2
- package/es/index.js +10 -12
- package/es/pro-breadcrumb/index.js +2 -1
- package/es/pro-layout/index.d.ts +11 -13
- package/es/pro-layout/index.js +2 -1
- package/es/pro-layout/pro-layout.vue.d.ts +5 -6
- package/es/pro-layout/pro-layout.vue.js +5 -6
- package/es/pro-menu/index.js +2 -1
- package/es/pro-page-wrapper/index.js +2 -1
- package/es/pro-reuse-tabs/index.js +2 -1
- package/es/pro-reuse-tabs/pro-reuse-tabs.vue.d.ts +1 -1
- package/es/style.css +7 -7
- package/package.json +1 -1
- package/src/index.ts +1 -2
- package/es/pro-layout/enum.d.ts +0 -5
- package/es/pro-layout/enum.js +0 -8
package/es/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { App } from 'vue';
|
|
1
|
+
import type { App } from 'vue';
|
|
2
2
|
declare const _default: {
|
|
3
3
|
install(app: App): void;
|
|
4
4
|
};
|
|
5
5
|
export default _default;
|
|
6
6
|
export { default as ProBreadcrumb } from './pro-breadcrumb';
|
|
7
7
|
export { default as ProLayout } from './pro-layout';
|
|
8
|
-
export { EProLayoutTheme } from './pro-layout';
|
|
9
8
|
export { default as ProMenu } from './pro-menu';
|
|
10
9
|
export type { IProMenuItem } from './pro-menu';
|
|
11
10
|
export { default as ProPageWrapper } from './pro-page-wrapper';
|
package/es/index.js
CHANGED
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { ProBreadcrumb } from "./pro-breadcrumb/index.js";
|
|
2
|
-
import {
|
|
2
|
+
import { default as default2 } from "./pro-breadcrumb/index.js";
|
|
3
3
|
import { ProMenu } from "./pro-menu/index.js";
|
|
4
|
-
import {
|
|
4
|
+
import { default as default3 } from "./pro-menu/index.js";
|
|
5
5
|
import { ProPageWrapper } from "./pro-page-wrapper/index.js";
|
|
6
|
-
import {
|
|
6
|
+
import { default as default4 } from "./pro-page-wrapper/index.js";
|
|
7
7
|
import { ProReuseTabs } from "./pro-reuse-tabs/index.js";
|
|
8
|
-
import {
|
|
8
|
+
import { default as default5 } from "./pro-reuse-tabs/index.js";
|
|
9
9
|
import { ProLayout } from "./pro-layout/index.js";
|
|
10
|
-
import {
|
|
11
|
-
import { EProLayoutTheme } from "./pro-layout/enum.js";
|
|
10
|
+
import { default as default6 } from "./pro-layout/index.js";
|
|
12
11
|
const index = {
|
|
13
12
|
install(app) {
|
|
14
13
|
app.use(ProBreadcrumb);
|
|
@@ -19,11 +18,10 @@ const index = {
|
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
ProReuseTabs2 as ProReuseTabs,
|
|
21
|
+
default2 as ProBreadcrumb,
|
|
22
|
+
default6 as ProLayout,
|
|
23
|
+
default3 as ProMenu,
|
|
24
|
+
default4 as ProPageWrapper,
|
|
25
|
+
default5 as ProReuseTabs,
|
|
28
26
|
index as default
|
|
29
27
|
};
|
package/es/pro-layout/index.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import type { EProLayoutTheme } from './enum';
|
|
2
1
|
import type { IProMenuItem } from '../pro-menu';
|
|
3
2
|
import type { ComponentInternalInstance, ExtractPropTypes, PropType, VNodeProps, AllowedComponentProps, ComponentCustomProps, Slot, ComponentPublicInstance, ComponentOptionsBase, Ref, ComputedRef, ComponentOptionsMixin, DebuggerEvent, nextTick, WatchOptions, WatchStopHandle, ShallowUnwrapRef, ComponentCustomProperties, App } from 'vue';
|
|
4
3
|
declare const ProLayout: {
|
|
@@ -9,7 +8,7 @@ declare const ProLayout: {
|
|
|
9
8
|
menuItems: IProMenuItem[];
|
|
10
9
|
headerTitle: string;
|
|
11
10
|
headerLogo: string;
|
|
12
|
-
theme:
|
|
11
|
+
theme: "light" | "dark";
|
|
13
12
|
footerTitle: string;
|
|
14
13
|
tabsMode: boolean;
|
|
15
14
|
}> & Omit<Readonly<ExtractPropTypes<{
|
|
@@ -29,9 +28,9 @@ declare const ProLayout: {
|
|
|
29
28
|
default: string;
|
|
30
29
|
};
|
|
31
30
|
theme: {
|
|
32
|
-
type: PropType<
|
|
31
|
+
type: PropType<"light" | "dark">;
|
|
33
32
|
required: false;
|
|
34
|
-
default:
|
|
33
|
+
default: string;
|
|
35
34
|
};
|
|
36
35
|
footerTitle: {
|
|
37
36
|
type: PropType<string>;
|
|
@@ -76,9 +75,9 @@ declare const ProLayout: {
|
|
|
76
75
|
default: string;
|
|
77
76
|
};
|
|
78
77
|
theme: {
|
|
79
|
-
type: PropType<
|
|
78
|
+
type: PropType<"light" | "dark">;
|
|
80
79
|
required: false;
|
|
81
|
-
default:
|
|
80
|
+
default: string;
|
|
82
81
|
};
|
|
83
82
|
footerTitle: {
|
|
84
83
|
type: PropType<string>;
|
|
@@ -127,7 +126,7 @@ declare const ProLayout: {
|
|
|
127
126
|
menuItems: IProMenuItem[];
|
|
128
127
|
headerTitle: string;
|
|
129
128
|
headerLogo: string;
|
|
130
|
-
theme:
|
|
129
|
+
theme: "light" | "dark";
|
|
131
130
|
footerTitle: string;
|
|
132
131
|
tabsMode: boolean;
|
|
133
132
|
}, {}, string> & {
|
|
@@ -167,9 +166,9 @@ declare const ProLayout: {
|
|
|
167
166
|
default: string;
|
|
168
167
|
};
|
|
169
168
|
theme: {
|
|
170
|
-
type: PropType<
|
|
169
|
+
type: PropType<"light" | "dark">;
|
|
171
170
|
required: false;
|
|
172
|
-
default:
|
|
171
|
+
default: string;
|
|
173
172
|
};
|
|
174
173
|
footerTitle: {
|
|
175
174
|
type: PropType<string>;
|
|
@@ -233,9 +232,9 @@ declare const ProLayout: {
|
|
|
233
232
|
default: string;
|
|
234
233
|
};
|
|
235
234
|
theme: {
|
|
236
|
-
type: PropType<
|
|
235
|
+
type: PropType<"light" | "dark">;
|
|
237
236
|
required: false;
|
|
238
|
-
default:
|
|
237
|
+
default: string;
|
|
239
238
|
};
|
|
240
239
|
footerTitle: {
|
|
241
240
|
type: PropType<string>;
|
|
@@ -284,12 +283,11 @@ declare const ProLayout: {
|
|
|
284
283
|
menuItems: IProMenuItem[];
|
|
285
284
|
headerTitle: string;
|
|
286
285
|
headerLogo: string;
|
|
287
|
-
theme:
|
|
286
|
+
theme: "light" | "dark";
|
|
288
287
|
footerTitle: string;
|
|
289
288
|
tabsMode: boolean;
|
|
290
289
|
}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
|
|
291
290
|
install: (app: App) => void;
|
|
292
291
|
};
|
|
293
|
-
export * from './enum';
|
|
294
292
|
export { ProLayout };
|
|
295
293
|
export default ProLayout;
|
package/es/pro-layout/index.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, Ref, Slot, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
2
|
import type { IProMenuItem } from '../pro-menu';
|
|
3
|
-
import { EProLayoutTheme } from './enum';
|
|
4
3
|
declare const _sfc_main: DefineComponent<{
|
|
5
4
|
menuItems: {
|
|
6
5
|
type: PropType<IProMenuItem[]>;
|
|
@@ -18,9 +17,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
18
17
|
default: string;
|
|
19
18
|
};
|
|
20
19
|
theme: {
|
|
21
|
-
type: PropType<
|
|
20
|
+
type: PropType<"light" | "dark">;
|
|
22
21
|
required: false;
|
|
23
|
-
default:
|
|
22
|
+
default: string;
|
|
24
23
|
};
|
|
25
24
|
footerTitle: {
|
|
26
25
|
type: PropType<string>;
|
|
@@ -80,9 +79,9 @@ declare const _sfc_main: DefineComponent<{
|
|
|
80
79
|
default: string;
|
|
81
80
|
};
|
|
82
81
|
theme: {
|
|
83
|
-
type: PropType<
|
|
82
|
+
type: PropType<"light" | "dark">;
|
|
84
83
|
required: false;
|
|
85
|
-
default:
|
|
84
|
+
default: string;
|
|
86
85
|
};
|
|
87
86
|
footerTitle: {
|
|
88
87
|
type: PropType<string>;
|
|
@@ -100,7 +99,7 @@ declare const _sfc_main: DefineComponent<{
|
|
|
100
99
|
menuItems: IProMenuItem[];
|
|
101
100
|
headerTitle: string;
|
|
102
101
|
headerLogo: string;
|
|
103
|
-
theme:
|
|
102
|
+
theme: "light" | "dark";
|
|
104
103
|
footerTitle: string;
|
|
105
104
|
tabsMode: boolean;
|
|
106
105
|
}>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { defineComponent, useCssVars, toRefs, useSlots, provide, computed, ref, watch, resolveComponent, openBlock, createBlock, normalizeClass, withCtx, createVNode, createElementVNode, unref, renderSlot, createTextVNode, toDisplayString, createCommentVNode, resolveDynamicComponent, KeepAlive } from "vue";
|
|
2
2
|
import { useHooks } from "./hooks.js";
|
|
3
|
-
import { EProLayoutTheme } from "./enum.js";
|
|
4
3
|
const _hoisted_1 = ["src"];
|
|
5
4
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
6
5
|
__name: "pro-layout",
|
|
@@ -23,7 +22,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
23
22
|
theme: {
|
|
24
23
|
type: String,
|
|
25
24
|
required: false,
|
|
26
|
-
default:
|
|
25
|
+
default: "light"
|
|
27
26
|
},
|
|
28
27
|
footerTitle: {
|
|
29
28
|
type: String,
|
|
@@ -42,8 +41,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
42
41
|
setup(__props, { emit }) {
|
|
43
42
|
const props = __props;
|
|
44
43
|
useCssVars((_ctx) => ({
|
|
45
|
-
"
|
|
46
|
-
"
|
|
44
|
+
"499b6380": siderWidthPx,
|
|
45
|
+
"5e353345": siderCollapsedWidthPx
|
|
47
46
|
}));
|
|
48
47
|
const prefixClsName = "keyblade-pro-layout";
|
|
49
48
|
const { menuItems } = toRefs(props);
|
|
@@ -84,10 +83,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
84
83
|
};
|
|
85
84
|
watch(() => props.theme, () => {
|
|
86
85
|
switch (props.theme) {
|
|
87
|
-
case
|
|
86
|
+
case "light":
|
|
88
87
|
document.body.removeAttribute("arco-theme");
|
|
89
88
|
break;
|
|
90
|
-
case
|
|
89
|
+
case "dark":
|
|
91
90
|
document.body.setAttribute("arco-theme", "dark");
|
|
92
91
|
break;
|
|
93
92
|
}
|
package/es/pro-menu/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefineComponent, ComputedRef, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ExtractPropTypes, type PropType } from 'vue';
|
|
2
|
-
import { IProTab } from './interface';
|
|
2
|
+
import type { IProTab } from './interface';
|
|
3
3
|
declare const _sfc_main: DefineComponent<{
|
|
4
4
|
tabs: {
|
|
5
5
|
type: PropType<IProTab[]>;
|
package/es/style.css
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
.keyblade-pro-page-wrapper {
|
|
2
2
|
padding: 0 20px 20px 20px;
|
|
3
3
|
}
|
|
4
|
+
.keyblade-pro-reuse-tabs {
|
|
5
|
+
position: relative;
|
|
6
|
+
background-color: var(--color-bg-2);
|
|
7
|
+
padding: 4px 20px;
|
|
8
|
+
}
|
|
4
9
|
.keyblade-pro-layout {
|
|
5
10
|
width: 100%;
|
|
6
11
|
height: 100%;
|
|
@@ -51,7 +56,7 @@
|
|
|
51
56
|
}
|
|
52
57
|
.keyblade-pro-layout-body {
|
|
53
58
|
padding-top: 60px;
|
|
54
|
-
padding-left: var(--
|
|
59
|
+
padding-left: var(--499b6380);
|
|
55
60
|
min-height: 100vh;
|
|
56
61
|
overflow-y: hidden;
|
|
57
62
|
background-color: var(--color-fill-2);
|
|
@@ -71,10 +76,5 @@
|
|
|
71
76
|
text-align: center;
|
|
72
77
|
}
|
|
73
78
|
.keyblade-pro-layout-body-collapsed {
|
|
74
|
-
padding-left: var(--
|
|
75
|
-
}
|
|
76
|
-
.keyblade-pro-reuse-tabs {
|
|
77
|
-
position: relative;
|
|
78
|
-
background-color: var(--color-bg-2);
|
|
79
|
-
padding: 4px 20px;
|
|
79
|
+
padding-left: var(--5e353345);
|
|
80
80
|
}
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { App } from 'vue'
|
|
1
|
+
import type { App } from 'vue'
|
|
2
2
|
import { ProBreadcrumb } from './pro-breadcrumb'
|
|
3
3
|
import { ProMenu } from './pro-menu'
|
|
4
4
|
import { ProPageWrapper } from './pro-page-wrapper'
|
|
@@ -19,7 +19,6 @@ export default {
|
|
|
19
19
|
export { default as ProBreadcrumb } from './pro-breadcrumb'
|
|
20
20
|
|
|
21
21
|
export { default as ProLayout } from './pro-layout'
|
|
22
|
-
export { EProLayoutTheme } from './pro-layout'
|
|
23
22
|
|
|
24
23
|
export { default as ProMenu } from './pro-menu'
|
|
25
24
|
export type { IProMenuItem } from './pro-menu'
|
package/es/pro-layout/enum.d.ts
DELETED
package/es/pro-layout/enum.js
DELETED