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

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.
@@ -13,8 +13,8 @@ declare const ProReuseTabs: {
13
13
  default: () => never[];
14
14
  };
15
15
  }>> & {
16
- "onTab-click"?: ((...args: any[]) => any) | undefined;
17
- "onTab-delete"?: ((...args: any[]) => any) | undefined;
16
+ "onTab-click"?: ((key: string) => any) | undefined;
17
+ "onTab-delete"?: ((key: string) => any) | undefined;
18
18
  } & VNodeProps & AllowedComponentProps & ComponentCustomProps, "tabs">;
19
19
  $attrs: {
20
20
  [x: string]: unknown;
@@ -27,7 +27,7 @@ declare const ProReuseTabs: {
27
27
  }>;
28
28
  $root: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
29
29
  $parent: ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
30
- $emit: (event: "tab-click" | "tab-delete", ...args: any[]) => void;
30
+ $emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
31
31
  $el: any;
32
32
  $options: ComponentOptionsBase<Readonly<ExtractPropTypes<{
33
33
  tabs: {
@@ -36,19 +36,19 @@ declare const ProReuseTabs: {
36
36
  default: () => never[];
37
37
  };
38
38
  }>> & {
39
- "onTab-click"?: ((...args: any[]) => any) | undefined;
40
- "onTab-delete"?: ((...args: any[]) => any) | undefined;
39
+ "onTab-click"?: ((key: string) => any) | undefined;
40
+ "onTab-delete"?: ((key: string) => any) | undefined;
41
41
  }, {
42
42
  prefixClsName: string;
43
43
  props: any;
44
- emit: {
45
- (event: "tab-click", key: string): void;
46
- (event: "tab-delete", key: string): void;
47
- };
44
+ emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
48
45
  activeKey: ComputedRef<string | undefined>;
49
46
  onTabClick: (key: string | number) => void;
50
47
  onTabDelete: (key: string | number) => void;
51
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("tab-click" | "tab-delete")[], string, {
48
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
49
+ 'tab-click': (key: string) => true;
50
+ 'tab-delete': (key: string) => true;
51
+ }, string, {
52
52
  tabs: IProTab[];
53
53
  }, {}, string> & {
54
54
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
@@ -77,15 +77,12 @@ declare const ProReuseTabs: {
77
77
  default: () => never[];
78
78
  };
79
79
  }>> & {
80
- "onTab-click"?: ((...args: any[]) => any) | undefined;
81
- "onTab-delete"?: ((...args: any[]) => any) | undefined;
80
+ "onTab-click"?: ((key: string) => any) | undefined;
81
+ "onTab-delete"?: ((key: string) => any) | undefined;
82
82
  } & ShallowUnwrapRef<{
83
83
  prefixClsName: string;
84
84
  props: any;
85
- emit: {
86
- (event: "tab-click", key: string): void;
87
- (event: "tab-delete", key: string): void;
88
- };
85
+ emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
89
86
  activeKey: ComputedRef<string | undefined>;
90
87
  onTabClick: (key: string | number) => void;
91
88
  onTabDelete: (key: string | number) => void;
@@ -100,19 +97,19 @@ declare const ProReuseTabs: {
100
97
  default: () => never[];
101
98
  };
102
99
  }>> & {
103
- "onTab-click"?: ((...args: any[]) => any) | undefined;
104
- "onTab-delete"?: ((...args: any[]) => any) | undefined;
100
+ "onTab-click"?: ((key: string) => any) | undefined;
101
+ "onTab-delete"?: ((key: string) => any) | undefined;
105
102
  }, {
106
103
  prefixClsName: string;
107
104
  props: any;
108
- emit: {
109
- (event: "tab-click", key: string): void;
110
- (event: "tab-delete", key: string): void;
111
- };
105
+ emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
112
106
  activeKey: ComputedRef<string | undefined>;
113
107
  onTabClick: (key: string | number) => void;
114
108
  onTabDelete: (key: string | number) => void;
115
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("tab-click" | "tab-delete")[], "tab-click" | "tab-delete", {
109
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
110
+ 'tab-click': (key: string) => true;
111
+ 'tab-delete': (key: string) => true;
112
+ }, string, {
116
113
  tabs: IProTab[];
117
114
  }, {}, string> & VNodeProps & AllowedComponentProps & ComponentCustomProps & {
118
115
  install: (app: App) => void;
@@ -9,22 +9,22 @@ declare const _sfc_main: DefineComponent<{
9
9
  }, {
10
10
  prefixClsName: string;
11
11
  props: any;
12
- emit: {
13
- (event: 'tab-click', key: string): void;
14
- (event: 'tab-delete', key: string): void;
15
- };
12
+ emit: ((event: "tab-click", key: string) => void) & ((event: "tab-delete", key: string) => void);
16
13
  activeKey: ComputedRef<string | undefined>;
17
14
  onTabClick: (key: string | number) => void;
18
15
  onTabDelete: (key: string | number) => void;
19
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("tab-click" | "tab-delete")[], "tab-click" | "tab-delete", VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
16
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
17
+ 'tab-click': (key: string) => true;
18
+ 'tab-delete': (key: string) => true;
19
+ }, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<{
20
20
  tabs: {
21
21
  type: PropType<IProTab[]>;
22
22
  required: true;
23
23
  default: () => never[];
24
24
  };
25
25
  }>> & {
26
- "onTab-click"?: ((...args: any[]) => any) | undefined;
27
- "onTab-delete"?: ((...args: any[]) => any) | undefined;
26
+ "onTab-click"?: ((key: string) => any) | undefined;
27
+ "onTab-delete"?: ((key: string) => any) | undefined;
28
28
  }, {
29
29
  tabs: IProTab[];
30
30
  }>;
@@ -8,7 +8,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  default: () => []
9
9
  }
10
10
  },
11
- emits: ["tab-click", "tab-delete"],
11
+ emits: {
12
+ "tab-click": (key) => true,
13
+ "tab-delete": (key) => true
14
+ },
12
15
  setup(__props, { emit }) {
13
16
  const props = __props;
14
17
  const prefixClsName = "keyblade-pro-reuse-tabs";
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.5",
5
+ "version": "0.0.1-alpha.6",
6
6
  "private": false,
7
7
  "type": "module",
8
8
  "main": "es/index.js",