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
package/types/menu.d.ts
CHANGED
|
@@ -5,19 +5,19 @@ import { VxeGlobalRendererHandles } from './v-x-e-table'
|
|
|
5
5
|
/**
|
|
6
6
|
* 表格扩展 - 快捷菜单
|
|
7
7
|
*/
|
|
8
|
-
export const Menu: VXEComponent<{}
|
|
8
|
+
export const Menu: VXEComponent<{}>
|
|
9
9
|
|
|
10
|
-
export type VxeMenuPanelInstance = ComponentPublicInstance<VxeMenuPanelProps, VxeMenuPanelConstructor
|
|
10
|
+
export type VxeMenuPanelInstance = ComponentPublicInstance<VxeMenuPanelProps, VxeMenuPanelConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeMenuPanelConstructor extends VxeComponentBase, VxeMenuPanelMethods {
|
|
13
|
-
props: VxeMenuPanelProps
|
|
14
|
-
context: SetupContext
|
|
15
|
-
getRefMaps(): MenuPanelPrivateRef
|
|
16
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeMenuPanelProps
|
|
14
|
+
context: SetupContext
|
|
15
|
+
getRefMaps(): MenuPanelPrivateRef
|
|
16
|
+
renderVN: RenderFunction
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
export interface MenuPanelPrivateRef {
|
|
20
|
-
refElem: Ref<HTMLDivElement
|
|
20
|
+
refElem: Ref<HTMLDivElement>
|
|
21
21
|
}
|
|
22
22
|
export interface VxeMenuPanelPrivateRef extends MenuPanelPrivateRef { }
|
|
23
23
|
|
|
@@ -29,15 +29,15 @@ export interface TableMenuMethods {
|
|
|
29
29
|
/**
|
|
30
30
|
* 手动关闭快捷菜单
|
|
31
31
|
*/
|
|
32
|
-
closeMenu(): Promise<any
|
|
32
|
+
closeMenu(): Promise<any>
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
export interface TableMenuPrivateMethods {
|
|
36
|
-
moveCtxMenu(evnt: any, ctxMenuStore: any, property: any, hasOper: boolean, operRest: any, menuList: any): void
|
|
37
|
-
handleGlobalContextmenuEvent(evnt: any): void
|
|
38
|
-
ctxMenuMouseoverEvent(evnt: any, item: any, child?: any): void
|
|
39
|
-
ctxMenuMouseoutEvent(evnt: any, item: any): void
|
|
40
|
-
ctxMenuLinkEvent(evnt: any, menu: any): void
|
|
36
|
+
moveCtxMenu(evnt: any, ctxMenuStore: any, property: any, hasOper: boolean, operRest: any, menuList: any): void
|
|
37
|
+
handleGlobalContextmenuEvent(evnt: any): void
|
|
38
|
+
ctxMenuMouseoverEvent(evnt: any, item: any, child?: any): void
|
|
39
|
+
ctxMenuMouseoutEvent(evnt: any, item: any): void
|
|
40
|
+
ctxMenuLinkEvent(evnt: any, menu: any): void
|
|
41
41
|
}
|
|
42
42
|
|
|
43
43
|
declare module './grid' {
|
|
@@ -49,30 +49,30 @@ declare module './table' {
|
|
|
49
49
|
interface VxeTablePrivateMethods extends TableMenuPrivateMethods { }
|
|
50
50
|
namespace VxeTableDefines {
|
|
51
51
|
export interface MenuOptions {
|
|
52
|
-
disabled?: boolean
|
|
53
|
-
options?: MenuFirstOption[][]
|
|
52
|
+
disabled?: boolean
|
|
53
|
+
options?: MenuFirstOption[][]
|
|
54
54
|
}
|
|
55
55
|
export interface MenuFirstOption {
|
|
56
|
-
code?: string
|
|
57
|
-
name?: string
|
|
58
|
-
prefixIcon?: string
|
|
59
|
-
suffixIcon?: string
|
|
60
|
-
className?: string
|
|
61
|
-
visible?: boolean
|
|
62
|
-
disabled?: boolean
|
|
63
|
-
children?: MenuChildOption[]
|
|
64
|
-
params?: any
|
|
65
|
-
[key: string]: any
|
|
56
|
+
code?: string
|
|
57
|
+
name?: string
|
|
58
|
+
prefixIcon?: string
|
|
59
|
+
suffixIcon?: string
|
|
60
|
+
className?: string
|
|
61
|
+
visible?: boolean
|
|
62
|
+
disabled?: boolean
|
|
63
|
+
children?: MenuChildOption[]
|
|
64
|
+
params?: any
|
|
65
|
+
[key: string]: any
|
|
66
66
|
}
|
|
67
67
|
export interface MenuChildOption {
|
|
68
|
-
code?: string
|
|
69
|
-
name?: string
|
|
70
|
-
prefixIcon?: string
|
|
71
|
-
className?: string
|
|
72
|
-
visible?: boolean
|
|
73
|
-
disabled?: boolean
|
|
74
|
-
params?: any
|
|
75
|
-
[key: string]: any
|
|
68
|
+
code?: string
|
|
69
|
+
name?: string
|
|
70
|
+
prefixIcon?: string
|
|
71
|
+
className?: string
|
|
72
|
+
visible?: boolean
|
|
73
|
+
disabled?: boolean
|
|
74
|
+
params?: any
|
|
75
|
+
[key: string]: any
|
|
76
76
|
}
|
|
77
77
|
}
|
|
78
78
|
}
|
package/types/modal.d.ts
CHANGED
|
@@ -5,79 +5,79 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf } from './c
|
|
|
5
5
|
* 组件 - 弹窗
|
|
6
6
|
* @example import { Modal as VxeModal } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const Modal: VXEComponent<VxeModalProps, VxeModalEventProps
|
|
8
|
+
export const Modal: VXEComponent<VxeModalProps, VxeModalEventProps>
|
|
9
9
|
|
|
10
|
-
export type VxeModalInstance = ComponentPublicInstance<VxeModalProps, VxeModalConstructor
|
|
10
|
+
export type VxeModalInstance = ComponentPublicInstance<VxeModalProps, VxeModalConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeModalConstructor extends VxeComponentBase, VxeModalMethods {
|
|
13
|
-
props: VxeModalProps
|
|
14
|
-
context: SetupContext<VxeModalEmits
|
|
15
|
-
reactData: ModalReactData
|
|
16
|
-
getRefMaps(): ModalPrivateRef
|
|
17
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeModalProps
|
|
14
|
+
context: SetupContext<VxeModalEmits>
|
|
15
|
+
reactData: ModalReactData
|
|
16
|
+
getRefMaps(): ModalPrivateRef
|
|
17
|
+
renderVN: RenderFunction
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface ModalPrivateRef {
|
|
21
|
-
refElem: Ref<HTMLDivElement
|
|
21
|
+
refElem: Ref<HTMLDivElement>
|
|
22
22
|
}
|
|
23
23
|
export interface VxeModalPrivateRef extends ModalPrivateRef { }
|
|
24
24
|
|
|
25
25
|
export interface ModalReactData {
|
|
26
|
-
inited: boolean
|
|
27
|
-
visible: boolean
|
|
28
|
-
contentVisible: boolean
|
|
29
|
-
modalTop: number
|
|
30
|
-
modalZindex: number
|
|
26
|
+
inited: boolean
|
|
27
|
+
visible: boolean
|
|
28
|
+
contentVisible: boolean
|
|
29
|
+
modalTop: number
|
|
30
|
+
modalZindex: number
|
|
31
31
|
zoomLocat: {
|
|
32
|
-
left: number
|
|
33
|
-
top: number
|
|
34
|
-
width: number
|
|
35
|
-
height: number
|
|
36
|
-
} | null
|
|
37
|
-
firstOpen: boolean
|
|
32
|
+
left: number
|
|
33
|
+
top: number
|
|
34
|
+
width: number
|
|
35
|
+
height: number
|
|
36
|
+
} | null
|
|
37
|
+
firstOpen: boolean
|
|
38
38
|
}
|
|
39
39
|
|
|
40
40
|
export interface ModalMethods {
|
|
41
|
-
dispatchEvent(type: ValueOf<VxeModalEmits>, params: any, evnt?: Event): void
|
|
41
|
+
dispatchEvent(type: ValueOf<VxeModalEmits>, params: any, evnt?: Event): void
|
|
42
42
|
/**
|
|
43
43
|
* 手动打开窗口
|
|
44
44
|
*/
|
|
45
|
-
open(): Promise<any
|
|
45
|
+
open(): Promise<any>
|
|
46
46
|
/**
|
|
47
47
|
* 手动关闭窗口
|
|
48
48
|
*/
|
|
49
|
-
close(): Promise<any
|
|
49
|
+
close(): Promise<any>
|
|
50
50
|
/**
|
|
51
51
|
* 获取当前窗口元素
|
|
52
52
|
*/
|
|
53
|
-
getBox(): HTMLElement
|
|
53
|
+
getBox(): HTMLElement
|
|
54
54
|
/**
|
|
55
55
|
* 获取窗口位置
|
|
56
56
|
*/
|
|
57
57
|
getPosition(): {
|
|
58
|
-
top?: number
|
|
59
|
-
left?: number
|
|
60
|
-
} | null
|
|
58
|
+
top?: number
|
|
59
|
+
left?: number
|
|
60
|
+
} | null
|
|
61
61
|
/**
|
|
62
62
|
* 设置窗口位置
|
|
63
63
|
*/
|
|
64
|
-
setPosition(top?: number, left?: number): Promise<any
|
|
64
|
+
setPosition(top?: number, left?: number): Promise<any>
|
|
65
65
|
/**
|
|
66
66
|
* 判断是否最大化显示
|
|
67
67
|
*/
|
|
68
|
-
isMaximized(): boolean
|
|
68
|
+
isMaximized(): boolean
|
|
69
69
|
/**
|
|
70
70
|
* 切换窗口最大化/还原
|
|
71
71
|
*/
|
|
72
|
-
zoom(): Promise<boolean
|
|
72
|
+
zoom(): Promise<boolean>
|
|
73
73
|
/**
|
|
74
74
|
* 如果窗口处于常规状态,则最大化窗口
|
|
75
75
|
*/
|
|
76
|
-
maximize(): Promise<any
|
|
76
|
+
maximize(): Promise<any>
|
|
77
77
|
/**
|
|
78
78
|
* 如果窗口处于最大化状态,则还原窗口
|
|
79
79
|
*/
|
|
80
|
-
revert(): Promise<any
|
|
80
|
+
revert(): Promise<any>
|
|
81
81
|
}
|
|
82
82
|
export interface VxeModalMethods extends ModalMethods { }
|
|
83
83
|
|
|
@@ -94,9 +94,9 @@ export type ModalType = 'alert' | 'confirm' | 'message' | 'modal'
|
|
|
94
94
|
export type ModalStatus = 'info' | 'success' | 'warning' | 'question' | 'error' | 'loading'
|
|
95
95
|
|
|
96
96
|
export type ModalPosition = {
|
|
97
|
-
top?: number
|
|
98
|
-
left?: number
|
|
99
|
-
}
|
|
97
|
+
top?: number
|
|
98
|
+
left?: number
|
|
99
|
+
}
|
|
100
100
|
|
|
101
101
|
/**
|
|
102
102
|
* 窗口事件类型
|
|
@@ -104,111 +104,111 @@ export type ModalPosition = {
|
|
|
104
104
|
export type ModalEventTypes = 'model' | 'mask' | 'close' | 'confirm' | 'cancel' | 'exit' | 'exist'
|
|
105
105
|
|
|
106
106
|
export namespace VxeModalPropTypes {
|
|
107
|
-
export type Size = SizeType
|
|
108
|
-
export type ModelValue = boolean
|
|
109
|
-
export type ID = string | null
|
|
110
|
-
export type Type = ModalType
|
|
111
|
-
export type Loading = boolean
|
|
112
|
-
export type Status = ModalStatus
|
|
113
|
-
export type IconStatus = string
|
|
114
|
-
export type ClassName = string
|
|
115
|
-
export type Top = number | string
|
|
116
|
-
export type Position = 'center' | ModalPosition
|
|
117
|
-
export type Title = string | number
|
|
118
|
-
export type Duration = number | string
|
|
119
|
-
export type Content = number | string
|
|
107
|
+
export type Size = SizeType
|
|
108
|
+
export type ModelValue = boolean
|
|
109
|
+
export type ID = string | null
|
|
110
|
+
export type Type = ModalType
|
|
111
|
+
export type Loading = boolean
|
|
112
|
+
export type Status = ModalStatus
|
|
113
|
+
export type IconStatus = string
|
|
114
|
+
export type ClassName = string
|
|
115
|
+
export type Top = number | string
|
|
116
|
+
export type Position = 'center' | ModalPosition
|
|
117
|
+
export type Title = string | number
|
|
118
|
+
export type Duration = number | string
|
|
119
|
+
export type Content = number | string
|
|
120
120
|
/**
|
|
121
121
|
* 请使用 content
|
|
122
122
|
* @deprecated
|
|
123
123
|
*/
|
|
124
|
-
export type Message = Content
|
|
125
|
-
export type CancelButtonText = string
|
|
126
|
-
export type ConfirmButtonText = string
|
|
127
|
-
export type LockView = boolean
|
|
128
|
-
export type LockScroll = boolean
|
|
129
|
-
export type Mask = boolean
|
|
130
|
-
export type MaskClosable = boolean
|
|
131
|
-
export type EscClosable = boolean
|
|
132
|
-
export type Resize = boolean
|
|
133
|
-
export type ShowHeader = boolean
|
|
134
|
-
export type ShowFooter = boolean
|
|
135
|
-
export type ShowZoom = boolean
|
|
136
|
-
export type ShowClose = boolean
|
|
137
|
-
export type DblclickZoom = boolean
|
|
138
|
-
export type Width = number | string
|
|
139
|
-
export type Height = number | string
|
|
140
|
-
export type MinWidth = number | string
|
|
141
|
-
export type MinHeight = number | string
|
|
142
|
-
export type ZIndex = number
|
|
143
|
-
export type MarginSize = number | string
|
|
144
|
-
export type Fullscreen = boolean
|
|
145
|
-
export type Draggable = boolean
|
|
146
|
-
export type Remember = boolean
|
|
147
|
-
export type DestroyOnClose = boolean
|
|
148
|
-
export type ShowTitleOverflow = boolean
|
|
149
|
-
export type Transfer = boolean
|
|
150
|
-
export type Storage = boolean
|
|
151
|
-
export type StorageKey = string
|
|
152
|
-
export type Animat = boolean
|
|
153
|
-
export type BeforeHideMethod = (params: ModalVisibleParams) => Promise<any
|
|
154
|
-
export type Slots = ModalSlots
|
|
124
|
+
export type Message = Content
|
|
125
|
+
export type CancelButtonText = string
|
|
126
|
+
export type ConfirmButtonText = string
|
|
127
|
+
export type LockView = boolean
|
|
128
|
+
export type LockScroll = boolean
|
|
129
|
+
export type Mask = boolean
|
|
130
|
+
export type MaskClosable = boolean
|
|
131
|
+
export type EscClosable = boolean
|
|
132
|
+
export type Resize = boolean
|
|
133
|
+
export type ShowHeader = boolean
|
|
134
|
+
export type ShowFooter = boolean
|
|
135
|
+
export type ShowZoom = boolean
|
|
136
|
+
export type ShowClose = boolean
|
|
137
|
+
export type DblclickZoom = boolean
|
|
138
|
+
export type Width = number | string
|
|
139
|
+
export type Height = number | string
|
|
140
|
+
export type MinWidth = number | string
|
|
141
|
+
export type MinHeight = number | string
|
|
142
|
+
export type ZIndex = number
|
|
143
|
+
export type MarginSize = number | string
|
|
144
|
+
export type Fullscreen = boolean
|
|
145
|
+
export type Draggable = boolean
|
|
146
|
+
export type Remember = boolean
|
|
147
|
+
export type DestroyOnClose = boolean
|
|
148
|
+
export type ShowTitleOverflow = boolean
|
|
149
|
+
export type Transfer = boolean
|
|
150
|
+
export type Storage = boolean
|
|
151
|
+
export type StorageKey = string
|
|
152
|
+
export type Animat = boolean
|
|
153
|
+
export type BeforeHideMethod = (params: ModalVisibleParams) => Promise<any>
|
|
154
|
+
export type Slots = ModalSlots
|
|
155
155
|
}
|
|
156
156
|
|
|
157
157
|
export type VxeModalProps = {
|
|
158
|
-
size?: VxeModalPropTypes.Size
|
|
159
|
-
modelValue?: VxeModalPropTypes.ModelValue
|
|
160
|
-
id?: VxeModalPropTypes.ID
|
|
161
|
-
type?: VxeModalPropTypes.Type
|
|
162
|
-
loading?: VxeModalPropTypes.Loading
|
|
163
|
-
status?: VxeModalPropTypes.Status
|
|
164
|
-
iconStatus?: VxeModalPropTypes.IconStatus
|
|
165
|
-
className?: VxeModalPropTypes.ClassName
|
|
166
|
-
top?: VxeModalPropTypes.Top
|
|
167
|
-
position?: VxeModalPropTypes.Position
|
|
168
|
-
title?: VxeModalPropTypes.Title
|
|
169
|
-
duration?: VxeModalPropTypes.Duration
|
|
170
|
-
content?: VxeModalPropTypes.Content
|
|
171
|
-
cancelButtonText?: VxeModalPropTypes.CancelButtonText
|
|
172
|
-
confirmButtonText?: VxeModalPropTypes.ConfirmButtonText
|
|
173
|
-
lockView?: VxeModalPropTypes.LockView
|
|
174
|
-
lockScroll?: VxeModalPropTypes.LockScroll
|
|
175
|
-
mask?: VxeModalPropTypes.Mask
|
|
176
|
-
maskClosable?: VxeModalPropTypes.MaskClosable
|
|
177
|
-
escClosable?: VxeModalPropTypes.EscClosable
|
|
178
|
-
resize?: VxeModalPropTypes.Resize
|
|
179
|
-
showHeader?: VxeModalPropTypes.ShowHeader
|
|
180
|
-
showFooter?: VxeModalPropTypes.ShowFooter
|
|
181
|
-
showZoom?: VxeModalPropTypes.ShowZoom
|
|
182
|
-
showClose?: VxeModalPropTypes.ShowClose
|
|
183
|
-
dblclickZoom?: VxeModalPropTypes.DblclickZoom
|
|
184
|
-
draggable?: VxeModalPropTypes.Draggable
|
|
185
|
-
width?: VxeModalPropTypes.Width
|
|
186
|
-
height?: VxeModalPropTypes.Height
|
|
187
|
-
minWidth?: VxeModalPropTypes.MinWidth
|
|
188
|
-
minHeight?: VxeModalPropTypes.MinHeight
|
|
189
|
-
zIndex?: VxeModalPropTypes.ZIndex
|
|
190
|
-
marginSize?: VxeModalPropTypes.MarginSize
|
|
191
|
-
fullscreen?: VxeModalPropTypes.Fullscreen
|
|
192
|
-
remember?: VxeModalPropTypes.Remember
|
|
193
|
-
destroyOnClose?: VxeModalPropTypes.DestroyOnClose
|
|
194
|
-
showTitleOverflow?: VxeModalPropTypes.ShowTitleOverflow
|
|
195
|
-
transfer?: VxeModalPropTypes.Transfer
|
|
196
|
-
storage?: VxeModalPropTypes.Storage
|
|
197
|
-
storageKey?: VxeModalPropTypes.StorageKey
|
|
198
|
-
animat?: VxeModalPropTypes.Animat
|
|
199
|
-
beforeHideMethod?: VxeModalPropTypes.BeforeHideMethod
|
|
200
|
-
slots?: VxeModalPropTypes.Slots
|
|
158
|
+
size?: VxeModalPropTypes.Size
|
|
159
|
+
modelValue?: VxeModalPropTypes.ModelValue
|
|
160
|
+
id?: VxeModalPropTypes.ID
|
|
161
|
+
type?: VxeModalPropTypes.Type
|
|
162
|
+
loading?: VxeModalPropTypes.Loading
|
|
163
|
+
status?: VxeModalPropTypes.Status
|
|
164
|
+
iconStatus?: VxeModalPropTypes.IconStatus
|
|
165
|
+
className?: VxeModalPropTypes.ClassName
|
|
166
|
+
top?: VxeModalPropTypes.Top
|
|
167
|
+
position?: VxeModalPropTypes.Position
|
|
168
|
+
title?: VxeModalPropTypes.Title
|
|
169
|
+
duration?: VxeModalPropTypes.Duration
|
|
170
|
+
content?: VxeModalPropTypes.Content
|
|
171
|
+
cancelButtonText?: VxeModalPropTypes.CancelButtonText
|
|
172
|
+
confirmButtonText?: VxeModalPropTypes.ConfirmButtonText
|
|
173
|
+
lockView?: VxeModalPropTypes.LockView
|
|
174
|
+
lockScroll?: VxeModalPropTypes.LockScroll
|
|
175
|
+
mask?: VxeModalPropTypes.Mask
|
|
176
|
+
maskClosable?: VxeModalPropTypes.MaskClosable
|
|
177
|
+
escClosable?: VxeModalPropTypes.EscClosable
|
|
178
|
+
resize?: VxeModalPropTypes.Resize
|
|
179
|
+
showHeader?: VxeModalPropTypes.ShowHeader
|
|
180
|
+
showFooter?: VxeModalPropTypes.ShowFooter
|
|
181
|
+
showZoom?: VxeModalPropTypes.ShowZoom
|
|
182
|
+
showClose?: VxeModalPropTypes.ShowClose
|
|
183
|
+
dblclickZoom?: VxeModalPropTypes.DblclickZoom
|
|
184
|
+
draggable?: VxeModalPropTypes.Draggable
|
|
185
|
+
width?: VxeModalPropTypes.Width
|
|
186
|
+
height?: VxeModalPropTypes.Height
|
|
187
|
+
minWidth?: VxeModalPropTypes.MinWidth
|
|
188
|
+
minHeight?: VxeModalPropTypes.MinHeight
|
|
189
|
+
zIndex?: VxeModalPropTypes.ZIndex
|
|
190
|
+
marginSize?: VxeModalPropTypes.MarginSize
|
|
191
|
+
fullscreen?: VxeModalPropTypes.Fullscreen
|
|
192
|
+
remember?: VxeModalPropTypes.Remember
|
|
193
|
+
destroyOnClose?: VxeModalPropTypes.DestroyOnClose
|
|
194
|
+
showTitleOverflow?: VxeModalPropTypes.ShowTitleOverflow
|
|
195
|
+
transfer?: VxeModalPropTypes.Transfer
|
|
196
|
+
storage?: VxeModalPropTypes.Storage
|
|
197
|
+
storageKey?: VxeModalPropTypes.StorageKey
|
|
198
|
+
animat?: VxeModalPropTypes.Animat
|
|
199
|
+
beforeHideMethod?: VxeModalPropTypes.BeforeHideMethod
|
|
200
|
+
slots?: VxeModalPropTypes.Slots
|
|
201
201
|
/**
|
|
202
202
|
* @deprecated 已废弃,请使用 content
|
|
203
203
|
*/
|
|
204
|
-
message?: VxeModalPropTypes.Content
|
|
204
|
+
message?: VxeModalPropTypes.Content
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export type ModalSlots = {
|
|
208
|
-
default?(params: ModalDefaultSlotParams): JSX.Element[] | VNode[] | string[]
|
|
209
|
-
header?(params: ModalHeaderSlotParams): JSX.Element[] | VNode[] | string[]
|
|
210
|
-
title?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
|
|
211
|
-
footer?(params: ModalFooterSlotParams): JSX.Element[] | VNode[] | string[]
|
|
208
|
+
default?(params: ModalDefaultSlotParams): JSX.Element[] | VNode[] | string[]
|
|
209
|
+
header?(params: ModalHeaderSlotParams): JSX.Element[] | VNode[] | string[]
|
|
210
|
+
title?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
|
|
211
|
+
footer?(params: ModalFooterSlotParams): JSX.Element[] | VNode[] | string[]
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
export type VxeModalEmits = [
|
|
@@ -230,57 +230,57 @@ export interface ModalController {
|
|
|
230
230
|
* 创建窗口
|
|
231
231
|
* @param options 参数
|
|
232
232
|
*/
|
|
233
|
-
open(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
233
|
+
open(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
234
234
|
/**
|
|
235
235
|
* 创建提示框
|
|
236
236
|
* @param content 消息内容
|
|
237
237
|
* @param title 标题
|
|
238
238
|
* @param options 参数
|
|
239
239
|
*/
|
|
240
|
-
alert(content: VxeModalPropTypes.Content, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
240
|
+
alert(content: VxeModalPropTypes.Content, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
241
241
|
/**
|
|
242
242
|
* 创建提示框
|
|
243
243
|
* @param options 参数
|
|
244
244
|
*/
|
|
245
|
-
alert(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
245
|
+
alert(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
246
246
|
/**
|
|
247
247
|
* 创建确认框
|
|
248
248
|
* @param content 消息内容
|
|
249
249
|
* @param title 标题
|
|
250
250
|
* @param options 参数
|
|
251
251
|
*/
|
|
252
|
-
confirm(content: VxeModalPropTypes.Content, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
252
|
+
confirm(content: VxeModalPropTypes.Content, title?: VxeModalPropTypes.Title, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
253
253
|
/**
|
|
254
254
|
* 创建确认框
|
|
255
255
|
* @param options 参数
|
|
256
256
|
*/
|
|
257
|
-
confirm(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
257
|
+
confirm(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
258
258
|
/**
|
|
259
259
|
* 创建消息提示
|
|
260
260
|
* @param content 消息内容
|
|
261
261
|
* @param title 标题
|
|
262
262
|
* @param options 参数
|
|
263
263
|
*/
|
|
264
|
-
message(content: VxeModalPropTypes.Content, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
264
|
+
message(content: VxeModalPropTypes.Content, options?: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
265
265
|
/**
|
|
266
266
|
* 创建消息提示
|
|
267
267
|
* @param options 参数
|
|
268
268
|
*/
|
|
269
|
-
message(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes
|
|
269
|
+
message(options: VxeModalDefines.ModalOptions): Promise<ModalEventTypes>
|
|
270
270
|
/**
|
|
271
271
|
* 获取动态的活动窗口
|
|
272
272
|
* @param id 窗口唯一标识
|
|
273
273
|
*/
|
|
274
|
-
get(id: string): VxeModalConstructor & VxeModalMethods
|
|
274
|
+
get(id: string): VxeModalConstructor & VxeModalMethods
|
|
275
275
|
/**
|
|
276
276
|
* 关闭动态的活动窗口,如果为空则关闭所有
|
|
277
277
|
* @param id 窗口唯一标识
|
|
278
278
|
*/
|
|
279
|
-
close(id?: VxeModalPropTypes.ID): Promise<any
|
|
279
|
+
close(id?: VxeModalPropTypes.ID): Promise<any>
|
|
280
280
|
}
|
|
281
281
|
|
|
282
282
|
export interface ModalDefaultSlotParams {
|
|
283
|
-
$modal: VxeModalConstructor & VxeModalMethods
|
|
283
|
+
$modal: VxeModalConstructor & VxeModalMethods
|
|
284
284
|
}
|
|
285
285
|
|
|
286
286
|
export interface ModalHeaderSlotParams extends ModalDefaultSlotParams { }
|
|
@@ -288,16 +288,16 @@ export interface ModalTitleSlotParams extends ModalDefaultSlotParams { }
|
|
|
288
288
|
export interface ModalFooterSlotParams extends ModalDefaultSlotParams { }
|
|
289
289
|
|
|
290
290
|
interface ModalVisibleParams {
|
|
291
|
-
type: ModalEventTypes
|
|
291
|
+
type: ModalEventTypes
|
|
292
292
|
}
|
|
293
293
|
|
|
294
294
|
export namespace VxeModalDefines {
|
|
295
295
|
export interface ModalOptions extends VxeModalProps, VxeModalEventProps {
|
|
296
|
-
key?: string | number
|
|
296
|
+
key?: string | number
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
interface ModalEventParams extends VxeEvent {
|
|
300
|
-
$modal: VxeModalConstructor & VxeModalMethods
|
|
300
|
+
$modal: VxeModalConstructor & VxeModalMethods
|
|
301
301
|
}
|
|
302
302
|
|
|
303
303
|
interface ModalBaseParams extends ModalVisibleParams { }
|
|
@@ -325,31 +325,31 @@ export namespace VxeModalDefines {
|
|
|
325
325
|
}
|
|
326
326
|
|
|
327
327
|
export type VxeModalEventProps = {
|
|
328
|
-
onShow?: VxeModalEvents.Show
|
|
329
|
-
onHide?: VxeModalEvents.Hide
|
|
330
|
-
onBeforeHide?: VxeModalEvents.BeforeHide
|
|
331
|
-
onConfirm?: VxeModalEvents.Confirm
|
|
332
|
-
onCancel?: VxeModalEvents.Cancel
|
|
333
|
-
onClose?: VxeModalEvents.Close
|
|
334
|
-
onZoom?: VxeModalEvents.Zoom
|
|
328
|
+
onShow?: VxeModalEvents.Show
|
|
329
|
+
onHide?: VxeModalEvents.Hide
|
|
330
|
+
onBeforeHide?: VxeModalEvents.BeforeHide
|
|
331
|
+
onConfirm?: VxeModalEvents.Confirm
|
|
332
|
+
onCancel?: VxeModalEvents.Cancel
|
|
333
|
+
onClose?: VxeModalEvents.Close
|
|
334
|
+
onZoom?: VxeModalEvents.Zoom
|
|
335
335
|
}
|
|
336
336
|
|
|
337
337
|
export interface VxeModalListeners {
|
|
338
|
-
show?: VxeModalEvents.Show
|
|
339
|
-
hide?: VxeModalEvents.Hide
|
|
340
|
-
beforeHide?: VxeModalEvents.BeforeHide
|
|
341
|
-
confirm?: VxeModalEvents.Confirm
|
|
342
|
-
cancel?: VxeModalEvents.Cancel
|
|
343
|
-
close?: VxeModalEvents.Close
|
|
344
|
-
zoom?: VxeModalEvents.Zoom
|
|
338
|
+
show?: VxeModalEvents.Show
|
|
339
|
+
hide?: VxeModalEvents.Hide
|
|
340
|
+
beforeHide?: VxeModalEvents.BeforeHide
|
|
341
|
+
confirm?: VxeModalEvents.Confirm
|
|
342
|
+
cancel?: VxeModalEvents.Cancel
|
|
343
|
+
close?: VxeModalEvents.Close
|
|
344
|
+
zoom?: VxeModalEvents.Zoom
|
|
345
345
|
}
|
|
346
346
|
|
|
347
347
|
export namespace VxeModalEvents {
|
|
348
|
-
export type Show = (params: VxeModalDefines.ShowEventParams) => void
|
|
349
|
-
export type Hide = (params: VxeModalDefines.HideEventParams) => void
|
|
350
|
-
export type BeforeHide = (params: VxeModalDefines.BeforeHideEventParams) => void
|
|
351
|
-
export type Confirm = (params: VxeModalDefines.ConfirmEventParams) => void
|
|
352
|
-
export type Cancel = (params: VxeModalDefines.CancelEventParams) => void
|
|
353
|
-
export type Close = (params: VxeModalDefines.CloseEventParams) => void
|
|
354
|
-
export type Zoom = (params: VxeModalDefines.ZoomEventParams) => void
|
|
348
|
+
export type Show = (params: VxeModalDefines.ShowEventParams) => void
|
|
349
|
+
export type Hide = (params: VxeModalDefines.HideEventParams) => void
|
|
350
|
+
export type BeforeHide = (params: VxeModalDefines.BeforeHideEventParams) => void
|
|
351
|
+
export type Confirm = (params: VxeModalDefines.ConfirmEventParams) => void
|
|
352
|
+
export type Cancel = (params: VxeModalDefines.CancelEventParams) => void
|
|
353
|
+
export type Close = (params: VxeModalDefines.CloseEventParams) => void
|
|
354
|
+
export type Zoom = (params: VxeModalDefines.ZoomEventParams) => void
|
|
355
355
|
}
|
package/types/optgroup.d.ts
CHANGED
|
@@ -5,20 +5,20 @@ import { VxeOptionProps, VxeOptionPropTypes } from './option'
|
|
|
5
5
|
* 组件 - 下拉框选项分组
|
|
6
6
|
* @example import { Optgroup as VxeOptgroup } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const Optgroup: VXEComponent<VxeOptgroupProps
|
|
8
|
+
export const Optgroup: VXEComponent<VxeOptgroupProps>
|
|
9
9
|
|
|
10
10
|
export type VxeOptgroupProps = {
|
|
11
11
|
/**
|
|
12
12
|
* 显示内容
|
|
13
13
|
*/
|
|
14
|
-
label?: VxeOptionPropTypes.Label
|
|
14
|
+
label?: VxeOptionPropTypes.Label
|
|
15
15
|
/**
|
|
16
16
|
* 是否禁用
|
|
17
17
|
*/
|
|
18
|
-
visible?: VxeOptionPropTypes.Visible
|
|
19
|
-
className?: VxeOptionPropTypes.ClassName
|
|
18
|
+
visible?: VxeOptionPropTypes.Visible
|
|
19
|
+
className?: VxeOptionPropTypes.ClassName
|
|
20
20
|
/**
|
|
21
21
|
* 是否禁用
|
|
22
22
|
*/
|
|
23
|
-
disabled?: VxeOptionPropTypes.Disabled
|
|
23
|
+
disabled?: VxeOptionPropTypes.Disabled
|
|
24
24
|
}
|
package/types/option.d.ts
CHANGED
|
@@ -6,47 +6,47 @@ import { VxeSelectConstructor } from './select'
|
|
|
6
6
|
* 组件 - 下拉框选项
|
|
7
7
|
* @example import { Option as VxeOption } from 'vxe-table'
|
|
8
8
|
*/
|
|
9
|
-
export const Option: VXEComponent<VxeOptionProps
|
|
9
|
+
export const Option: VXEComponent<VxeOptionProps>
|
|
10
10
|
|
|
11
11
|
export type VxeOptionProps = {
|
|
12
12
|
/**
|
|
13
13
|
* 绑定值
|
|
14
14
|
*/
|
|
15
|
-
value?: VxeOptionPropTypes.Value
|
|
15
|
+
value?: VxeOptionPropTypes.Value
|
|
16
16
|
/**
|
|
17
17
|
* 显示内容
|
|
18
18
|
*/
|
|
19
|
-
label?: VxeOptionPropTypes.Label
|
|
19
|
+
label?: VxeOptionPropTypes.Label
|
|
20
20
|
/**
|
|
21
21
|
* 是否显示
|
|
22
22
|
*/
|
|
23
|
-
visible?: VxeOptionPropTypes.Visible
|
|
24
|
-
className?: VxeOptionPropTypes.ClassName
|
|
23
|
+
visible?: VxeOptionPropTypes.Visible
|
|
24
|
+
className?: VxeOptionPropTypes.ClassName
|
|
25
25
|
/**
|
|
26
26
|
* 是否禁用
|
|
27
27
|
*/
|
|
28
|
-
disabled?: VxeOptionPropTypes.Disabled
|
|
28
|
+
disabled?: VxeOptionPropTypes.Disabled
|
|
29
29
|
slots?: {
|
|
30
30
|
default?: string | ((params: {
|
|
31
|
-
option: any
|
|
32
|
-
$select: VxeSelectConstructor
|
|
33
|
-
}) => JSX.Element[] | VNode[] | string[]) | null
|
|
31
|
+
option: any
|
|
32
|
+
$select: VxeSelectConstructor
|
|
33
|
+
}) => JSX.Element[] | VNode[] | string[]) | null
|
|
34
34
|
}
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export namespace VxeOptionPropTypes {
|
|
38
|
-
export type Value = any
|
|
39
|
-
export type Label = string | number | boolean
|
|
40
|
-
export type Visible = boolean
|
|
38
|
+
export type Value = any
|
|
39
|
+
export type Label = string | number | boolean
|
|
40
|
+
export type Visible = boolean
|
|
41
41
|
export type ClassName = string | ((params: {
|
|
42
|
-
option: any
|
|
43
|
-
$select: VxeSelectConstructor
|
|
44
|
-
}) => string)
|
|
45
|
-
export type Disabled = boolean
|
|
42
|
+
option: any
|
|
43
|
+
$select: VxeSelectConstructor
|
|
44
|
+
}) => string)
|
|
45
|
+
export type Disabled = boolean
|
|
46
46
|
export type Slots = {
|
|
47
47
|
default?: string | ((params: {
|
|
48
|
-
option: any
|
|
49
|
-
$select: VxeSelectConstructor
|
|
50
|
-
}) => JSX.Element[] | VNode[] | string[]) | null
|
|
48
|
+
option: any
|
|
49
|
+
$select: VxeSelectConstructor
|
|
50
|
+
}) => JSX.Element[] | VNode[] | string[]) | null
|
|
51
51
|
}
|
|
52
52
|
}
|