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.
- package/README.en.md +2 -4
- package/README.md +2 -3
- package/README.zh-TW.md +2 -4
- package/es/button/index.js +1 -1
- package/es/checkbox/index.js +1 -1
- package/es/checkbox-group/index.js +1 -1
- package/es/colgroup/index.js +3 -2
- package/es/column/index.js +3 -2
- package/es/edit/src/hook.js +2 -1
- package/es/export/index.js +2 -2
- package/es/export/src/hook.js +2 -1
- package/es/export/src/util.js +3 -5
- package/es/filter/index.js +1 -1
- package/es/filter/src/hook.js +17 -10
- package/es/footer/index.js +1 -1
- package/es/footer/src/footer.js +3 -2
- package/es/form/index.js +1 -1
- package/es/form/src/form-gather.js +3 -3
- package/es/form/src/form-item.js +4 -4
- package/es/form/src/form.js +36 -43
- package/es/form/src/render.js +15 -10
- package/es/form/src/util.js +6 -0
- package/es/form-gather/index.js +1 -1
- package/es/form-item/index.js +1 -1
- package/es/grid/index.js +1 -1
- package/es/grid/src/grid.js +2 -1
- package/es/header/index.js +1 -1
- package/es/header/src/header.js +1 -1
- package/es/input/index.js +1 -1
- package/es/input/src/date.js +41 -0
- package/es/input/src/input.js +4 -51
- package/es/input/src/number.js +10 -0
- package/es/list/index.js +1 -1
- package/es/menu/index.js +1 -1
- package/es/modal/index.js +1 -1
- package/es/modal/src/modal.js +2 -1
- package/es/optgroup/index.js +1 -1
- package/es/option/index.js +1 -1
- package/es/pager/index.js +1 -1
- package/es/pager/src/pager.js +13 -2
- package/es/pulldown/index.js +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio-button/index.js +1 -1
- package/es/radio-group/index.js +1 -1
- package/es/select/index.js +1 -1
- package/es/select/style.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/index.js +1 -1
- package/es/table/index.js +1 -1
- package/es/table/src/body.js +32 -11
- package/es/table/src/cell.js +3 -3
- package/es/table/src/column.js +3 -1
- package/es/table/src/columnInfo.js +5 -4
- package/es/table/src/emits.js +5 -1
- package/es/table/src/props.js +5 -2
- package/es/table/src/table.js +120 -86
- package/es/table/src/util.js +5 -3
- package/es/textarea/index.js +1 -1
- package/es/toolbar/index.js +1 -1
- package/es/toolbar/src/toolbar.js +2 -1
- package/es/tools/dom.js +9 -0
- package/es/tools/log.js +13 -0
- package/es/tools/utils.js +0 -12
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/src/tooltip.js +85 -45
- package/es/tooltip/style.css +1 -1
- package/es/v-x-e-table/index.js +1 -0
- package/es/v-x-e-table/src/conf.js +12 -7
- package/es/v-x-e-table/src/interceptor.js +1 -1
- package/es/v-x-e-table/src/renderer.js +2 -1
- package/es/v-x-e-table/src/store.js +1 -1
- package/helper/vetur/attributes.json +31 -11
- package/helper/vetur/tags.json +8 -3
- package/lib/button/index.js +3 -2
- package/lib/button/index.min.js +1 -1
- package/lib/checkbox/index.js +3 -2
- package/lib/checkbox/index.min.js +1 -1
- package/lib/checkbox-group/index.js +3 -2
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/colgroup/index.js +6 -4
- package/lib/colgroup/index.min.js +1 -1
- package/lib/column/index.js +6 -4
- package/lib/column/index.min.js +1 -1
- package/lib/edit/src/hook.js +7 -5
- package/lib/edit/src/hook.min.js +1 -1
- package/lib/export/index.js +5 -4
- package/lib/export/index.min.js +1 -1
- package/lib/export/src/hook.js +14 -12
- package/lib/export/src/hook.min.js +1 -1
- package/lib/export/src/util.js +7 -9
- package/lib/export/src/util.min.js +1 -1
- package/lib/filter/index.js +3 -2
- package/lib/filter/index.min.js +1 -1
- package/lib/filter/src/hook.js +24 -13
- package/lib/filter/src/hook.min.js +1 -1
- package/lib/footer/index.js +3 -2
- package/lib/footer/index.min.js +1 -1
- package/lib/footer/src/footer.js +7 -3
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/form/index.js +3 -2
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-gather.js +3 -3
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +3 -3
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +45 -58
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +24 -10
- package/lib/form/src/render.min.js +1 -1
- package/lib/form/src/util.js +11 -0
- package/lib/form/src/util.min.js +1 -1
- package/lib/form-gather/index.js +3 -2
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.js +3 -2
- package/lib/form-item/index.min.js +1 -1
- package/lib/grid/index.js +3 -2
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +16 -14
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/header/index.js +3 -2
- package/lib/header/index.min.js +1 -1
- package/lib/header/src/header.js +1 -1
- package/lib/header/src/header.min.js +1 -1
- package/lib/index.umd.js +584 -415
- package/lib/index.umd.min.js +1 -2
- package/lib/input/index.js +3 -2
- package/lib/input/index.min.js +1 -1
- package/lib/input/src/date.js +56 -0
- package/lib/input/src/date.min.js +1 -0
- package/lib/input/src/input.js +13 -67
- package/lib/input/src/input.min.js +1 -1
- package/lib/input/src/number.js +23 -0
- package/lib/input/src/number.min.js +1 -0
- package/lib/list/index.js +3 -2
- package/lib/list/index.min.js +1 -1
- package/lib/menu/index.js +3 -2
- package/lib/menu/index.min.js +1 -1
- package/lib/modal/index.js +3 -2
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +3 -1
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/optgroup/index.js +3 -2
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.js +3 -2
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.js +3 -2
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +15 -1
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pulldown/index.js +3 -2
- package/lib/pulldown/index.min.js +1 -1
- package/lib/radio/index.js +3 -2
- package/lib/radio/index.min.js +1 -1
- package/lib/radio-button/index.js +3 -2
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.js +3 -2
- package/lib/radio-group/index.min.js +1 -1
- package/lib/select/index.js +3 -2
- package/lib/select/index.min.js +1 -1
- package/lib/select/style/style.css +1 -1
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +3 -2
- package/lib/switch/index.min.js +1 -1
- package/lib/table/index.js +3 -2
- package/lib/table/index.min.js +1 -1
- package/lib/table/src/body.js +32 -11
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +3 -3
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +3 -1
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +13 -9
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/emits.js +1 -1
- package/lib/table/src/emits.min.js +1 -1
- package/lib/table/src/props.js +5 -2
- package/lib/table/src/table.js +187 -148
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +5 -3
- package/lib/table/src/util.min.js +1 -1
- package/lib/textarea/index.js +3 -2
- package/lib/textarea/index.min.js +1 -1
- package/lib/toolbar/index.js +3 -2
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +4 -2
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/tools/dom.js +12 -1
- package/lib/tools/dom.min.js +1 -1
- package/lib/tools/log.js +29 -0
- package/lib/tools/log.min.js +1 -0
- package/lib/tools/utils.js +0 -20
- package/lib/tools/utils.min.js +1 -1
- package/lib/tooltip/index.js +3 -3
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +114 -60
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/tooltip/style/style.css +1 -1
- package/lib/tooltip/style/style.min.css +1 -1
- package/lib/v-x-e-table/index.js +1 -0
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/src/conf.js +12 -7
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/src/interceptor.js +3 -3
- package/lib/v-x-e-table/src/interceptor.min.js +1 -1
- package/lib/v-x-e-table/src/renderer.js +3 -1
- package/lib/v-x-e-table/src/renderer.min.js +1 -1
- package/lib/v-x-e-table/src/store.js +2 -2
- package/lib/v-x-e-table/src/store.min.js +1 -1
- package/package.json +4 -4
- package/packages/button/index.ts +2 -1
- package/packages/checkbox/index.ts +2 -1
- package/packages/checkbox-group/index.ts +2 -1
- package/packages/colgroup/index.ts +4 -2
- package/packages/column/index.ts +4 -2
- package/packages/edit/src/hook.ts +2 -1
- package/packages/export/index.ts +3 -2
- package/packages/export/src/hook.ts +2 -1
- package/packages/export/src/util.ts +4 -6
- package/packages/filter/index.ts +2 -1
- package/packages/filter/src/hook.ts +17 -10
- package/packages/footer/index.ts +2 -1
- package/packages/footer/src/footer.ts +3 -2
- package/packages/form/index.ts +2 -1
- package/packages/form/src/form-gather.ts +3 -3
- package/packages/form/src/form-item.ts +4 -4
- package/packages/form/src/form.ts +38 -46
- package/packages/form/src/render.ts +8 -6
- package/packages/form/src/util.ts +8 -1
- package/packages/form-gather/index.ts +2 -1
- package/packages/form-item/index.ts +2 -1
- package/packages/grid/index.ts +2 -1
- package/packages/grid/src/grid.ts +2 -1
- package/packages/header/index.ts +2 -1
- package/packages/header/src/header.ts +1 -1
- package/packages/input/index.ts +2 -1
- package/packages/input/src/date.ts +42 -0
- package/packages/input/src/input.ts +3 -51
- package/packages/input/src/number.ts +12 -0
- package/packages/list/index.ts +2 -1
- package/packages/menu/index.ts +2 -1
- package/packages/modal/index.ts +2 -1
- package/packages/modal/src/modal.ts +2 -1
- package/packages/optgroup/index.ts +2 -1
- package/packages/option/index.ts +2 -1
- package/packages/pager/index.ts +2 -1
- package/packages/pager/src/pager.ts +17 -3
- package/packages/pulldown/index.ts +2 -1
- package/packages/radio/index.ts +2 -1
- package/packages/radio-button/index.ts +2 -1
- package/packages/radio-group/index.ts +2 -1
- package/packages/select/index.ts +2 -1
- package/packages/switch/index.ts +2 -1
- package/packages/table/index.ts +2 -1
- package/packages/table/src/body.ts +33 -12
- package/packages/table/src/cell.ts +3 -3
- package/packages/table/src/column.ts +3 -1
- package/packages/table/src/columnInfo.ts +5 -3
- package/packages/table/src/emits.ts +5 -1
- package/packages/table/src/props.ts +5 -2
- package/packages/table/src/table.ts +120 -84
- package/packages/table/src/util.ts +5 -3
- package/packages/textarea/index.ts +2 -1
- package/packages/toolbar/index.ts +2 -1
- package/packages/toolbar/src/toolbar.ts +2 -1
- package/packages/tools/dom.ts +11 -0
- package/packages/tools/log.ts +16 -0
- package/packages/tools/utils.ts +0 -15
- package/packages/tooltip/index.ts +2 -1
- package/packages/tooltip/src/tooltip.ts +87 -46
- package/packages/v-x-e-table/index.ts +1 -0
- package/packages/v-x-e-table/src/conf.ts +12 -7
- package/packages/v-x-e-table/src/interceptor.ts +1 -1
- package/packages/v-x-e-table/src/renderer.ts +2 -1
- package/packages/v-x-e-table/src/store.ts +1 -1
- package/styles/select.scss +1 -1
- package/styles/tooltip.scss +1 -1
- package/types/all.d.ts +2 -2
- package/types/button.d.ts +54 -54
- package/types/checkbox-group.d.ts +21 -21
- package/types/checkbox.d.ts +30 -30
- package/types/colgroup.d.ts +16 -16
- package/types/column.d.ts +172 -161
- package/types/component.d.ts +9 -9
- package/types/edit.d.ts +35 -35
- package/types/export.d.ts +101 -101
- package/types/filter.d.ts +19 -19
- package/types/footer.d.ts +1 -1
- package/types/form-gather.d.ts +3 -3
- package/types/form-item.d.ts +68 -66
- package/types/form.d.ts +136 -131
- package/types/grid.d.ts +257 -257
- package/types/header.d.ts +1 -1
- package/types/icon.d.ts +1 -1
- package/types/input.d.ts +162 -162
- package/types/keyboard.d.ts +6 -6
- package/types/list.d.ts +54 -54
- package/types/menu.d.ts +33 -33
- package/types/modal.d.ts +160 -160
- package/types/optgroup.d.ts +5 -5
- package/types/option.d.ts +19 -19
- package/types/pager.d.ts +65 -61
- package/types/plugins/pro.d.ts +245 -215
- package/types/pulldown.d.ts +36 -36
- package/types/radio-button.d.ts +25 -25
- package/types/radio-group.d.ts +20 -20
- package/types/radio.d.ts +27 -27
- package/types/select.d.ts +82 -82
- package/types/switch.d.ts +40 -40
- package/types/table.d.ts +1422 -1336
- package/types/textarea.d.ts +71 -71
- package/types/toolbar.d.ts +65 -65
- package/types/tooltip.d.ts +50 -44
- package/types/v-x-e-table/commands.d.ts +12 -12
- package/types/v-x-e-table/formats.d.ts +10 -10
- package/types/v-x-e-table/hooks.d.ts +9 -9
- package/types/v-x-e-table/index.d.ts +51 -43
- package/types/v-x-e-table/interceptor.d.ts +26 -26
- package/types/v-x-e-table/menus.d.ts +13 -13
- package/types/v-x-e-table/renderer.d.ts +128 -128
- package/types/v-x-e-table/setup.d.ts +55 -55
- 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
|
-
|
|
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
|
}
|