vxe-table 3.7.0-beta.1 → 3.7.0-beta.11

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 (189) hide show
  1. package/README.md +6 -9
  2. package/helper/vetur/attributes.json +86 -22
  3. package/helper/vetur/tags.json +17 -1
  4. package/lib/button/src/button.js +9 -3
  5. package/lib/button/src/button.min.js +1 -1
  6. package/lib/edit/src/mixin.js +10 -10
  7. package/lib/edit/src/mixin.min.js +1 -1
  8. package/lib/export/src/mixin.js +24 -13
  9. package/lib/export/src/mixin.min.js +1 -1
  10. package/lib/filter/src/mixin.js +13 -7
  11. package/lib/filter/src/mixin.min.js +1 -1
  12. package/lib/form/src/form.js +27 -5
  13. package/lib/form/src/form.min.js +1 -1
  14. package/lib/grid/src/grid.js +7 -3
  15. package/lib/grid/src/grid.min.js +1 -1
  16. package/lib/icon/style/style.css +1 -1
  17. package/lib/icon/style/style.min.css +1 -1
  18. package/lib/index.css +1 -1
  19. package/lib/index.umd.js +559 -229
  20. package/lib/index.umd.min.js +1 -1
  21. package/lib/input/src/input.js +11 -1
  22. package/lib/input/src/input.min.js +1 -1
  23. package/lib/locale/lang/en-US.js +8 -0
  24. package/lib/locale/lang/en-US.min.js +1 -1
  25. package/lib/locale/lang/en-US.umd.js +8 -0
  26. package/lib/locale/lang/es-ES.js +8 -0
  27. package/lib/locale/lang/es-ES.min.js +1 -1
  28. package/lib/locale/lang/es-ES.umd.js +8 -0
  29. package/lib/locale/lang/ja-JP.d.ts +1 -1
  30. package/lib/locale/lang/ja-JP.js +8 -0
  31. package/lib/locale/lang/ja-JP.min.js +1 -1
  32. package/lib/locale/lang/ja-JP.umd.js +8 -0
  33. package/lib/locale/lang/pt-BR.d.ts +8 -0
  34. package/lib/locale/lang/pt-BR.js +330 -0
  35. package/lib/locale/lang/pt-BR.min.js +1 -0
  36. package/lib/locale/lang/pt-BR.umd.js +344 -0
  37. package/lib/locale/lang/zh-CN.d.ts +1 -1
  38. package/lib/locale/lang/zh-CN.js +8 -0
  39. package/lib/locale/lang/zh-CN.min.js +1 -1
  40. package/lib/locale/lang/zh-CN.umd.js +8 -0
  41. package/lib/locale/lang/zh-HK.d.ts +1 -1
  42. package/lib/locale/lang/zh-HK.min.js +1 -1
  43. package/lib/locale/lang/zh-HK.umd.js +8 -0
  44. package/lib/locale/lang/zh-MO.d.ts +1 -1
  45. package/lib/locale/lang/zh-MO.min.js +1 -1
  46. package/lib/locale/lang/zh-MO.umd.js +8 -0
  47. package/lib/locale/lang/zh-TC.d.ts +1 -1
  48. package/lib/locale/lang/zh-TC.js +8 -0
  49. package/lib/locale/lang/zh-TC.min.js +1 -1
  50. package/lib/locale/lang/zh-TC.umd.js +8 -0
  51. package/lib/locale/lang/zh-TW.d.ts +1 -1
  52. package/lib/locale/lang/zh-TW.min.js +1 -1
  53. package/lib/locale/lang/zh-TW.umd.js +8 -0
  54. package/lib/menu/src/mixin.js +3 -3
  55. package/lib/menu/src/mixin.min.js +1 -1
  56. package/lib/pulldown/src/pulldown.js +11 -2
  57. package/lib/pulldown/src/pulldown.min.js +1 -1
  58. package/lib/select/src/select.js +11 -2
  59. package/lib/select/src/select.min.js +1 -1
  60. package/lib/style.css +1 -1
  61. package/lib/style.min.css +1 -1
  62. package/lib/table/src/body.js +3 -2
  63. package/lib/table/src/body.min.js +1 -1
  64. package/lib/table/src/cell.js +9 -7
  65. package/lib/table/src/cell.min.js +1 -1
  66. package/lib/table/src/columnInfo.js +7 -7
  67. package/lib/table/src/columnInfo.min.js +1 -1
  68. package/lib/table/src/methods.js +171 -124
  69. package/lib/table/src/methods.min.js +1 -1
  70. package/lib/table/src/table.js +22 -29
  71. package/lib/table/src/table.min.js +1 -1
  72. package/lib/table/src/util.js +3 -1
  73. package/lib/table/src/util.min.js +1 -1
  74. package/lib/table/style/style.css +7 -2
  75. package/lib/table/style/style.min.css +1 -1
  76. package/lib/textarea/src/textarea.js +6 -1
  77. package/lib/textarea/src/textarea.min.js +1 -1
  78. package/lib/toolbar/src/toolbar.js +23 -7
  79. package/lib/toolbar/src/toolbar.min.js +1 -1
  80. package/lib/tools/log.js +1 -1
  81. package/lib/tools/log.min.js +1 -1
  82. package/lib/tooltip/src/tooltip.js +5 -1
  83. package/lib/tooltip/src/tooltip.min.js +1 -1
  84. package/lib/tooltip/style/style.css +0 -6
  85. package/lib/tooltip/style/style.min.css +1 -1
  86. package/lib/v-x-e-table/index.js +3 -1
  87. package/lib/v-x-e-table/index.min.js +1 -1
  88. package/lib/v-x-e-table/src/commands.js +60 -2
  89. package/lib/v-x-e-table/src/commands.min.js +1 -1
  90. package/lib/v-x-e-table/src/conf.js +7 -4
  91. package/lib/v-x-e-table/src/conf.min.js +1 -1
  92. package/lib/v-x-e-table/src/formats.js +60 -2
  93. package/lib/v-x-e-table/src/formats.min.js +1 -1
  94. package/lib/v-x-e-table/src/menus.js +60 -2
  95. package/lib/v-x-e-table/src/menus.min.js +1 -1
  96. package/lib/v-x-e-table/src/renderer.js +10 -0
  97. package/lib/v-x-e-table/src/renderer.min.js +1 -1
  98. package/lib/v-x-e-table/src/store.js +5 -2
  99. package/lib/v-x-e-table/src/store.min.js +1 -1
  100. package/lib/v-x-e-table/src/validators.js +15 -0
  101. package/lib/v-x-e-table/src/validators.min.js +1 -0
  102. package/lib/validator/src/mixin.js +36 -4
  103. package/lib/validator/src/mixin.min.js +1 -1
  104. package/package.json +2 -2
  105. package/packages/button/src/button.js +5 -4
  106. package/packages/edit/src/mixin.js +10 -9
  107. package/packages/export/src/mixin.js +22 -13
  108. package/packages/filter/src/mixin.js +5 -1
  109. package/packages/form/src/form.js +27 -6
  110. package/packages/grid/src/grid.js +7 -3
  111. package/packages/input/src/input.js +9 -1
  112. package/packages/locale/lang/en-US.js +8 -0
  113. package/packages/locale/lang/es-ES.js +8 -0
  114. package/packages/locale/lang/ja-JP.d.ts +1 -1
  115. package/packages/locale/lang/ja-JP.js +8 -0
  116. package/packages/locale/lang/pt-BR.d.ts +8 -0
  117. package/packages/locale/lang/pt-BR.js +323 -0
  118. package/packages/locale/lang/zh-CN.d.ts +1 -1
  119. package/packages/locale/lang/zh-CN.js +8 -0
  120. package/packages/locale/lang/zh-HK.d.ts +1 -1
  121. package/packages/locale/lang/zh-MO.d.ts +1 -1
  122. package/packages/locale/lang/zh-TC.d.ts +1 -1
  123. package/packages/locale/lang/zh-TC.js +8 -0
  124. package/packages/locale/lang/zh-TW.d.ts +1 -1
  125. package/packages/menu/src/mixin.js +3 -3
  126. package/packages/pulldown/src/pulldown.js +6 -3
  127. package/packages/select/src/select.js +7 -3
  128. package/packages/table/src/body.js +3 -2
  129. package/packages/table/src/cell.js +9 -5
  130. package/packages/table/src/columnInfo.js +7 -7
  131. package/packages/table/src/methods.js +142 -93
  132. package/packages/table/src/table.js +17 -7
  133. package/packages/table/src/util.js +3 -1
  134. package/packages/textarea/src/textarea.js +4 -1
  135. package/packages/toolbar/src/toolbar.js +22 -7
  136. package/packages/tooltip/src/tooltip.js +3 -2
  137. package/packages/v-x-e-table/index.js +2 -0
  138. package/packages/v-x-e-table/src/commands.js +50 -2
  139. package/packages/v-x-e-table/src/conf.js +7 -4
  140. package/packages/v-x-e-table/src/formats.js +50 -2
  141. package/packages/v-x-e-table/src/menus.js +50 -2
  142. package/packages/v-x-e-table/src/renderer.js +11 -1
  143. package/packages/v-x-e-table/src/store.js +4 -2
  144. package/packages/v-x-e-table/src/validators.js +7 -0
  145. package/packages/validator/src/mixin.js +35 -4
  146. package/styles/all.scss +30 -0
  147. package/styles/css-variable.scss +272 -0
  148. package/styles/cssvar.scss +2 -275
  149. package/styles/index.scss +2 -0
  150. package/styles/modules.scss +4 -1
  151. package/styles/table.scss +11 -4
  152. package/styles/tooltip.scss +0 -8
  153. package/styles/variable.scss +1 -4
  154. package/types/all.d.ts +2 -2
  155. package/types/colgroup.d.ts +3 -1
  156. package/types/column.d.ts +3 -0
  157. package/types/edit.d.ts +4 -2
  158. package/types/export.d.ts +3 -0
  159. package/types/filter.d.ts +3 -1
  160. package/types/footer.d.ts +3 -1
  161. package/types/form-item.d.ts +2 -0
  162. package/types/form.d.ts +16 -12
  163. package/types/grid.d.ts +3 -0
  164. package/types/header.d.ts +3 -1
  165. package/types/index.d.ts +1 -1
  166. package/types/input.d.ts +2 -0
  167. package/types/list.d.ts +1 -1
  168. package/types/menu.d.ts +2 -0
  169. package/types/modal.d.ts +7 -3
  170. package/types/pulldown.d.ts +2 -3
  171. package/types/table.d.ts +54 -30
  172. package/types/textarea.d.ts +1 -0
  173. package/types/toolbar.d.ts +2 -0
  174. package/types/tooltip.d.ts +1 -1
  175. package/types/v-x-e-table/commands.d.ts +23 -13
  176. package/types/v-x-e-table/formats.d.ts +21 -12
  177. package/types/v-x-e-table/index.d.ts +33 -26
  178. package/types/v-x-e-table/interceptor.d.ts +1 -1
  179. package/types/v-x-e-table/menus.d.ts +17 -6
  180. package/types/v-x-e-table/renderer.d.ts +5 -3
  181. package/types/v-x-e-table/setup.d.ts +10 -33
  182. package/types/v-x-e-table/validators.d.ts +30 -0
  183. package/types/validator.d.ts +15 -4
  184. /package/lib/icon/style/{iconfont.1688948811910.ttf → iconfont.1691021948915.ttf} +0 -0
  185. /package/lib/icon/style/{iconfont.1688948811910.woff → iconfont.1691021948915.woff} +0 -0
  186. /package/lib/icon/style/{iconfont.1688948811910.woff2 → iconfont.1691021948915.woff2} +0 -0
  187. /package/lib/{iconfont.1688948811910.ttf → iconfont.1691021948915.ttf} +0 -0
  188. /package/lib/{iconfont.1688948811910.woff → iconfont.1691021948915.woff} +0 -0
  189. /package/lib/{iconfont.1688948811910.woff2 → iconfont.1691021948915.woff2} +0 -0
@@ -8,25 +8,28 @@ import { VxeGlobalInterceptor } from './interceptor'
8
8
  import { VxeGlobalCommands } from './commands'
9
9
  import { VxeGlobalFormats } from './formats'
10
10
  import { VxeGlobalMenus } from './menus'
11
- import { VxeGlobalSetup } from './setup'
11
+ import { VxeGlobalValidators } from './validators'
12
+ import { VxeGlobalConfigMethod } from './setup'
13
+
14
+ /* eslint-disable no-use-before-define */
12
15
 
13
16
  export type VxeGlobalI18n = (key: string, args?: any) => number | string;
14
17
  export type VxeGlobalTranslate = (key: string, args?: any) => string;
15
18
  export type VxeGlobalUse = (plugin: VXETablePluginObject, ...options: any[]) => VXETableCore;
16
19
 
17
- export const setup: VxeGlobalSetup;
18
- export const interceptor: VxeGlobalInterceptor;
19
- export const renderer: VxeGlobalRenderer;
20
- export const commands: VxeGlobalCommands;
21
- export const formats: VxeGlobalFormats;
22
- export const menus: VxeGlobalMenus;
23
- export const modal: ModalController;
24
- export const saveFile: SaveFileFunction;
25
- export const readFile: ReadFileFunction;
26
- export const print: PrintFunction;
27
- export const t: VxeGlobalI18n;
28
- export const _t: VxeGlobalTranslate;
29
- export const use: VxeGlobalUse;
20
+ export const setup: VxeGlobalConfigMethod
21
+ export const interceptor: VxeGlobalInterceptor
22
+ export const renderer: VxeGlobalRenderer
23
+ export const commands: VxeGlobalCommands
24
+ export const formats: VxeGlobalFormats
25
+ export const menus: VxeGlobalMenus
26
+ export const modal: ModalController
27
+ export const saveFile: SaveFileFunction
28
+ export const readFile: ReadFileFunction
29
+ export const print: PrintFunction
30
+ export const t: VxeGlobalI18n
31
+ export const _t: VxeGlobalTranslate
32
+ export const use: VxeGlobalUse
30
33
 
31
34
  export interface VXETablePluginObject {
32
35
  install(vxetable: VXETableCore, ...options: any[]): void;
@@ -50,7 +53,7 @@ export interface VXETableCore {
50
53
  /**
51
54
  * 设置全局参数/获取所有参数
52
55
  */
53
- setup: VxeGlobalSetup;
56
+ setup: VxeGlobalConfigMethod;
54
57
  /**
55
58
  * Table interceptor
56
59
  */
@@ -71,6 +74,10 @@ export interface VXETableCore {
71
74
  * Table context menu
72
75
  */
73
76
  menus: VxeGlobalMenus;
77
+ /**
78
+ * Validators table/form
79
+ */
80
+ validators: VxeGlobalValidators
74
81
  /**
75
82
  * 弹窗
76
83
  */
@@ -101,16 +108,16 @@ export interface VXETableCore {
101
108
  }
102
109
 
103
110
  /**
104
- * 一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、弹窗、自定义模板、渲染器、贼灵活的配置项等...
111
+ * 一个基于 vue 的 PC 端表单/表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器、JSON 配置式为零代码而设计...
105
112
  */
106
- export const VXETable: VXETableCore
113
+ export const VXETable: VXETableCore
114
+
115
+ export * from './renderer'
116
+ export * from './interceptor'
117
+ export * from './commands'
118
+ export * from './formats'
119
+ export * from './menus'
120
+ export * from './validators'
121
+ export * from './setup'
107
122
 
108
- export * from './renderer'
109
- export * from './interceptor'
110
- export * from './commands'
111
- export * from './formats'
112
- export * from './menus'
113
- export * from './setup'
114
-
115
- export default VXETable
116
-
123
+ export default VXETable
@@ -19,7 +19,7 @@ export interface InterceptorParams extends GridRenderParams {
19
19
  $event: any;
20
20
  }
21
21
 
22
- export interface InterceptorKeydownParams extends InterceptorParams { }
22
+ export type InterceptorKeydownParams = InterceptorParams
23
23
 
24
24
  export interface InterceptorExportParams extends InterceptorParams {
25
25
  options: TableExportConfig;
@@ -1,13 +1,24 @@
1
1
  import { MenuLinkParams } from '../menu'
2
2
 
3
- declare function menuFunc (params: MenuLinkParams, event: any): any;
3
+ /* eslint-disable no-use-before-define */
4
+
5
+ export namespace VxeGlobalMenusHandles {
6
+ export type MenusOption = {
7
+ menuMethod?: (params: MenuMethodParams, event: Event) => any
8
+ }
9
+ export type MenuMethodParams = MenuLinkParams
10
+ }
4
11
 
5
12
  /**
6
13
  * 全局快捷菜单
7
14
  */
8
- export class VxeGlobalMenus {
9
- mixin(map: { [type: string]: typeof menuFunc }): VxeGlobalMenus;
10
- get(type: string): typeof menuFunc;
11
- add(type: string, callback: typeof menuFunc): VxeGlobalMenus;
12
- delete(type: string): VxeGlobalMenus;
15
+ export interface VxeGlobalMenus {
16
+ mixin(opts: {
17
+ [code: string]: VxeGlobalMenusHandles.MenusOption | ((params: VxeGlobalMenusHandles.MenuMethodParams, event: Event) => any)
18
+ }): VxeGlobalMenus
19
+ has(code: string): boolean
20
+ get(code: string): VxeGlobalMenusHandles.MenusOption
21
+ add(code: string, options: VxeGlobalMenusHandles.MenusOption | ((params: VxeGlobalMenusHandles.MenuMethodParams, event: Event) => any)): VxeGlobalMenus
22
+ delete(code: string): void
23
+ forEach(callback: (options: VxeGlobalMenusHandles.MenusOption, code: string) => void): void
13
24
  }
@@ -10,6 +10,8 @@ import { ColumnFilterRenderOptions, ColumnFilterRenderParams, ColumnFilterMethod
10
10
  import { ToolbarButtonRenderOptions, ToolbarButtonRenderParams, ToolbarToolRenderOptions, ToolbarToolRenderParams } from '../toolbar'
11
11
  import { FormItemRenderOptions, FormItemRenderParams, FormItemVisibleParams, FormItemResetParams } from '../form-item'
12
12
 
13
+ /* eslint-disable no-use-before-define */
14
+
13
15
  /**
14
16
  * 渲染器
15
17
  */
@@ -43,7 +45,7 @@ export interface RendererMapOptions {
43
45
 
44
46
  // 单元格渲染
45
47
  cellClassName?: string | ((params: ColumnCellRenderParams | ColumnEditRenderParams) => string | VNodeClassName)
46
- cellStyle?: VNodeStyle | ((params: ColumnCellRenderParams | ColumnEditRenderParams) => VNodeStyle)
48
+ cellStyle?: VNodeStyle | ((params: ColumnCellRenderParams | ColumnEditRenderParams) => VNodeStyle)
47
49
  renderHeader?(h: CreateElement, renderOpts: ColumnCellRenderOptions | ColumnEditRenderOptions, params: ColumnCellRenderParams | ColumnEditRenderParams): SlotVNodeType | SlotVNodeType[];
48
50
  renderDefault?(h: CreateElement, renderOpts: ColumnCellRenderOptions | ColumnEditRenderOptions, params: ColumnCellRenderParams | ColumnEditRenderParams): SlotVNodeType | SlotVNodeType[];
49
51
  renderFooter?(h: CreateElement, renderOpts: ColumnCellRenderOptions | ColumnEditRenderOptions, params: ColumnFooterRenderParams): SlotVNodeType | SlotVNodeType[];
@@ -101,11 +103,11 @@ export class RenderOptions {
101
103
  /**
102
104
  * 目标组件渲染的事件
103
105
  */
104
- events?: { [key: string]: Function };
106
+ events?: { [key: string]: ((...angs: any[])=>any) };
105
107
  /**
106
108
  * 目标组件渲染的原生事件
107
109
  */
108
- nativeEvents?: { [key: string]: Function };
110
+ nativeEvents?: { [key: string]: ((...angs: any[])=>any) };
109
111
  [key: string]: any;
110
112
  }
111
113
 
@@ -5,7 +5,7 @@ interface DefaultOptions {
5
5
  [key: string]: any;
6
6
  }
7
7
 
8
- export interface VXETableSetupOptions {
8
+ export interface VXETableConfigOptions {
9
9
  size?: SizeType;
10
10
  zIndex?: number;
11
11
  version?: number;
@@ -39,36 +39,13 @@ export interface VXETableSetupOptions {
39
39
  [key: string]: any;
40
40
  }
41
41
 
42
- export interface VXETableGlobalConfig extends VXETableSetupOptions {
43
- size: SizeType;
44
- zIndex: number;
45
- version: number;
46
- emptyCell: string;
47
- icon: {
48
- [key: string]: string;
49
- };
50
- table: any;
51
- grid: any;
52
- export: {
53
- types: {
54
- [key: string]: 0 | 1 | 2;
55
- }
56
- [key: string]: any;
57
- };
58
- tooltip: DefaultOptions;
59
- pager: any;
60
- form: DefaultOptions;
61
- input: DefaultOptions;
62
- textarea: DefaultOptions;
63
- select: DefaultOptions;
64
- toolbar: any;
65
- button: DefaultOptions;
66
- radio: DefaultOptions;
67
- checkbox: DefaultOptions;
68
- switch: DefaultOptions;
69
- modal: DefaultOptions;
70
- list: DefaultOptions;
71
- i18n(key: string, args?: any): string;
72
- }
42
+ export type VxeGlobalConfigMethod = (options?: VXETableConfigOptions) => Required<VXETableConfigOptions>
73
43
 
74
- export type VxeGlobalSetup = (options?: VXETableSetupOptions) => VXETableGlobalConfig;
44
+ /**
45
+ * @deprecated
46
+ */
47
+ export type VXETableSetupOptions = VXETableConfigOptions
48
+ /**
49
+ * @deprecated
50
+ */
51
+ export type VxeGlobalSetup = VxeGlobalConfigMethod;
@@ -0,0 +1,30 @@
1
+ import { CellRuleValidatorParams } from '../validator'
2
+ import { FormRuleValidatorParams } from '../form'
3
+
4
+ /* eslint-disable no-use-before-define */
5
+
6
+ export namespace VxeGlobalValidatorsHandles {
7
+ export interface ValidatorsOptions {
8
+ itemValidatorMethod?: ItemValidatorMethod
9
+ cellValidatorMethod?: CellValidatorMethod
10
+ }
11
+
12
+ export type ItemValidatorMethod = (params: ItemValidatorParams, ...args: any[]) => void | Error | Promise<any>
13
+ export type CellValidatorMethod = (params: CellValidatorParams, ...args: any[]) => void | Error | Promise<any>
14
+ export type ItemValidatorParams = FormRuleValidatorParams
15
+ export type CellValidatorParams = CellRuleValidatorParams
16
+ }
17
+
18
+ /**
19
+ * 全局快捷菜单
20
+ */
21
+ export interface VxeGlobalValidators {
22
+ mixin(options: {
23
+ [code: string]: VxeGlobalValidatorsHandles.ValidatorsOptions
24
+ }): VxeGlobalValidators
25
+ has(code: string): boolean
26
+ get(code: string): VxeGlobalValidatorsHandles.ValidatorsOptions
27
+ add(code: string, callback: VxeGlobalValidatorsHandles.ValidatorsOptions): VxeGlobalValidators
28
+ delete(code: string): void
29
+ forEach(callback: (options: VxeGlobalValidatorsHandles.ValidatorsOptions, code: string) => void): void
30
+ }
@@ -2,6 +2,8 @@ import { VXETableComponent } from './component'
2
2
  import { ColumnInfo } from './column'
3
3
  import { Table } from './table'
4
4
 
5
+ /* eslint-disable no-use-before-define */
6
+
5
7
  /**
6
8
  * 表格校验
7
9
  */
@@ -32,7 +34,7 @@ export interface ColumnEditRule {
32
34
  * 使用自定义校验函数,接收一个 Promise
33
35
  * @param params 参数
34
36
  */
35
- validator?: typeof ColumnValidatorMethod;
37
+ validator?: string | ((params: CellRuleValidatorParams) => void | Error | Promise<any>);
36
38
  /**
37
39
  * 提示消息
38
40
  */
@@ -41,9 +43,18 @@ export interface ColumnEditRule {
41
43
  maxWidth?: number;
42
44
  }
43
45
 
44
- export function ColumnValidatorMethod(params: ColumnEditValidErrParams): void;
45
- export function ColumnValidatorMethod(params: ColumnEditValidErrParams): Error;
46
- export function ColumnValidatorMethod(params: ColumnEditValidErrParams): Promise<any>;
46
+ export interface CellRuleValidatorParams {
47
+ $table: Table,
48
+ cellValue: any,
49
+ rule: ColumnEditRule;
50
+ rules: ColumnEditRule[];
51
+ column: ColumnInfo;
52
+ columnIndex: number;
53
+ row: any;
54
+ rowIndex: number;
55
+ }
56
+
57
+ export function ColumnValidatorMethod(params: ColumnEditValidErrParams): void | Error | Promise<any>;
47
58
 
48
59
  export interface ColumnEditValidErrParams {
49
60
  $table: Table,