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,5 +1,7 @@
1
+ declare function setIgnoreValidate(value: boolean): void;
2
+ declare function validate(): void;
3
+ declare function setError(message: any): void;
1
4
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: import('vue').PropType<any>;
3
5
  label: {
4
6
  type: StringConstructor;
5
7
  default: string;
@@ -107,15 +109,18 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
107
109
  }) => unknown;
108
110
  description: string;
109
111
  };
112
+ modelValue: {
113
+ type: globalThis.PropType<never>;
114
+ };
110
115
  }>, {
111
- validate: () => void;
112
- setError: (message: any) => void;
116
+ validate: typeof validate;
117
+ setError: typeof setError;
113
118
  curRule: globalThis.ComputedRef<any>;
114
- setIgnoreValidate: (value: boolean) => void;
119
+ setIgnoreValidate: typeof setIgnoreValidate;
115
120
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
116
121
  change: (...args: any[]) => void;
122
+ "update:modelValue": (value: undefined) => void;
117
123
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
118
- modelValue: import('vue').PropType<any>;
119
124
  label: {
120
125
  type: StringConstructor;
121
126
  default: string;
@@ -223,21 +228,25 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
223
228
  }) => unknown;
224
229
  description: string;
225
230
  };
231
+ modelValue: {
232
+ type: globalThis.PropType<never>;
233
+ };
226
234
  }>> & Readonly<{
227
235
  onChange?: ((...args: any[]) => any) | undefined;
236
+ "onUpdate:modelValue"?: ((value: undefined) => any) | undefined;
228
237
  }>, {
229
238
  size: import('../../..').LewSize;
230
239
  props: Record<string, any>;
231
240
  tips: string;
232
241
  field: string;
233
- direction: import('../../..').FormDirection;
234
242
  label: string;
243
+ direction: import('../../..').FormDirection;
244
+ disabled: boolean;
235
245
  width: string | number;
236
246
  between: boolean;
237
- disabled: boolean;
247
+ readonly: boolean;
238
248
  required: boolean | Function;
239
249
  labelWidth: string | number;
240
- readonly: boolean;
241
250
  id: string;
242
251
  as: string;
243
252
  errMessage: string;
@@ -248,5 +257,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
248
257
  inputFormat: (params: {
249
258
  value: unknown;
250
259
  }) => unknown;
251
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
260
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
261
+ formItemRef: HTMLDivElement;
262
+ }, HTMLDivElement>;
252
263
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import { LewSize } from '../../..';
2
-
2
+ declare function getWidth(): number | undefined;
3
3
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
4
4
  size: {
5
5
  type: PropType<LewSize>;
@@ -13,7 +13,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
13
13
  type: PropType<any>;
14
14
  };
15
15
  }>, {
16
- getWidth: () => number | undefined;
16
+ getWidth: typeof getWidth;
17
17
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
18
18
  size: {
19
19
  type: PropType<LewSize>;
@@ -29,5 +29,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
29
29
  }>> & Readonly<{}>, {
30
30
  size: LewSize;
31
31
  padding: number;
32
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
32
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
33
+ formLabelRef: HTMLDivElement;
34
+ }, HTMLDivElement>;
33
35
  export default _default;
@@ -10,5 +10,5 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
10
10
  };
11
11
  }>> & Readonly<{}>, {
12
12
  size: number;
13
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
13
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, SVGSVGElement>;
14
14
  export default _default;
@@ -1,6 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
1
  import { LewSize } from '../../..';
3
-
2
+ import { ExtractPropTypes, PropType } from 'vue';
4
3
  export type FormDirection = 'x' | 'y';
5
4
  export declare const formProps: {
6
5
  options: {
@@ -57,7 +56,7 @@ export declare const formProps: {
57
56
  hidden: boolean;
58
57
  };
59
58
  formMethods: {
60
- type: PropType<Record<string, Function>>;
59
+ type: PropType<Record<string, (...args: any[]) => any>>;
61
60
  default: () => {};
62
61
  description: string;
63
62
  };
@@ -1,6 +1,12 @@
1
1
  declare function __VLS_template(): {
2
- error?(_: {}): any;
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ error?(_: {}): any;
5
+ };
6
+ refs: {};
7
+ rootEl: HTMLDivElement;
3
8
  };
9
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
4
10
  declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
5
11
  src: {
6
12
  type: StringConstructor;
@@ -90,15 +96,15 @@ declare const __VLS_component: import('vue').DefineComponent<globalThis.ExtractP
90
96
  validator: (value: string) => boolean;
91
97
  };
92
98
  }>> & Readonly<{}>, {
93
- lazy: boolean;
94
99
  loading: boolean;
100
+ lazy: boolean;
95
101
  title: string;
96
102
  width: string | number;
97
103
  height: string | number;
98
104
  objectFit: import('../../..').ObjectFit;
99
105
  objectPosition: string;
100
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
- declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
106
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
107
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
102
108
  export default _default;
103
109
  type __VLS_WithTemplateSlots<T, S> = T & {
104
110
  new (): {
@@ -1,5 +1,4 @@
1
1
  import { ExtractPropTypes, PropType } from 'vue';
2
-
3
2
  export type ObjectFit = 'fill' | 'contain' | 'cover' | 'none' | 'scale-down';
4
3
  export declare const imageProps: {
5
4
  src: {
@@ -1,49 +1,49 @@
1
- export * from './image';
1
+ export * from './action-box';
2
+ export * from './alert';
2
3
  export * from './avatar';
3
- export * from './button';
4
- export * from './tag';
5
- export * from './badge';
6
- export * from './title';
7
- export * from './text-trim';
8
- export * from './flex';
9
- export * from './mark';
10
- export * from './expand';
11
4
  export * from './back-top';
12
- export * from './steps';
13
- export * from './menu';
14
- export * from './menu-tree';
15
- export * from './dropdown';
5
+ export * from './badge';
16
6
  export * from './breadcrumb';
17
- export * from './action-box';
7
+ export * from './button';
8
+ export * from './cascader';
9
+ export * from './checkbox';
10
+ export * from './collapse';
11
+ export * from './color-picker';
12
+ export * from './date-picker';
13
+ export * from './date-range-picker';
14
+ export * from './desc';
15
+ export * from './drawer';
16
+ export * from './dropdown';
17
+ export * from './empty';
18
+ export * from './expand';
19
+ export * from './flex';
18
20
  export * from './form';
21
+ export * from './image';
19
22
  export * from './input';
20
23
  export * from './input-number';
21
- export * from './textarea';
24
+ export * from './input-table';
22
25
  export * from './input-tag';
23
- export * from './checkbox';
26
+ export * from './mark';
27
+ export * from './menu';
28
+ export * from './menu-tree';
29
+ export * from './modal';
30
+ export * from './pagination';
31
+ export * from './popok';
32
+ export * from './popover';
24
33
  export * from './radio';
25
- export * from './tabs';
34
+ export * from './rate';
26
35
  export * from './select';
27
36
  export * from './select-multiple';
28
- export * from './date-picker';
29
- export * from './date-range-picker';
30
- export * from './cascader';
31
- export * from './tree-select';
32
- export * from './input-table';
33
- export * from './switch';
34
37
  export * from './slider';
35
38
  export * from './slider-range';
36
- export * from './color-picker';
37
- export * from './upload';
38
- export * from './rate';
39
+ export * from './steps';
40
+ export * from './switch';
39
41
  export * from './table';
40
- export * from './pagination';
42
+ export * from './tabs';
43
+ export * from './tag';
44
+ export * from './text-trim';
45
+ export * from './textarea';
46
+ export * from './title';
41
47
  export * from './tree';
42
- export * from './collapse';
43
- export * from './desc';
44
- export * from './alert';
45
- export * from './modal';
46
- export * from './popok';
47
- export * from './popover';
48
- export * from './drawer';
49
- export * from './empty';
48
+ export * from './tree-select';
49
+ export * from './upload';
@@ -1,10 +1,4 @@
1
1
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: {
3
- required: true;
4
- type: import('vue').PropType<any>;
5
- };
6
- prefixValue: import('vue').PropType<any>;
7
- suffixValue: import('vue').PropType<any>;
8
2
  type: {
9
3
  type: StringConstructor;
10
4
  default: string;
@@ -122,6 +116,16 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
122
116
  default: boolean;
123
117
  description: string;
124
118
  };
119
+ modelValue: {
120
+ type: globalThis.PropType<any>;
121
+ required: true;
122
+ };
123
+ prefixValue: {
124
+ type: globalThis.PropType<any>;
125
+ };
126
+ suffixValue: {
127
+ type: globalThis.PropType<any>;
128
+ };
125
129
  }>, {
126
130
  toFocus: () => any;
127
131
  toBlur: () => any;
@@ -132,13 +136,10 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
132
136
  input: (...args: any[]) => void;
133
137
  clear: (...args: any[]) => void;
134
138
  ok: (...args: any[]) => void;
139
+ "update:modelValue": (value: any) => void;
140
+ "update:prefixValue": (value: any) => void;
141
+ "update:suffixValue": (value: any) => void;
135
142
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
136
- modelValue: {
137
- required: true;
138
- type: import('vue').PropType<any>;
139
- };
140
- prefixValue: import('vue').PropType<any>;
141
- suffixValue: import('vue').PropType<any>;
142
143
  type: {
143
144
  type: StringConstructor;
144
145
  default: string;
@@ -256,21 +257,34 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
256
257
  default: boolean;
257
258
  description: string;
258
259
  };
260
+ modelValue: {
261
+ type: globalThis.PropType<any>;
262
+ required: true;
263
+ };
264
+ prefixValue: {
265
+ type: globalThis.PropType<any>;
266
+ };
267
+ suffixValue: {
268
+ type: globalThis.PropType<any>;
269
+ };
259
270
  }>> & Readonly<{
260
271
  onBlur?: ((...args: any[]) => any) | undefined;
261
272
  onChange?: ((...args: any[]) => any) | undefined;
262
273
  onFocus?: ((...args: any[]) => any) | undefined;
263
274
  onInput?: ((...args: any[]) => any) | undefined;
264
275
  onClear?: ((...args: any[]) => any) | undefined;
276
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
265
277
  onOk?: ((...args: any[]) => any) | undefined;
278
+ "onUpdate:prefixValue"?: ((value: any) => any) | undefined;
279
+ "onUpdate:suffixValue"?: ((value: any) => any) | undefined;
266
280
  }>, {
267
281
  type: string;
268
282
  size: import('../../..').LewSize;
269
- width: string | number;
270
283
  disabled: boolean;
271
- minWidth: string | number;
272
- readonly: boolean;
284
+ width: string | number;
273
285
  clearable: boolean;
286
+ readonly: boolean;
287
+ minWidth: string | number;
274
288
  showPassword: boolean;
275
289
  maxLength: string | number;
276
290
  showCount: boolean;
@@ -285,5 +299,8 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
285
299
  suffixOptions: import('../../..').ContextMenus[];
286
300
  suffixTooltip: string;
287
301
  okByEnter: boolean;
288
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
302
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
303
+ lewInputRef: HTMLInputElement;
304
+ lewInputCountRef: HTMLDivElement;
305
+ }, HTMLDivElement>;
289
306
  export default _default;
@@ -1,6 +1,5 @@
1
- import { ExtractPropTypes, PropType } from 'vue';
2
1
  import { ContextMenus, LewSize } from '../../..';
3
-
2
+ import { ExtractPropTypes, PropType } from 'vue';
4
3
  export type InputType = 'text' | 'password';
5
4
  export type InputAlign = 'left' | 'center' | 'right';
6
5
  export type InputPrefixesType = 'icon' | 'select' | 'text';
@@ -1,8 +1,6 @@
1
+ declare function toFocus(): void;
2
+ declare function validCheck(): boolean;
1
3
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
- modelValue: {
3
- required: true;
4
- type: import('vue').PropType<any>;
5
- };
6
4
  min: {
7
5
  type: (StringConstructor | NumberConstructor)[];
8
6
  default: string;
@@ -61,19 +59,20 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
61
59
  default: boolean;
62
60
  description: string;
63
61
  };
62
+ modelValue: {
63
+ type: globalThis.PropType<any>;
64
+ required: true;
65
+ };
64
66
  }>, {
65
- toFocus: () => void;
66
- validCheck: () => boolean;
67
+ toFocus: typeof toFocus;
68
+ validCheck: typeof validCheck;
67
69
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
68
70
  blur: (...args: any[]) => void;
69
71
  change: (...args: any[]) => void;
70
72
  focus: (...args: any[]) => void;
71
73
  input: (...args: any[]) => void;
74
+ "update:modelValue": (value: any) => void;
72
75
  }, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
73
- modelValue: {
74
- required: true;
75
- type: import('vue').PropType<any>;
76
- };
77
76
  min: {
78
77
  type: (StringConstructor | NumberConstructor)[];
79
78
  default: string;
@@ -132,20 +131,27 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
132
131
  default: boolean;
133
132
  description: string;
134
133
  };
134
+ modelValue: {
135
+ type: globalThis.PropType<any>;
136
+ required: true;
137
+ };
135
138
  }>> & Readonly<{
136
139
  onBlur?: ((...args: any[]) => any) | undefined;
137
140
  onChange?: ((...args: any[]) => any) | undefined;
138
141
  onFocus?: ((...args: any[]) => any) | undefined;
139
142
  onInput?: ((...args: any[]) => any) | undefined;
143
+ "onUpdate:modelValue"?: ((value: any) => any) | undefined;
140
144
  }>, {
141
145
  size: import('../../..').LewSize;
142
146
  max: string | number;
143
147
  min: string | number;
144
148
  step: string | number;
145
- width: string | number;
146
149
  disabled: boolean;
150
+ width: string | number;
147
151
  readonly: boolean;
148
152
  align: import('../../..').InputNumberAlign;
149
153
  selectByFocus: boolean;
150
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
154
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
155
+ lewInputRef: HTMLInputElement;
156
+ }, HTMLDivElement>;
151
157
  export default _default;
@@ -1,6 +1,5 @@
1
- import { ExtractPropTypes } from 'vue';
2
1
  import { LewSize } from '../../../types';
3
-
2
+ import { ExtractPropTypes } from 'vue';
4
3
  export type InputNumberAlign = 'left' | 'center' | 'right';
5
4
  export declare const inputNumberModel: {
6
5
  modelValue: {
@@ -1,3 +1,8 @@
1
+ import { LewSize } from '../../..';
2
+ declare function open({ row, index }: {
3
+ row: any;
4
+ index: number;
5
+ }): void;
1
6
  declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
2
7
  options: {
3
8
  type: ObjectConstructor;
@@ -11,10 +16,7 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
11
16
  default: () => boolean;
12
17
  };
13
18
  }>, {
14
- open: ({ row, index }: {
15
- row: any;
16
- index: number;
17
- }) => void;
19
+ open: typeof open;
18
20
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
19
21
  addSuccess: (...args: any[]) => void;
20
22
  editSuccess: (...args: any[]) => void;
@@ -36,5 +38,218 @@ declare const _default: import('vue').DefineComponent<globalThis.ExtractPropType
36
38
  }>, {
37
39
  size: string;
38
40
  checkUniqueFieldFn: Function;
39
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
41
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {
42
+ formRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
43
+ options: {
44
+ type: PropType<Array<Record<string, any>>>;
45
+ required: boolean;
46
+ default: () => never[];
47
+ description: string;
48
+ validator(value: Array<Record<string, any>>): boolean;
49
+ };
50
+ size: {
51
+ type: PropType<LewSize>;
52
+ default: string;
53
+ description: string;
54
+ validator(value: LewSize): boolean;
55
+ };
56
+ width: {
57
+ type: (StringConstructor | NumberConstructor)[];
58
+ default: string;
59
+ description: string;
60
+ validator(value: number | string): boolean;
61
+ };
62
+ columns: {
63
+ type: (StringConstructor | NumberConstructor)[];
64
+ default: number;
65
+ description: string;
66
+ validator(value: number | string): boolean;
67
+ };
68
+ labelWidth: {
69
+ type: (StringConstructor | NumberConstructor)[];
70
+ default: string;
71
+ description: string;
72
+ validator(value: number | string): boolean;
73
+ };
74
+ disabled: {
75
+ type: BooleanConstructor;
76
+ default: boolean;
77
+ description: string;
78
+ };
79
+ readonly: {
80
+ type: BooleanConstructor;
81
+ default: boolean;
82
+ description: string;
83
+ };
84
+ direction: {
85
+ type: PropType<import('../../..').FormDirection>;
86
+ default: string;
87
+ description: string;
88
+ validator(value: import('../../..').FormDirection): boolean;
89
+ };
90
+ id: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ description: string;
94
+ hidden: boolean;
95
+ };
96
+ formMethods: {
97
+ type: PropType<Record<string, (...args: any[]) => any>>;
98
+ default: () => {};
99
+ description: string;
100
+ };
101
+ }>> & Readonly<{
102
+ onChange?: ((...args: any[]) => any) | undefined;
103
+ onMounted?: ((...args: any[]) => any) | undefined;
104
+ }>, {
105
+ getForm: () => Record<string, any>;
106
+ setForm: (value?: any) => void;
107
+ resetError: () => void;
108
+ validate: () => Promise<boolean>;
109
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
110
+ change: (...args: any[]) => void;
111
+ mounted: (...args: any[]) => void;
112
+ }, import('vue').PublicProps, {
113
+ size: LewSize;
114
+ direction: import('../../..').FormDirection;
115
+ options: Record<string, any>[];
116
+ disabled: boolean;
117
+ width: string | number;
118
+ readonly: boolean;
119
+ formMethods: Record<string, (...args: any[]) => any>;
120
+ columns: string | number;
121
+ labelWidth: string | number;
122
+ id: string;
123
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
124
+ formLabelRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
125
+ size: {
126
+ type: PropType<LewSize>;
127
+ default: string;
128
+ };
129
+ padding: {
130
+ type: NumberConstructor;
131
+ default: number;
132
+ };
133
+ options: {
134
+ type: PropType<any>;
135
+ };
136
+ }>> & Readonly<{}>, {
137
+ getWidth: () => number | undefined;
138
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
139
+ size: LewSize;
140
+ padding: number;
141
+ }, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
142
+ formLabelRef: HTMLDivElement;
143
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
144
+ P: {};
145
+ B: {};
146
+ D: {};
147
+ C: {};
148
+ M: {};
149
+ Defaults: {};
150
+ }, Readonly<globalThis.ExtractPropTypes<{
151
+ size: {
152
+ type: PropType<LewSize>;
153
+ default: string;
154
+ };
155
+ padding: {
156
+ type: NumberConstructor;
157
+ default: number;
158
+ };
159
+ options: {
160
+ type: PropType<any>;
161
+ };
162
+ }>> & Readonly<{}>, {
163
+ getWidth: () => number | undefined;
164
+ }, {}, {}, {}, {
165
+ size: LewSize;
166
+ padding: number;
167
+ }> | null;
168
+ }, HTMLDivElement, import('vue').ComponentProvideOptions, {
169
+ P: {};
170
+ B: {};
171
+ D: {};
172
+ C: {};
173
+ M: {};
174
+ Defaults: {};
175
+ }, Readonly<globalThis.ExtractPropTypes<{
176
+ options: {
177
+ type: PropType<Array<Record<string, any>>>;
178
+ required: boolean;
179
+ default: () => never[];
180
+ description: string;
181
+ validator(value: Array<Record<string, any>>): boolean;
182
+ };
183
+ size: {
184
+ type: PropType<LewSize>;
185
+ default: string;
186
+ description: string;
187
+ validator(value: LewSize): boolean;
188
+ };
189
+ width: {
190
+ type: (StringConstructor | NumberConstructor)[];
191
+ default: string;
192
+ description: string;
193
+ validator(value: number | string): boolean;
194
+ };
195
+ columns: {
196
+ type: (StringConstructor | NumberConstructor)[];
197
+ default: number;
198
+ description: string;
199
+ validator(value: number | string): boolean;
200
+ };
201
+ labelWidth: {
202
+ type: (StringConstructor | NumberConstructor)[];
203
+ default: string;
204
+ description: string;
205
+ validator(value: number | string): boolean;
206
+ };
207
+ disabled: {
208
+ type: BooleanConstructor;
209
+ default: boolean;
210
+ description: string;
211
+ };
212
+ readonly: {
213
+ type: BooleanConstructor;
214
+ default: boolean;
215
+ description: string;
216
+ };
217
+ direction: {
218
+ type: PropType<import('../../..').FormDirection>;
219
+ default: string;
220
+ description: string;
221
+ validator(value: import('../../..').FormDirection): boolean;
222
+ };
223
+ id: {
224
+ type: StringConstructor;
225
+ default: string;
226
+ description: string;
227
+ hidden: boolean;
228
+ };
229
+ formMethods: {
230
+ type: PropType<Record<string, (...args: any[]) => any>>;
231
+ default: () => {};
232
+ description: string;
233
+ };
234
+ }>> & Readonly<{
235
+ onChange?: ((...args: any[]) => any) | undefined;
236
+ onMounted?: ((...args: any[]) => any) | undefined;
237
+ }>, {
238
+ getForm: () => Record<string, any>;
239
+ setForm: (value?: any) => void;
240
+ resetError: () => void;
241
+ validate: () => Promise<boolean>;
242
+ }, {}, {}, {}, {
243
+ size: LewSize;
244
+ direction: import('../../..').FormDirection;
245
+ options: Record<string, any>[];
246
+ disabled: boolean;
247
+ width: string | number;
248
+ readonly: boolean;
249
+ formMethods: Record<string, (...args: any[]) => any>;
250
+ columns: string | number;
251
+ labelWidth: string | number;
252
+ id: string;
253
+ }> | null;
254
+ }, any>;
40
255
  export default _default;