@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 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 { ProBreadcrumb as ProBreadcrumb2 } from "./pro-breadcrumb/index.js";
2
+ import { default as default2 } from "./pro-breadcrumb/index.js";
3
3
  import { ProMenu } from "./pro-menu/index.js";
4
- import { ProMenu as ProMenu2 } from "./pro-menu/index.js";
4
+ import { default as default3 } from "./pro-menu/index.js";
5
5
  import { ProPageWrapper } from "./pro-page-wrapper/index.js";
6
- import { ProPageWrapper as ProPageWrapper2 } from "./pro-page-wrapper/index.js";
6
+ import { default as default4 } from "./pro-page-wrapper/index.js";
7
7
  import { ProReuseTabs } from "./pro-reuse-tabs/index.js";
8
- import { ProReuseTabs as ProReuseTabs2 } from "./pro-reuse-tabs/index.js";
8
+ import { default as default5 } from "./pro-reuse-tabs/index.js";
9
9
  import { ProLayout } from "./pro-layout/index.js";
10
- import { ProLayout as ProLayout2 } from "./pro-layout/index.js";
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
- EProLayoutTheme,
23
- ProBreadcrumb2 as ProBreadcrumb,
24
- ProLayout2 as ProLayout,
25
- ProMenu2 as ProMenu,
26
- ProPageWrapper2 as ProPageWrapper,
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
  };
@@ -6,7 +6,8 @@ const ProBreadcrumb = Object.assign(_sfc_main, {
6
6
  app.component("KbProBreadcrumb", _sfc_main);
7
7
  }
8
8
  });
9
+ const ProBreadcrumb$1 = ProBreadcrumb;
9
10
  export {
10
11
  ProBreadcrumb,
11
- ProBreadcrumb as default
12
+ ProBreadcrumb$1 as default
12
13
  };
@@ -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: EProLayoutTheme;
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<EProLayoutTheme>;
31
+ type: PropType<"light" | "dark">;
33
32
  required: false;
34
- default: EProLayoutTheme;
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<EProLayoutTheme>;
78
+ type: PropType<"light" | "dark">;
80
79
  required: false;
81
- default: EProLayoutTheme;
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: EProLayoutTheme;
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<EProLayoutTheme>;
169
+ type: PropType<"light" | "dark">;
171
170
  required: false;
172
- default: EProLayoutTheme;
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<EProLayoutTheme>;
235
+ type: PropType<"light" | "dark">;
237
236
  required: false;
238
- default: EProLayoutTheme;
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: EProLayoutTheme;
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;
@@ -19,7 +19,8 @@ const ProLayout = Object.assign(_sfc_main, {
19
19
  app.component("KbProLayout", _sfc_main);
20
20
  }
21
21
  });
22
+ const ProLayout$1 = ProLayout;
22
23
  export {
23
24
  ProLayout,
24
- ProLayout as default
25
+ ProLayout$1 as default
25
26
  };
@@ -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<EProLayoutTheme>;
20
+ type: PropType<"light" | "dark">;
22
21
  required: false;
23
- default: EProLayoutTheme;
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<EProLayoutTheme>;
82
+ type: PropType<"light" | "dark">;
84
83
  required: false;
85
- default: EProLayoutTheme;
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: EProLayoutTheme;
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: EProLayoutTheme.light
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
- "29cb7150": siderWidthPx,
46
- "7085bb26": siderCollapsedWidthPx
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 EProLayoutTheme.light:
86
+ case "light":
88
87
  document.body.removeAttribute("arco-theme");
89
88
  break;
90
- case EProLayoutTheme.dark:
89
+ case "dark":
91
90
  document.body.setAttribute("arco-theme", "dark");
92
91
  break;
93
92
  }
@@ -6,7 +6,8 @@ const ProMenu = Object.assign(_sfc_main, {
6
6
  app.component("KbProMenu", _sfc_main);
7
7
  }
8
8
  });
9
+ const ProMenu$1 = ProMenu;
9
10
  export {
10
11
  ProMenu,
11
- ProMenu as default
12
+ ProMenu$1 as default
12
13
  };
@@ -7,7 +7,8 @@ const ProPageWrapper = Object.assign(_sfc_main, {
7
7
  app.component("KbProPageWrapper", _sfc_main);
8
8
  }
9
9
  });
10
+ const ProPageWrapper$1 = ProPageWrapper;
10
11
  export {
11
12
  ProPageWrapper,
12
- ProPageWrapper as default
13
+ ProPageWrapper$1 as default
13
14
  };
@@ -7,7 +7,8 @@ const ProReuseTabs = Object.assign(_sfc_main, {
7
7
  app.component("KbProReuseTabs", _sfc_main);
8
8
  }
9
9
  });
10
+ const ProReuseTabs$1 = ProReuseTabs;
10
11
  export {
11
12
  ProReuseTabs,
12
- ProReuseTabs as default
13
+ ProReuseTabs$1 as default
13
14
  };
@@ -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(--29cb7150);
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(--7085bb26);
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
@@ -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.3",
5
+ "version": "0.0.4",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",
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'
@@ -1,5 +0,0 @@
1
- /** 主题 */
2
- export declare enum EProLayoutTheme {
3
- light = "light",
4
- dark = "dark"
5
- }
@@ -1,8 +0,0 @@
1
- var EProLayoutTheme = /* @__PURE__ */ ((EProLayoutTheme2) => {
2
- EProLayoutTheme2["light"] = "light";
3
- EProLayoutTheme2["dark"] = "dark";
4
- return EProLayoutTheme2;
5
- })(EProLayoutTheme || {});
6
- export {
7
- EProLayoutTheme
8
- };