@keyblade/pro-components 0.0.1-alpha.6 → 0.0.1-alpha.7

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.
@@ -23,9 +23,9 @@ declare const ProMenu: {
23
23
  required: true;
24
24
  };
25
25
  }>> & {
26
- onCollapse?: ((...args: any[]) => any) | undefined;
27
- "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
28
- "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
26
+ onCollapse?: ((collapsed: boolean) => any) | undefined;
27
+ "onMenu-item-click"?: ((key: string) => any) | undefined;
28
+ "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
29
29
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, never>;
30
30
  $attrs: {
31
31
  [x: string]: unknown;
@@ -38,7 +38,7 @@ declare const ProMenu: {
38
38
  }>;
39
39
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
40
40
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
41
- $emit: (event: "collapse" | "menu-item-click" | "sub-menu-click", ...args: any[]) => void;
41
+ $emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
42
42
  $el: any;
43
43
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
44
44
  collapsed: {
@@ -58,16 +58,12 @@ declare const ProMenu: {
58
58
  required: true;
59
59
  };
60
60
  }>> & {
61
- onCollapse?: ((...args: any[]) => any) | undefined;
62
- "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
63
- "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
61
+ onCollapse?: ((collapsed: boolean) => any) | undefined;
62
+ "onMenu-item-click"?: ((key: string) => any) | undefined;
63
+ "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
64
64
  }, {
65
65
  prefixClsName: string;
66
- emit: {
67
- (event: "collapse", collapsed: boolean): void;
68
- (event: "menu-item-click", key: string): void;
69
- (event: "sub-menu-click", key: string, openKeys: string[]): void;
70
- };
66
+ emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
71
67
  ProMenuItem: DefineComponent<{
72
68
  item: {
73
69
  type: null;
@@ -82,7 +78,11 @@ declare const ProMenu: {
82
78
  required: true;
83
79
  };
84
80
  }>>, {}>;
85
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("collapse" | "menu-item-click" | "sub-menu-click")[], string, {}, {}, string> & {
81
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
82
+ collapse: (collapsed: boolean) => true;
83
+ 'menu-item-click': (key: string) => true;
84
+ 'sub-menu-click': (key: string, openKeys: string[]) => true;
85
+ }, string, {}, {}, string> & {
86
86
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
87
87
  created?: ((() => void) | (() => void)[]) | undefined;
88
88
  beforeMount?: ((() => void) | (() => void)[]) | undefined;
@@ -120,16 +120,12 @@ declare const ProMenu: {
120
120
  required: true;
121
121
  };
122
122
  }>> & {
123
- onCollapse?: ((...args: any[]) => any) | undefined;
124
- "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
125
- "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
123
+ onCollapse?: ((collapsed: boolean) => any) | undefined;
124
+ "onMenu-item-click"?: ((key: string) => any) | undefined;
125
+ "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
126
126
  } & ShallowUnwrapRef<{
127
127
  prefixClsName: string;
128
- emit: {
129
- (event: "collapse", collapsed: boolean): void;
130
- (event: "menu-item-click", key: string): void;
131
- (event: "sub-menu-click", key: string, openKeys: string[]): void;
132
- };
128
+ emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
133
129
  ProMenuItem: DefineComponent<{
134
130
  item: {
135
131
  type: null;
@@ -166,16 +162,12 @@ declare const ProMenu: {
166
162
  required: true;
167
163
  };
168
164
  }>> & {
169
- onCollapse?: ((...args: any[]) => any) | undefined;
170
- "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
171
- "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
165
+ onCollapse?: ((collapsed: boolean) => any) | undefined;
166
+ "onMenu-item-click"?: ((key: string) => any) | undefined;
167
+ "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
172
168
  }, {
173
169
  prefixClsName: string;
174
- emit: {
175
- (event: "collapse", collapsed: boolean): void;
176
- (event: "menu-item-click", key: string): void;
177
- (event: "sub-menu-click", key: string, openKeys: string[]): void;
178
- };
170
+ emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
179
171
  ProMenuItem: DefineComponent<{
180
172
  item: {
181
173
  type: null;
@@ -190,7 +182,11 @@ declare const ProMenu: {
190
182
  required: true;
191
183
  };
192
184
  }>>, {}>;
193
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("collapse" | "menu-item-click" | "sub-menu-click")[], "collapse" | "menu-item-click" | "sub-menu-click", {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
185
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
186
+ collapse: (collapsed: boolean) => true;
187
+ 'menu-item-click': (key: string) => true;
188
+ 'sub-menu-click': (key: string, openKeys: string[]) => true;
189
+ }, string, {}, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
194
190
  install: (app: App) => void;
195
191
  };
196
192
  export * from './interface';
@@ -20,11 +20,7 @@ declare const _sfc_main: DefineComponent<{
20
20
  };
21
21
  }, {
22
22
  prefixClsName: string;
23
- emit: {
24
- (event: 'collapse', collapsed: boolean): void;
25
- (event: 'menu-item-click', key: string): void;
26
- (event: 'sub-menu-click', key: string, openKeys: string[]): void;
27
- };
23
+ emit: ((event: "collapse", collapsed: boolean) => void) & ((event: "menu-item-click", key: string) => void) & ((event: "sub-menu-click", key: string, openKeys: string[]) => void);
28
24
  ProMenuItem: DefineComponent<{
29
25
  item: {
30
26
  type: null;
@@ -39,7 +35,11 @@ declare const _sfc_main: DefineComponent<{
39
35
  required: true;
40
36
  };
41
37
  }>>, {}>;
42
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("collapse" | "menu-item-click" | "sub-menu-click")[], "collapse" | "menu-item-click" | "sub-menu-click", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
38
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
39
+ collapse: (collapsed: boolean) => true;
40
+ 'menu-item-click': (key: string) => true;
41
+ 'sub-menu-click': (key: string, openKeys: string[]) => true;
42
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
43
43
  collapsed: {
44
44
  type: PropType<boolean>;
45
45
  required: true;
@@ -57,8 +57,8 @@ declare const _sfc_main: DefineComponent<{
57
57
  required: true;
58
58
  };
59
59
  }>> & {
60
- onCollapse?: ((...args: any[]) => any) | undefined;
61
- "onMenu-item-click"?: ((...args: any[]) => any) | undefined;
62
- "onSub-menu-click"?: ((...args: any[]) => any) | undefined;
60
+ onCollapse?: ((collapsed: boolean) => any) | undefined;
61
+ "onMenu-item-click"?: ((key: string) => any) | undefined;
62
+ "onSub-menu-click"?: ((key: string, openKeys: string[]) => any) | undefined;
63
63
  }, {}>;
64
64
  export default _sfc_main;
@@ -20,7 +20,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
20
  required: true
21
21
  }
22
22
  },
23
- emits: ["collapse", "menu-item-click", "sub-menu-click"],
23
+ emits: {
24
+ "collapse": (collapsed) => true,
25
+ "menu-item-click": (key) => true,
26
+ "sub-menu-click": (key, openKeys) => true
27
+ },
24
28
  setup(__props, { emit }) {
25
29
  const prefixClsName = "keyblade-pro-menu";
26
30
  return (_ctx, _cache) => {
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.1-alpha.6",
5
+ "version": "0.0.1-alpha.7",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",