@hb-hellotech/hb-ui 2.3.1 → 2.3.2

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,6 +1,24 @@
1
- import { Key, TreeOptions } from './tree';
2
- import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
- declare const _default: DefineComponent<ExtractPropTypes<{
1
+ import { ExtractPropTypes, PropType } from 'vue';
2
+ export type Key = string | number;
3
+ export interface TreeOptions {
4
+ label?: Key;
5
+ key?: Key;
6
+ children?: TreeOptions[];
7
+ [key: string]: unknown;
8
+ }
9
+ export interface TreeNodes extends Required<TreeOptions> {
10
+ expanded?: boolean;
11
+ checked?: boolean;
12
+ indeterminate?: boolean;
13
+ disabled?: boolean;
14
+ loading?: boolean;
15
+ selected?: boolean;
16
+ leaf?: boolean;
17
+ parentKey?: Key | null;
18
+ level?: number;
19
+ originData?: TreeOptions;
20
+ }
21
+ export declare const btreeProps: {
4
22
  readonly data: {
5
23
  readonly type: PropType<TreeOptions[]>;
6
24
  readonly required: true;
@@ -36,51 +54,6 @@ declare const _default: DefineComponent<ExtractPropTypes<{
36
54
  readonly clickToSelect: {
37
55
  readonly type: BooleanConstructor;
38
56
  };
39
- }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<{
40
- readonly data: {
41
- readonly type: PropType<TreeOptions[]>;
42
- readonly required: true;
43
- };
44
- readonly modelValue: {
45
- readonly type: ArrayConstructor;
46
- readonly default: () => never[];
47
- };
48
- readonly labelKey: {
49
- readonly type: StringConstructor;
50
- readonly default: "label";
51
- };
52
- readonly keyKey: {
53
- readonly type: StringConstructor;
54
- readonly default: "key";
55
- };
56
- readonly childrenKey: {
57
- readonly type: StringConstructor;
58
- readonly default: "children";
59
- };
60
- readonly defaultExpandKeys: {
61
- readonly type: PropType<Key[]>;
62
- readonly default: () => never[];
63
- };
64
- readonly multiple: {
65
- readonly type: BooleanConstructor;
66
- readonly default: false;
67
- };
68
- readonly remote: {
69
- readonly type: BooleanConstructor;
70
- readonly default: false;
71
- };
72
- readonly clickToSelect: {
73
- readonly type: BooleanConstructor;
74
- };
75
- }>> & Readonly<{}>, {
76
- readonly multiple: boolean;
77
- readonly modelValue: unknown[];
78
- readonly labelKey: string;
79
- readonly keyKey: string;
80
- readonly childrenKey: string;
81
- readonly defaultExpandKeys: Key[];
82
- readonly remote: boolean;
83
- readonly clickToSelect: boolean;
84
- }, {}, {}, {}, string, ComponentProvideOptions, true, {}, HTMLDivElement>;
85
- export default _default;
86
- //# sourceMappingURL=tree.vue.d.ts.map
57
+ };
58
+ export type TreeProps = Partial<ExtractPropTypes<typeof btreeProps>>;
59
+ //# sourceMappingURL=tree.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hb-hellotech/hb-ui",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "type": "module",
5
5
  "main": "dist/hb_component_lib.umd.cjs",
6
6
  "module": "dist/hb_component_lib.js",