jgy-public-component 0.0.7 → 0.0.8

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.
@@ -1,9 +1,17 @@
1
1
  import { DefineComponent, ExtractPropTypes, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, PropType } from 'vue';
2
- declare const _default: DefineComponent<ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
2
+ declare const _default: DefineComponent<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
3
3
  icon: string;
4
- }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_TypePropsToRuntimeProps<{
4
+ size?: string | number;
5
+ }>, {
6
+ size: number;
7
+ }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<{
5
8
  icon: string;
6
- }>>> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
9
+ size?: string | number;
10
+ }>, {
11
+ size: number;
12
+ }>>> & Readonly<{}>, {
13
+ size: string | number;
14
+ }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
7
15
  export default _default;
8
16
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
9
17
  type __VLS_TypePropsToRuntimeProps<T> = {
@@ -14,3 +22,11 @@ type __VLS_TypePropsToRuntimeProps<T> = {
14
22
  required: true;
15
23
  };
16
24
  };
25
+ type __VLS_WithDefaults<P, D> = {
26
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
27
+ default: D[K];
28
+ }> : P[K];
29
+ };
30
+ type __VLS_Prettify<T> = {
31
+ [K in keyof T]: T[K];
32
+ } & {};
@@ -1,3 +1,4 @@
1
1
  export interface JIconRenderProps {
2
2
  icon: string;
3
+ size?: string | number;
3
4
  }
@@ -9,8 +9,6 @@ interface Props {
9
9
  collapsed?: boolean;
10
10
  collapsedWidth?: number;
11
11
  expandedWidth?: number;
12
- expandText?: string;
13
- collapseText?: string;
14
12
  router?: boolean;
15
13
  }
16
14
  declare function __VLS_template(): {
@@ -29,8 +27,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
29
27
  collapsed: boolean;
30
28
  collapsedWidth: number;
31
29
  expandedWidth: number;
32
- expandText: string;
33
- collapseText: string;
34
30
  router: boolean;
35
31
  }>>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
36
32
  "menu-click": (item: SidebarMenuItem) => void;
@@ -42,8 +38,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
42
38
  collapsed: boolean;
43
39
  collapsedWidth: number;
44
40
  expandedWidth: number;
45
- expandText: string;
46
- collapseText: string;
47
41
  router: boolean;
48
42
  }>>> & Readonly<{
49
43
  "onMenu-click"?: ((item: SidebarMenuItem) => any) | undefined;
@@ -55,8 +49,6 @@ declare const __VLS_component: DefineComponent<ExtractPropTypes<__VLS_WithDefaul
55
49
  collapsed: boolean;
56
50
  collapsedWidth: number;
57
51
  expandedWidth: number;
58
- expandText: string;
59
- collapseText: string;
60
52
  router: boolean;
61
53
  }, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
62
54
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
@@ -14,8 +14,6 @@ export interface JSidebarProps {
14
14
  collapsed?: boolean;
15
15
  collapsedWidth?: number;
16
16
  expandedWidth?: number;
17
- expandText?: string;
18
- collapseText?: string;
19
17
  router?: boolean;
20
18
  }
21
19
  export interface JSideMenuItemProps {