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.
- package/README.en.md +1 -1
- package/README.md +2 -1
- package/README.zh-TW.md +1 -1
- 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/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 +1 -1
- package/es/form/src/form-item.js +2 -2
- package/es/form/src/form.js +15 -29
- package/es/form/src/render.js +15 -10
- 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/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/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/src/select.js +14 -3
- 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 +24 -24
- 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 +60 -62
- 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/log.js +13 -0
- package/es/tools/utils.js +0 -12
- package/es/tooltip/index.js +1 -1
- package/es/tooltip/src/tooltip.js +47 -28
- 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 +14 -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/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 +2 -2
- package/lib/form/src/form-gather.min.js +1 -1
- package/lib/form/src/form-item.js +2 -2
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +18 -36
- 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-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 +1190 -284
- 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/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/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/src/select.js +14 -3
- package/lib/select/src/select.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 +24 -25
- 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 +124 -123
- 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/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 +55 -32
- 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 +14 -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 +3 -3
- 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/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 +1 -1
- package/packages/form/src/form-item.ts +2 -2
- package/packages/form/src/form.ts +16 -32
- package/packages/form/src/render.ts +8 -6
- 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/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/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/select/src/select.ts +15 -3
- package/packages/switch/index.ts +2 -1
- package/packages/table/index.ts +2 -1
- package/packages/table/src/body.ts +24 -23
- 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 +61 -60
- 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/log.ts +16 -0
- package/packages/tools/utils.ts +0 -15
- package/packages/tooltip/index.ts +2 -1
- package/packages/tooltip/src/tooltip.ts +48 -28
- package/packages/v-x-e-table/index.ts +1 -0
- package/packages/v-x-e-table/src/conf.ts +14 -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 +131 -132
- 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 +62 -62
- 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 +98 -82
- package/types/switch.d.ts +40 -40
- package/types/table.d.ts +1412 -1333
- package/types/textarea.d.ts +71 -71
- package/types/toolbar.d.ts +65 -65
- package/types/tooltip.d.ts +50 -48
- 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
package/types/textarea.d.ts
CHANGED
|
@@ -5,120 +5,120 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf } from './c
|
|
|
5
5
|
* 组件 - 文本域
|
|
6
6
|
* @example import { Textarea as VxeTextarea } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const Textarea: VXEComponent<VxeTextareaProps, VxeTextareaEventProps
|
|
8
|
+
export const Textarea: VXEComponent<VxeTextareaProps, VxeTextareaEventProps>
|
|
9
9
|
|
|
10
|
-
export type VxeTextareaInstance = ComponentPublicInstance<VxeTextareaProps, VxeTextareaConstructor
|
|
10
|
+
export type VxeTextareaInstance = ComponentPublicInstance<VxeTextareaProps, VxeTextareaConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeTextareaConstructor extends VxeComponentBase, VxeTextareaMethods {
|
|
13
|
-
props: VxeTextareaProps
|
|
14
|
-
context: SetupContext<VxeTextareaEmits
|
|
15
|
-
reactData: TextareaReactData
|
|
16
|
-
getRefMaps(): TextareaPrivateRef
|
|
17
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeTextareaProps
|
|
14
|
+
context: SetupContext<VxeTextareaEmits>
|
|
15
|
+
reactData: TextareaReactData
|
|
16
|
+
getRefMaps(): TextareaPrivateRef
|
|
17
|
+
renderVN: RenderFunction
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface TextareaReactData {
|
|
21
|
-
inputValue: any
|
|
21
|
+
inputValue: any
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export interface TextareaPrivateRef {
|
|
25
|
-
refElem: Ref<HTMLDivElement
|
|
26
|
-
refTextarea: Ref<HTMLTextAreaElement
|
|
25
|
+
refElem: Ref<HTMLDivElement>
|
|
26
|
+
refTextarea: Ref<HTMLTextAreaElement>
|
|
27
27
|
}
|
|
28
28
|
export interface VxeTextareaPrivateRef extends TextareaPrivateRef { }
|
|
29
29
|
|
|
30
30
|
export type VxeTextareaProps = {
|
|
31
|
-
size?: VxeTextareaPropTypes.Size
|
|
31
|
+
size?: VxeTextareaPropTypes.Size
|
|
32
32
|
/**
|
|
33
33
|
* 绑定值
|
|
34
34
|
*/
|
|
35
|
-
modelValue?: VxeTextareaPropTypes.ModelValue
|
|
36
|
-
className?: VxeTextareaPropTypes.ClassName
|
|
37
|
-
immediate?: VxeTextareaPropTypes.Immediate
|
|
35
|
+
modelValue?: VxeTextareaPropTypes.ModelValue
|
|
36
|
+
className?: VxeTextareaPropTypes.ClassName
|
|
37
|
+
immediate?: VxeTextareaPropTypes.Immediate
|
|
38
38
|
/**
|
|
39
39
|
* 原生 name 属性
|
|
40
40
|
*/
|
|
41
|
-
name?: VxeTextareaPropTypes.Name
|
|
41
|
+
name?: VxeTextareaPropTypes.Name
|
|
42
42
|
/**
|
|
43
43
|
* 是否只读
|
|
44
44
|
*/
|
|
45
|
-
readonly?: VxeTextareaPropTypes.Readonly
|
|
45
|
+
readonly?: VxeTextareaPropTypes.Readonly
|
|
46
46
|
/**
|
|
47
47
|
* 是否禁用
|
|
48
48
|
*/
|
|
49
|
-
disabled?: VxeTextareaPropTypes.Disabled
|
|
49
|
+
disabled?: VxeTextareaPropTypes.Disabled
|
|
50
50
|
/**
|
|
51
51
|
* 当值为空时,显示的占位符
|
|
52
52
|
*/
|
|
53
|
-
placeholder?: VxeTextareaPropTypes.Placeholder
|
|
53
|
+
placeholder?: VxeTextareaPropTypes.Placeholder
|
|
54
54
|
/**
|
|
55
55
|
* 最大长度
|
|
56
56
|
*/
|
|
57
|
-
maxlength?: VxeTextareaPropTypes.Maxlength
|
|
57
|
+
maxlength?: VxeTextareaPropTypes.Maxlength
|
|
58
58
|
/**
|
|
59
59
|
* 原生 rows 属性
|
|
60
60
|
*/
|
|
61
|
-
rows?: VxeTextareaPropTypes.Rows
|
|
61
|
+
rows?: VxeTextareaPropTypes.Rows
|
|
62
62
|
/**
|
|
63
63
|
* 原生 cols 属性
|
|
64
64
|
*/
|
|
65
|
-
cols?: VxeTextareaPropTypes.Cols
|
|
65
|
+
cols?: VxeTextareaPropTypes.Cols
|
|
66
66
|
/**
|
|
67
67
|
* 是否显示字数统计
|
|
68
68
|
*/
|
|
69
|
-
showWordCount?: VxeTextareaPropTypes.ShowWordCount
|
|
69
|
+
showWordCount?: VxeTextareaPropTypes.ShowWordCount
|
|
70
70
|
/**
|
|
71
71
|
* 自定义字数统计方法
|
|
72
72
|
*/
|
|
73
|
-
countMethod?: VxeTextareaPropTypes.CountMethod
|
|
73
|
+
countMethod?: VxeTextareaPropTypes.CountMethod
|
|
74
74
|
/**
|
|
75
75
|
* 自适应文本高度
|
|
76
76
|
*/
|
|
77
|
-
autosize?: VxeTextareaPropTypes.Autosize
|
|
77
|
+
autosize?: VxeTextareaPropTypes.Autosize
|
|
78
78
|
/**
|
|
79
79
|
* 原生 form 属性
|
|
80
80
|
*/
|
|
81
|
-
form?: VxeTextareaPropTypes.Form
|
|
81
|
+
form?: VxeTextareaPropTypes.Form
|
|
82
82
|
/**
|
|
83
83
|
* 调整文本域大小的方式
|
|
84
84
|
*/
|
|
85
|
-
resize?: VxeTextareaPropTypes.Resize
|
|
85
|
+
resize?: VxeTextareaPropTypes.Resize
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
export namespace VxeTextareaPropTypes {
|
|
89
|
-
export type Size = SizeType
|
|
90
|
-
export type ModelValue = string | number
|
|
91
|
-
export type ClassName = string
|
|
92
|
-
export type Immediate = boolean
|
|
93
|
-
export type Name = string
|
|
94
|
-
export type Readonly = boolean
|
|
95
|
-
export type Disabled = boolean
|
|
96
|
-
export type Placeholder = string
|
|
97
|
-
export type Maxlength = string | number
|
|
98
|
-
export type Rows = string | number
|
|
99
|
-
export type Cols = string | number
|
|
100
|
-
export type ShowWordCount = boolean
|
|
89
|
+
export type Size = SizeType
|
|
90
|
+
export type ModelValue = string | number
|
|
91
|
+
export type ClassName = string
|
|
92
|
+
export type Immediate = boolean
|
|
93
|
+
export type Name = string
|
|
94
|
+
export type Readonly = boolean
|
|
95
|
+
export type Disabled = boolean
|
|
96
|
+
export type Placeholder = string
|
|
97
|
+
export type Maxlength = string | number
|
|
98
|
+
export type Rows = string | number
|
|
99
|
+
export type Cols = string | number
|
|
100
|
+
export type ShowWordCount = boolean
|
|
101
101
|
export type CountMethod = (params: {
|
|
102
|
-
value: string
|
|
103
|
-
}) => number
|
|
102
|
+
value: string
|
|
103
|
+
}) => number
|
|
104
104
|
export type Autosize = {
|
|
105
|
-
minRows?: number
|
|
106
|
-
maxRows?: number
|
|
107
|
-
}
|
|
108
|
-
export type Form = string
|
|
109
|
-
export type Resize = string
|
|
105
|
+
minRows?: number
|
|
106
|
+
maxRows?: number
|
|
107
|
+
}
|
|
108
|
+
export type Form = string
|
|
109
|
+
export type Resize = string
|
|
110
110
|
}
|
|
111
111
|
|
|
112
112
|
export interface TextareaMethods {
|
|
113
|
-
dispatchEvent(type: ValueOf<VxeTextareaEmits>, params: any, evnt: Event): void
|
|
113
|
+
dispatchEvent(type: ValueOf<VxeTextareaEmits>, params: any, evnt: Event): void
|
|
114
114
|
/**
|
|
115
115
|
* 获取焦点
|
|
116
116
|
*/
|
|
117
|
-
focus(): Promise<any
|
|
117
|
+
focus(): Promise<any>
|
|
118
118
|
/**
|
|
119
119
|
* 失去焦点
|
|
120
120
|
*/
|
|
121
|
-
blur(): Promise<any
|
|
121
|
+
blur(): Promise<any>
|
|
122
122
|
}
|
|
123
123
|
export interface VxeTextareaMethods extends TextareaMethods { }
|
|
124
124
|
|
|
@@ -138,11 +138,11 @@ export type VxeTextareaEmits = [
|
|
|
138
138
|
|
|
139
139
|
export namespace VxeTextareaDefines {
|
|
140
140
|
interface TextareaEventParams extends VxeEvent {
|
|
141
|
-
$textarea: VxeTextareaConstructor
|
|
141
|
+
$textarea: VxeTextareaConstructor
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export interface InputParams {
|
|
145
|
-
value: string
|
|
145
|
+
value: string
|
|
146
146
|
}
|
|
147
147
|
export interface InputEventParams extends TextareaEventParams, InputParams { }
|
|
148
148
|
|
|
@@ -166,31 +166,31 @@ export namespace VxeTextareaDefines {
|
|
|
166
166
|
}
|
|
167
167
|
|
|
168
168
|
export type VxeTextareaEventProps = {
|
|
169
|
-
onInput?: VxeTextareaEvents.Input
|
|
170
|
-
onChange?: VxeTextareaEvents.Change
|
|
171
|
-
onKeydown?: VxeTextareaEvents.Keydown
|
|
172
|
-
onKeyup?: VxeTextareaEvents.Keyup
|
|
173
|
-
onClick?: VxeTextareaEvents.Click
|
|
174
|
-
onFocus?: VxeTextareaEvents.Focus
|
|
175
|
-
onBlur?: VxeTextareaEvents.Blur
|
|
169
|
+
onInput?: VxeTextareaEvents.Input
|
|
170
|
+
onChange?: VxeTextareaEvents.Change
|
|
171
|
+
onKeydown?: VxeTextareaEvents.Keydown
|
|
172
|
+
onKeyup?: VxeTextareaEvents.Keyup
|
|
173
|
+
onClick?: VxeTextareaEvents.Click
|
|
174
|
+
onFocus?: VxeTextareaEvents.Focus
|
|
175
|
+
onBlur?: VxeTextareaEvents.Blur
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
export interface VxeTextareaListeners {
|
|
179
|
-
input?: VxeTextareaEvents.Input
|
|
180
|
-
change?: VxeTextareaEvents.Change
|
|
181
|
-
keydown?: VxeTextareaEvents.Keydown
|
|
182
|
-
keyup?: VxeTextareaEvents.Keyup
|
|
183
|
-
click?: VxeTextareaEvents.Click
|
|
184
|
-
focus?: VxeTextareaEvents.Focus
|
|
185
|
-
blur?: VxeTextareaEvents.Blur
|
|
179
|
+
input?: VxeTextareaEvents.Input
|
|
180
|
+
change?: VxeTextareaEvents.Change
|
|
181
|
+
keydown?: VxeTextareaEvents.Keydown
|
|
182
|
+
keyup?: VxeTextareaEvents.Keyup
|
|
183
|
+
click?: VxeTextareaEvents.Click
|
|
184
|
+
focus?: VxeTextareaEvents.Focus
|
|
185
|
+
blur?: VxeTextareaEvents.Blur
|
|
186
186
|
}
|
|
187
187
|
|
|
188
188
|
export namespace VxeTextareaEvents {
|
|
189
|
-
export type Input = (params: VxeTextareaDefines.InputEventParams) => void
|
|
190
|
-
export type Change = (params: VxeTextareaDefines.ChangeEventParams) => void
|
|
191
|
-
export type Keydown = (params: VxeTextareaDefines.KeydownEventParams) => void
|
|
192
|
-
export type Keyup = (params: VxeTextareaDefines.KeyupEventParams) => void
|
|
193
|
-
export type Click = (params: VxeTextareaDefines.ClickEventParams) => void
|
|
194
|
-
export type Focus = (params: VxeTextareaDefines.FocusEventParams) => void
|
|
195
|
-
export type Blur = (params: VxeTextareaDefines.BlurEventParams) => void
|
|
189
|
+
export type Input = (params: VxeTextareaDefines.InputEventParams) => void
|
|
190
|
+
export type Change = (params: VxeTextareaDefines.ChangeEventParams) => void
|
|
191
|
+
export type Keydown = (params: VxeTextareaDefines.KeydownEventParams) => void
|
|
192
|
+
export type Keyup = (params: VxeTextareaDefines.KeyupEventParams) => void
|
|
193
|
+
export type Click = (params: VxeTextareaDefines.ClickEventParams) => void
|
|
194
|
+
export type Focus = (params: VxeTextareaDefines.FocusEventParams) => void
|
|
195
|
+
export type Blur = (params: VxeTextareaDefines.BlurEventParams) => void
|
|
196
196
|
}
|
package/types/toolbar.d.ts
CHANGED
|
@@ -8,158 +8,158 @@ import { VxeButtonProps } from './button'
|
|
|
8
8
|
* 组件 - 工具栏
|
|
9
9
|
* @example import { Toolbar as VxeToolbar } from 'vxe-table'
|
|
10
10
|
*/
|
|
11
|
-
export const Toolbar: VXEComponent<VxeToolbarProps, VxeToolbarEventProps
|
|
11
|
+
export const Toolbar: VXEComponent<VxeToolbarProps, VxeToolbarEventProps>
|
|
12
12
|
|
|
13
|
-
export type VxeToolbarInstance = ComponentPublicInstance<VxeToolbarProps, VxeToolbarConstructor
|
|
13
|
+
export type VxeToolbarInstance = ComponentPublicInstance<VxeToolbarProps, VxeToolbarConstructor>
|
|
14
14
|
|
|
15
15
|
export interface VxeToolbarConstructor extends VxeComponentBase, VxeToolbarMethods {
|
|
16
|
-
props: VxeToolbarProps
|
|
17
|
-
context: SetupContext<VxeToolbarEmits
|
|
18
|
-
reactData: ToolbarReactData
|
|
19
|
-
getRefMaps(): ToolbarPrivateRef
|
|
20
|
-
renderVN: RenderFunction
|
|
16
|
+
props: VxeToolbarProps
|
|
17
|
+
context: SetupContext<VxeToolbarEmits>
|
|
18
|
+
reactData: ToolbarReactData
|
|
19
|
+
getRefMaps(): ToolbarPrivateRef
|
|
20
|
+
renderVN: RenderFunction
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export interface ToolbarPrivateRef {
|
|
24
|
-
refElem: Ref<HTMLDivElement
|
|
24
|
+
refElem: Ref<HTMLDivElement>
|
|
25
25
|
}
|
|
26
26
|
export interface VxeToolbarPrivateRef extends ToolbarPrivateRef { }
|
|
27
27
|
|
|
28
28
|
export namespace VxeToolbarPropTypes {
|
|
29
|
-
export type Size = SizeType
|
|
30
|
-
export type Id = string
|
|
31
|
-
export type Loading = boolean
|
|
29
|
+
export type Size = SizeType
|
|
30
|
+
export type Id = string
|
|
31
|
+
export type Loading = boolean
|
|
32
32
|
|
|
33
33
|
interface ResizableConfig {
|
|
34
|
-
storage?: boolean
|
|
34
|
+
storage?: boolean
|
|
35
35
|
}
|
|
36
|
-
export type Resizable = boolean | ResizableConfig
|
|
36
|
+
export type Resizable = boolean | ResizableConfig
|
|
37
37
|
export interface ResizableOpts extends ResizableConfig { }
|
|
38
38
|
|
|
39
39
|
interface RefreshConfig {
|
|
40
|
-
query?(params: {}): Promise<any
|
|
41
|
-
icon?: string
|
|
42
|
-
iconLoading?: string
|
|
40
|
+
query?(params: {}): Promise<any>
|
|
41
|
+
icon?: string
|
|
42
|
+
iconLoading?: string
|
|
43
43
|
}
|
|
44
|
-
export type Refresh = boolean | RefreshConfig
|
|
44
|
+
export type Refresh = boolean | RefreshConfig
|
|
45
45
|
export interface RefreshOpts extends RefreshConfig { }
|
|
46
46
|
|
|
47
47
|
interface ImportConfig {
|
|
48
|
-
icon?: string
|
|
48
|
+
icon?: string
|
|
49
49
|
}
|
|
50
|
-
export type Import = boolean | ImportConfig
|
|
50
|
+
export type Import = boolean | ImportConfig
|
|
51
51
|
export interface ImportOpts extends ImportConfig { }
|
|
52
52
|
|
|
53
53
|
interface ExportConfig {
|
|
54
|
-
icon?: string
|
|
54
|
+
icon?: string
|
|
55
55
|
}
|
|
56
|
-
export type Export = boolean | ExportConfig
|
|
56
|
+
export type Export = boolean | ExportConfig
|
|
57
57
|
export interface ExportOpts extends ExportConfig { }
|
|
58
58
|
|
|
59
59
|
export interface PrintConfig {
|
|
60
|
-
icon?: string
|
|
60
|
+
icon?: string
|
|
61
61
|
}
|
|
62
|
-
export type Print = boolean | PrintConfig
|
|
62
|
+
export type Print = boolean | PrintConfig
|
|
63
63
|
export interface PrintOpts extends PrintConfig { }
|
|
64
64
|
|
|
65
65
|
interface ZoomConfig {
|
|
66
|
-
iconIn?: string
|
|
67
|
-
iconOut?: string
|
|
66
|
+
iconIn?: string
|
|
67
|
+
iconOut?: string
|
|
68
68
|
}
|
|
69
|
-
export type Zoom = boolean | ZoomConfig
|
|
69
|
+
export type Zoom = boolean | ZoomConfig
|
|
70
70
|
export interface ZoomOpts extends ZoomConfig { }
|
|
71
71
|
|
|
72
72
|
interface CustomConfig {
|
|
73
73
|
trigger?: string,
|
|
74
|
-
immediate?: boolean
|
|
75
|
-
storage?: boolean
|
|
76
|
-
checkMethod?(params: { column: VxeTableDefines.ColumnInfo }): boolean
|
|
77
|
-
isFooter?: Boolean
|
|
78
|
-
icon?: string
|
|
74
|
+
immediate?: boolean
|
|
75
|
+
storage?: boolean
|
|
76
|
+
checkMethod?(params: { column: VxeTableDefines.ColumnInfo }): boolean
|
|
77
|
+
isFooter?: Boolean
|
|
78
|
+
icon?: string
|
|
79
79
|
}
|
|
80
|
-
export type Custom = boolean | CustomConfig
|
|
80
|
+
export type Custom = boolean | CustomConfig
|
|
81
81
|
export interface CustomOpts extends CustomConfig { }
|
|
82
82
|
|
|
83
83
|
interface ButtonAndToolConfig extends VxeButtonProps {
|
|
84
|
-
code?: string
|
|
85
|
-
visible?: boolean
|
|
86
|
-
params?: any
|
|
84
|
+
code?: string
|
|
85
|
+
visible?: boolean
|
|
86
|
+
params?: any
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
export interface ButtonConfig extends ButtonAndToolConfig {
|
|
90
|
-
dropdowns?: ButtonConfig[]
|
|
91
|
-
buttonRender?: VxeGlobalRendererHandles.RenderButtonOptions
|
|
90
|
+
dropdowns?: ButtonConfig[]
|
|
91
|
+
buttonRender?: VxeGlobalRendererHandles.RenderButtonOptions
|
|
92
92
|
}
|
|
93
|
-
export type Buttons = ButtonConfig[]
|
|
93
|
+
export type Buttons = ButtonConfig[]
|
|
94
94
|
|
|
95
95
|
export interface ToolConfig extends ButtonAndToolConfig {
|
|
96
|
-
dropdowns?: ToolConfig[]
|
|
97
|
-
toolRender?: VxeGlobalRendererHandles.RenderToolOptions
|
|
96
|
+
dropdowns?: ToolConfig[]
|
|
97
|
+
toolRender?: VxeGlobalRendererHandles.RenderToolOptions
|
|
98
98
|
}
|
|
99
|
-
export type Tools = ToolConfig[]
|
|
99
|
+
export type Tools = ToolConfig[]
|
|
100
100
|
|
|
101
|
-
export type Perfect = boolean
|
|
101
|
+
export type Perfect = boolean
|
|
102
102
|
|
|
103
103
|
export type ClassName = string | ((params: {
|
|
104
|
-
$toolbar: VxeToolbarConstructor
|
|
105
|
-
}) => string)
|
|
104
|
+
$toolbar: VxeToolbarConstructor
|
|
105
|
+
}) => string)
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
export type VxeToolbarProps = {
|
|
109
|
-
size?: VxeToolbarPropTypes.Size
|
|
109
|
+
size?: VxeToolbarPropTypes.Size
|
|
110
110
|
/**
|
|
111
111
|
* 唯一 ID 标识
|
|
112
112
|
*/
|
|
113
|
-
id?: VxeToolbarPropTypes.Id
|
|
113
|
+
id?: VxeToolbarPropTypes.Id
|
|
114
114
|
/**
|
|
115
115
|
* 是否加载中
|
|
116
116
|
*/
|
|
117
|
-
loading?: VxeToolbarPropTypes.Loading
|
|
117
|
+
loading?: VxeToolbarPropTypes.Loading
|
|
118
118
|
/**
|
|
119
119
|
* 列宽拖动配置
|
|
120
120
|
*/
|
|
121
|
-
resizable?: VxeToolbarPropTypes.Resizable
|
|
121
|
+
resizable?: VxeToolbarPropTypes.Resizable
|
|
122
122
|
/**
|
|
123
123
|
* 刷新按钮配置
|
|
124
124
|
*/
|
|
125
|
-
refresh?: VxeToolbarPropTypes.Refresh
|
|
125
|
+
refresh?: VxeToolbarPropTypes.Refresh
|
|
126
126
|
/**
|
|
127
127
|
* 导入按钮配置
|
|
128
128
|
*/
|
|
129
|
-
import?: VxeToolbarPropTypes.Import
|
|
129
|
+
import?: VxeToolbarPropTypes.Import
|
|
130
130
|
/**
|
|
131
131
|
* 导出按钮配置
|
|
132
132
|
*/
|
|
133
|
-
export?: VxeToolbarPropTypes.Export
|
|
134
|
-
print?: VxeToolbarPropTypes.Print
|
|
135
|
-
zoom?: VxeToolbarPropTypes.Zoom
|
|
133
|
+
export?: VxeToolbarPropTypes.Export
|
|
134
|
+
print?: VxeToolbarPropTypes.Print
|
|
135
|
+
zoom?: VxeToolbarPropTypes.Zoom
|
|
136
136
|
/**
|
|
137
137
|
* 自定义列配置
|
|
138
138
|
*/
|
|
139
|
-
custom?: VxeToolbarPropTypes.Custom
|
|
139
|
+
custom?: VxeToolbarPropTypes.Custom
|
|
140
140
|
/**
|
|
141
141
|
* 按钮列表
|
|
142
142
|
*/
|
|
143
|
-
buttons?: VxeToolbarPropTypes.Buttons
|
|
144
|
-
tools?: VxeToolbarPropTypes.Tools
|
|
143
|
+
buttons?: VxeToolbarPropTypes.Buttons
|
|
144
|
+
tools?: VxeToolbarPropTypes.Tools
|
|
145
145
|
/**
|
|
146
146
|
* 配套的样式
|
|
147
147
|
*/
|
|
148
|
-
perfect?: VxeToolbarPropTypes.Perfect
|
|
149
|
-
className?: VxeToolbarPropTypes.ClassName
|
|
148
|
+
perfect?: VxeToolbarPropTypes.Perfect
|
|
149
|
+
className?: VxeToolbarPropTypes.ClassName
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
export interface ToolbarReactData {
|
|
153
|
-
isRefresh: boolean
|
|
154
|
-
columns: VxeTableDefines.ColumnInfo[]
|
|
153
|
+
isRefresh: boolean
|
|
154
|
+
columns: VxeTableDefines.ColumnInfo[]
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export interface ToolbarMethods {
|
|
158
|
-
dispatchEvent(type: ValueOf<VxeToolbarEmits>, params: any, evnt: Event): void
|
|
158
|
+
dispatchEvent(type: ValueOf<VxeToolbarEmits>, params: any, evnt: Event): void
|
|
159
159
|
syncUpdate(params: {
|
|
160
|
-
collectColumn: VxeTableDefines.ColumnInfo[]
|
|
161
|
-
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
162
|
-
}): void
|
|
160
|
+
collectColumn: VxeTableDefines.ColumnInfo[]
|
|
161
|
+
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
162
|
+
}): void
|
|
163
163
|
}
|
|
164
164
|
export interface VxeToolbarMethods extends ToolbarMethods { }
|
|
165
165
|
|
|
@@ -173,7 +173,7 @@ export type VxeToolbarEmits = [
|
|
|
173
173
|
|
|
174
174
|
export namespace VxeToolbarDefines {
|
|
175
175
|
interface ToolbarEventParams extends VxeEvent {
|
|
176
|
-
$toolbar: VxeToolbarConstructor
|
|
176
|
+
$toolbar: VxeToolbarConstructor
|
|
177
177
|
}
|
|
178
178
|
}
|
|
179
179
|
|
package/types/tooltip.d.ts
CHANGED
|
@@ -5,82 +5,84 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf, VNodeStyle
|
|
|
5
5
|
* 组件 - 工具提示
|
|
6
6
|
* @example import { Tooltip as VxeTooltip } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const Tooltip: VXEComponent<VxeTooltipProps, VxeTooltipEventProps
|
|
8
|
+
export const Tooltip: VXEComponent<VxeTooltipProps, VxeTooltipEventProps>
|
|
9
9
|
|
|
10
|
-
export type VxeTooltipInstance = ComponentPublicInstance<VxeTooltipProps, VxeTooltipConstructor
|
|
10
|
+
export type VxeTooltipInstance = ComponentPublicInstance<VxeTooltipProps, VxeTooltipConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeTooltipConstructor extends VxeComponentBase, VxeTooltipMethods {
|
|
13
|
-
props: VxeTooltipProps
|
|
14
|
-
context: SetupContext<VxeTooltipEmits
|
|
15
|
-
reactData: TooltipReactData
|
|
16
|
-
getRefMaps(): TooltipPrivateRef
|
|
17
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeTooltipProps
|
|
14
|
+
context: SetupContext<VxeTooltipEmits>
|
|
15
|
+
reactData: TooltipReactData
|
|
16
|
+
getRefMaps(): TooltipPrivateRef
|
|
17
|
+
renderVN: RenderFunction
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface TooltipPrivateRef {
|
|
21
|
-
refElem: Ref<HTMLDivElement
|
|
21
|
+
refElem: Ref<HTMLDivElement>
|
|
22
22
|
}
|
|
23
23
|
export interface VxeTooltipPrivateRef extends TooltipPrivateRef { }
|
|
24
24
|
|
|
25
25
|
export interface TooltipReactData {
|
|
26
|
-
target: HTMLElement | null
|
|
27
|
-
isUpdate: boolean
|
|
28
|
-
visible: boolean
|
|
29
|
-
|
|
30
|
-
tipActive: boolean
|
|
31
|
-
tipTarget: HTMLElement | null
|
|
32
|
-
tipZindex: number
|
|
26
|
+
target: HTMLElement | null
|
|
27
|
+
isUpdate: boolean
|
|
28
|
+
visible: boolean
|
|
29
|
+
tipContent: string | number | undefined,
|
|
30
|
+
tipActive: boolean
|
|
31
|
+
tipTarget: HTMLElement | null
|
|
32
|
+
tipZindex: number
|
|
33
33
|
tipStore: {
|
|
34
|
-
style: VNodeStyle
|
|
35
|
-
placement: any
|
|
34
|
+
style: VNodeStyle
|
|
35
|
+
placement: any
|
|
36
36
|
arrowStyle: VNodeStyle
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export namespace VxeTooltipPropTypes {
|
|
41
|
-
export type Size = SizeType
|
|
42
|
-
export type ModelValue = boolean
|
|
43
|
-
export type Trigger = 'hover' | 'click'
|
|
44
|
-
export type Theme = string
|
|
45
|
-
export type Content = string | number
|
|
46
|
-
export type
|
|
47
|
-
export type
|
|
48
|
-
export type
|
|
49
|
-
export type
|
|
50
|
-
export type
|
|
51
|
-
export type
|
|
41
|
+
export type Size = SizeType
|
|
42
|
+
export type ModelValue = boolean
|
|
43
|
+
export type Trigger = 'hover' | 'click'
|
|
44
|
+
export type Theme = string
|
|
45
|
+
export type Content = string | number
|
|
46
|
+
export type UseHTML = boolean
|
|
47
|
+
export type ZIndex = string | number
|
|
48
|
+
export type IsArrow = boolean
|
|
49
|
+
export type Enterable = boolean
|
|
50
|
+
export type EnterDelay = number
|
|
51
|
+
export type LeaveDelay = number
|
|
52
|
+
export type LeaveMethod = (params: { $event: MouseEvent }) => boolean
|
|
52
53
|
}
|
|
53
54
|
|
|
54
55
|
export type VxeTooltipProps = {
|
|
55
|
-
size?: VxeTooltipPropTypes.Size
|
|
56
|
-
modelValue?: VxeTooltipPropTypes.ModelValue
|
|
57
|
-
trigger?: VxeTooltipPropTypes.Trigger
|
|
58
|
-
theme?: VxeTooltipPropTypes.Theme
|
|
59
|
-
content?: VxeTooltipPropTypes.Content
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
56
|
+
size?: VxeTooltipPropTypes.Size
|
|
57
|
+
modelValue?: VxeTooltipPropTypes.ModelValue
|
|
58
|
+
trigger?: VxeTooltipPropTypes.Trigger
|
|
59
|
+
theme?: VxeTooltipPropTypes.Theme
|
|
60
|
+
content?: VxeTooltipPropTypes.Content
|
|
61
|
+
useHTML?: VxeTooltipPropTypes.UseHTML
|
|
62
|
+
zIndex?: VxeTooltipPropTypes.ZIndex
|
|
63
|
+
isArrow?: VxeTooltipPropTypes.IsArrow
|
|
64
|
+
enterable?: VxeTooltipPropTypes.Enterable
|
|
65
|
+
enterDelay?: VxeTooltipPropTypes.EnterDelay
|
|
66
|
+
leaveDelay?: VxeTooltipPropTypes.LeaveDelay
|
|
67
|
+
leaveMethod?: VxeTooltipPropTypes.LeaveMethod
|
|
66
68
|
}
|
|
67
69
|
|
|
68
70
|
export interface TooltipMethods {
|
|
69
|
-
dispatchEvent(type: ValueOf<VxeTooltipEmits>, params: any, evnt: Event): void
|
|
71
|
+
dispatchEvent(type: ValueOf<VxeTooltipEmits>, params: any, evnt: Event): void
|
|
70
72
|
/**
|
|
71
73
|
* 显示
|
|
72
74
|
* @param target 自定义目标元素
|
|
73
|
-
* @param
|
|
75
|
+
* @param content 自定义内容
|
|
74
76
|
*/
|
|
75
|
-
open(target?: any,
|
|
76
|
-
toVisible(target?: HTMLElement,
|
|
77
|
+
open(target?: any, content?: VxeTooltipPropTypes.Content): Promise<void>
|
|
78
|
+
toVisible(target?: HTMLElement, content?: VxeTooltipPropTypes.Content): Promise<void>
|
|
77
79
|
/**
|
|
78
80
|
* 隐藏
|
|
79
81
|
*/
|
|
80
|
-
close(): Promise<any
|
|
81
|
-
updatePlacement(): Promise<any
|
|
82
|
-
isActived(): boolean
|
|
83
|
-
setActived(actived: boolean): void
|
|
82
|
+
close(): Promise<any>
|
|
83
|
+
updatePlacement(): Promise<any>
|
|
84
|
+
isActived(): boolean
|
|
85
|
+
setActived(actived: boolean): void
|
|
84
86
|
}
|
|
85
87
|
export interface VxeTooltipMethods extends TooltipMethods { }
|
|
86
88
|
|
|
@@ -93,7 +95,7 @@ export type VxeTooltipEmits = [
|
|
|
93
95
|
|
|
94
96
|
export namespace VxeTooltipDefines {
|
|
95
97
|
interface TooltipEventParams extends VxeEvent {
|
|
96
|
-
$tooltip: VxeTooltipConstructor
|
|
98
|
+
$tooltip: VxeTooltipConstructor
|
|
97
99
|
}
|
|
98
100
|
}
|
|
99
101
|
|
|
@@ -3,12 +3,12 @@ import { VxeToolbarPropTypes } from '../toolbar'
|
|
|
3
3
|
import { VxeTableConstructor, VxeTablePrivateMethods } from '../table'
|
|
4
4
|
|
|
5
5
|
export namespace VxeGlobalCommandsHandles {
|
|
6
|
-
export type CommandsCallback = (params: CommandsOptions, ...args: any[]) => any
|
|
6
|
+
export type CommandsCallback = (params: CommandsOptions, ...args: any[]) => any
|
|
7
7
|
export interface CommandsOptions {
|
|
8
|
-
$grid?: VxeGridConstructor
|
|
9
|
-
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
10
|
-
code: string
|
|
11
|
-
button?: VxeToolbarPropTypes.ButtonConfig | null
|
|
8
|
+
$grid?: VxeGridConstructor
|
|
9
|
+
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
10
|
+
code: string
|
|
11
|
+
button?: VxeToolbarPropTypes.ButtonConfig | null
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
|
|
@@ -17,11 +17,11 @@ export namespace VxeGlobalCommandsHandles {
|
|
|
17
17
|
*/
|
|
18
18
|
export interface VxeGlobalCommands {
|
|
19
19
|
mixin(options: {
|
|
20
|
-
[code: string]: VxeGlobalCommandsHandles.CommandsCallback
|
|
21
|
-
}): VxeGlobalCommands
|
|
22
|
-
has(code: string): boolean
|
|
23
|
-
get(code: string): VxeGlobalCommandsHandles.CommandsCallback
|
|
24
|
-
add(code: string, callback: VxeGlobalCommandsHandles.CommandsCallback): VxeGlobalCommands
|
|
25
|
-
delete(code: string): void
|
|
26
|
-
forEach(callback: (options: VxeGlobalCommandsHandles.CommandsCallback, code: string) => void): void
|
|
20
|
+
[code: string]: VxeGlobalCommandsHandles.CommandsCallback
|
|
21
|
+
}): VxeGlobalCommands
|
|
22
|
+
has(code: string): boolean
|
|
23
|
+
get(code: string): VxeGlobalCommandsHandles.CommandsCallback
|
|
24
|
+
add(code: string, callback: VxeGlobalCommandsHandles.CommandsCallback): VxeGlobalCommands
|
|
25
|
+
delete(code: string): void
|
|
26
|
+
forEach(callback: (options: VxeGlobalCommandsHandles.CommandsCallback, code: string) => void): void
|
|
27
27
|
}
|