lew-ui 2.7.1 → 2.7.4

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 (156) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +1 -3
  3. package/dist/components/action-box/src/LewActionBox.vue.d.ts +2 -2
  4. package/dist/components/action-box/src/props.d.ts +1 -2
  5. package/dist/components/alert/src/LewAlert.vue.d.ts +11 -5
  6. package/dist/components/alert/src/props.d.ts +1 -2
  7. package/dist/components/avatar/src/LewAvatar.vue.d.ts +1 -1
  8. package/dist/components/avatar/src/props.d.ts +1 -2
  9. package/dist/components/back-top/src/LewBackTop.vue.d.ts +9 -3
  10. package/dist/components/back-top/src/props.d.ts +0 -1
  11. package/dist/components/badge/src/LewBadge.vue.d.ts +10 -4
  12. package/dist/components/badge/src/props.d.ts +0 -1
  13. package/dist/components/breadcrumb/src/LewBreadcrumb.vue.d.ts +1 -1
  14. package/dist/components/breadcrumb/src/props.d.ts +0 -1
  15. package/dist/components/button/src/LewButton.vue.d.ts +17 -6
  16. package/dist/components/button/src/props.d.ts +1 -2
  17. package/dist/components/cascader/src/LewCascader.vue.d.ts +440 -12
  18. package/dist/components/cascader/src/props.d.ts +13 -4
  19. package/dist/components/checkbox/src/LewCheckbox.vue.d.ts +11 -5
  20. package/dist/components/checkbox/src/LewCheckboxGroup.vue.d.ts +13 -12
  21. package/dist/components/checkbox/src/props.d.ts +3 -4
  22. package/dist/components/collapse/src/LewCollapse.vue.d.ts +21 -7
  23. package/dist/components/collapse/src/LewCollapseItem.vue.d.ts +28 -14
  24. package/dist/components/collapse/src/props.d.ts +0 -1
  25. package/dist/components/color-picker/src/LewColorPicker.vue.d.ts +13 -5
  26. package/dist/components/color-picker/src/props.d.ts +0 -1
  27. package/dist/components/date-picker/src/LewDate.vue.d.ts +11 -4
  28. package/dist/components/date-picker/src/LewDatePicker.vue.d.ts +254 -7
  29. package/dist/components/date-picker/src/date.d.ts +3 -3
  30. package/dist/components/date-picker/src/props.d.ts +3 -4
  31. package/dist/components/date-range-picker/src/LewDateRange.vue.d.ts +19 -8
  32. package/dist/components/date-range-picker/src/LewDateRangePicker.vue.d.ts +296 -8
  33. package/dist/components/date-range-picker/src/props.d.ts +1 -2
  34. package/dist/components/desc/src/LewDesc.vue.d.ts +48 -3
  35. package/dist/components/desc/src/LewDescItem.vue.d.ts +5 -4
  36. package/dist/components/desc/src/props.d.ts +3 -4
  37. package/dist/components/drawer/src/LewDrawer.vue.d.ts +25 -9
  38. package/dist/components/drawer/src/props.d.ts +0 -1
  39. package/dist/components/dropdown/src/LewDropdown.vue.d.ts +407 -7
  40. package/dist/components/dropdown/src/props.d.ts +1 -2
  41. package/dist/components/empty/src/LewEmpty.vue.d.ts +8 -8
  42. package/dist/components/empty/src/props.d.ts +0 -1
  43. package/dist/components/expand/src/LewExpand.vue.d.ts +13 -3
  44. package/dist/components/expand/src/props.d.ts +0 -1
  45. package/dist/components/flex/src/LewFlex.vue.d.ts +10 -4
  46. package/dist/components/flex/src/props.d.ts +0 -1
  47. package/dist/components/form/src/LewForm.vue.d.ts +60 -11
  48. package/dist/components/form/src/LewFormItem.vue.d.ts +20 -9
  49. package/dist/components/form/src/LewGetLabelWidth.vue.d.ts +5 -3
  50. package/dist/components/form/src/RequiredIcon.vue.d.ts +1 -1
  51. package/dist/components/form/src/props.d.ts +2 -3
  52. package/dist/components/image/src/LewImage.vue.d.ts +10 -4
  53. package/dist/components/image/src/props.d.ts +0 -1
  54. package/dist/components/index.d.ts +35 -35
  55. package/dist/components/input/src/LewInput.vue.d.ts +33 -16
  56. package/dist/components/input/src/props.d.ts +1 -2
  57. package/dist/components/input-number/src/LewInputNumber.vue.d.ts +18 -12
  58. package/dist/components/input-number/src/props.d.ts +1 -2
  59. package/dist/components/input-table/src/FormModal.vue.d.ts +220 -5
  60. package/dist/components/input-table/src/LewInputTable.vue.d.ts +563 -12
  61. package/dist/components/input-table/src/props.d.ts +3 -4
  62. package/dist/components/input-tag/src/LewInputTag.vue.d.ts +359 -5
  63. package/dist/components/input-tag/src/props.d.ts +0 -1
  64. package/dist/components/input-tree/src/LewInputTree.vue.d.ts +38 -0
  65. package/dist/components/mark/src/LewMark.vue.d.ts +19 -13
  66. package/dist/components/mark/src/props.d.ts +0 -1
  67. package/dist/components/menu/src/LewMenu.vue.d.ts +9 -4
  68. package/dist/components/menu/src/props.d.ts +3 -4
  69. package/dist/components/menu-tree/src/LewMenuTree.vue.d.ts +26 -9
  70. package/dist/components/menu-tree/src/LewMenuTreeItem.vue.d.ts +28 -22
  71. package/dist/components/menu-tree/src/props.d.ts +3 -4
  72. package/dist/components/modal/src/LewModal.vue.d.ts +27 -11
  73. package/dist/components/modal/src/props.d.ts +0 -1
  74. package/dist/components/pagination/src/LewPagination.vue.d.ts +30 -10
  75. package/dist/components/pagination/src/props.d.ts +1 -2
  76. package/dist/components/popok/src/LewPopok.vue.d.ts +853 -6
  77. package/dist/components/popok/src/props.d.ts +0 -1
  78. package/dist/components/popover/src/LewPopover.vue.d.ts +29 -14
  79. package/dist/components/popover/src/props.d.ts +0 -1
  80. package/dist/components/radio/src/LewRadio.vue.d.ts +3 -3
  81. package/dist/components/radio/src/LewRadioGroup.vue.d.ts +11 -6
  82. package/dist/components/radio/src/props.d.ts +1 -2
  83. package/dist/components/rate/src/LewRate.vue.d.ts +12 -4
  84. package/dist/components/rate/src/props.d.ts +1 -2
  85. package/dist/components/select/src/LewSelect.vue.d.ts +1038 -17
  86. package/dist/components/select/src/props.d.ts +21 -6
  87. package/dist/components/select/src/util.d.ts +3 -4
  88. package/dist/components/select-multiple/src/LewSelectMultiple.vue.d.ts +1428 -19
  89. package/dist/components/select-multiple/src/props.d.ts +22 -8
  90. package/dist/components/slider/src/LewSlider.vue.d.ts +15 -6
  91. package/dist/components/slider/src/props.d.ts +3 -4
  92. package/dist/components/slider-range/src/LewSliderRange.vue.d.ts +20 -6
  93. package/dist/components/slider-range/src/props.d.ts +3 -4
  94. package/dist/components/steps/src/LewSteps.vue.d.ts +14 -6
  95. package/dist/components/steps/src/props.d.ts +2 -3
  96. package/dist/components/switch/src/LewSwitch.vue.d.ts +9 -3
  97. package/dist/components/switch/src/props.d.ts +1 -2
  98. package/dist/components/table/src/LewTable.vue.d.ts +53 -25
  99. package/dist/components/table/src/props.d.ts +1 -2
  100. package/dist/components/tabs/src/LewTabs.vue.d.ts +15 -12
  101. package/dist/components/tabs/src/props.d.ts +2 -3
  102. package/dist/components/tag/src/LewTag.vue.d.ts +11 -5
  103. package/dist/components/tag/src/props.d.ts +1 -2
  104. package/dist/components/text-trim/src/LewTextTrim.vue.d.ts +18 -5
  105. package/dist/components/text-trim/src/props.d.ts +0 -1
  106. package/dist/components/text-trim/src/text-trim.d.ts +3 -3
  107. package/dist/components/textarea/src/LewTextarea.vue.d.ts +19 -9
  108. package/dist/components/textarea/src/props.d.ts +1 -2
  109. package/dist/components/title/src/LewTitle.vue.d.ts +9 -3
  110. package/dist/components/title/src/props.d.ts +0 -1
  111. package/dist/components/tree/src/LewTree.vue.d.ts +36 -17
  112. package/dist/components/tree/src/LewTreeItem.vue.d.ts +21 -15
  113. package/dist/components/tree/src/props.d.ts +3 -4
  114. package/dist/components/tree/src/transformTree.d.ts +7 -18
  115. package/dist/components/tree-select/src/LewTreeSelect.vue.d.ts +1055 -26
  116. package/dist/components/tree-select/src/props.d.ts +18 -8
  117. package/dist/components/upload/src/LewUpload.vue.d.ts +169 -8
  118. package/dist/components/upload/src/LewUploadByCard.vue.d.ts +9 -4
  119. package/dist/components/upload/src/LewUploadByList.vue.d.ts +9 -4
  120. package/dist/components/upload/src/props.d.ts +4 -5
  121. package/dist/constants/index.d.ts +0 -1
  122. package/dist/directives/backtop/src/index.d.ts +0 -1
  123. package/dist/directives/context-menu/index.d.ts +1 -1
  124. package/dist/directives/context-menu/src/LewContextMenu.vue.d.ts +2 -3
  125. package/dist/directives/context-menu/src/index.d.ts +28 -29
  126. package/dist/directives/hover-menu/src/index.d.ts +15 -2
  127. package/dist/directives/index.d.ts +2 -2
  128. package/dist/directives/loading/src/index.d.ts +0 -1
  129. package/dist/directives/tooltip/src/index.d.ts +0 -1
  130. package/dist/index.css +1 -0
  131. package/dist/index.d.ts +3 -3
  132. package/dist/{index.mjs → index.js} +23901 -23191
  133. package/dist/index.umd.cjs +40 -0
  134. package/dist/locals/de.d.ts +3 -0
  135. package/dist/locals/en.d.ts +3 -0
  136. package/dist/locals/es.d.ts +3 -0
  137. package/dist/locals/fr.d.ts +3 -0
  138. package/dist/locals/index.d.ts +9 -10
  139. package/dist/locals/it.d.ts +3 -0
  140. package/dist/locals/ja.d.ts +3 -0
  141. package/dist/locals/ko.d.ts +3 -0
  142. package/dist/locals/pt.d.ts +3 -0
  143. package/dist/locals/zh.d.ts +3 -0
  144. package/dist/methods/dialog/src/LewDialog.vue.d.ts +464 -6
  145. package/dist/methods/dialog/src/index.d.ts +4 -4
  146. package/dist/methods/dialog/src/props.d.ts +0 -1
  147. package/dist/methods/index.d.ts +1 -1
  148. package/dist/methods/message/src/index.d.ts +0 -1
  149. package/dist/methods/notification/src/components/NotificationContainer.vue.d.ts +5 -3
  150. package/dist/methods/notification/src/components/NotificationItem.vue.d.ts +6 -21
  151. package/dist/methods/notification/src/index.d.ts +9 -9
  152. package/dist/utils/index.d.ts +27 -115
  153. package/package.json +47 -69
  154. package/README.zh-CN.md +0 -48
  155. package/dist/index.umd.js +0 -46
  156. package/dist/style.css +0 -1
@@ -1,22 +1,21 @@
1
- import { PropType } from 'vue';
2
1
  import { LewSize } from '../../..';
3
-
4
- export type SelectMultipleOptions = {
2
+ import { PropType } from 'vue';
3
+ export interface SelectMultipleOptions {
5
4
  label: string;
6
5
  value: string | number;
7
6
  disabled?: boolean;
8
7
  isGroup?: boolean;
9
8
  groupValue?: string | number;
10
9
  groupLabel?: string;
11
- };
12
- export type SelectMultipleOptionsGroup = {
10
+ }
11
+ export interface SelectMultipleOptionsGroup {
13
12
  label: string;
14
13
  children: SelectMultipleOptions[];
15
- };
16
- export type SelectSearchMultipleMethodParams = {
14
+ }
15
+ export interface SelectSearchMultipleMethodParams {
17
16
  options?: SelectMultipleOptions[];
18
17
  keyword?: string;
19
- };
18
+ }
20
19
  export declare const selectMultipleModel: {
21
20
  modelValue: {
22
21
  type: PropType<(string | number)[]>;
@@ -81,6 +80,17 @@ export declare const selectMultipleProps: {
81
80
  default: undefined;
82
81
  description: string;
83
82
  };
83
+ initOptionsMethod: {
84
+ type: PropType<() => (SelectMultipleOptions[] | SelectMultipleOptionsGroup[]) | Promise<SelectMultipleOptions[] | SelectMultipleOptionsGroup[]>>;
85
+ default: undefined;
86
+ description: string;
87
+ };
88
+ initOptionsMethodId: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ hidden: boolean;
92
+ description: string;
93
+ };
84
94
  searchMethodId: {
85
95
  type: StringConstructor;
86
96
  default: string;
@@ -97,6 +107,10 @@ export declare const selectMultipleProps: {
97
107
  default: boolean;
98
108
  description: string;
99
109
  };
110
+ enableSearchCache: {
111
+ type: BooleanConstructor;
112
+ default: boolean;
113
+ };
100
114
  readonly: {
101
115
  type: BooleanConstructor;
102
116
  default: boolean;
@@ -1,5 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
2
  size: {
4
3
  type: PropType<import('../../..').LewSize>;
5
4
  default: string;
@@ -47,10 +46,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
47
46
  default: (value: number) => string;
48
47
  description: string;
49
48
  };
49
+ modelValue: {
50
+ type: globalThis.PropType<number>;
51
+ };
50
52
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
51
- change: (...args: any[]) => void;
53
+ change: (value: number) => any;
54
+ "update:modelValue": (value: number) => any;
52
55
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
53
- modelValue: import('vue').PropType<any>;
54
56
  size: {
55
57
  type: PropType<import('../../..').LewSize>;
56
58
  default: string;
@@ -98,16 +100,23 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
98
100
  default: (value: number) => string;
99
101
  description: string;
100
102
  };
103
+ modelValue: {
104
+ type: globalThis.PropType<number>;
105
+ };
101
106
  }>> & Readonly<{
102
- onChange?: ((...args: any[]) => any) | undefined;
107
+ onChange?: ((value: number) => any) | undefined;
108
+ "onUpdate:modelValue"?: ((value: number) => any) | undefined;
103
109
  }>, {
104
110
  size: import('../../..').LewSize;
105
111
  max: string | number;
106
112
  min: string | number;
107
113
  step: string | number;
108
- disabled: boolean;
109
114
  options: import('./props').SliderOptions[];
115
+ disabled: boolean;
110
116
  readonly: boolean;
111
117
  formatTooltip: (value: number) => string;
112
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
118
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
119
+ trackRef: HTMLDivElement;
120
+ dotRef: HTMLDivElement;
121
+ }, HTMLDivElement>;
113
122
  export default _default;
@@ -1,10 +1,9 @@
1
- import { ExtractPropTypes } from 'vue';
2
1
  import { LewSize } from '../../../types';
3
-
4
- export type SliderOptions = {
2
+ import { ExtractPropTypes } from 'vue';
3
+ export interface SliderOptions {
5
4
  label: string;
6
5
  value: string | number;
7
- };
6
+ }
8
7
  export declare const sliderModel: {
9
8
  modelValue: {
10
9
  type: PropType<number | undefined>;
@@ -1,5 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
2
  size: {
4
3
  type: PropType<import('../../..').LewSize>;
5
4
  default: string;
@@ -47,8 +46,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
47
46
  default: (value: number) => string;
48
47
  description: string;
49
48
  };
50
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
51
- modelValue: import('vue').PropType<any>;
49
+ modelValue: {
50
+ type: globalThis.PropType<number[]>;
51
+ };
52
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ change: (...args: any[]) => void;
54
+ "update:modelValue": (value: number[]) => void;
55
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
52
56
  size: {
53
57
  type: PropType<import('../../..').LewSize>;
54
58
  default: string;
@@ -96,14 +100,24 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
96
100
  default: (value: number) => string;
97
101
  description: string;
98
102
  };
99
- }>> & Readonly<{}>, {
103
+ modelValue: {
104
+ type: globalThis.PropType<number[]>;
105
+ };
106
+ }>> & Readonly<{
107
+ onChange?: ((...args: any[]) => any) | undefined;
108
+ "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
109
+ }>, {
100
110
  size: import('../../..').LewSize;
101
111
  max: string | number;
102
112
  min: string | number;
103
113
  step: string | number;
104
- disabled: boolean;
105
114
  options: import('./props').SliderRangeOptions[];
115
+ disabled: boolean;
106
116
  readonly: boolean;
107
117
  formatTooltip: (value: number) => string;
108
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
118
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
119
+ trackRef: HTMLDivElement;
120
+ dotRef1: HTMLDivElement;
121
+ dotRef2: HTMLDivElement;
122
+ }, HTMLDivElement>;
109
123
  export default _default;
@@ -1,10 +1,9 @@
1
- import { ExtractPropTypes } from 'vue';
2
1
  import { LewSize } from '../../../types';
3
-
4
- export type SliderRangeOptions = {
2
+ import { ExtractPropTypes } from 'vue';
3
+ export interface SliderRangeOptions {
5
4
  label: string;
6
5
  value: string | number;
7
- };
6
+ }
8
7
  export declare const sliderRangeModel: {
9
8
  modelValue: {
10
9
  type: PropType<number[] | undefined>;
@@ -1,5 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
2
  options: {
4
3
  type: PropType<import('../../..').StepsOptions[]>;
5
4
  default: () => never[];
@@ -17,8 +16,12 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
17
16
  default: string;
18
17
  description: string;
19
18
  };
20
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
21
- modelValue: import('vue').PropType<any>;
19
+ modelValue: {
20
+ type: globalThis.PropType<any>;
21
+ };
22
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
23
+ "update:modelValue": (value: any) => any;
24
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
22
25
  options: {
23
26
  type: PropType<import('../../..').StepsOptions[]>;
24
27
  default: () => never[];
@@ -36,9 +39,14 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
36
39
  default: string;
37
40
  description: string;
38
41
  };
39
- }>> & Readonly<{}>, {
40
- status: import('../../..').StepsStatus;
42
+ modelValue: {
43
+ type: globalThis.PropType<any>;
44
+ };
45
+ }>> & Readonly<{
46
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
47
+ }>, {
41
48
  options: import('../../..').StepsOptions[];
49
+ status: import('../../..').StepsStatus;
42
50
  minWidth: string;
43
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
51
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
44
52
  export default _default;
@@ -1,9 +1,8 @@
1
1
  import { ExtractPropTypes } from 'vue';
2
-
3
- export type StepsOptions = {
2
+ export interface StepsOptions {
4
3
  title: string;
5
4
  description: string;
6
- };
5
+ }
7
6
  export type StepsStatus = 'pending' | 'loading' | 'done' | 'error' | 'warning';
8
7
  export declare const stepsModel: {
9
8
  modelValue: {
@@ -1,5 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
2
  size: {
4
3
  type: PropType<import('../../..').LewSize>;
5
4
  default: string;
@@ -32,11 +31,14 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
32
31
  default: boolean;
33
32
  description: string;
34
33
  };
34
+ modelValue: {
35
+ type: globalThis.PropType<any>;
36
+ };
35
37
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
36
38
  change: (...args: any[]) => void;
37
39
  click: (...args: any[]) => void;
40
+ "update:modelValue": (value: any) => void;
38
41
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
39
- modelValue: import('vue').PropType<any>;
40
42
  size: {
41
43
  type: PropType<import('../../..').LewSize>;
42
44
  default: string;
@@ -69,9 +71,13 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
69
71
  default: boolean;
70
72
  description: string;
71
73
  };
74
+ modelValue: {
75
+ type: globalThis.PropType<any>;
76
+ };
72
77
  }>> & Readonly<{
73
78
  onChange?: ((...args: any[]) => any) | undefined;
74
79
  onClick?: ((...args: any[]) => any) | undefined;
80
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
75
81
  }>, {
76
82
  size: import('../../..').LewSize;
77
83
  loading: boolean;
@@ -79,5 +85,5 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
79
85
  round: number | boolean;
80
86
  request: Function;
81
87
  readonly: boolean;
82
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
88
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
83
89
  export default _default;
@@ -1,6 +1,5 @@
1
- import { PropType } from 'vue';
2
1
  import { LewSize } from '../../../types';
3
-
2
+ import { PropType } from 'vue';
4
3
  export declare const switchModel: {
5
4
  modelValue: {
6
5
  type: BooleanConstructor;
@@ -1,23 +1,32 @@
1
- declare function __VLS_template(): Partial<Record<any, (_: {
2
- row: any;
3
- column: any;
4
- index: number;
5
- }) => any>> & Partial<Record<any, (_: {
6
- row: any;
7
- column: any;
8
- index: number;
9
- }) => any>> & Partial<Record<any, (_: {
10
- row: any;
11
- column: any;
12
- index: number;
13
- }) => any>> & {
14
- "table-header"?(_: {}): any;
15
- empty?(_: {}): any;
16
- "table-footer"?(_: {}): any;
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: Partial<Record<any, (_: {
4
+ row: any;
5
+ column: any;
6
+ index: number;
7
+ }) => any>> & Partial<Record<any, (_: {
8
+ row: any;
9
+ column: any;
10
+ index: number;
11
+ }) => any>> & Partial<Record<any, (_: {
12
+ row: any;
13
+ column: any;
14
+ index: number;
15
+ }) => any>> & {
16
+ 'table-header'?(_: {}): any;
17
+ empty?(_: {}): any;
18
+ 'table-footer'?(_: {}): any;
19
+ };
20
+ refs: {
21
+ tableWrapperRef: HTMLDivElement;
22
+ tableRef: HTMLDivElement;
23
+ fixedLeftRef: HTMLDivElement;
24
+ fixedRightRef: HTMLDivElement;
25
+ };
26
+ rootEl: HTMLDivElement;
17
27
  };
28
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
18
29
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
19
- selectedKeys: import('vue').PropType<any>;
20
- sortValue: import('vue').PropType<any>;
21
30
  columns: {
22
31
  type: PropType<import('../../..').TableColumn[]>;
23
32
  default: () => never[];
@@ -73,13 +82,19 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
73
82
  description: string;
74
83
  validator: (value: string) => boolean;
75
84
  };
85
+ selectedKeys: {
86
+ type: globalThis.PropType<any>;
87
+ };
88
+ sortValue: {
89
+ type: globalThis.PropType<{}>;
90
+ };
76
91
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
92
  sortChange: (...args: any[]) => void;
78
93
  selectChange: (...args: any[]) => void;
79
94
  sortOrderChange: (...args: any[]) => void;
95
+ "update:selectedKeys": (value: any) => void;
96
+ "update:sortValue": (value: {}) => void;
80
97
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
81
- selectedKeys: import('vue').PropType<any>;
82
- sortValue: import('vue').PropType<any>;
83
98
  columns: {
84
99
  type: PropType<import('../../..').TableColumn[]>;
85
100
  default: () => never[];
@@ -135,23 +150,36 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
135
150
  description: string;
136
151
  validator: (value: string) => boolean;
137
152
  };
153
+ selectedKeys: {
154
+ type: globalThis.PropType<any>;
155
+ };
156
+ sortValue: {
157
+ type: globalThis.PropType<{}>;
158
+ };
138
159
  }>> & Readonly<{
160
+ "onUpdate:selectedKeys"?: ((value: any) => any) | undefined;
161
+ "onUpdate:sortValue"?: ((value: {}) => any) | undefined;
139
162
  onSortChange?: ((...args: any[]) => any) | undefined;
140
163
  onSelectChange?: ((...args: any[]) => any) | undefined;
141
164
  onSortOrderChange?: ((...args: any[]) => any) | undefined;
142
165
  }>, {
143
166
  size: import('../../..').LewSize;
144
167
  checkable: boolean;
145
- columns: import('../../..').TableColumn[];
146
- maxHeight: string | number;
147
168
  multiple: boolean;
169
+ columns: import('../../..').TableColumn[];
148
170
  dataSource: Record<string, any>[];
171
+ bordered: boolean;
172
+ maxHeight: string | number;
149
173
  rowKey: string;
150
174
  sortable: boolean;
151
175
  sortTooltipCustomRender: (row: Record<string, any>) => any;
152
- bordered: boolean;
153
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
154
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
176
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
177
+ tableWrapperRef: HTMLDivElement;
178
+ tableRef: HTMLDivElement;
179
+ fixedLeftRef: HTMLDivElement;
180
+ fixedRightRef: HTMLDivElement;
181
+ }, HTMLDivElement>;
182
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
155
183
  export default _default;
156
184
  type __VLS_WithTemplateSlots<T, S> = T & {
157
185
  new (): {
@@ -1,6 +1,5 @@
1
- import { PropType } from 'vue';
2
1
  import { LewSize } from '../../..';
3
-
2
+ import { PropType } from 'vue';
4
3
  export interface TableColumn {
5
4
  title: string;
6
5
  field: string;
@@ -1,10 +1,5 @@
1
1
  import { TabsOptions } from './props';
2
-
3
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
- modelValue: {
5
- required: true;
6
- type: import('vue').PropType<any>;
7
- };
8
3
  options: {
9
4
  type: PropType<TabsOptions[]>;
10
5
  default: () => never[];
@@ -50,13 +45,14 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
50
45
  default: boolean;
51
46
  description: string;
52
47
  };
53
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
54
- change: (...args: any[]) => void;
55
- }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
56
48
  modelValue: {
49
+ type: globalThis.PropType<any>;
57
50
  required: true;
58
- type: import('vue').PropType<any>;
59
51
  };
52
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
53
+ change: (...args: any[]) => void;
54
+ "update:modelValue": (value: any) => void;
55
+ }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
60
56
  options: {
61
57
  type: PropType<TabsOptions[]>;
62
58
  default: () => never[];
@@ -102,16 +98,23 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
102
98
  default: boolean;
103
99
  description: string;
104
100
  };
101
+ modelValue: {
102
+ type: globalThis.PropType<any>;
103
+ required: true;
104
+ };
105
105
  }>> & Readonly<{
106
106
  onChange?: ((...args: any[]) => any) | undefined;
107
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
107
108
  }>, {
108
109
  type: import('./props').TabsType;
109
110
  size: import('./props').TabsSize;
110
- width: string | number;
111
+ options: TabsOptions[];
111
112
  disabled: boolean;
113
+ width: string | number;
112
114
  round: boolean;
113
- options: TabsOptions[];
114
115
  readonly: boolean;
115
116
  itemWidth: string | number;
116
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
117
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
118
+ tabsRef: HTMLDivElement;
119
+ }, HTMLDivElement>;
117
120
  export default _default;
@@ -1,9 +1,8 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
-
3
- export type TabsOptions = {
2
+ export interface TabsOptions {
4
3
  label: string;
5
4
  value: string | number;
6
- };
5
+ }
7
6
  export type TabsSize = 'small' | 'medium' | 'large';
8
7
  export type TabsType = 'block' | 'line';
9
8
  export declare const tabsModel: {
@@ -1,8 +1,14 @@
1
1
  declare function __VLS_template(): {
2
- left?(_: {}): any;
3
- default?(_: {}): any;
4
- right?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ left?(_: {}): any;
5
+ default?(_: {}): any;
6
+ right?(_: {}): any;
7
+ };
8
+ refs: {};
9
+ rootEl: HTMLDivElement;
5
10
  };
11
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
6
12
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
7
13
  text: {
8
14
  type: StringConstructor;
@@ -90,8 +96,8 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
90
96
  round: boolean;
91
97
  oversize: boolean;
92
98
  closable: boolean;
93
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
94
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
99
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
100
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
95
101
  export default _default;
96
102
  type __VLS_WithTemplateSlots<T, S> = T & {
97
103
  new (): {
@@ -1,6 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
1
  import { LewColor, LewSize } from '../../..';
3
-
2
+ import { ExtractPropTypes, PropType } from 'vue';
4
3
  export type TagType = 'fill' | 'light' | 'ghost';
5
4
  export declare const tagProps: {
6
5
  text: {
@@ -1,6 +1,16 @@
1
1
  declare function __VLS_template(): {
2
- default?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ default?(_: {}): any;
5
+ default?(_: {}): any;
6
+ };
7
+ refs: {
8
+ lewTextTrimRef: HTMLDivElement;
9
+ lewTextTrimPopRef: HTMLDivElement;
10
+ };
11
+ rootEl: HTMLDivElement;
3
12
  };
13
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
14
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
5
15
  text: {
6
16
  type: (StringConstructor | NumberConstructor)[];
@@ -84,16 +94,19 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
84
94
  validator(value: number): boolean;
85
95
  };
86
96
  }>> & Readonly<{}>, {
97
+ placement: import('./props').TextTrimPlacement;
98
+ offset: number[];
87
99
  text: string | number;
88
100
  textAlign: import('./props').TextTrimAlignment;
89
- offset: number[];
90
101
  lineClamp: number;
91
102
  allowHTML: boolean;
92
- placement: import('./props').TextTrimPlacement;
93
103
  delay: number[];
94
104
  reserveEnd: number;
95
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
96
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
105
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
106
+ lewTextTrimRef: HTMLDivElement;
107
+ lewTextTrimPopRef: HTMLDivElement;
108
+ }, HTMLDivElement>;
109
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
97
110
  export default _default;
98
111
  type __VLS_WithTemplateSlots<T, S> = T & {
99
112
  new (): {
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
-
3
2
  export type TextTrimPlacement = 'top' | 'bottom' | 'left' | 'right';
4
3
  export type TextTrimAlignment = 'left' | 'center' | 'right';
5
4
  export declare const textTrimProps: {
@@ -1,9 +1,9 @@
1
- export declare const getDisplayText: ({ text, reserveEnd, target }: {
1
+ export declare function getDisplayText({ text, reserveEnd, target, }: {
2
2
  text: string;
3
3
  reserveEnd: number;
4
4
  target: HTMLElement;
5
- }) => {
5
+ }): {
6
6
  text: string;
7
7
  isEllipsis: boolean;
8
8
  };
9
- export declare const clearMeasureCache: () => void;
9
+ export declare function clearMeasureCache(): void;
@@ -1,5 +1,5 @@
1
+ declare function toFocus(): void;
1
2
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
3
  placeholder: {
4
4
  type: StringConstructor;
5
5
  defaultLocale: boolean;
@@ -83,8 +83,11 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
83
83
  default: boolean;
84
84
  description: string;
85
85
  };
86
+ modelValue: {
87
+ type: globalThis.PropType<any>;
88
+ };
86
89
  }>, {
87
- toFocus: () => void;
90
+ toFocus: typeof toFocus;
88
91
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
89
92
  blur: (...args: any[]) => void;
90
93
  change: (...args: any[]) => void;
@@ -92,8 +95,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
92
95
  input: (...args: any[]) => void;
93
96
  clear: (...args: any[]) => void;
94
97
  ok: (...args: any[]) => void;
98
+ "update:modelValue": (value: any) => void;
95
99
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
96
- modelValue: import('vue').PropType<any>;
97
100
  placeholder: {
98
101
  type: StringConstructor;
99
102
  defaultLocale: boolean;
@@ -177,28 +180,35 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
177
180
  default: boolean;
178
181
  description: string;
179
182
  };
183
+ modelValue: {
184
+ type: globalThis.PropType<any>;
185
+ };
180
186
  }>> & Readonly<{
181
187
  onBlur?: ((...args: any[]) => any) | undefined;
182
188
  onChange?: ((...args: any[]) => any) | undefined;
183
189
  onFocus?: ((...args: any[]) => any) | undefined;
184
190
  onInput?: ((...args: any[]) => any) | undefined;
185
191
  onClear?: ((...args: any[]) => any) | undefined;
192
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
186
193
  onOk?: ((...args: any[]) => any) | undefined;
187
194
  }>, {
188
- resize: string;
189
195
  size: import('../../..').LewSize;
196
+ resize: string;
197
+ disabled: boolean;
190
198
  width: string | number;
191
199
  height: string | number;
192
- disabled: boolean;
193
- maxWidth: string | number;
194
- minWidth: string | number;
195
- readonly: boolean;
196
200
  clearable: boolean;
201
+ readonly: boolean;
202
+ minWidth: string | number;
197
203
  maxLength: string | number;
198
204
  showCount: boolean;
199
205
  selectByFocus: boolean;
200
206
  okByEnter: boolean;
201
207
  minHeight: string | number;
208
+ maxWidth: string | number;
202
209
  maxHeight: string | number;
203
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
210
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
211
+ lewTextareaViewRef: HTMLDivElement;
212
+ lewTextareaRef: HTMLTextAreaElement;
213
+ }, HTMLDivElement>;
204
214
  export default _default;
@@ -1,6 +1,5 @@
1
- import { ExtractPropTypes } from 'vue';
2
1
  import { LewSize } from '../../..';
3
-
2
+ import { ExtractPropTypes } from 'vue';
4
3
  export declare const textareaModel: {
5
4
  modelValue: {
6
5
  type: StringConstructor;