vxe-table 4.1.21 → 4.2.0-beta.3

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 (300) hide show
  1. package/README.en.md +1 -1
  2. package/README.md +2 -1
  3. package/README.zh-TW.md +1 -1
  4. package/es/button/index.js +1 -1
  5. package/es/checkbox/index.js +1 -1
  6. package/es/checkbox-group/index.js +1 -1
  7. package/es/colgroup/index.js +3 -2
  8. package/es/column/index.js +3 -2
  9. package/es/edit/src/hook.js +2 -1
  10. package/es/export/index.js +2 -2
  11. package/es/export/src/hook.js +2 -1
  12. package/es/export/src/util.js +3 -5
  13. package/es/filter/index.js +1 -1
  14. package/es/footer/index.js +1 -1
  15. package/es/footer/src/footer.js +3 -2
  16. package/es/form/index.js +1 -1
  17. package/es/form/src/form-gather.js +1 -1
  18. package/es/form/src/form-item.js +2 -2
  19. package/es/form/src/form.js +15 -29
  20. package/es/form/src/render.js +15 -10
  21. package/es/form-gather/index.js +1 -1
  22. package/es/form-item/index.js +1 -1
  23. package/es/grid/index.js +1 -1
  24. package/es/grid/src/grid.js +2 -1
  25. package/es/header/index.js +1 -1
  26. package/es/header/src/header.js +1 -1
  27. package/es/input/index.js +1 -1
  28. package/es/list/index.js +1 -1
  29. package/es/menu/index.js +1 -1
  30. package/es/modal/index.js +1 -1
  31. package/es/modal/src/modal.js +2 -1
  32. package/es/optgroup/index.js +1 -1
  33. package/es/option/index.js +1 -1
  34. package/es/pager/index.js +1 -1
  35. package/es/pulldown/index.js +1 -1
  36. package/es/radio/index.js +1 -1
  37. package/es/radio-button/index.js +1 -1
  38. package/es/radio-group/index.js +1 -1
  39. package/es/select/index.js +1 -1
  40. package/es/select/src/select.js +14 -3
  41. package/es/select/style.css +1 -1
  42. package/es/style.css +1 -1
  43. package/es/style.min.css +1 -1
  44. package/es/switch/index.js +1 -1
  45. package/es/table/index.js +1 -1
  46. package/es/table/src/body.js +24 -24
  47. package/es/table/src/cell.js +3 -3
  48. package/es/table/src/column.js +3 -1
  49. package/es/table/src/columnInfo.js +5 -4
  50. package/es/table/src/emits.js +5 -1
  51. package/es/table/src/props.js +5 -2
  52. package/es/table/src/table.js +60 -62
  53. package/es/table/src/util.js +5 -3
  54. package/es/textarea/index.js +1 -1
  55. package/es/toolbar/index.js +1 -1
  56. package/es/toolbar/src/toolbar.js +2 -1
  57. package/es/tools/log.js +13 -0
  58. package/es/tools/utils.js +0 -12
  59. package/es/tooltip/index.js +1 -1
  60. package/es/tooltip/src/tooltip.js +47 -28
  61. package/es/tooltip/style.css +1 -1
  62. package/es/v-x-e-table/index.js +1 -0
  63. package/es/v-x-e-table/src/conf.js +14 -7
  64. package/es/v-x-e-table/src/interceptor.js +1 -1
  65. package/es/v-x-e-table/src/renderer.js +2 -1
  66. package/es/v-x-e-table/src/store.js +1 -1
  67. package/helper/vetur/attributes.json +31 -11
  68. package/helper/vetur/tags.json +8 -3
  69. package/lib/button/index.js +3 -2
  70. package/lib/button/index.min.js +1 -1
  71. package/lib/checkbox/index.js +3 -2
  72. package/lib/checkbox/index.min.js +1 -1
  73. package/lib/checkbox-group/index.js +3 -2
  74. package/lib/checkbox-group/index.min.js +1 -1
  75. package/lib/colgroup/index.js +6 -4
  76. package/lib/colgroup/index.min.js +1 -1
  77. package/lib/column/index.js +6 -4
  78. package/lib/column/index.min.js +1 -1
  79. package/lib/edit/src/hook.js +7 -5
  80. package/lib/edit/src/hook.min.js +1 -1
  81. package/lib/export/index.js +5 -4
  82. package/lib/export/index.min.js +1 -1
  83. package/lib/export/src/hook.js +14 -12
  84. package/lib/export/src/hook.min.js +1 -1
  85. package/lib/export/src/util.js +7 -9
  86. package/lib/export/src/util.min.js +1 -1
  87. package/lib/filter/index.js +3 -2
  88. package/lib/filter/index.min.js +1 -1
  89. package/lib/footer/index.js +3 -2
  90. package/lib/footer/index.min.js +1 -1
  91. package/lib/footer/src/footer.js +7 -3
  92. package/lib/footer/src/footer.min.js +1 -1
  93. package/lib/form/index.js +3 -2
  94. package/lib/form/index.min.js +1 -1
  95. package/lib/form/src/form-gather.js +2 -2
  96. package/lib/form/src/form-gather.min.js +1 -1
  97. package/lib/form/src/form-item.js +2 -2
  98. package/lib/form/src/form-item.min.js +1 -1
  99. package/lib/form/src/form.js +18 -36
  100. package/lib/form/src/form.min.js +1 -1
  101. package/lib/form/src/render.js +24 -10
  102. package/lib/form/src/render.min.js +1 -1
  103. package/lib/form-gather/index.js +3 -2
  104. package/lib/form-gather/index.min.js +1 -1
  105. package/lib/form-item/index.js +3 -2
  106. package/lib/form-item/index.min.js +1 -1
  107. package/lib/grid/index.js +3 -2
  108. package/lib/grid/index.min.js +1 -1
  109. package/lib/grid/src/grid.js +16 -14
  110. package/lib/grid/src/grid.min.js +1 -1
  111. package/lib/header/index.js +3 -2
  112. package/lib/header/index.min.js +1 -1
  113. package/lib/header/src/header.js +1 -1
  114. package/lib/header/src/header.min.js +1 -1
  115. package/lib/index.umd.js +1190 -284
  116. package/lib/index.umd.min.js +1 -2
  117. package/lib/input/index.js +3 -2
  118. package/lib/input/index.min.js +1 -1
  119. package/lib/list/index.js +3 -2
  120. package/lib/list/index.min.js +1 -1
  121. package/lib/menu/index.js +3 -2
  122. package/lib/menu/index.min.js +1 -1
  123. package/lib/modal/index.js +3 -2
  124. package/lib/modal/index.min.js +1 -1
  125. package/lib/modal/src/modal.js +3 -1
  126. package/lib/modal/src/modal.min.js +1 -1
  127. package/lib/optgroup/index.js +3 -2
  128. package/lib/optgroup/index.min.js +1 -1
  129. package/lib/option/index.js +3 -2
  130. package/lib/option/index.min.js +1 -1
  131. package/lib/pager/index.js +3 -2
  132. package/lib/pager/index.min.js +1 -1
  133. package/lib/pulldown/index.js +3 -2
  134. package/lib/pulldown/index.min.js +1 -1
  135. package/lib/radio/index.js +3 -2
  136. package/lib/radio/index.min.js +1 -1
  137. package/lib/radio-button/index.js +3 -2
  138. package/lib/radio-button/index.min.js +1 -1
  139. package/lib/radio-group/index.js +3 -2
  140. package/lib/radio-group/index.min.js +1 -1
  141. package/lib/select/index.js +3 -2
  142. package/lib/select/index.min.js +1 -1
  143. package/lib/select/src/select.js +14 -3
  144. package/lib/select/src/select.min.js +1 -1
  145. package/lib/select/style/style.css +1 -1
  146. package/lib/select/style/style.min.css +1 -1
  147. package/lib/style.css +1 -1
  148. package/lib/style.min.css +1 -1
  149. package/lib/switch/index.js +3 -2
  150. package/lib/switch/index.min.js +1 -1
  151. package/lib/table/index.js +3 -2
  152. package/lib/table/index.min.js +1 -1
  153. package/lib/table/src/body.js +24 -25
  154. package/lib/table/src/body.min.js +1 -1
  155. package/lib/table/src/cell.js +3 -3
  156. package/lib/table/src/cell.min.js +1 -1
  157. package/lib/table/src/column.js +3 -1
  158. package/lib/table/src/column.min.js +1 -1
  159. package/lib/table/src/columnInfo.js +13 -9
  160. package/lib/table/src/columnInfo.min.js +1 -1
  161. package/lib/table/src/emits.js +1 -1
  162. package/lib/table/src/emits.min.js +1 -1
  163. package/lib/table/src/props.js +5 -2
  164. package/lib/table/src/table.js +124 -123
  165. package/lib/table/src/table.min.js +1 -1
  166. package/lib/table/src/util.js +5 -3
  167. package/lib/table/src/util.min.js +1 -1
  168. package/lib/textarea/index.js +3 -2
  169. package/lib/textarea/index.min.js +1 -1
  170. package/lib/toolbar/index.js +3 -2
  171. package/lib/toolbar/index.min.js +1 -1
  172. package/lib/toolbar/src/toolbar.js +4 -2
  173. package/lib/toolbar/src/toolbar.min.js +1 -1
  174. package/lib/tools/log.js +29 -0
  175. package/lib/tools/log.min.js +1 -0
  176. package/lib/tools/utils.js +0 -20
  177. package/lib/tools/utils.min.js +1 -1
  178. package/lib/tooltip/index.js +3 -3
  179. package/lib/tooltip/index.min.js +1 -1
  180. package/lib/tooltip/src/tooltip.js +55 -32
  181. package/lib/tooltip/src/tooltip.min.js +1 -1
  182. package/lib/tooltip/style/style.css +1 -1
  183. package/lib/tooltip/style/style.min.css +1 -1
  184. package/lib/v-x-e-table/index.js +1 -0
  185. package/lib/v-x-e-table/index.min.js +1 -1
  186. package/lib/v-x-e-table/src/conf.js +14 -7
  187. package/lib/v-x-e-table/src/conf.min.js +1 -1
  188. package/lib/v-x-e-table/src/interceptor.js +3 -3
  189. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  190. package/lib/v-x-e-table/src/renderer.js +3 -1
  191. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  192. package/lib/v-x-e-table/src/store.js +2 -2
  193. package/lib/v-x-e-table/src/store.min.js +1 -1
  194. package/package.json +3 -3
  195. package/packages/button/index.ts +2 -1
  196. package/packages/checkbox/index.ts +2 -1
  197. package/packages/checkbox-group/index.ts +2 -1
  198. package/packages/colgroup/index.ts +4 -2
  199. package/packages/column/index.ts +4 -2
  200. package/packages/edit/src/hook.ts +2 -1
  201. package/packages/export/index.ts +3 -2
  202. package/packages/export/src/hook.ts +2 -1
  203. package/packages/export/src/util.ts +4 -6
  204. package/packages/filter/index.ts +2 -1
  205. package/packages/footer/index.ts +2 -1
  206. package/packages/footer/src/footer.ts +3 -2
  207. package/packages/form/index.ts +2 -1
  208. package/packages/form/src/form-gather.ts +1 -1
  209. package/packages/form/src/form-item.ts +2 -2
  210. package/packages/form/src/form.ts +16 -32
  211. package/packages/form/src/render.ts +8 -6
  212. package/packages/form-gather/index.ts +2 -1
  213. package/packages/form-item/index.ts +2 -1
  214. package/packages/grid/index.ts +2 -1
  215. package/packages/grid/src/grid.ts +2 -1
  216. package/packages/header/index.ts +2 -1
  217. package/packages/header/src/header.ts +1 -1
  218. package/packages/input/index.ts +2 -1
  219. package/packages/list/index.ts +2 -1
  220. package/packages/menu/index.ts +2 -1
  221. package/packages/modal/index.ts +2 -1
  222. package/packages/modal/src/modal.ts +2 -1
  223. package/packages/optgroup/index.ts +2 -1
  224. package/packages/option/index.ts +2 -1
  225. package/packages/pager/index.ts +2 -1
  226. package/packages/pulldown/index.ts +2 -1
  227. package/packages/radio/index.ts +2 -1
  228. package/packages/radio-button/index.ts +2 -1
  229. package/packages/radio-group/index.ts +2 -1
  230. package/packages/select/index.ts +2 -1
  231. package/packages/select/src/select.ts +15 -3
  232. package/packages/switch/index.ts +2 -1
  233. package/packages/table/index.ts +2 -1
  234. package/packages/table/src/body.ts +24 -23
  235. package/packages/table/src/cell.ts +3 -3
  236. package/packages/table/src/column.ts +3 -1
  237. package/packages/table/src/columnInfo.ts +5 -3
  238. package/packages/table/src/emits.ts +5 -1
  239. package/packages/table/src/props.ts +5 -2
  240. package/packages/table/src/table.ts +61 -60
  241. package/packages/table/src/util.ts +5 -3
  242. package/packages/textarea/index.ts +2 -1
  243. package/packages/toolbar/index.ts +2 -1
  244. package/packages/toolbar/src/toolbar.ts +2 -1
  245. package/packages/tools/log.ts +16 -0
  246. package/packages/tools/utils.ts +0 -15
  247. package/packages/tooltip/index.ts +2 -1
  248. package/packages/tooltip/src/tooltip.ts +48 -28
  249. package/packages/v-x-e-table/index.ts +1 -0
  250. package/packages/v-x-e-table/src/conf.ts +14 -7
  251. package/packages/v-x-e-table/src/interceptor.ts +1 -1
  252. package/packages/v-x-e-table/src/renderer.ts +2 -1
  253. package/packages/v-x-e-table/src/store.ts +1 -1
  254. package/styles/select.scss +1 -1
  255. package/styles/tooltip.scss +1 -1
  256. package/types/all.d.ts +2 -2
  257. package/types/button.d.ts +54 -54
  258. package/types/checkbox-group.d.ts +21 -21
  259. package/types/checkbox.d.ts +30 -30
  260. package/types/colgroup.d.ts +16 -16
  261. package/types/column.d.ts +172 -161
  262. package/types/component.d.ts +9 -9
  263. package/types/edit.d.ts +35 -35
  264. package/types/export.d.ts +101 -101
  265. package/types/filter.d.ts +19 -19
  266. package/types/footer.d.ts +1 -1
  267. package/types/form-gather.d.ts +3 -3
  268. package/types/form-item.d.ts +68 -66
  269. package/types/form.d.ts +131 -132
  270. package/types/grid.d.ts +257 -257
  271. package/types/header.d.ts +1 -1
  272. package/types/icon.d.ts +1 -1
  273. package/types/input.d.ts +162 -162
  274. package/types/keyboard.d.ts +6 -6
  275. package/types/list.d.ts +54 -54
  276. package/types/menu.d.ts +33 -33
  277. package/types/modal.d.ts +160 -160
  278. package/types/optgroup.d.ts +5 -5
  279. package/types/option.d.ts +19 -19
  280. package/types/pager.d.ts +62 -62
  281. package/types/plugins/pro.d.ts +245 -215
  282. package/types/pulldown.d.ts +36 -36
  283. package/types/radio-button.d.ts +25 -25
  284. package/types/radio-group.d.ts +20 -20
  285. package/types/radio.d.ts +27 -27
  286. package/types/select.d.ts +98 -82
  287. package/types/switch.d.ts +40 -40
  288. package/types/table.d.ts +1412 -1333
  289. package/types/textarea.d.ts +71 -71
  290. package/types/toolbar.d.ts +65 -65
  291. package/types/tooltip.d.ts +50 -48
  292. package/types/v-x-e-table/commands.d.ts +12 -12
  293. package/types/v-x-e-table/formats.d.ts +10 -10
  294. package/types/v-x-e-table/hooks.d.ts +9 -9
  295. package/types/v-x-e-table/index.d.ts +51 -43
  296. package/types/v-x-e-table/interceptor.d.ts +26 -26
  297. package/types/v-x-e-table/menus.d.ts +13 -13
  298. package/types/v-x-e-table/renderer.d.ts +128 -128
  299. package/types/v-x-e-table/setup.d.ts +55 -55
  300. package/types/validator.d.ts +28 -28
package/types/header.d.ts CHANGED
@@ -3,4 +3,4 @@ import { VXEComponent } from './component'
3
3
  /**
4
4
  * 表格扩展 - 表头
5
5
  */
6
- export const Header: VXEComponent<{}>;
6
+ export const Header: VXEComponent<{}>
package/types/icon.d.ts CHANGED
@@ -3,4 +3,4 @@ import { VXEComponent } from './component'
3
3
  /**
4
4
  * 组件 - 类图标库
5
5
  */
6
- export const Icon: VXEComponent<{}>;
6
+ export const Icon: VXEComponent<{}>
package/types/input.d.ts CHANGED
@@ -5,141 +5,141 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, VNodeStyle, ValueOf
5
5
  * 组件 - 输入框
6
6
  * @example import { Input as VxeInput } from 'vxe-table'
7
7
  */
8
- export const Input: VXEComponent<VxeInputProps, VxeInputEventProps>;
8
+ export const Input: VXEComponent<VxeInputProps, VxeInputEventProps>
9
9
 
10
- export type VxeInputInstance = ComponentPublicInstance<VxeInputProps, VxeInputConstructor>;
10
+ export type VxeInputInstance = ComponentPublicInstance<VxeInputProps, VxeInputConstructor>
11
11
 
12
12
  export interface VxeInputConstructor extends VxeComponentBase, VxeInputMethods {
13
- props: VxeInputProps;
14
- context: SetupContext<VxeInputEmits>;
15
- reactData: InputReactData;
16
- getRefMaps(): InputPrivateRef;
17
- renderVN: RenderFunction;
13
+ props: VxeInputProps
14
+ context: SetupContext<VxeInputEmits>
15
+ reactData: InputReactData
16
+ getRefMaps(): InputPrivateRef
17
+ renderVN: RenderFunction
18
18
  }
19
19
 
20
20
  export interface InputPrivateRef {
21
- refElem: Ref<HTMLDivElement>;
22
- refInput: Ref<HTMLInputElement>;
21
+ refElem: Ref<HTMLDivElement>
22
+ refInput: Ref<HTMLInputElement>
23
23
  }
24
24
  export interface VxeInputPrivateRef extends InputPrivateRef { }
25
25
 
26
- type DatePanelType = 'year' | 'quarter' | 'month' | 'week' | 'day';
26
+ type DatePanelType = 'year' | 'quarter' | 'month' | 'week' | 'day'
27
27
 
28
28
  export interface InputReactData {
29
- inited: boolean;
30
- panelIndex: number;
31
- showPwd: boolean;
32
- visiblePanel: boolean;
33
- animatVisible: boolean;
34
- panelStyle: VNodeStyle | null;
35
- panelPlacement: VxeInputPropTypes.Placement;
36
- isActivated: boolean;
37
- inputValue: any;
38
- datetimePanelValue: any;
39
- datePanelValue: Date | null;
40
- datePanelLabel: string;
41
- datePanelType: DatePanelType;
42
- selectMonth: any;
43
- currentDate: any;
29
+ inited: boolean
30
+ panelIndex: number
31
+ showPwd: boolean
32
+ visiblePanel: boolean
33
+ animatVisible: boolean
34
+ panelStyle: VNodeStyle | null
35
+ panelPlacement: VxeInputPropTypes.Placement
36
+ isActivated: boolean
37
+ inputValue: any
38
+ datetimePanelValue: any
39
+ datePanelValue: Date | null
40
+ datePanelLabel: string
41
+ datePanelType: DatePanelType
42
+ selectMonth: any
43
+ currentDate: any
44
44
  }
45
45
 
46
46
  export namespace VxeInputPropTypes {
47
- export type Size = SizeType;
48
- export type ModelValue = string | number | Date | null;
49
- export type ClassName = string;
50
- export type Immediate = boolean;
51
- export type Name = string;
52
- export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year';
53
- export type Clearable = boolean;
54
- export type Readonly = boolean;
55
- export type Disabled = boolean;
56
- export type Placeholder = string;
57
- export type Maxlength = string | number;
58
- export type Autocomplete = string;
59
- export type Align = string;
60
- export type Form = string;
61
- export type Min = string | number;
62
- export type Max = string | number;
63
- export type Step = string | number;
64
- export type Exponential = boolean;
65
- export type Controls = boolean;
66
- export type Digits = string | number;
67
- export type MinDate = string | number | Date;
68
- export type MaxDate = string | number | Date;
69
- export type StartDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
70
- export type SelectDay = 0 | 1 | 2 | 3 | 4 | 5 | 6;
71
- export type LabelFormat = string;
72
- export type ValueFormat = string;
73
- export type Editable = boolean;
74
- export type FestivalMethod = (params: VxeInputDefines.DateFestivalParams) => VxeInputDefines.DateFestivalInfo | null | void;
75
- export type DisabledMethod = (params: VxeInputDefines.DateDisabledParams) => boolean;
76
- export type PrefixIcon = string;
77
- export type SuffixIcon = string;
78
- export type Placement = 'top' | 'bottom' | '' | null;
79
- export type Transfer = boolean;
47
+ export type Size = SizeType
48
+ export type ModelValue = string | number | Date | null
49
+ export type ClassName = string
50
+ export type Immediate = boolean
51
+ export type Name = string
52
+ export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
53
+ export type Clearable = boolean
54
+ export type Readonly = boolean
55
+ export type Disabled = boolean
56
+ export type Placeholder = string
57
+ export type Maxlength = string | number
58
+ export type Autocomplete = string
59
+ export type Align = string
60
+ export type Form = string
61
+ export type Min = string | number
62
+ export type Max = string | number
63
+ export type Step = string | number
64
+ export type Exponential = boolean
65
+ export type Controls = boolean
66
+ export type Digits = string | number
67
+ export type MinDate = string | number | Date
68
+ export type MaxDate = string | number | Date
69
+ export type StartDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
70
+ export type SelectDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
71
+ export type LabelFormat = string
72
+ export type ValueFormat = string
73
+ export type Editable = boolean
74
+ export type FestivalMethod = (params: VxeInputDefines.DateFestivalParams) => VxeInputDefines.DateFestivalInfo | null | void
75
+ export type DisabledMethod = (params: VxeInputDefines.DateDisabledParams) => boolean
76
+ export type PrefixIcon = string
77
+ export type SuffixIcon = string
78
+ export type Placement = 'top' | 'bottom' | '' | null
79
+ export type Transfer = boolean
80
80
  }
81
81
 
82
82
  export type VxeInputProps = {
83
- size?: VxeInputPropTypes.Size;
84
- modelValue?: VxeInputPropTypes.ModelValue;
85
- className?: VxeInputPropTypes.ClassName;
86
- immediate?: VxeInputPropTypes.Immediate;
87
- name?: VxeInputPropTypes.Name;
88
- type?: VxeInputPropTypes.Type;
89
- clearable?: VxeInputPropTypes.Clearable;
90
- readonly?: VxeInputPropTypes.Readonly;
91
- disabled?: VxeInputPropTypes.Disabled;
92
- placeholder?: VxeInputPropTypes.Placeholder;
93
- maxlength?: VxeInputPropTypes.Maxlength;
94
- autocomplete?: VxeInputPropTypes.Autocomplete;
95
- align?: VxeInputPropTypes.Align;
96
- form?: VxeInputPropTypes.Form;
83
+ size?: VxeInputPropTypes.Size
84
+ modelValue?: VxeInputPropTypes.ModelValue
85
+ className?: VxeInputPropTypes.ClassName
86
+ immediate?: VxeInputPropTypes.Immediate
87
+ name?: VxeInputPropTypes.Name
88
+ type?: VxeInputPropTypes.Type
89
+ clearable?: VxeInputPropTypes.Clearable
90
+ readonly?: VxeInputPropTypes.Readonly
91
+ disabled?: VxeInputPropTypes.Disabled
92
+ placeholder?: VxeInputPropTypes.Placeholder
93
+ maxlength?: VxeInputPropTypes.Maxlength
94
+ autocomplete?: VxeInputPropTypes.Autocomplete
95
+ align?: VxeInputPropTypes.Align
96
+ form?: VxeInputPropTypes.Form
97
97
 
98
98
  // number、integer、float
99
- min?: VxeInputPropTypes.Min;
100
- max?: VxeInputPropTypes.Max;
101
- step?: VxeInputPropTypes.Step;
102
- exponential?: VxeInputPropTypes.Exponential;
99
+ min?: VxeInputPropTypes.Min
100
+ max?: VxeInputPropTypes.Max
101
+ step?: VxeInputPropTypes.Step
102
+ exponential?: VxeInputPropTypes.Exponential
103
103
 
104
104
  // number、integer、float、password
105
- controls?: VxeInputPropTypes.Controls;
105
+ controls?: VxeInputPropTypes.Controls
106
106
 
107
107
  // float
108
- digits?: VxeInputPropTypes.Digits;
108
+ digits?: VxeInputPropTypes.Digits
109
109
 
110
110
  // date、week、month、quarter、year
111
- minDate?: VxeInputPropTypes.MinDate;
112
- maxDate?: VxeInputPropTypes.MaxDate;
111
+ minDate?: VxeInputPropTypes.MinDate
112
+ maxDate?: VxeInputPropTypes.MaxDate
113
113
  /**
114
114
  * @deprecated
115
115
  */
116
- startWeek?: VxeInputPropTypes.StartDay;
117
- startDay?: VxeInputPropTypes.StartDay;
118
- labelFormat?: VxeInputPropTypes.LabelFormat;
119
- valueFormat?: VxeInputPropTypes.ValueFormat;
120
- editable?: VxeInputPropTypes.Editable;
121
- festivalMethod?: VxeInputPropTypes.FestivalMethod;
122
- disabledMethod?: VxeInputPropTypes.DisabledMethod;
116
+ startWeek?: VxeInputPropTypes.StartDay
117
+ startDay?: VxeInputPropTypes.StartDay
118
+ labelFormat?: VxeInputPropTypes.LabelFormat
119
+ valueFormat?: VxeInputPropTypes.ValueFormat
120
+ editable?: VxeInputPropTypes.Editable
121
+ festivalMethod?: VxeInputPropTypes.FestivalMethod
122
+ disabledMethod?: VxeInputPropTypes.DisabledMethod
123
123
 
124
124
  // week
125
- selectDay?: VxeInputPropTypes.SelectDay;
125
+ selectDay?: VxeInputPropTypes.SelectDay
126
126
 
127
- prefixIcon?: VxeInputPropTypes.PrefixIcon;
128
- suffixIcon?: VxeInputPropTypes.SuffixIcon;
129
- placement?: VxeInputPropTypes.Placement;
130
- transfer?: VxeInputPropTypes.Transfer;
127
+ prefixIcon?: VxeInputPropTypes.PrefixIcon
128
+ suffixIcon?: VxeInputPropTypes.SuffixIcon
129
+ placement?: VxeInputPropTypes.Placement
130
+ transfer?: VxeInputPropTypes.Transfer
131
131
  }
132
132
 
133
133
  export interface InputMethods {
134
- dispatchEvent: (type: ValueOf<VxeInputEmits>, params: any, evnt?: Event | { type: string }) => void;
134
+ dispatchEvent: (type: ValueOf<VxeInputEmits>, params: any, evnt?: Event | { type: string }) => void
135
135
  /**
136
136
  * 获取焦点
137
137
  */
138
- focus(): Promise<any>;
138
+ focus(): Promise<any>
139
139
  /**
140
140
  * 失去焦点
141
141
  */
142
- blur(): Promise<any>;
142
+ blur(): Promise<any>
143
143
  }
144
144
  export interface VxeInputMethods extends InputMethods { }
145
145
 
@@ -174,13 +174,13 @@ export namespace VxeInputDefines {
174
174
  /**
175
175
  * 显示名称
176
176
  */
177
- label?: string;
177
+ label?: string
178
178
  /**
179
179
  * 标记为重要信息
180
180
  */
181
- important?: boolean;
182
- className?: string;
183
- style?: VNodeStyle;
181
+ important?: boolean
182
+ className?: string
183
+ style?: VNodeStyle
184
184
  }
185
185
 
186
186
  /**
@@ -190,34 +190,34 @@ export namespace VxeInputDefines {
190
190
  /**
191
191
  * 显示左上角小圆点通知
192
192
  */
193
- notice?: boolean;
193
+ notice?: boolean
194
194
  /**
195
195
  * 显示右上角信息
196
196
  */
197
- extra?: string | DateFestivalItem;
197
+ extra?: string | DateFestivalItem
198
198
  }
199
199
 
200
200
  export interface DateFestivalParams {
201
- $input: VxeInputConstructor;
202
- type: string;
203
- viewType: DatePanelType;
204
- date: Date;
201
+ $input: VxeInputConstructor
202
+ type: string
203
+ viewType: DatePanelType
204
+ date: Date
205
205
  }
206
206
 
207
207
  export interface DateDisabledParams {
208
- $input: VxeInputConstructor;
209
- type: string;
210
- viewType: DatePanelType;
211
- date: Date;
208
+ $input: VxeInputConstructor
209
+ type: string
210
+ viewType: DatePanelType
211
+ date: Date
212
212
  }
213
213
 
214
214
  interface InputKeyboardEventParams {
215
- $input: VxeInputConstructor;
215
+ $input: VxeInputConstructor
216
216
  $event: KeyboardEvent
217
217
  }
218
218
 
219
219
  export interface InputParams {
220
- value: string;
220
+ value: string
221
221
  }
222
222
  export interface InputEventParams extends InputKeyboardEventParams, InputParams { }
223
223
 
@@ -271,61 +271,61 @@ export namespace VxeInputDefines {
271
271
  }
272
272
 
273
273
  export type VxeInputEventProps = {
274
- onInput?: VxeInputEvents.Input;
275
- onChange?: VxeInputEvents.Change;
276
- onKeydown?: VxeInputEvents.Keydown;
277
- onKeyup?: VxeInputEvents.Keyup;
278
- onClick?: VxeInputEvents.Click;
279
- onFocus?: VxeInputEvents.Focus;
280
- onBlur?: VxeInputEvents.Blur;
281
- onClear?: VxeInputEvents.Clear;
282
- onSearchClick?: VxeInputEvents.SearchClick;
283
- onToggleVisible?: VxeInputEvents.ToggleVisible;
284
- onPrevNumber?: VxeInputEvents.PrevNumber;
285
- onNextNumber?: VxeInputEvents.NextNumber;
286
- onPrefixClick?: VxeInputEvents.PrefixClick;
287
- onSuffixClick?: VxeInputEvents.SuffixClick;
288
- onDatePrev?: VxeInputEvents.DatePrev;
289
- onDateToday?: VxeInputEvents.DateToday;
290
- onDateNext?: VxeInputEvents.DateNext;
274
+ onInput?: VxeInputEvents.Input
275
+ onChange?: VxeInputEvents.Change
276
+ onKeydown?: VxeInputEvents.Keydown
277
+ onKeyup?: VxeInputEvents.Keyup
278
+ onClick?: VxeInputEvents.Click
279
+ onFocus?: VxeInputEvents.Focus
280
+ onBlur?: VxeInputEvents.Blur
281
+ onClear?: VxeInputEvents.Clear
282
+ onSearchClick?: VxeInputEvents.SearchClick
283
+ onToggleVisible?: VxeInputEvents.ToggleVisible
284
+ onPrevNumber?: VxeInputEvents.PrevNumber
285
+ onNextNumber?: VxeInputEvents.NextNumber
286
+ onPrefixClick?: VxeInputEvents.PrefixClick
287
+ onSuffixClick?: VxeInputEvents.SuffixClick
288
+ onDatePrev?: VxeInputEvents.DatePrev
289
+ onDateToday?: VxeInputEvents.DateToday
290
+ onDateNext?: VxeInputEvents.DateNext
291
291
  }
292
292
 
293
293
  export interface VxeInputListeners {
294
- input?: VxeInputEvents.Input;
295
- change?: VxeInputEvents.Change;
296
- keydown?: VxeInputEvents.Keydown;
297
- keyup?: VxeInputEvents.Keyup;
298
- click?: VxeInputEvents.Click;
299
- focus?: VxeInputEvents.Focus;
300
- blur?: VxeInputEvents.Blur;
301
- clear?: VxeInputEvents.Clear;
302
- searchClick?: VxeInputEvents.SearchClick;
303
- toggleVisible?: VxeInputEvents.ToggleVisible;
304
- prevNumber?: VxeInputEvents.PrevNumber;
305
- nextNumber?: VxeInputEvents.NextNumber;
306
- prefixClick?: VxeInputEvents.PrefixClick;
307
- suffixClick?: VxeInputEvents.SuffixClick;
308
- datePrev?: VxeInputEvents.DatePrev;
309
- dateToday?: VxeInputEvents.DateToday;
310
- dateNext?: VxeInputEvents.DateNext;
294
+ input?: VxeInputEvents.Input
295
+ change?: VxeInputEvents.Change
296
+ keydown?: VxeInputEvents.Keydown
297
+ keyup?: VxeInputEvents.Keyup
298
+ click?: VxeInputEvents.Click
299
+ focus?: VxeInputEvents.Focus
300
+ blur?: VxeInputEvents.Blur
301
+ clear?: VxeInputEvents.Clear
302
+ searchClick?: VxeInputEvents.SearchClick
303
+ toggleVisible?: VxeInputEvents.ToggleVisible
304
+ prevNumber?: VxeInputEvents.PrevNumber
305
+ nextNumber?: VxeInputEvents.NextNumber
306
+ prefixClick?: VxeInputEvents.PrefixClick
307
+ suffixClick?: VxeInputEvents.SuffixClick
308
+ datePrev?: VxeInputEvents.DatePrev
309
+ dateToday?: VxeInputEvents.DateToday
310
+ dateNext?: VxeInputEvents.DateNext
311
311
  }
312
312
 
313
313
  export namespace VxeInputEvents {
314
- export type Input = (params: VxeInputDefines.InputEventParams) => void;
315
- export type Change = (params: VxeInputDefines.ChangeEventParams) => void;
316
- export type Keydown = (params: VxeInputDefines.KeydownEventParams) => void;
317
- export type Keyup = (params: VxeInputDefines.KeyupEventParams) => void;
318
- export type Click = (params: VxeInputDefines.ClickEventParams) => void;
319
- export type Focus = (params: VxeInputDefines.FocusEventParams) => void;
320
- export type Blur = (params: VxeInputDefines.BlurEventParams) => void;
321
- export type Clear = (params: VxeInputDefines.ClearEventParams) => void;
322
- export type SearchClick = (params: VxeInputDefines.SearchClickEventParams) => void;
323
- export type ToggleVisible = (params: VxeInputDefines.ToggleVisibleEventParams) => void;
324
- export type PrevNumber = (params: VxeInputDefines.PrevNumberEventParams) => void;
325
- export type NextNumber = (params: VxeInputDefines.NextNumberEventParams) => void;
326
- export type PrefixClick = (params: VxeInputDefines.PrefixClickEventParams) => void;
327
- export type SuffixClick = (params: VxeInputDefines.SuffixClickEventParams) => void;
328
- export type DatePrev = (params: VxeInputDefines.DatePrevEventParams) => void;
329
- export type DateToday = (params: VxeInputDefines.DateTodayEventParams) => void;
330
- export type DateNext = (params: VxeInputDefines.DateNextEventParams) => void;
314
+ export type Input = (params: VxeInputDefines.InputEventParams) => void
315
+ export type Change = (params: VxeInputDefines.ChangeEventParams) => void
316
+ export type Keydown = (params: VxeInputDefines.KeydownEventParams) => void
317
+ export type Keyup = (params: VxeInputDefines.KeyupEventParams) => void
318
+ export type Click = (params: VxeInputDefines.ClickEventParams) => void
319
+ export type Focus = (params: VxeInputDefines.FocusEventParams) => void
320
+ export type Blur = (params: VxeInputDefines.BlurEventParams) => void
321
+ export type Clear = (params: VxeInputDefines.ClearEventParams) => void
322
+ export type SearchClick = (params: VxeInputDefines.SearchClickEventParams) => void
323
+ export type ToggleVisible = (params: VxeInputDefines.ToggleVisibleEventParams) => void
324
+ export type PrevNumber = (params: VxeInputDefines.PrevNumberEventParams) => void
325
+ export type NextNumber = (params: VxeInputDefines.NextNumberEventParams) => void
326
+ export type PrefixClick = (params: VxeInputDefines.PrefixClickEventParams) => void
327
+ export type SuffixClick = (params: VxeInputDefines.SuffixClickEventParams) => void
328
+ export type DatePrev = (params: VxeInputDefines.DatePrevEventParams) => void
329
+ export type DateToday = (params: VxeInputDefines.DateTodayEventParams) => void
330
+ export type DateNext = (params: VxeInputDefines.DateNextEventParams) => void
331
331
  }
@@ -4,16 +4,16 @@ import { VxeTableMethods, VxeTablePrivateMethods } from './table'
4
4
  /**
5
5
  * 表格扩展 - 键盘导航
6
6
  */
7
- export const Keyboard: VXEComponent<{}>;
7
+ export const Keyboard: VXEComponent<{}>
8
8
 
9
9
  export interface TableKeyboardMethods {}
10
10
 
11
11
  export interface TableKeyboardPrivateMethods {
12
- moveTabSelected(args: any, isLeft: any, evnt: any): void;
13
- moveCurrentRow(isUpArrow: any, isDwArrow: any, evnt: any): void;
14
- moveSelected(args: any, isLeftArrow: any, isUpArrow: any, isRightArrow: any, isDwArrow: any, evnt: any): void;
15
- triggerHeaderCellMousedownEvent(evnt: any, params: any): void;
16
- triggerCellMousedownEvent(evnt: any, params: any): void;
12
+ moveTabSelected(args: any, isLeft: any, evnt: any): void
13
+ moveCurrentRow(isUpArrow: any, isDwArrow: any, evnt: any): void
14
+ moveSelected(args: any, isLeftArrow: any, isUpArrow: any, isRightArrow: any, isDwArrow: any, evnt: any): void
15
+ triggerHeaderCellMousedownEvent(evnt: any, params: any): void
16
+ triggerCellMousedownEvent(evnt: any, params: any): void
17
17
  }
18
18
 
19
19
  declare module './grid' {
package/types/list.d.ts CHANGED
@@ -5,80 +5,80 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf } from './c
5
5
  * 组件 - 虚拟列表
6
6
  * @example import { List as VxeList } from 'vxe-table'
7
7
  */
8
- export const List: VXEComponent<VxeListProps, VxeListEventProps>;
8
+ export const List: VXEComponent<VxeListProps, VxeListEventProps>
9
9
 
10
- export type VxeListInstance = ComponentPublicInstance<VxeListProps, VxeListConstructor>;
10
+ export type VxeListInstance = ComponentPublicInstance<VxeListProps, VxeListConstructor>
11
11
 
12
12
  export interface VxeListConstructor extends VxeComponentBase, VxeListMethods {
13
- props: VxeListProps;
14
- context: SetupContext<VxeListEmits>;
15
- reactData: ListReactData;
16
- internalData: ListInternalData;
17
- getRefMaps(): ListPrivateRef;
18
- renderVN: RenderFunction;
13
+ props: VxeListProps
14
+ context: SetupContext<VxeListEmits>
15
+ reactData: ListReactData
16
+ internalData: ListInternalData
17
+ getRefMaps(): ListPrivateRef
18
+ renderVN: RenderFunction
19
19
  }
20
20
 
21
21
  export interface ListPrivateRef {
22
- refElem: Ref<HTMLDivElement>;
22
+ refElem: Ref<HTMLDivElement>
23
23
  }
24
24
  export interface VxeListPrivateRef extends ListPrivateRef { }
25
25
 
26
26
  export interface ListReactData {
27
- scrollYLoad: boolean;
28
- bodyHeight: number;
29
- rowHeight: number;
30
- topSpaceHeight: number;
31
- items: any[];
27
+ scrollYLoad: boolean
28
+ bodyHeight: number
29
+ rowHeight: number
30
+ topSpaceHeight: number
31
+ items: any[]
32
32
  }
33
33
 
34
34
  export interface ListInternalData {
35
- fullData: any[];
36
- lastScrollLeft: number;
37
- lastScrollTop: number;
35
+ fullData: any[]
36
+ lastScrollLeft: number
37
+ lastScrollTop: number
38
38
  scrollYStore: {
39
- startIndex: number;
40
- endIndex: number;
41
- visibleSize: number;
42
- offsetSize: number;
43
- rowHeight: number;
39
+ startIndex: number
40
+ endIndex: number
41
+ visibleSize: number
42
+ offsetSize: number
43
+ rowHeight: number
44
44
  }
45
45
  }
46
46
 
47
47
  export interface ListMethods {
48
- dispatchEvent(type: ValueOf<VxeListEmits>, params: any, evnt: Event): void;
48
+ dispatchEvent(type: ValueOf<VxeListEmits>, params: any, evnt: Event): void
49
49
  /**
50
50
  * 加载数据
51
51
  * @param data 列表数据
52
52
  */
53
- loadData(data: any[]): Promise<any>;
53
+ loadData(data: any[]): Promise<any>
54
54
 
55
55
  /**
56
56
  * 加载数据
57
57
  * @param data 列表数据
58
58
  */
59
- reloadData(data: any[]): Promise<any>;
59
+ reloadData(data: any[]): Promise<any>
60
60
 
61
61
  /**
62
62
  * 重新计算列表
63
63
  */
64
- recalculate(): Promise<any>;
64
+ recalculate(): Promise<any>
65
65
 
66
66
  /**
67
67
  * 如果有滚动条,则滚动到对应的位置
68
68
  * @param scrollLeft 左边距离
69
69
  * @param scrollTop 顶部距离
70
70
  */
71
- scrollTo(scrollLeft: number | null, scrollTop?: number | null): Promise<any>;
71
+ scrollTo(scrollLeft: number | null, scrollTop?: number | null): Promise<any>
72
72
 
73
73
  /**
74
74
  * 刷新滚动操作,手动同步滚动相关位置
75
75
  */
76
- refreshScroll(): Promise<any>;
76
+ refreshScroll(): Promise<any>
77
77
 
78
78
  /**
79
79
  * 手动清除滚动相关信息,还原到初始状态
80
80
  */
81
- clearScroll(): Promise<any>;
81
+ clearScroll(): Promise<any>
82
82
  }
83
83
  export interface VxeListMethods extends ListMethods { }
84
84
 
@@ -86,44 +86,44 @@ export interface ListPrivateMethods { }
86
86
  export interface VxeListPrivateMethods extends ListPrivateMethods { }
87
87
 
88
88
  export namespace VxeListPropTypes {
89
- export type Size = SizeType;
90
- export type Data = any[];
91
- export type Height = number | string;
92
- export type MaxHeight = number | string;
93
- export type Loading = boolean;
94
- export type AutoResize = boolean;
95
- export type ClassName = string | ((params: { $list: VxeListConstructor }) => string);
96
- export type SyncResize = boolean | string | number;
89
+ export type Size = SizeType
90
+ export type Data = any[]
91
+ export type Height = number | string
92
+ export type MaxHeight = number | string
93
+ export type Loading = boolean
94
+ export type AutoResize = boolean
95
+ export type ClassName = string | ((params: { $list: VxeListConstructor }) => string)
96
+ export type SyncResize = boolean | string | number
97
97
  export interface ScrollY {
98
98
  /**
99
99
  * 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用,如果为 -1 则关闭
100
100
  */
101
- gt?: number;
101
+ gt?: number
102
102
  /**
103
103
  * 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久
104
104
  */
105
- oSize?: number;
105
+ oSize?: number
106
106
  /**
107
107
  * 指定列表项的 className
108
108
  */
109
- sItem?: string;
109
+ sItem?: string
110
110
  /**
111
111
  * 是否启用
112
112
  */
113
- enabled?: boolean;
113
+ enabled?: boolean
114
114
  }
115
115
  }
116
116
 
117
117
  export type VxeListProps<D = any> = {
118
- size?: VxeListPropTypes.Size;
119
- data?: D[];
120
- height?: VxeListPropTypes.Height;
121
- maxHeight?: VxeListPropTypes.MaxHeight;
122
- loading?: VxeListPropTypes.Loading;
123
- autoResize?: VxeListPropTypes.AutoResize;
124
- syncResize?: VxeListPropTypes.SyncResize;
125
- className?: VxeListPropTypes.ClassName;
126
- scrollY?: VxeListPropTypes.ScrollY;
118
+ size?: VxeListPropTypes.Size
119
+ data?: D[]
120
+ height?: VxeListPropTypes.Height
121
+ maxHeight?: VxeListPropTypes.MaxHeight
122
+ loading?: VxeListPropTypes.Loading
123
+ autoResize?: VxeListPropTypes.AutoResize
124
+ syncResize?: VxeListPropTypes.SyncResize
125
+ className?: VxeListPropTypes.ClassName
126
+ scrollY?: VxeListPropTypes.ScrollY
127
127
  }
128
128
 
129
129
  export type VxeListEmits = [
@@ -132,7 +132,7 @@ export type VxeListEmits = [
132
132
 
133
133
  export namespace VxeListDefines {
134
134
  interface ListEventParams extends VxeEvent {
135
- $list: VxeListConstructor;
135
+ $list: VxeListConstructor
136
136
  }
137
137
 
138
138
  export interface ScrollParams { }
@@ -140,13 +140,13 @@ export namespace VxeListDefines {
140
140
  }
141
141
 
142
142
  export type VxeListEventProps = {
143
- onScroll?: VxeListEvents.Scroll;
143
+ onScroll?: VxeListEvents.Scroll
144
144
  }
145
145
 
146
146
  export interface VxeListListeners {
147
- scroll?: VxeListEvents.Scroll;
147
+ scroll?: VxeListEvents.Scroll
148
148
  }
149
149
 
150
150
  export namespace VxeListEvents {
151
- export type Scroll = (params: VxeListDefines.ScrollEventParams) => void;
151
+ export type Scroll = (params: VxeListDefines.ScrollEventParams) => void
152
152
  }