lew-ui 2.1.6 → 2.1.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.
Files changed (57) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +53 -53
  3. package/dist/components/avatar/src/LewAvatar.vue.d.ts +5 -5
  4. package/dist/components/backtop/src/LewBackTop.vue.d.ts +1 -1
  5. package/dist/components/badge/src/LewBadge.vue.d.ts +3 -3
  6. package/dist/components/button/src/LewButton.vue.d.ts +11 -11
  7. package/dist/components/button/src/props.d.ts +1 -1
  8. package/dist/components/cascader/src/LewCascader.vue.d.ts +6 -6
  9. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +4 -4
  10. package/dist/components/date-picker/src/LewDate.vue.d.ts +2 -2
  11. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +6 -6
  12. package/dist/components/date-picker/src/LewDateRangePicker.vue.d.ts +1 -1
  13. package/dist/components/date-picker/src/props.d.ts +2 -2
  14. package/dist/components/drawer/src/LewDrawer.vue.d.ts +1 -1
  15. package/dist/components/drawer/src/props.d.ts +1 -1
  16. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +1 -1
  17. package/dist/components/empty/src/LewEmpty.vue.d.ts +2 -2
  18. package/dist/components/flex/src/LewFlex.vue.d.ts +4 -4
  19. package/dist/components/form/src/LewForm.vue.d.ts +1 -1
  20. package/dist/components/input/src/LewInput.vue.d.ts +20 -20
  21. package/dist/components/input/src/props.d.ts +3 -2
  22. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +4 -4
  23. package/dist/components/magic-number/src/LewMagicNumber.vue.d.ts +1 -1
  24. package/dist/components/mark/src/LewMark.vue.d.ts +3 -3
  25. package/dist/components/menu/src/props.d.ts +2 -1
  26. package/dist/components/modal/src/LewModal.vue.d.ts +19 -19
  27. package/dist/components/pagination/src/LewPagination.vue.d.ts +8 -10
  28. package/dist/components/pagination/src/props.d.ts +3 -5
  29. package/dist/components/popok/src/LewPopok.vue.d.ts +17 -17
  30. package/dist/components/popover/src/LewPopover.vue.d.ts +8 -8
  31. package/dist/components/popover/src/props.d.ts +2 -2
  32. package/dist/components/radio/src/LewRadio.vue.d.ts +2 -2
  33. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +4 -4
  34. package/dist/components/result/src/LewResult.vue.d.ts +1 -1
  35. package/dist/components/select/src/LewSelect.vue.d.ts +10 -10
  36. package/dist/components/select/src/props.d.ts +1 -1
  37. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +10 -10
  38. package/dist/components/switch/src/LewSwitch.vue.d.ts +3 -3
  39. package/dist/components/table/src/LewTable.vue.d.ts +7 -7
  40. package/dist/components/tabs/src/LewTabs.vue.d.ts +4 -4
  41. package/dist/components/tag/src/LewTag.vue.d.ts +9 -9
  42. package/dist/components/tag/src/props.d.ts +3 -4
  43. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +3 -3
  44. package/dist/components/text-trim/src/props.d.ts +1 -1
  45. package/dist/components/textarea/src/LewTextarea.vue.d.ts +6 -6
  46. package/dist/components/title/src/LewTitle.vue.d.ts +6 -6
  47. package/dist/components/tree/src/LewTree.vue.d.ts +8 -25
  48. package/dist/components/tree/src/props.d.ts +2 -2
  49. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +22 -11
  50. package/dist/components/tree-select/src/props.d.ts +6 -1
  51. package/dist/directives/dialog/src/LewDialog.vue.d.ts +5 -5
  52. package/dist/directives/dialog/src/props.d.ts +3 -2
  53. package/dist/index.d.ts +2 -1
  54. package/dist/index.mjs +357 -370
  55. package/dist/index.umd.js +3 -3
  56. package/dist/style.css +1 -1
  57. package/package.json +101 -101
@@ -1,7 +1,7 @@
1
1
  import { SelectMultipleOptions } from './props';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- modelValue: globalThis.PropType<any[]>;
4
+ modelValue: globalThis.PropType<any>;
5
5
  options: {
6
6
  type: globalThis.PropType<SelectMultipleOptions[]>;
7
7
  default: never[];
@@ -43,8 +43,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
43
43
  description: string;
44
44
  };
45
45
  searchMethod: {
46
- type: globalThis.PropType<(e: import('./props').SelectSearchMultipleMethodParams) => void>;
47
- default: (params: import('./props').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
46
+ type: globalThis.PropType<(e: import('../../..').SelectSearchMultipleMethodParams) => void>;
47
+ default: (params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
48
48
  description: string;
49
49
  };
50
50
  searchDelay: {
@@ -92,7 +92,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
92
92
  clear: (...args: any[]) => void;
93
93
  delete: (...args: any[]) => void;
94
94
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
95
- modelValue: globalThis.PropType<any[]>;
95
+ modelValue: globalThis.PropType<any>;
96
96
  options: {
97
97
  type: globalThis.PropType<SelectMultipleOptions[]>;
98
98
  default: never[];
@@ -134,8 +134,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
134
134
  description: string;
135
135
  };
136
136
  searchMethod: {
137
- type: globalThis.PropType<(e: import('./props').SelectSearchMultipleMethodParams) => void>;
138
- default: (params: import('./props').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
137
+ type: globalThis.PropType<(e: import('../../..').SelectSearchMultipleMethodParams) => void>;
138
+ default: (params: import('../../..').SelectSearchMultipleMethodParams) => SelectMultipleOptions[];
139
139
  description: string;
140
140
  };
141
141
  searchDelay: {
@@ -182,18 +182,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
182
182
  }, {
183
183
  size: string;
184
184
  options: SelectMultipleOptions[];
185
- disabled: boolean;
186
185
  trigger: string;
187
186
  placeholder: string;
188
187
  clearable: boolean;
189
188
  readonly: boolean;
189
+ disabled: boolean;
190
+ searchable: boolean;
191
+ searchDelay: number;
190
192
  align: string;
191
193
  showCheckIcon: boolean;
192
194
  defaultValue: string[] | number[];
193
195
  itemHeight: number;
194
- searchable: boolean;
195
- searchMethod: (e: import('./props').SelectSearchMultipleMethodParams) => void;
196
- searchDelay: number;
196
+ searchMethod: (e: import('../../..').SelectSearchMultipleMethodParams) => void;
197
197
  valueLayout: string;
198
198
  searchPlaceholder: string;
199
199
  }, {}>, {
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- modelValue: globalThis.PropType<boolean | undefined>;
2
+ modelValue: globalThis.PropType<any>;
3
3
  round: {
4
4
  type: BooleanConstructor;
5
5
  default: boolean;
@@ -24,7 +24,7 @@ declare const _default: import('vue').DefineComponent<{
24
24
  click: (...args: any[]) => void;
25
25
  change: (...args: any[]) => void;
26
26
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
27
- modelValue: globalThis.PropType<boolean | undefined>;
27
+ modelValue: globalThis.PropType<any>;
28
28
  round: {
29
29
  type: BooleanConstructor;
30
30
  default: boolean;
@@ -50,8 +50,8 @@ declare const _default: import('vue').DefineComponent<{
50
50
  onClick?: ((...args: any[]) => any) | undefined;
51
51
  }, {
52
52
  round: boolean;
53
+ disabled: boolean;
53
54
  loading: boolean;
54
55
  request: Function;
55
- disabled: boolean;
56
56
  }, {}>;
57
57
  export default _default;
@@ -10,7 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
10
10
  description: string;
11
11
  };
12
12
  columns: {
13
- type: globalThis.PropType<import('./props').TableColumns[]>;
13
+ type: globalThis.PropType<import('../../..').TableColumns[]>;
14
14
  default: never[];
15
15
  description: string;
16
16
  };
@@ -44,7 +44,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
44
44
  description: string;
45
45
  };
46
46
  columns: {
47
- type: globalThis.PropType<import('./props').TableColumns[]>;
47
+ type: globalThis.PropType<import('../../..').TableColumns[]>;
48
48
  default: never[];
49
49
  description: string;
50
50
  };
@@ -64,21 +64,21 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
64
64
  description: string;
65
65
  };
66
66
  }>>, {
67
+ dataSource: any;
67
68
  maxHeight: string | number;
68
69
  rowKey: string;
69
- dataSource: any;
70
- columns: import('./props').TableColumns[];
70
+ columns: import('../../..').TableColumns[];
71
71
  checkable: boolean;
72
72
  singleSelect: boolean;
73
73
  }, {}>, Partial<Record<string, (_: {
74
74
  row: any;
75
- column: import('./props').TableColumns;
75
+ column: import('../../..').TableColumns;
76
76
  }) => any>> & Partial<Record<string, (_: {
77
77
  row: any;
78
- column: import('./props').TableColumns;
78
+ column: import('../../..').TableColumns;
79
79
  }) => any>> & Partial<Record<string, (_: {
80
80
  row: any;
81
- column: import('./props').TableColumns;
81
+ column: import('../../..').TableColumns;
82
82
  }) => any>>>;
83
83
  export default _default;
84
84
  type __VLS_WithTemplateSlots<T, S> = T & {
@@ -3,7 +3,7 @@ import { TabsOptions } from './props';
3
3
  declare const _default: import('vue').DefineComponent<{
4
4
  modelValue: {
5
5
  required: true;
6
- type: globalThis.PropType<string | number | undefined>;
6
+ type: globalThis.PropType<any>;
7
7
  };
8
8
  options: {
9
9
  type: globalThis.PropType<TabsOptions[]>;
@@ -40,7 +40,7 @@ declare const _default: import('vue').DefineComponent<{
40
40
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
41
41
  modelValue: {
42
42
  required: true;
43
- type: globalThis.PropType<string | number | undefined>;
43
+ type: globalThis.PropType<any>;
44
44
  };
45
45
  options: {
46
46
  type: globalThis.PropType<TabsOptions[]>;
@@ -75,10 +75,10 @@ declare const _default: import('vue').DefineComponent<{
75
75
  }>> & {
76
76
  onChange?: ((...args: any[]) => any) | undefined;
77
77
  }, {
78
+ width: string | number;
78
79
  type: import('./props').TabsType;
79
- size: import('./props').TabsSize;
80
80
  round: boolean;
81
- width: string | number;
81
+ size: import('./props').TabsSize;
82
82
  options: TabsOptions[];
83
83
  itemWidth: string | number;
84
84
  }, {}>;
@@ -1,16 +1,16 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
2
  type: {
3
- type: globalThis.PropType<"fill" | "light" | "ghost">;
3
+ type: globalThis.PropType<import('../../..').TagType>;
4
4
  default: string;
5
5
  description: string;
6
6
  };
7
7
  color: {
8
- type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
8
+ type: globalThis.PropType<import('../../..').TagColor>;
9
9
  default: string;
10
10
  description: string;
11
11
  };
12
12
  size: {
13
- type: globalThis.PropType<"small" | "medium" | "large">;
13
+ type: globalThis.PropType<import('../../..').TagSize>;
14
14
  default: string;
15
15
  description: string;
16
16
  };
@@ -33,17 +33,17 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
33
33
  close: (...args: any[]) => void;
34
34
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
35
35
  type: {
36
- type: globalThis.PropType<"fill" | "light" | "ghost">;
36
+ type: globalThis.PropType<import('../../..').TagType>;
37
37
  default: string;
38
38
  description: string;
39
39
  };
40
40
  color: {
41
- type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
41
+ type: globalThis.PropType<import('../../..').TagColor>;
42
42
  default: string;
43
43
  description: string;
44
44
  };
45
45
  size: {
46
- type: globalThis.PropType<"small" | "medium" | "large">;
46
+ type: globalThis.PropType<import('../../..').TagSize>;
47
47
  default: string;
48
48
  description: string;
49
49
  };
@@ -65,10 +65,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
65
65
  }>> & {
66
66
  onClose?: ((...args: any[]) => any) | undefined;
67
67
  }, {
68
- type: "fill" | "light" | "ghost";
69
- size: "small" | "medium" | "large";
68
+ type: import('../../..').TagType;
69
+ color: import('../../..').TagColor;
70
70
  round: boolean;
71
- color: "red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown";
71
+ size: import('../../..').TagSize;
72
72
  disabled: boolean;
73
73
  closable: boolean;
74
74
  }, {}>, {
@@ -1,8 +1,8 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
2
 
3
- type TagSize = 'small' | 'medium' | 'large';
4
- type TagType = 'fill' | 'light' | 'ghost';
5
- type TagColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown';
3
+ export type TagSize = 'small' | 'medium' | 'large';
4
+ export type TagType = 'fill' | 'light' | 'ghost';
5
+ export type TagColor = 'red' | 'orange' | 'yellow' | 'green' | 'mint' | 'teal' | 'cyan' | 'blue' | 'indigo' | 'purple' | 'pink' | 'gray' | 'brown' | 'success' | 'normal' | 'warning' | 'error' | 'info';
6
6
  export declare const tagProps: {
7
7
  type: {
8
8
  type: PropType<TagType>;
@@ -36,4 +36,3 @@ export declare const tagProps: {
36
36
  };
37
37
  };
38
38
  export type TagProps = ExtractPropTypes<typeof tagProps>;
39
- export {};
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  text: {
3
- type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
3
+ type: (StringConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor)[];
4
4
  default: string;
5
5
  description: string;
6
6
  };
@@ -36,7 +36,7 @@ declare const _default: import('vue').DefineComponent<{
36
36
  };
37
37
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
38
38
  text: {
39
- type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
39
+ type: (StringConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor)[];
40
40
  default: string;
41
41
  description: string;
42
42
  };
@@ -71,8 +71,8 @@ declare const _default: import('vue').DefineComponent<{
71
71
  description: string;
72
72
  };
73
73
  }>>, {
74
- text: string | number | boolean | unknown[];
75
74
  x: string;
75
+ text: string | number | boolean | unknown[];
76
76
  placement: string;
77
77
  offset: unknown[];
78
78
  allowHtml: boolean;
@@ -2,7 +2,7 @@ import { ExtractPropTypes } from 'vue';
2
2
 
3
3
  export declare const textTrimProps: {
4
4
  text: {
5
- type: (ArrayConstructor | BooleanConstructor | StringConstructor | NumberConstructor)[];
5
+ type: (StringConstructor | ArrayConstructor | BooleanConstructor | NumberConstructor)[];
6
6
  default: string;
7
7
  description: string;
8
8
  };
@@ -1,5 +1,5 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
- modelValue: globalThis.PropType<string | undefined>;
2
+ modelValue: globalThis.PropType<any>;
3
3
  size: {
4
4
  type: StringConstructor;
5
5
  default: string;
@@ -68,11 +68,11 @@ declare const _default: import('vue').DefineComponent<{
68
68
  change: (...args: any[]) => void;
69
69
  blur: (...args: any[]) => void;
70
70
  clear: (...args: any[]) => void;
71
- ok: (...args: any[]) => void;
72
71
  focus: (...args: any[]) => void;
72
+ ok: (...args: any[]) => void;
73
73
  "update:type": (...args: any[]) => void;
74
74
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
75
- modelValue: globalThis.PropType<string | undefined>;
75
+ modelValue: globalThis.PropType<any>;
76
76
  size: {
77
77
  type: StringConstructor;
78
78
  default: string;
@@ -143,13 +143,13 @@ declare const _default: import('vue').DefineComponent<{
143
143
  onTextarea?: ((...args: any[]) => any) | undefined;
144
144
  "onUpdate:type"?: ((...args: any[]) => any) | undefined;
145
145
  }, {
146
- size: string;
147
146
  width: string | number;
148
- height: string | number;
149
- disabled: boolean;
147
+ size: string;
150
148
  placeholder: string;
151
149
  clearable: boolean;
152
150
  readonly: boolean;
151
+ disabled: boolean;
152
+ height: string | number;
153
153
  focusSelect: boolean;
154
154
  maxLength: string | number;
155
155
  showCount: boolean;
@@ -1,6 +1,6 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
2
  bold: {
3
- type: globalThis.PropType<100 | 500 | 400 | 200 | 300 | 600 | 700 | 800 | 900>;
3
+ type: globalThis.PropType<400 | 100 | 500 | 200 | 300 | 600 | 700 | 800 | 900>;
4
4
  default: number;
5
5
  description: string;
6
6
  };
@@ -10,13 +10,13 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
10
10
  description: string;
11
11
  };
12
12
  color: {
13
- type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
13
+ type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
14
14
  default: string;
15
15
  description: string;
16
16
  };
17
17
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
18
  bold: {
19
- type: globalThis.PropType<100 | 500 | 400 | 200 | 300 | 600 | 700 | 800 | 900>;
19
+ type: globalThis.PropType<400 | 100 | 500 | 200 | 300 | 600 | 700 | 800 | 900>;
20
20
  default: number;
21
21
  description: string;
22
22
  };
@@ -26,14 +26,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
26
26
  description: string;
27
27
  };
28
28
  color: {
29
- type: globalThis.PropType<"red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown">;
29
+ type: globalThis.PropType<"gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown">;
30
30
  default: string;
31
31
  description: string;
32
32
  };
33
33
  }>>, {
34
- bold: 100 | 500 | 400 | 200 | 300 | 600 | 700 | 800 | 900;
34
+ bold: 400 | 100 | 500 | 200 | 300 | 600 | 700 | 800 | 900;
35
+ color: "gray" | "orange" | "green" | "red" | "blue" | "yellow" | "mint" | "teal" | "cyan" | "indigo" | "purple" | "pink" | "brown";
35
36
  size: string | number;
36
- color: "red" | "orange" | "yellow" | "green" | "mint" | "teal" | "cyan" | "blue" | "indigo" | "purple" | "pink" | "gray" | "brown";
37
37
  }, {}>, {
38
38
  default?(_: {}): any;
39
39
  }>;
@@ -1,8 +1,8 @@
1
1
  import { TreeDataSource } from './props';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- modelValue: globalThis.PropType<string | (string | number)[] | undefined>;
5
- expandedKeys: globalThis.PropType<(string | number)[] | undefined>;
4
+ modelValue: globalThis.PropType<any>;
5
+ expandedKeys: globalThis.PropType<any>;
6
6
  dataSource: {
7
7
  type: globalThis.PropType<TreeDataSource[]>;
8
8
  default: never[];
@@ -34,7 +34,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
34
34
  description: string;
35
35
  };
36
36
  trigger: {
37
- type: globalThis.PropType<import('./props').TreeTriggerType>;
37
+ type: globalThis.PropType<import('../../..').TreeTriggerType>;
38
38
  default: string;
39
39
  description: string;
40
40
  };
@@ -75,8 +75,8 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
75
75
  change: (...args: any[]) => void;
76
76
  initSuccess: (...args: any[]) => void;
77
77
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
78
- modelValue: globalThis.PropType<string | (string | number)[] | undefined>;
79
- expandedKeys: globalThis.PropType<(string | number)[] | undefined>;
78
+ modelValue: globalThis.PropType<any>;
79
+ expandedKeys: globalThis.PropType<any>;
80
80
  dataSource: {
81
81
  type: globalThis.PropType<TreeDataSource[]>;
82
82
  default: never[];
@@ -108,7 +108,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
108
108
  description: string;
109
109
  };
110
110
  trigger: {
111
- type: globalThis.PropType<import('./props').TreeTriggerType>;
111
+ type: globalThis.PropType<import('../../..').TreeTriggerType>;
112
112
  default: string;
113
113
  description: string;
114
114
  };
@@ -148,7 +148,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
148
148
  }, {
149
149
  multiple: boolean;
150
150
  free: boolean;
151
- trigger: import('./props').TreeTriggerType;
151
+ trigger: import('../../..').TreeTriggerType;
152
152
  placeholder: string;
153
153
  onload: (item: TreeDataSource) => void;
154
154
  dataSource: TreeDataSource[];
@@ -161,24 +161,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
161
161
  disabledField: string;
162
162
  }, {}>, {
163
163
  item?(_: {
164
- props: {
165
- checked: boolean;
166
- label: string;
167
- key: string;
168
- level: number;
169
- isLeaf?: boolean | undefined;
170
- loading?: boolean | undefined;
171
- disabled?: boolean | undefined;
172
- parentKey?: string | number | undefined;
173
- treeIndex?: number | undefined;
174
- labelPaths?: string[] | undefined;
175
- valueKeys?: string[] | undefined;
176
- parentKeyPaths?: string[] | undefined;
177
- parentLabelPaths?: string[] | undefined;
178
- allNodeValues: string[];
179
- leafNodeValues: string[];
180
- children?: TreeDataSource[] | undefined;
181
- };
164
+ props: any;
182
165
  }): any;
183
166
  }>;
184
167
  export default _default;
@@ -20,12 +20,12 @@ export type TreeDataSource = {
20
20
  export type TreeTriggerType = 'click' | 'hover';
21
21
  export declare const treeModel: {
22
22
  modelValue: {
23
- type: (ArrayConstructor | StringConstructor)[];
23
+ type: (StringConstructor | ArrayConstructor)[];
24
24
  default: never[];
25
25
  description: string;
26
26
  };
27
27
  expandedKeys: {
28
- type: (ArrayConstructor | StringConstructor)[];
28
+ type: (StringConstructor | ArrayConstructor)[];
29
29
  default: never[];
30
30
  description: string;
31
31
  };
@@ -1,7 +1,7 @@
1
1
  import { TreeDataSource } from '../../tree';
2
2
 
3
3
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
4
- modelValue: globalThis.PropType<string | number | undefined>;
4
+ modelValue: globalThis.PropType<any>;
5
5
  dataSource: {
6
6
  type: globalThis.PropType<TreeDataSource[]>;
7
7
  default: never[];
@@ -22,6 +22,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
22
22
  default: string;
23
23
  description: string;
24
24
  };
25
+ showAllLevels: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ description: string;
29
+ };
25
30
  searchable: {
26
31
  type: BooleanConstructor;
27
32
  default: boolean;
@@ -83,7 +88,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
83
88
  description: string;
84
89
  };
85
90
  initTree: {
86
- type: globalThis.PropType<(keyword: string) => void> | undefined;
91
+ type: globalThis.PropType<() => void> | undefined;
87
92
  default: undefined;
88
93
  description: string;
89
94
  };
@@ -115,7 +120,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
115
120
  blur: (...args: any[]) => void;
116
121
  clear: (...args: any[]) => void;
117
122
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
118
- modelValue: globalThis.PropType<string | number | undefined>;
123
+ modelValue: globalThis.PropType<any>;
119
124
  dataSource: {
120
125
  type: globalThis.PropType<TreeDataSource[]>;
121
126
  default: never[];
@@ -136,6 +141,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
136
141
  default: string;
137
142
  description: string;
138
143
  };
144
+ showAllLevels: {
145
+ type: BooleanConstructor;
146
+ default: boolean;
147
+ description: string;
148
+ };
139
149
  searchable: {
140
150
  type: BooleanConstructor;
141
151
  default: boolean;
@@ -197,7 +207,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
197
207
  description: string;
198
208
  };
199
209
  initTree: {
200
- type: globalThis.PropType<(keyword: string) => void> | undefined;
210
+ type: globalThis.PropType<() => void> | undefined;
201
211
  default: undefined;
202
212
  description: string;
203
213
  };
@@ -227,26 +237,27 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
227
237
  onClear?: ((...args: any[]) => any) | undefined;
228
238
  }, {
229
239
  size: string;
230
- disabled: boolean;
240
+ showAllLevels: boolean;
231
241
  free: boolean;
232
242
  trigger: string;
233
243
  placeholder: string;
234
244
  onload: () => void;
235
245
  clearable: boolean;
236
246
  readonly: boolean;
237
- align: string;
238
- showCheckIcon: boolean;
239
- defaultValue: string;
240
- searchable: boolean;
241
- searchDelay: number;
247
+ disabled: boolean;
242
248
  dataSource: TreeDataSource[];
243
249
  keyField: string;
244
250
  labelField: string;
245
- initTree: (keyword: string) => void;
251
+ initTree: () => void;
246
252
  showCheckbox: boolean;
247
253
  expandAll: boolean;
248
254
  showLine: boolean;
249
255
  disabledField: string;
256
+ searchable: boolean;
257
+ searchDelay: number;
258
+ align: string;
259
+ showCheckIcon: boolean;
260
+ defaultValue: string;
250
261
  }, {}>, {
251
262
  header?(_: {}): any;
252
263
  empty?(_: {}): any;
@@ -48,6 +48,11 @@ export declare const treeSelectProps: {
48
48
  default: string;
49
49
  description: string;
50
50
  };
51
+ showAllLevels: {
52
+ type: BooleanConstructor;
53
+ default: boolean;
54
+ description: string;
55
+ };
51
56
  searchable: {
52
57
  type: BooleanConstructor;
53
58
  default: boolean;
@@ -109,7 +114,7 @@ export declare const treeSelectProps: {
109
114
  description: string;
110
115
  };
111
116
  initTree: {
112
- type: PropType<(keyword: string) => void> | undefined;
117
+ type: PropType<() => void> | undefined;
113
118
  default: undefined;
114
119
  description: string;
115
120
  };
@@ -1,6 +1,6 @@
1
1
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
2
2
  type: {
3
- type: StringConstructor;
3
+ type: globalThis.PropType<import('../../..').ButtonColor>;
4
4
  default: string;
5
5
  description: string;
6
6
  };
@@ -45,11 +45,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
45
45
  description: string;
46
46
  };
47
47
  }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
48
- close: (...args: any[]) => void;
49
48
  show: (...args: any[]) => void;
49
+ close: (...args: any[]) => void;
50
50
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
51
51
  type: {
52
- type: StringConstructor;
52
+ type: globalThis.PropType<import('../../..').ButtonColor>;
53
53
  default: string;
54
54
  description: string;
55
55
  };
@@ -94,10 +94,10 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
94
94
  description: string;
95
95
  };
96
96
  }>> & {
97
- onClose?: ((...args: any[]) => any) | undefined;
98
97
  onShow?: ((...args: any[]) => any) | undefined;
98
+ onClose?: ((...args: any[]) => any) | undefined;
99
99
  }, {
100
- type: string;
100
+ type: import('../../..').ButtonColor;
101
101
  ok: Function;
102
102
  cancel: Function;
103
103
  closeByEsc: boolean;
@@ -1,8 +1,9 @@
1
- import { ExtractPropTypes } from 'vue';
1
+ import { ButtonColor } from '../../..';
2
+ import { ExtractPropTypes, PropType } from 'vue';
2
3
 
3
4
  export declare const dialogProps: {
4
5
  type: {
5
- type: StringConstructor;
6
+ type: PropType<ButtonColor>;
6
7
  default: string;
7
8
  description: string;
8
9
  };
package/dist/index.d.ts CHANGED
@@ -1,8 +1,9 @@
1
+ import { App } from 'vue';
1
2
 
2
3
  export * from './components';
3
4
  export * from './directives';
4
5
  export * from './utils';
5
6
  declare const _default: {
6
- install: any;
7
+ install: (Vue: App<any>) => void;
7
8
  };
8
9
  export default _default;