vxe-table 4.1.20 → 4.2.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (324) hide show
  1. package/README.en.md +2 -4
  2. package/README.md +2 -3
  3. package/README.zh-TW.md +2 -4
  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/filter/src/hook.js +17 -10
  15. package/es/footer/index.js +1 -1
  16. package/es/footer/src/footer.js +3 -2
  17. package/es/form/index.js +1 -1
  18. package/es/form/src/form-gather.js +3 -3
  19. package/es/form/src/form-item.js +4 -4
  20. package/es/form/src/form.js +36 -43
  21. package/es/form/src/render.js +15 -10
  22. package/es/form/src/util.js +6 -0
  23. package/es/form-gather/index.js +1 -1
  24. package/es/form-item/index.js +1 -1
  25. package/es/grid/index.js +1 -1
  26. package/es/grid/src/grid.js +2 -1
  27. package/es/header/index.js +1 -1
  28. package/es/header/src/header.js +1 -1
  29. package/es/input/index.js +1 -1
  30. package/es/input/src/date.js +41 -0
  31. package/es/input/src/input.js +4 -51
  32. package/es/input/src/number.js +10 -0
  33. package/es/list/index.js +1 -1
  34. package/es/menu/index.js +1 -1
  35. package/es/modal/index.js +1 -1
  36. package/es/modal/src/modal.js +2 -1
  37. package/es/optgroup/index.js +1 -1
  38. package/es/option/index.js +1 -1
  39. package/es/pager/index.js +1 -1
  40. package/es/pager/src/pager.js +13 -2
  41. package/es/pulldown/index.js +1 -1
  42. package/es/radio/index.js +1 -1
  43. package/es/radio-button/index.js +1 -1
  44. package/es/radio-group/index.js +1 -1
  45. package/es/select/index.js +1 -1
  46. package/es/select/style.css +1 -1
  47. package/es/style.css +1 -1
  48. package/es/style.min.css +1 -1
  49. package/es/switch/index.js +1 -1
  50. package/es/table/index.js +1 -1
  51. package/es/table/src/body.js +32 -11
  52. package/es/table/src/cell.js +3 -3
  53. package/es/table/src/column.js +3 -1
  54. package/es/table/src/columnInfo.js +5 -4
  55. package/es/table/src/emits.js +5 -1
  56. package/es/table/src/props.js +5 -2
  57. package/es/table/src/table.js +120 -86
  58. package/es/table/src/util.js +5 -3
  59. package/es/textarea/index.js +1 -1
  60. package/es/toolbar/index.js +1 -1
  61. package/es/toolbar/src/toolbar.js +2 -1
  62. package/es/tools/dom.js +9 -0
  63. package/es/tools/log.js +13 -0
  64. package/es/tools/utils.js +0 -12
  65. package/es/tooltip/index.js +1 -1
  66. package/es/tooltip/src/tooltip.js +85 -45
  67. package/es/tooltip/style.css +1 -1
  68. package/es/v-x-e-table/index.js +1 -0
  69. package/es/v-x-e-table/src/conf.js +12 -7
  70. package/es/v-x-e-table/src/interceptor.js +1 -1
  71. package/es/v-x-e-table/src/renderer.js +2 -1
  72. package/es/v-x-e-table/src/store.js +1 -1
  73. package/helper/vetur/attributes.json +31 -11
  74. package/helper/vetur/tags.json +8 -3
  75. package/lib/button/index.js +3 -2
  76. package/lib/button/index.min.js +1 -1
  77. package/lib/checkbox/index.js +3 -2
  78. package/lib/checkbox/index.min.js +1 -1
  79. package/lib/checkbox-group/index.js +3 -2
  80. package/lib/checkbox-group/index.min.js +1 -1
  81. package/lib/colgroup/index.js +6 -4
  82. package/lib/colgroup/index.min.js +1 -1
  83. package/lib/column/index.js +6 -4
  84. package/lib/column/index.min.js +1 -1
  85. package/lib/edit/src/hook.js +7 -5
  86. package/lib/edit/src/hook.min.js +1 -1
  87. package/lib/export/index.js +5 -4
  88. package/lib/export/index.min.js +1 -1
  89. package/lib/export/src/hook.js +14 -12
  90. package/lib/export/src/hook.min.js +1 -1
  91. package/lib/export/src/util.js +7 -9
  92. package/lib/export/src/util.min.js +1 -1
  93. package/lib/filter/index.js +3 -2
  94. package/lib/filter/index.min.js +1 -1
  95. package/lib/filter/src/hook.js +24 -13
  96. package/lib/filter/src/hook.min.js +1 -1
  97. package/lib/footer/index.js +3 -2
  98. package/lib/footer/index.min.js +1 -1
  99. package/lib/footer/src/footer.js +7 -3
  100. package/lib/footer/src/footer.min.js +1 -1
  101. package/lib/form/index.js +3 -2
  102. package/lib/form/index.min.js +1 -1
  103. package/lib/form/src/form-gather.js +3 -3
  104. package/lib/form/src/form-gather.min.js +1 -1
  105. package/lib/form/src/form-item.js +3 -3
  106. package/lib/form/src/form-item.min.js +1 -1
  107. package/lib/form/src/form.js +45 -58
  108. package/lib/form/src/form.min.js +1 -1
  109. package/lib/form/src/render.js +24 -10
  110. package/lib/form/src/render.min.js +1 -1
  111. package/lib/form/src/util.js +11 -0
  112. package/lib/form/src/util.min.js +1 -1
  113. package/lib/form-gather/index.js +3 -2
  114. package/lib/form-gather/index.min.js +1 -1
  115. package/lib/form-item/index.js +3 -2
  116. package/lib/form-item/index.min.js +1 -1
  117. package/lib/grid/index.js +3 -2
  118. package/lib/grid/index.min.js +1 -1
  119. package/lib/grid/src/grid.js +16 -14
  120. package/lib/grid/src/grid.min.js +1 -1
  121. package/lib/header/index.js +3 -2
  122. package/lib/header/index.min.js +1 -1
  123. package/lib/header/src/header.js +1 -1
  124. package/lib/header/src/header.min.js +1 -1
  125. package/lib/index.umd.js +584 -415
  126. package/lib/index.umd.min.js +1 -2
  127. package/lib/input/index.js +3 -2
  128. package/lib/input/index.min.js +1 -1
  129. package/lib/input/src/date.js +56 -0
  130. package/lib/input/src/date.min.js +1 -0
  131. package/lib/input/src/input.js +13 -67
  132. package/lib/input/src/input.min.js +1 -1
  133. package/lib/input/src/number.js +23 -0
  134. package/lib/input/src/number.min.js +1 -0
  135. package/lib/list/index.js +3 -2
  136. package/lib/list/index.min.js +1 -1
  137. package/lib/menu/index.js +3 -2
  138. package/lib/menu/index.min.js +1 -1
  139. package/lib/modal/index.js +3 -2
  140. package/lib/modal/index.min.js +1 -1
  141. package/lib/modal/src/modal.js +3 -1
  142. package/lib/modal/src/modal.min.js +1 -1
  143. package/lib/optgroup/index.js +3 -2
  144. package/lib/optgroup/index.min.js +1 -1
  145. package/lib/option/index.js +3 -2
  146. package/lib/option/index.min.js +1 -1
  147. package/lib/pager/index.js +3 -2
  148. package/lib/pager/index.min.js +1 -1
  149. package/lib/pager/src/pager.js +15 -1
  150. package/lib/pager/src/pager.min.js +1 -1
  151. package/lib/pulldown/index.js +3 -2
  152. package/lib/pulldown/index.min.js +1 -1
  153. package/lib/radio/index.js +3 -2
  154. package/lib/radio/index.min.js +1 -1
  155. package/lib/radio-button/index.js +3 -2
  156. package/lib/radio-button/index.min.js +1 -1
  157. package/lib/radio-group/index.js +3 -2
  158. package/lib/radio-group/index.min.js +1 -1
  159. package/lib/select/index.js +3 -2
  160. package/lib/select/index.min.js +1 -1
  161. package/lib/select/style/style.css +1 -1
  162. package/lib/select/style/style.min.css +1 -1
  163. package/lib/style.css +1 -1
  164. package/lib/style.min.css +1 -1
  165. package/lib/switch/index.js +3 -2
  166. package/lib/switch/index.min.js +1 -1
  167. package/lib/table/index.js +3 -2
  168. package/lib/table/index.min.js +1 -1
  169. package/lib/table/src/body.js +32 -11
  170. package/lib/table/src/body.min.js +1 -1
  171. package/lib/table/src/cell.js +3 -3
  172. package/lib/table/src/cell.min.js +1 -1
  173. package/lib/table/src/column.js +3 -1
  174. package/lib/table/src/column.min.js +1 -1
  175. package/lib/table/src/columnInfo.js +13 -9
  176. package/lib/table/src/columnInfo.min.js +1 -1
  177. package/lib/table/src/emits.js +1 -1
  178. package/lib/table/src/emits.min.js +1 -1
  179. package/lib/table/src/props.js +5 -2
  180. package/lib/table/src/table.js +187 -148
  181. package/lib/table/src/table.min.js +1 -1
  182. package/lib/table/src/util.js +5 -3
  183. package/lib/table/src/util.min.js +1 -1
  184. package/lib/textarea/index.js +3 -2
  185. package/lib/textarea/index.min.js +1 -1
  186. package/lib/toolbar/index.js +3 -2
  187. package/lib/toolbar/index.min.js +1 -1
  188. package/lib/toolbar/src/toolbar.js +4 -2
  189. package/lib/toolbar/src/toolbar.min.js +1 -1
  190. package/lib/tools/dom.js +12 -1
  191. package/lib/tools/dom.min.js +1 -1
  192. package/lib/tools/log.js +29 -0
  193. package/lib/tools/log.min.js +1 -0
  194. package/lib/tools/utils.js +0 -20
  195. package/lib/tools/utils.min.js +1 -1
  196. package/lib/tooltip/index.js +3 -3
  197. package/lib/tooltip/index.min.js +1 -1
  198. package/lib/tooltip/src/tooltip.js +114 -60
  199. package/lib/tooltip/src/tooltip.min.js +1 -1
  200. package/lib/tooltip/style/style.css +1 -1
  201. package/lib/tooltip/style/style.min.css +1 -1
  202. package/lib/v-x-e-table/index.js +1 -0
  203. package/lib/v-x-e-table/index.min.js +1 -1
  204. package/lib/v-x-e-table/src/conf.js +12 -7
  205. package/lib/v-x-e-table/src/conf.min.js +1 -1
  206. package/lib/v-x-e-table/src/interceptor.js +3 -3
  207. package/lib/v-x-e-table/src/interceptor.min.js +1 -1
  208. package/lib/v-x-e-table/src/renderer.js +3 -1
  209. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  210. package/lib/v-x-e-table/src/store.js +2 -2
  211. package/lib/v-x-e-table/src/store.min.js +1 -1
  212. package/package.json +4 -4
  213. package/packages/button/index.ts +2 -1
  214. package/packages/checkbox/index.ts +2 -1
  215. package/packages/checkbox-group/index.ts +2 -1
  216. package/packages/colgroup/index.ts +4 -2
  217. package/packages/column/index.ts +4 -2
  218. package/packages/edit/src/hook.ts +2 -1
  219. package/packages/export/index.ts +3 -2
  220. package/packages/export/src/hook.ts +2 -1
  221. package/packages/export/src/util.ts +4 -6
  222. package/packages/filter/index.ts +2 -1
  223. package/packages/filter/src/hook.ts +17 -10
  224. package/packages/footer/index.ts +2 -1
  225. package/packages/footer/src/footer.ts +3 -2
  226. package/packages/form/index.ts +2 -1
  227. package/packages/form/src/form-gather.ts +3 -3
  228. package/packages/form/src/form-item.ts +4 -4
  229. package/packages/form/src/form.ts +38 -46
  230. package/packages/form/src/render.ts +8 -6
  231. package/packages/form/src/util.ts +8 -1
  232. package/packages/form-gather/index.ts +2 -1
  233. package/packages/form-item/index.ts +2 -1
  234. package/packages/grid/index.ts +2 -1
  235. package/packages/grid/src/grid.ts +2 -1
  236. package/packages/header/index.ts +2 -1
  237. package/packages/header/src/header.ts +1 -1
  238. package/packages/input/index.ts +2 -1
  239. package/packages/input/src/date.ts +42 -0
  240. package/packages/input/src/input.ts +3 -51
  241. package/packages/input/src/number.ts +12 -0
  242. package/packages/list/index.ts +2 -1
  243. package/packages/menu/index.ts +2 -1
  244. package/packages/modal/index.ts +2 -1
  245. package/packages/modal/src/modal.ts +2 -1
  246. package/packages/optgroup/index.ts +2 -1
  247. package/packages/option/index.ts +2 -1
  248. package/packages/pager/index.ts +2 -1
  249. package/packages/pager/src/pager.ts +17 -3
  250. package/packages/pulldown/index.ts +2 -1
  251. package/packages/radio/index.ts +2 -1
  252. package/packages/radio-button/index.ts +2 -1
  253. package/packages/radio-group/index.ts +2 -1
  254. package/packages/select/index.ts +2 -1
  255. package/packages/switch/index.ts +2 -1
  256. package/packages/table/index.ts +2 -1
  257. package/packages/table/src/body.ts +33 -12
  258. package/packages/table/src/cell.ts +3 -3
  259. package/packages/table/src/column.ts +3 -1
  260. package/packages/table/src/columnInfo.ts +5 -3
  261. package/packages/table/src/emits.ts +5 -1
  262. package/packages/table/src/props.ts +5 -2
  263. package/packages/table/src/table.ts +120 -84
  264. package/packages/table/src/util.ts +5 -3
  265. package/packages/textarea/index.ts +2 -1
  266. package/packages/toolbar/index.ts +2 -1
  267. package/packages/toolbar/src/toolbar.ts +2 -1
  268. package/packages/tools/dom.ts +11 -0
  269. package/packages/tools/log.ts +16 -0
  270. package/packages/tools/utils.ts +0 -15
  271. package/packages/tooltip/index.ts +2 -1
  272. package/packages/tooltip/src/tooltip.ts +87 -46
  273. package/packages/v-x-e-table/index.ts +1 -0
  274. package/packages/v-x-e-table/src/conf.ts +12 -7
  275. package/packages/v-x-e-table/src/interceptor.ts +1 -1
  276. package/packages/v-x-e-table/src/renderer.ts +2 -1
  277. package/packages/v-x-e-table/src/store.ts +1 -1
  278. package/styles/select.scss +1 -1
  279. package/styles/tooltip.scss +1 -1
  280. package/types/all.d.ts +2 -2
  281. package/types/button.d.ts +54 -54
  282. package/types/checkbox-group.d.ts +21 -21
  283. package/types/checkbox.d.ts +30 -30
  284. package/types/colgroup.d.ts +16 -16
  285. package/types/column.d.ts +172 -161
  286. package/types/component.d.ts +9 -9
  287. package/types/edit.d.ts +35 -35
  288. package/types/export.d.ts +101 -101
  289. package/types/filter.d.ts +19 -19
  290. package/types/footer.d.ts +1 -1
  291. package/types/form-gather.d.ts +3 -3
  292. package/types/form-item.d.ts +68 -66
  293. package/types/form.d.ts +136 -131
  294. package/types/grid.d.ts +257 -257
  295. package/types/header.d.ts +1 -1
  296. package/types/icon.d.ts +1 -1
  297. package/types/input.d.ts +162 -162
  298. package/types/keyboard.d.ts +6 -6
  299. package/types/list.d.ts +54 -54
  300. package/types/menu.d.ts +33 -33
  301. package/types/modal.d.ts +160 -160
  302. package/types/optgroup.d.ts +5 -5
  303. package/types/option.d.ts +19 -19
  304. package/types/pager.d.ts +65 -61
  305. package/types/plugins/pro.d.ts +245 -215
  306. package/types/pulldown.d.ts +36 -36
  307. package/types/radio-button.d.ts +25 -25
  308. package/types/radio-group.d.ts +20 -20
  309. package/types/radio.d.ts +27 -27
  310. package/types/select.d.ts +82 -82
  311. package/types/switch.d.ts +40 -40
  312. package/types/table.d.ts +1422 -1336
  313. package/types/textarea.d.ts +71 -71
  314. package/types/toolbar.d.ts +65 -65
  315. package/types/tooltip.d.ts +50 -44
  316. package/types/v-x-e-table/commands.d.ts +12 -12
  317. package/types/v-x-e-table/formats.d.ts +10 -10
  318. package/types/v-x-e-table/hooks.d.ts +9 -9
  319. package/types/v-x-e-table/index.d.ts +51 -43
  320. package/types/v-x-e-table/interceptor.d.ts +26 -26
  321. package/types/v-x-e-table/menus.d.ts +13 -13
  322. package/types/v-x-e-table/renderer.d.ts +128 -128
  323. package/types/v-x-e-table/setup.d.ts +55 -55
  324. package/types/validator.d.ts +28 -28
@@ -5,18 +5,18 @@ import { VxeGridConstructor, VxeGridPrivateMethods } from '../grid'
5
5
  export namespace VxeGlobalHooksHandles {
6
6
  export type Name = 'VxeGrid' | 'VxeTable'
7
7
  export interface HookOptions {
8
- setupTable?($table: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods): void | { [key: string]: any };
9
- setupGrid?($grid: VxeGridConstructor & VxeGridPrivateMethods): void | { [key: string]: any };
8
+ setupTable?($table: VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods): void | { [key: string]: any }
9
+ setupGrid?($grid: VxeGridConstructor & VxeGridPrivateMethods): void | { [key: string]: any }
10
10
  }
11
11
  }
12
12
 
13
13
  export interface VxeGlobalHooks {
14
14
  mixin(options: {
15
- [type: string]: VxeGlobalHooksHandles.HookOptions;
16
- }): VxeGlobalHooks;
17
- has(type: string): boolean;
18
- get(type: string): VxeGlobalHooksHandles.HookOptions;
19
- add(type: string, options: VxeGlobalHooksHandles.HookOptions): VxeGlobalHooks;
20
- delete(type: string): void;
21
- forEach(callback: (options: VxeGlobalHooksHandles.HookOptions, type: string) => void): void;
15
+ [type: string]: VxeGlobalHooksHandles.HookOptions
16
+ }): VxeGlobalHooks
17
+ has(type: string): boolean
18
+ get(type: string): VxeGlobalHooksHandles.HookOptions
19
+ add(type: string, options: VxeGlobalHooksHandles.HookOptions): VxeGlobalHooks
20
+ delete(type: string): void
21
+ forEach(callback: (options: VxeGlobalHooksHandles.HookOptions, type: string) => void): void
22
22
  }
@@ -13,44 +13,44 @@ import { VxeGlobalSetup } from './setup'
13
13
 
14
14
  export class VXETableConfig {
15
15
  clipboard: {
16
- text: string;
17
- html: string;
16
+ text: string
17
+ html: string
18
18
  }
19
- get zIndex(): number;
20
- get nextZIndex(): number;
19
+ get zIndex(): number
20
+ get nextZIndex(): number
21
21
  /**
22
22
  * 获取导出的所有文件类型
23
23
  */
24
- get exportTypes(): string[];
24
+ get exportTypes(): string[]
25
25
  /**
26
26
  * 获取导入的所有文件类型
27
27
  */
28
- get importTypes(): string[];
28
+ get importTypes(): string[]
29
29
  }
30
30
 
31
- export type VxeGlobalI18n = (key: string, args?: any) => string;
32
- export type VxeGlobalTranslate = (key: string, args?: any) => string;
33
- export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
31
+ export type VxeGlobalI18n = (key: string, args?: any) => string
32
+ export type VxeGlobalTranslate = (key: string, args?: any) => string
33
+ export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore
34
34
 
35
- export const setup: VxeGlobalSetup;
36
- export const interceptor: VxeGlobalInterceptor;
37
- export const renderer: VxeGlobalRenderer;
38
- export const commands: VxeGlobalCommands;
39
- export const formats: VxeGlobalFormats;
40
- export const menus: VxeGlobalMenus;
41
- export const hooks: VxeGlobalHooks;
42
- export const modal: ModalController;
43
- export const saveFile: SaveFileFunction;
44
- export const readFile: ReadFileFunction;
45
- export const print: PrintFunction;
46
- export const config: VXETableConfig;
47
- export const t: VxeGlobalI18n;
48
- export const _t: VxeGlobalTranslate;
49
- export const use: VxeGlobalUse;
35
+ export const setup: VxeGlobalSetup
36
+ export const interceptor: VxeGlobalInterceptor
37
+ export const renderer: VxeGlobalRenderer
38
+ export const commands: VxeGlobalCommands
39
+ export const formats: VxeGlobalFormats
40
+ export const menus: VxeGlobalMenus
41
+ export const hooks: VxeGlobalHooks
42
+ export const modal: ModalController
43
+ export const saveFile: SaveFileFunction
44
+ export const readFile: ReadFileFunction
45
+ export const print: PrintFunction
46
+ export const config: VXETableConfig
47
+ export const t: VxeGlobalI18n
48
+ export const _t: VxeGlobalTranslate
49
+ export const use: VxeGlobalUse
50
50
 
51
51
  export interface VXETablePluginObject {
52
- install(vxetable: VXETableCore, ...options: any[]): void;
53
- [key: string]: any;
52
+ install(vxetable: VXETableCore, ...options: any[]): void
53
+ [key: string]: any
54
54
  }
55
55
 
56
56
  export type VXETableVersion = 'v1' | 'v2' | 'v3' | 'v4'
@@ -58,67 +58,75 @@ export type VXETableVersion = 'v1' | 'v2' | 'v3' | 'v4'
58
58
  export const v: VXETableVersion
59
59
 
60
60
  export interface VXETableCore {
61
- tooltip?: boolean;
62
- v: VXETableVersion;
61
+ tooltip?: boolean
62
+ /**
63
+ * 已被 version 替换
64
+ * @deprecated
65
+ */
66
+ v: VXETableVersion
67
+ /**
68
+ * 版本号
69
+ */
70
+ version: string
63
71
  /**
64
72
  * 设置全局参数/获取所有参数
65
73
  */
66
- setup: VxeGlobalSetup;
74
+ setup: VxeGlobalSetup
67
75
  /**
68
76
  * Table interceptor
69
77
  */
70
- interceptor: VxeGlobalInterceptor;
78
+ interceptor: VxeGlobalInterceptor
71
79
  /**
72
80
  * Table renderer
73
81
  */
74
- renderer: VxeGlobalRenderer;
82
+ renderer: VxeGlobalRenderer
75
83
  /**
76
84
  * Table commands
77
85
  */
78
- commands: VxeGlobalCommands;
86
+ commands: VxeGlobalCommands
79
87
  /**
80
88
  * Table column formatter
81
89
  */
82
- formats: VxeGlobalFormats;
90
+ formats: VxeGlobalFormats
83
91
  /**
84
92
  * Table context menu
85
93
  */
86
- menus: VxeGlobalMenus;
94
+ menus: VxeGlobalMenus
87
95
  /**
88
96
  * Table VxeGlobalHooks API
89
97
  */
90
- hooks: VxeGlobalHooks;
98
+ hooks: VxeGlobalHooks
91
99
  /**
92
100
  * 弹窗
93
101
  */
94
- modal: ModalController;
102
+ modal: ModalController
95
103
  /**
96
104
  * 读取本地文件
97
105
  */
98
- saveFile: SaveFileFunction;
106
+ saveFile: SaveFileFunction
99
107
  /**
100
108
  * 读取本地文件
101
109
  */
102
- readFile: ReadFileFunction;
110
+ readFile: ReadFileFunction
103
111
  /**
104
112
  * 打印
105
113
  */
106
- print: PrintFunction;
114
+ print: PrintFunction
107
115
  /**
108
116
  * 读取内置配置
109
117
  */
110
- config: VXETableConfig;
118
+ config: VXETableConfig
111
119
  /**
112
120
  * 安装插件
113
121
  * @param plugin
114
122
  * @param options
115
123
  */
116
- use: VxeGlobalUse;
124
+ use: VxeGlobalUse
117
125
  /**
118
126
  * 读取内置国际化
119
127
  */
120
- t: VxeGlobalI18n;
121
- _t: VxeGlobalTranslate;
128
+ t: VxeGlobalI18n
129
+ _t: VxeGlobalTranslate
122
130
  }
123
131
 
124
132
  /**
@@ -2,16 +2,16 @@ import { VxeTableConstructor, VxeTableDefines, VxeTablePropTypes, VxeTablePrivat
2
2
  import { VxeGridConstructor, VxeGridPrivateMethods } from '../grid'
3
3
 
4
4
  export namespace VxeGlobalInterceptorHandles {
5
- export type HookType = 'created' | 'mounted' | 'activated' | 'beforeUnmount' | 'unmounted';
6
- export type EventType = 'event.clearActived' | 'event.clearFilter' | 'event.clearAreas' | 'event.showMenu' | 'event.keydown' | 'event.export' | 'event.import';
5
+ export type HookType = 'created' | 'mounted' | 'activated' | 'beforeUnmount' | 'unmounted'
6
+ export type EventType = 'event.clearActived' | 'event.clearFilter' | 'event.clearAreas' | 'event.showMenu' | 'event.keydown' | 'event.export' | 'event.import'
7
7
  export type Type = HookType | EventType
8
8
 
9
- export type InterceptorCallback = (params: any) => any;
9
+ export type InterceptorCallback = (params: any) => any
10
10
 
11
11
  interface InterceptorParams {
12
- $grid?: VxeGridConstructor & VxeGridPrivateMethods;
13
- $table: VxeTableConstructor & VxeTablePrivateMethods;
14
- $event: Event;
12
+ $grid?: VxeGridConstructor & VxeGridPrivateMethods
13
+ $table: VxeTableConstructor & VxeTablePrivateMethods
14
+ $event: Event
15
15
  }
16
16
 
17
17
  export interface InterceptorKeydownParams extends InterceptorParams { }
@@ -20,27 +20,27 @@ export namespace VxeGlobalInterceptorHandles {
20
20
  export interface InterceptorClearAreasParams extends InterceptorParams { }
21
21
 
22
22
  export interface InterceptorExportParams extends InterceptorParams {
23
- options: VxeTablePropTypes.ExportHandleOptions;
24
- columns: VxeTableDefines.ColumnInfo[];
25
- colgroups: VxeTableDefines.ColumnInfo[][];
26
- datas: any[];
23
+ options: VxeTablePropTypes.ExportHandleOptions
24
+ columns: VxeTableDefines.ColumnInfo[]
25
+ colgroups: VxeTableDefines.ColumnInfo[][]
26
+ datas: any[]
27
27
  }
28
28
 
29
29
  export interface InterceptorImportParams extends InterceptorParams {
30
- file: File;
31
- options: VxeTablePropTypes.ExportHandleOptions;
32
- columns: VxeTableDefines.ColumnInfo[];
33
- datas: any[];
30
+ file: File
31
+ options: VxeTablePropTypes.ExportHandleOptions
32
+ columns: VxeTableDefines.ColumnInfo[]
33
+ datas: any[]
34
34
  }
35
35
 
36
36
  export interface InterceptorShowMenuParams extends InterceptorParams {
37
- type: 'header' | 'body' | 'footer';
38
- options: VxeTableDefines.MenuFirstOption[][];
39
- columns: VxeTableDefines.ColumnInfo[];
40
- row?: any;
41
- rowIndex?: number;
42
- column?: VxeTableDefines.ColumnInfo;
43
- columnIndex?: number;
37
+ type: 'header' | 'body' | 'footer'
38
+ options: VxeTableDefines.MenuFirstOption[][]
39
+ columns: VxeTableDefines.ColumnInfo[]
40
+ row?: any
41
+ rowIndex?: number
42
+ column?: VxeTableDefines.ColumnInfo
43
+ columnIndex?: number
44
44
  }
45
45
  }
46
46
 
@@ -49,9 +49,9 @@ export namespace VxeGlobalInterceptorHandles {
49
49
  */
50
50
  export interface VxeGlobalInterceptor {
51
51
  mixin(options: {
52
- [type: string]: VxeGlobalInterceptorHandles.InterceptorCallback;
53
- }): VxeGlobalInterceptor;
54
- get(type: VxeGlobalInterceptorHandles.Type): VxeGlobalInterceptorHandles.InterceptorCallback[];
55
- add(type: VxeGlobalInterceptorHandles.Type, callback: VxeGlobalInterceptorHandles.InterceptorCallback): VxeGlobalInterceptor;
56
- delete(type: VxeGlobalInterceptorHandles.Type, callback?: VxeGlobalInterceptorHandles.InterceptorCallback): void;
52
+ [type: string]: VxeGlobalInterceptorHandles.InterceptorCallback
53
+ }): VxeGlobalInterceptor
54
+ get(type: VxeGlobalInterceptorHandles.Type): VxeGlobalInterceptorHandles.InterceptorCallback[]
55
+ add(type: VxeGlobalInterceptorHandles.Type, callback: VxeGlobalInterceptorHandles.InterceptorCallback): VxeGlobalInterceptor
56
+ delete(type: VxeGlobalInterceptorHandles.Type, callback?: VxeGlobalInterceptorHandles.InterceptorCallback): void
57
57
  }
@@ -1,17 +1,17 @@
1
1
  import { VxeTableConstructor, VxeTableDefines, VxeTablePrivateMethods } from '../table'
2
2
  import { VxeGridConstructor, VxeGridPrivateMethods } from '../grid'
3
- import { VxeGlobalRendererHandles } from './renderer';
3
+ import { VxeGlobalRendererHandles } from './renderer'
4
4
 
5
5
  export namespace VxeGlobalMenusHandles {
6
- export type MenusCallback = (params: MenusCallbackParams, event: Event) => any;
6
+ export type MenusCallback = (params: MenusCallbackParams, event: Event) => any
7
7
 
8
8
  interface MenusParams {
9
- $grid?: VxeGridConstructor & VxeGridPrivateMethods;
10
- $table: VxeTableConstructor & VxeTablePrivateMethods;
9
+ $grid?: VxeGridConstructor & VxeGridPrivateMethods
10
+ $table: VxeTableConstructor & VxeTablePrivateMethods
11
11
  }
12
12
  export interface MenusCallbackParams extends MenusParams, VxeGlobalRendererHandles.RenderCellParams {
13
- $event: MouseEvent;
14
- menu: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption;
13
+ $event: MouseEvent
14
+ menu: VxeTableDefines.MenuFirstOption | VxeTableDefines.MenuChildOption
15
15
  }
16
16
  }
17
17
 
@@ -20,11 +20,11 @@ export namespace VxeGlobalMenusHandles {
20
20
  */
21
21
  export interface VxeGlobalMenus {
22
22
  mixin(options: {
23
- [code: string]: VxeGlobalMenusHandles.MenusCallback;
24
- }): VxeGlobalMenus;
25
- has(code: string): boolean;
26
- get(code: string): VxeGlobalMenusHandles.MenusCallback;
27
- add(code: string, callback: VxeGlobalMenusHandles.MenusCallback): VxeGlobalMenus;
28
- delete(code: string): void;
29
- forEach(callback: (options: VxeGlobalMenusHandles.MenusCallback, code: string) => void): void;
23
+ [code: string]: VxeGlobalMenusHandles.MenusCallback
24
+ }): VxeGlobalMenus
25
+ has(code: string): boolean
26
+ get(code: string): VxeGlobalMenusHandles.MenusCallback
27
+ add(code: string, callback: VxeGlobalMenusHandles.MenusCallback): VxeGlobalMenus
28
+ delete(code: string): void
29
+ forEach(callback: (options: VxeGlobalMenusHandles.MenusCallback, code: string) => void): void
30
30
  }