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/header.d.ts
CHANGED
package/types/icon.d.ts
CHANGED
package/types/input.d.ts
CHANGED
|
@@ -5,141 +5,141 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, VNodeStyle, ValueOf
|
|
|
5
5
|
* 组件 - 输入框
|
|
6
6
|
* @example import { Input as VxeInput } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const Input: VXEComponent<VxeInputProps, VxeInputEventProps
|
|
8
|
+
export const Input: VXEComponent<VxeInputProps, VxeInputEventProps>
|
|
9
9
|
|
|
10
|
-
export type VxeInputInstance = ComponentPublicInstance<VxeInputProps, VxeInputConstructor
|
|
10
|
+
export type VxeInputInstance = ComponentPublicInstance<VxeInputProps, VxeInputConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeInputConstructor extends VxeComponentBase, VxeInputMethods {
|
|
13
|
-
props: VxeInputProps
|
|
14
|
-
context: SetupContext<VxeInputEmits
|
|
15
|
-
reactData: InputReactData
|
|
16
|
-
getRefMaps(): InputPrivateRef
|
|
17
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeInputProps
|
|
14
|
+
context: SetupContext<VxeInputEmits>
|
|
15
|
+
reactData: InputReactData
|
|
16
|
+
getRefMaps(): InputPrivateRef
|
|
17
|
+
renderVN: RenderFunction
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
export interface InputPrivateRef {
|
|
21
|
-
refElem: Ref<HTMLDivElement
|
|
22
|
-
refInput: Ref<HTMLInputElement
|
|
21
|
+
refElem: Ref<HTMLDivElement>
|
|
22
|
+
refInput: Ref<HTMLInputElement>
|
|
23
23
|
}
|
|
24
24
|
export interface VxeInputPrivateRef extends InputPrivateRef { }
|
|
25
25
|
|
|
26
|
-
type DatePanelType = 'year' | 'quarter' | 'month' | 'week' | 'day'
|
|
26
|
+
type DatePanelType = 'year' | 'quarter' | 'month' | 'week' | 'day'
|
|
27
27
|
|
|
28
28
|
export interface InputReactData {
|
|
29
|
-
inited: boolean
|
|
30
|
-
panelIndex: number
|
|
31
|
-
showPwd: boolean
|
|
32
|
-
visiblePanel: boolean
|
|
33
|
-
animatVisible: boolean
|
|
34
|
-
panelStyle: VNodeStyle | null
|
|
35
|
-
panelPlacement: VxeInputPropTypes.Placement
|
|
36
|
-
isActivated: boolean
|
|
37
|
-
inputValue: any
|
|
38
|
-
datetimePanelValue: any
|
|
39
|
-
datePanelValue: Date | null
|
|
40
|
-
datePanelLabel: string
|
|
41
|
-
datePanelType: DatePanelType
|
|
42
|
-
selectMonth: any
|
|
43
|
-
currentDate: any
|
|
29
|
+
inited: boolean
|
|
30
|
+
panelIndex: number
|
|
31
|
+
showPwd: boolean
|
|
32
|
+
visiblePanel: boolean
|
|
33
|
+
animatVisible: boolean
|
|
34
|
+
panelStyle: VNodeStyle | null
|
|
35
|
+
panelPlacement: VxeInputPropTypes.Placement
|
|
36
|
+
isActivated: boolean
|
|
37
|
+
inputValue: any
|
|
38
|
+
datetimePanelValue: any
|
|
39
|
+
datePanelValue: Date | null
|
|
40
|
+
datePanelLabel: string
|
|
41
|
+
datePanelType: DatePanelType
|
|
42
|
+
selectMonth: any
|
|
43
|
+
currentDate: any
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
export namespace VxeInputPropTypes {
|
|
47
|
-
export type Size = SizeType
|
|
48
|
-
export type ModelValue = string | number | Date | null
|
|
49
|
-
export type ClassName = string
|
|
50
|
-
export type Immediate = boolean
|
|
51
|
-
export type Name = string
|
|
52
|
-
export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
|
|
53
|
-
export type Clearable = boolean
|
|
54
|
-
export type Readonly = boolean
|
|
55
|
-
export type Disabled = boolean
|
|
56
|
-
export type Placeholder = string
|
|
57
|
-
export type Maxlength = string | number
|
|
58
|
-
export type Autocomplete = string
|
|
59
|
-
export type Align = string
|
|
60
|
-
export type Form = string
|
|
61
|
-
export type Min = string | number
|
|
62
|
-
export type Max = string | number
|
|
63
|
-
export type Step = string | number
|
|
64
|
-
export type Exponential = boolean
|
|
65
|
-
export type Controls = boolean
|
|
66
|
-
export type Digits = string | number
|
|
67
|
-
export type MinDate = string | number | Date
|
|
68
|
-
export type MaxDate = string | number | Date
|
|
69
|
-
export type StartDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
70
|
-
export type SelectDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
71
|
-
export type LabelFormat = string
|
|
72
|
-
export type ValueFormat = string
|
|
73
|
-
export type Editable = boolean
|
|
74
|
-
export type FestivalMethod = (params: VxeInputDefines.DateFestivalParams) => VxeInputDefines.DateFestivalInfo | null | void
|
|
75
|
-
export type DisabledMethod = (params: VxeInputDefines.DateDisabledParams) => boolean
|
|
76
|
-
export type PrefixIcon = string
|
|
77
|
-
export type SuffixIcon = string
|
|
78
|
-
export type Placement = 'top' | 'bottom' | '' | null
|
|
79
|
-
export type Transfer = boolean
|
|
47
|
+
export type Size = SizeType
|
|
48
|
+
export type ModelValue = string | number | Date | null
|
|
49
|
+
export type ClassName = string
|
|
50
|
+
export type Immediate = boolean
|
|
51
|
+
export type Name = string
|
|
52
|
+
export type Type = 'text' | 'search' | 'number' | 'integer' | 'float' | 'password' | 'date' | 'time' | 'datetime' | 'week' | 'month' | 'quarter' | 'year'
|
|
53
|
+
export type Clearable = boolean
|
|
54
|
+
export type Readonly = boolean
|
|
55
|
+
export type Disabled = boolean
|
|
56
|
+
export type Placeholder = string
|
|
57
|
+
export type Maxlength = string | number
|
|
58
|
+
export type Autocomplete = string
|
|
59
|
+
export type Align = string
|
|
60
|
+
export type Form = string
|
|
61
|
+
export type Min = string | number
|
|
62
|
+
export type Max = string | number
|
|
63
|
+
export type Step = string | number
|
|
64
|
+
export type Exponential = boolean
|
|
65
|
+
export type Controls = boolean
|
|
66
|
+
export type Digits = string | number
|
|
67
|
+
export type MinDate = string | number | Date
|
|
68
|
+
export type MaxDate = string | number | Date
|
|
69
|
+
export type StartDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
70
|
+
export type SelectDay = 0 | 1 | 2 | 3 | 4 | 5 | 6
|
|
71
|
+
export type LabelFormat = string
|
|
72
|
+
export type ValueFormat = string
|
|
73
|
+
export type Editable = boolean
|
|
74
|
+
export type FestivalMethod = (params: VxeInputDefines.DateFestivalParams) => VxeInputDefines.DateFestivalInfo | null | void
|
|
75
|
+
export type DisabledMethod = (params: VxeInputDefines.DateDisabledParams) => boolean
|
|
76
|
+
export type PrefixIcon = string
|
|
77
|
+
export type SuffixIcon = string
|
|
78
|
+
export type Placement = 'top' | 'bottom' | '' | null
|
|
79
|
+
export type Transfer = boolean
|
|
80
80
|
}
|
|
81
81
|
|
|
82
82
|
export type VxeInputProps = {
|
|
83
|
-
size?: VxeInputPropTypes.Size
|
|
84
|
-
modelValue?: VxeInputPropTypes.ModelValue
|
|
85
|
-
className?: VxeInputPropTypes.ClassName
|
|
86
|
-
immediate?: VxeInputPropTypes.Immediate
|
|
87
|
-
name?: VxeInputPropTypes.Name
|
|
88
|
-
type?: VxeInputPropTypes.Type
|
|
89
|
-
clearable?: VxeInputPropTypes.Clearable
|
|
90
|
-
readonly?: VxeInputPropTypes.Readonly
|
|
91
|
-
disabled?: VxeInputPropTypes.Disabled
|
|
92
|
-
placeholder?: VxeInputPropTypes.Placeholder
|
|
93
|
-
maxlength?: VxeInputPropTypes.Maxlength
|
|
94
|
-
autocomplete?: VxeInputPropTypes.Autocomplete
|
|
95
|
-
align?: VxeInputPropTypes.Align
|
|
96
|
-
form?: VxeInputPropTypes.Form
|
|
83
|
+
size?: VxeInputPropTypes.Size
|
|
84
|
+
modelValue?: VxeInputPropTypes.ModelValue
|
|
85
|
+
className?: VxeInputPropTypes.ClassName
|
|
86
|
+
immediate?: VxeInputPropTypes.Immediate
|
|
87
|
+
name?: VxeInputPropTypes.Name
|
|
88
|
+
type?: VxeInputPropTypes.Type
|
|
89
|
+
clearable?: VxeInputPropTypes.Clearable
|
|
90
|
+
readonly?: VxeInputPropTypes.Readonly
|
|
91
|
+
disabled?: VxeInputPropTypes.Disabled
|
|
92
|
+
placeholder?: VxeInputPropTypes.Placeholder
|
|
93
|
+
maxlength?: VxeInputPropTypes.Maxlength
|
|
94
|
+
autocomplete?: VxeInputPropTypes.Autocomplete
|
|
95
|
+
align?: VxeInputPropTypes.Align
|
|
96
|
+
form?: VxeInputPropTypes.Form
|
|
97
97
|
|
|
98
98
|
// number、integer、float
|
|
99
|
-
min?: VxeInputPropTypes.Min
|
|
100
|
-
max?: VxeInputPropTypes.Max
|
|
101
|
-
step?: VxeInputPropTypes.Step
|
|
102
|
-
exponential?: VxeInputPropTypes.Exponential
|
|
99
|
+
min?: VxeInputPropTypes.Min
|
|
100
|
+
max?: VxeInputPropTypes.Max
|
|
101
|
+
step?: VxeInputPropTypes.Step
|
|
102
|
+
exponential?: VxeInputPropTypes.Exponential
|
|
103
103
|
|
|
104
104
|
// number、integer、float、password
|
|
105
|
-
controls?: VxeInputPropTypes.Controls
|
|
105
|
+
controls?: VxeInputPropTypes.Controls
|
|
106
106
|
|
|
107
107
|
// float
|
|
108
|
-
digits?: VxeInputPropTypes.Digits
|
|
108
|
+
digits?: VxeInputPropTypes.Digits
|
|
109
109
|
|
|
110
110
|
// date、week、month、quarter、year
|
|
111
|
-
minDate?: VxeInputPropTypes.MinDate
|
|
112
|
-
maxDate?: VxeInputPropTypes.MaxDate
|
|
111
|
+
minDate?: VxeInputPropTypes.MinDate
|
|
112
|
+
maxDate?: VxeInputPropTypes.MaxDate
|
|
113
113
|
/**
|
|
114
114
|
* @deprecated
|
|
115
115
|
*/
|
|
116
|
-
startWeek?: VxeInputPropTypes.StartDay
|
|
117
|
-
startDay?: VxeInputPropTypes.StartDay
|
|
118
|
-
labelFormat?: VxeInputPropTypes.LabelFormat
|
|
119
|
-
valueFormat?: VxeInputPropTypes.ValueFormat
|
|
120
|
-
editable?: VxeInputPropTypes.Editable
|
|
121
|
-
festivalMethod?: VxeInputPropTypes.FestivalMethod
|
|
122
|
-
disabledMethod?: VxeInputPropTypes.DisabledMethod
|
|
116
|
+
startWeek?: VxeInputPropTypes.StartDay
|
|
117
|
+
startDay?: VxeInputPropTypes.StartDay
|
|
118
|
+
labelFormat?: VxeInputPropTypes.LabelFormat
|
|
119
|
+
valueFormat?: VxeInputPropTypes.ValueFormat
|
|
120
|
+
editable?: VxeInputPropTypes.Editable
|
|
121
|
+
festivalMethod?: VxeInputPropTypes.FestivalMethod
|
|
122
|
+
disabledMethod?: VxeInputPropTypes.DisabledMethod
|
|
123
123
|
|
|
124
124
|
// week
|
|
125
|
-
selectDay?: VxeInputPropTypes.SelectDay
|
|
125
|
+
selectDay?: VxeInputPropTypes.SelectDay
|
|
126
126
|
|
|
127
|
-
prefixIcon?: VxeInputPropTypes.PrefixIcon
|
|
128
|
-
suffixIcon?: VxeInputPropTypes.SuffixIcon
|
|
129
|
-
placement?: VxeInputPropTypes.Placement
|
|
130
|
-
transfer?: VxeInputPropTypes.Transfer
|
|
127
|
+
prefixIcon?: VxeInputPropTypes.PrefixIcon
|
|
128
|
+
suffixIcon?: VxeInputPropTypes.SuffixIcon
|
|
129
|
+
placement?: VxeInputPropTypes.Placement
|
|
130
|
+
transfer?: VxeInputPropTypes.Transfer
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
export interface InputMethods {
|
|
134
|
-
dispatchEvent: (type: ValueOf<VxeInputEmits>, params: any, evnt?: Event | { type: string }) => void
|
|
134
|
+
dispatchEvent: (type: ValueOf<VxeInputEmits>, params: any, evnt?: Event | { type: string }) => void
|
|
135
135
|
/**
|
|
136
136
|
* 获取焦点
|
|
137
137
|
*/
|
|
138
|
-
focus(): Promise<any
|
|
138
|
+
focus(): Promise<any>
|
|
139
139
|
/**
|
|
140
140
|
* 失去焦点
|
|
141
141
|
*/
|
|
142
|
-
blur(): Promise<any
|
|
142
|
+
blur(): Promise<any>
|
|
143
143
|
}
|
|
144
144
|
export interface VxeInputMethods extends InputMethods { }
|
|
145
145
|
|
|
@@ -174,13 +174,13 @@ export namespace VxeInputDefines {
|
|
|
174
174
|
/**
|
|
175
175
|
* 显示名称
|
|
176
176
|
*/
|
|
177
|
-
label?: string
|
|
177
|
+
label?: string
|
|
178
178
|
/**
|
|
179
179
|
* 标记为重要信息
|
|
180
180
|
*/
|
|
181
|
-
important?: boolean
|
|
182
|
-
className?: string
|
|
183
|
-
style?: VNodeStyle
|
|
181
|
+
important?: boolean
|
|
182
|
+
className?: string
|
|
183
|
+
style?: VNodeStyle
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
/**
|
|
@@ -190,34 +190,34 @@ export namespace VxeInputDefines {
|
|
|
190
190
|
/**
|
|
191
191
|
* 显示左上角小圆点通知
|
|
192
192
|
*/
|
|
193
|
-
notice?: boolean
|
|
193
|
+
notice?: boolean
|
|
194
194
|
/**
|
|
195
195
|
* 显示右上角信息
|
|
196
196
|
*/
|
|
197
|
-
extra?: string | DateFestivalItem
|
|
197
|
+
extra?: string | DateFestivalItem
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export interface DateFestivalParams {
|
|
201
|
-
$input: VxeInputConstructor
|
|
202
|
-
type: string
|
|
203
|
-
viewType: DatePanelType
|
|
204
|
-
date: Date
|
|
201
|
+
$input: VxeInputConstructor
|
|
202
|
+
type: string
|
|
203
|
+
viewType: DatePanelType
|
|
204
|
+
date: Date
|
|
205
205
|
}
|
|
206
206
|
|
|
207
207
|
export interface DateDisabledParams {
|
|
208
|
-
$input: VxeInputConstructor
|
|
209
|
-
type: string
|
|
210
|
-
viewType: DatePanelType
|
|
211
|
-
date: Date
|
|
208
|
+
$input: VxeInputConstructor
|
|
209
|
+
type: string
|
|
210
|
+
viewType: DatePanelType
|
|
211
|
+
date: Date
|
|
212
212
|
}
|
|
213
213
|
|
|
214
214
|
interface InputKeyboardEventParams {
|
|
215
|
-
$input: VxeInputConstructor
|
|
215
|
+
$input: VxeInputConstructor
|
|
216
216
|
$event: KeyboardEvent
|
|
217
217
|
}
|
|
218
218
|
|
|
219
219
|
export interface InputParams {
|
|
220
|
-
value: string
|
|
220
|
+
value: string
|
|
221
221
|
}
|
|
222
222
|
export interface InputEventParams extends InputKeyboardEventParams, InputParams { }
|
|
223
223
|
|
|
@@ -271,61 +271,61 @@ export namespace VxeInputDefines {
|
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
export type VxeInputEventProps = {
|
|
274
|
-
onInput?: VxeInputEvents.Input
|
|
275
|
-
onChange?: VxeInputEvents.Change
|
|
276
|
-
onKeydown?: VxeInputEvents.Keydown
|
|
277
|
-
onKeyup?: VxeInputEvents.Keyup
|
|
278
|
-
onClick?: VxeInputEvents.Click
|
|
279
|
-
onFocus?: VxeInputEvents.Focus
|
|
280
|
-
onBlur?: VxeInputEvents.Blur
|
|
281
|
-
onClear?: VxeInputEvents.Clear
|
|
282
|
-
onSearchClick?: VxeInputEvents.SearchClick
|
|
283
|
-
onToggleVisible?: VxeInputEvents.ToggleVisible
|
|
284
|
-
onPrevNumber?: VxeInputEvents.PrevNumber
|
|
285
|
-
onNextNumber?: VxeInputEvents.NextNumber
|
|
286
|
-
onPrefixClick?: VxeInputEvents.PrefixClick
|
|
287
|
-
onSuffixClick?: VxeInputEvents.SuffixClick
|
|
288
|
-
onDatePrev?: VxeInputEvents.DatePrev
|
|
289
|
-
onDateToday?: VxeInputEvents.DateToday
|
|
290
|
-
onDateNext?: VxeInputEvents.DateNext
|
|
274
|
+
onInput?: VxeInputEvents.Input
|
|
275
|
+
onChange?: VxeInputEvents.Change
|
|
276
|
+
onKeydown?: VxeInputEvents.Keydown
|
|
277
|
+
onKeyup?: VxeInputEvents.Keyup
|
|
278
|
+
onClick?: VxeInputEvents.Click
|
|
279
|
+
onFocus?: VxeInputEvents.Focus
|
|
280
|
+
onBlur?: VxeInputEvents.Blur
|
|
281
|
+
onClear?: VxeInputEvents.Clear
|
|
282
|
+
onSearchClick?: VxeInputEvents.SearchClick
|
|
283
|
+
onToggleVisible?: VxeInputEvents.ToggleVisible
|
|
284
|
+
onPrevNumber?: VxeInputEvents.PrevNumber
|
|
285
|
+
onNextNumber?: VxeInputEvents.NextNumber
|
|
286
|
+
onPrefixClick?: VxeInputEvents.PrefixClick
|
|
287
|
+
onSuffixClick?: VxeInputEvents.SuffixClick
|
|
288
|
+
onDatePrev?: VxeInputEvents.DatePrev
|
|
289
|
+
onDateToday?: VxeInputEvents.DateToday
|
|
290
|
+
onDateNext?: VxeInputEvents.DateNext
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
export interface VxeInputListeners {
|
|
294
|
-
input?: VxeInputEvents.Input
|
|
295
|
-
change?: VxeInputEvents.Change
|
|
296
|
-
keydown?: VxeInputEvents.Keydown
|
|
297
|
-
keyup?: VxeInputEvents.Keyup
|
|
298
|
-
click?: VxeInputEvents.Click
|
|
299
|
-
focus?: VxeInputEvents.Focus
|
|
300
|
-
blur?: VxeInputEvents.Blur
|
|
301
|
-
clear?: VxeInputEvents.Clear
|
|
302
|
-
searchClick?: VxeInputEvents.SearchClick
|
|
303
|
-
toggleVisible?: VxeInputEvents.ToggleVisible
|
|
304
|
-
prevNumber?: VxeInputEvents.PrevNumber
|
|
305
|
-
nextNumber?: VxeInputEvents.NextNumber
|
|
306
|
-
prefixClick?: VxeInputEvents.PrefixClick
|
|
307
|
-
suffixClick?: VxeInputEvents.SuffixClick
|
|
308
|
-
datePrev?: VxeInputEvents.DatePrev
|
|
309
|
-
dateToday?: VxeInputEvents.DateToday
|
|
310
|
-
dateNext?: VxeInputEvents.DateNext
|
|
294
|
+
input?: VxeInputEvents.Input
|
|
295
|
+
change?: VxeInputEvents.Change
|
|
296
|
+
keydown?: VxeInputEvents.Keydown
|
|
297
|
+
keyup?: VxeInputEvents.Keyup
|
|
298
|
+
click?: VxeInputEvents.Click
|
|
299
|
+
focus?: VxeInputEvents.Focus
|
|
300
|
+
blur?: VxeInputEvents.Blur
|
|
301
|
+
clear?: VxeInputEvents.Clear
|
|
302
|
+
searchClick?: VxeInputEvents.SearchClick
|
|
303
|
+
toggleVisible?: VxeInputEvents.ToggleVisible
|
|
304
|
+
prevNumber?: VxeInputEvents.PrevNumber
|
|
305
|
+
nextNumber?: VxeInputEvents.NextNumber
|
|
306
|
+
prefixClick?: VxeInputEvents.PrefixClick
|
|
307
|
+
suffixClick?: VxeInputEvents.SuffixClick
|
|
308
|
+
datePrev?: VxeInputEvents.DatePrev
|
|
309
|
+
dateToday?: VxeInputEvents.DateToday
|
|
310
|
+
dateNext?: VxeInputEvents.DateNext
|
|
311
311
|
}
|
|
312
312
|
|
|
313
313
|
export namespace VxeInputEvents {
|
|
314
|
-
export type Input = (params: VxeInputDefines.InputEventParams) => void
|
|
315
|
-
export type Change = (params: VxeInputDefines.ChangeEventParams) => void
|
|
316
|
-
export type Keydown = (params: VxeInputDefines.KeydownEventParams) => void
|
|
317
|
-
export type Keyup = (params: VxeInputDefines.KeyupEventParams) => void
|
|
318
|
-
export type Click = (params: VxeInputDefines.ClickEventParams) => void
|
|
319
|
-
export type Focus = (params: VxeInputDefines.FocusEventParams) => void
|
|
320
|
-
export type Blur = (params: VxeInputDefines.BlurEventParams) => void
|
|
321
|
-
export type Clear = (params: VxeInputDefines.ClearEventParams) => void
|
|
322
|
-
export type SearchClick = (params: VxeInputDefines.SearchClickEventParams) => void
|
|
323
|
-
export type ToggleVisible = (params: VxeInputDefines.ToggleVisibleEventParams) => void
|
|
324
|
-
export type PrevNumber = (params: VxeInputDefines.PrevNumberEventParams) => void
|
|
325
|
-
export type NextNumber = (params: VxeInputDefines.NextNumberEventParams) => void
|
|
326
|
-
export type PrefixClick = (params: VxeInputDefines.PrefixClickEventParams) => void
|
|
327
|
-
export type SuffixClick = (params: VxeInputDefines.SuffixClickEventParams) => void
|
|
328
|
-
export type DatePrev = (params: VxeInputDefines.DatePrevEventParams) => void
|
|
329
|
-
export type DateToday = (params: VxeInputDefines.DateTodayEventParams) => void
|
|
330
|
-
export type DateNext = (params: VxeInputDefines.DateNextEventParams) => void
|
|
314
|
+
export type Input = (params: VxeInputDefines.InputEventParams) => void
|
|
315
|
+
export type Change = (params: VxeInputDefines.ChangeEventParams) => void
|
|
316
|
+
export type Keydown = (params: VxeInputDefines.KeydownEventParams) => void
|
|
317
|
+
export type Keyup = (params: VxeInputDefines.KeyupEventParams) => void
|
|
318
|
+
export type Click = (params: VxeInputDefines.ClickEventParams) => void
|
|
319
|
+
export type Focus = (params: VxeInputDefines.FocusEventParams) => void
|
|
320
|
+
export type Blur = (params: VxeInputDefines.BlurEventParams) => void
|
|
321
|
+
export type Clear = (params: VxeInputDefines.ClearEventParams) => void
|
|
322
|
+
export type SearchClick = (params: VxeInputDefines.SearchClickEventParams) => void
|
|
323
|
+
export type ToggleVisible = (params: VxeInputDefines.ToggleVisibleEventParams) => void
|
|
324
|
+
export type PrevNumber = (params: VxeInputDefines.PrevNumberEventParams) => void
|
|
325
|
+
export type NextNumber = (params: VxeInputDefines.NextNumberEventParams) => void
|
|
326
|
+
export type PrefixClick = (params: VxeInputDefines.PrefixClickEventParams) => void
|
|
327
|
+
export type SuffixClick = (params: VxeInputDefines.SuffixClickEventParams) => void
|
|
328
|
+
export type DatePrev = (params: VxeInputDefines.DatePrevEventParams) => void
|
|
329
|
+
export type DateToday = (params: VxeInputDefines.DateTodayEventParams) => void
|
|
330
|
+
export type DateNext = (params: VxeInputDefines.DateNextEventParams) => void
|
|
331
331
|
}
|
package/types/keyboard.d.ts
CHANGED
|
@@ -4,16 +4,16 @@ import { VxeTableMethods, VxeTablePrivateMethods } from './table'
|
|
|
4
4
|
/**
|
|
5
5
|
* 表格扩展 - 键盘导航
|
|
6
6
|
*/
|
|
7
|
-
export const Keyboard: VXEComponent<{}
|
|
7
|
+
export const Keyboard: VXEComponent<{}>
|
|
8
8
|
|
|
9
9
|
export interface TableKeyboardMethods {}
|
|
10
10
|
|
|
11
11
|
export interface TableKeyboardPrivateMethods {
|
|
12
|
-
moveTabSelected(args: any, isLeft: any, evnt: any): void
|
|
13
|
-
moveCurrentRow(isUpArrow: any, isDwArrow: any, evnt: any): void
|
|
14
|
-
moveSelected(args: any, isLeftArrow: any, isUpArrow: any, isRightArrow: any, isDwArrow: any, evnt: any): void
|
|
15
|
-
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
|
|
16
|
-
triggerCellMousedownEvent(evnt: any, params: any): void
|
|
12
|
+
moveTabSelected(args: any, isLeft: any, evnt: any): void
|
|
13
|
+
moveCurrentRow(isUpArrow: any, isDwArrow: any, evnt: any): void
|
|
14
|
+
moveSelected(args: any, isLeftArrow: any, isUpArrow: any, isRightArrow: any, isDwArrow: any, evnt: any): void
|
|
15
|
+
triggerHeaderCellMousedownEvent(evnt: any, params: any): void
|
|
16
|
+
triggerCellMousedownEvent(evnt: any, params: any): void
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
declare module './grid' {
|
package/types/list.d.ts
CHANGED
|
@@ -5,80 +5,80 @@ import { VXEComponent, VxeComponentBase, VxeEvent, SizeType, ValueOf } from './c
|
|
|
5
5
|
* 组件 - 虚拟列表
|
|
6
6
|
* @example import { List as VxeList } from 'vxe-table'
|
|
7
7
|
*/
|
|
8
|
-
export const List: VXEComponent<VxeListProps, VxeListEventProps
|
|
8
|
+
export const List: VXEComponent<VxeListProps, VxeListEventProps>
|
|
9
9
|
|
|
10
|
-
export type VxeListInstance = ComponentPublicInstance<VxeListProps, VxeListConstructor
|
|
10
|
+
export type VxeListInstance = ComponentPublicInstance<VxeListProps, VxeListConstructor>
|
|
11
11
|
|
|
12
12
|
export interface VxeListConstructor extends VxeComponentBase, VxeListMethods {
|
|
13
|
-
props: VxeListProps
|
|
14
|
-
context: SetupContext<VxeListEmits
|
|
15
|
-
reactData: ListReactData
|
|
16
|
-
internalData: ListInternalData
|
|
17
|
-
getRefMaps(): ListPrivateRef
|
|
18
|
-
renderVN: RenderFunction
|
|
13
|
+
props: VxeListProps
|
|
14
|
+
context: SetupContext<VxeListEmits>
|
|
15
|
+
reactData: ListReactData
|
|
16
|
+
internalData: ListInternalData
|
|
17
|
+
getRefMaps(): ListPrivateRef
|
|
18
|
+
renderVN: RenderFunction
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
export interface ListPrivateRef {
|
|
22
|
-
refElem: Ref<HTMLDivElement
|
|
22
|
+
refElem: Ref<HTMLDivElement>
|
|
23
23
|
}
|
|
24
24
|
export interface VxeListPrivateRef extends ListPrivateRef { }
|
|
25
25
|
|
|
26
26
|
export interface ListReactData {
|
|
27
|
-
scrollYLoad: boolean
|
|
28
|
-
bodyHeight: number
|
|
29
|
-
rowHeight: number
|
|
30
|
-
topSpaceHeight: number
|
|
31
|
-
items: any[]
|
|
27
|
+
scrollYLoad: boolean
|
|
28
|
+
bodyHeight: number
|
|
29
|
+
rowHeight: number
|
|
30
|
+
topSpaceHeight: number
|
|
31
|
+
items: any[]
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface ListInternalData {
|
|
35
|
-
fullData: any[]
|
|
36
|
-
lastScrollLeft: number
|
|
37
|
-
lastScrollTop: number
|
|
35
|
+
fullData: any[]
|
|
36
|
+
lastScrollLeft: number
|
|
37
|
+
lastScrollTop: number
|
|
38
38
|
scrollYStore: {
|
|
39
|
-
startIndex: number
|
|
40
|
-
endIndex: number
|
|
41
|
-
visibleSize: number
|
|
42
|
-
offsetSize: number
|
|
43
|
-
rowHeight: number
|
|
39
|
+
startIndex: number
|
|
40
|
+
endIndex: number
|
|
41
|
+
visibleSize: number
|
|
42
|
+
offsetSize: number
|
|
43
|
+
rowHeight: number
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export interface ListMethods {
|
|
48
|
-
dispatchEvent(type: ValueOf<VxeListEmits>, params: any, evnt: Event): void
|
|
48
|
+
dispatchEvent(type: ValueOf<VxeListEmits>, params: any, evnt: Event): void
|
|
49
49
|
/**
|
|
50
50
|
* 加载数据
|
|
51
51
|
* @param data 列表数据
|
|
52
52
|
*/
|
|
53
|
-
loadData(data: any[]): Promise<any
|
|
53
|
+
loadData(data: any[]): Promise<any>
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
56
|
* 加载数据
|
|
57
57
|
* @param data 列表数据
|
|
58
58
|
*/
|
|
59
|
-
reloadData(data: any[]): Promise<any
|
|
59
|
+
reloadData(data: any[]): Promise<any>
|
|
60
60
|
|
|
61
61
|
/**
|
|
62
62
|
* 重新计算列表
|
|
63
63
|
*/
|
|
64
|
-
recalculate(): Promise<any
|
|
64
|
+
recalculate(): Promise<any>
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* 如果有滚动条,则滚动到对应的位置
|
|
68
68
|
* @param scrollLeft 左边距离
|
|
69
69
|
* @param scrollTop 顶部距离
|
|
70
70
|
*/
|
|
71
|
-
scrollTo(scrollLeft: number | null, scrollTop?: number | null): Promise<any
|
|
71
|
+
scrollTo(scrollLeft: number | null, scrollTop?: number | null): Promise<any>
|
|
72
72
|
|
|
73
73
|
/**
|
|
74
74
|
* 刷新滚动操作,手动同步滚动相关位置
|
|
75
75
|
*/
|
|
76
|
-
refreshScroll(): Promise<any
|
|
76
|
+
refreshScroll(): Promise<any>
|
|
77
77
|
|
|
78
78
|
/**
|
|
79
79
|
* 手动清除滚动相关信息,还原到初始状态
|
|
80
80
|
*/
|
|
81
|
-
clearScroll(): Promise<any
|
|
81
|
+
clearScroll(): Promise<any>
|
|
82
82
|
}
|
|
83
83
|
export interface VxeListMethods extends ListMethods { }
|
|
84
84
|
|
|
@@ -86,44 +86,44 @@ export interface ListPrivateMethods { }
|
|
|
86
86
|
export interface VxeListPrivateMethods extends ListPrivateMethods { }
|
|
87
87
|
|
|
88
88
|
export namespace VxeListPropTypes {
|
|
89
|
-
export type Size = SizeType
|
|
90
|
-
export type Data = any[]
|
|
91
|
-
export type Height = number | string
|
|
92
|
-
export type MaxHeight = number | string
|
|
93
|
-
export type Loading = boolean
|
|
94
|
-
export type AutoResize = boolean
|
|
95
|
-
export type ClassName = string | ((params: { $list: VxeListConstructor }) => string)
|
|
96
|
-
export type SyncResize = boolean | string | number
|
|
89
|
+
export type Size = SizeType
|
|
90
|
+
export type Data = any[]
|
|
91
|
+
export type Height = number | string
|
|
92
|
+
export type MaxHeight = number | string
|
|
93
|
+
export type Loading = boolean
|
|
94
|
+
export type AutoResize = boolean
|
|
95
|
+
export type ClassName = string | ((params: { $list: VxeListConstructor }) => string)
|
|
96
|
+
export type SyncResize = boolean | string | number
|
|
97
97
|
export interface ScrollY {
|
|
98
98
|
/**
|
|
99
99
|
* 指定大于指定行时自动启动纵向虚拟滚动,如果为 0 则总是启用,如果为 -1 则关闭
|
|
100
100
|
*/
|
|
101
|
-
gt?: number
|
|
101
|
+
gt?: number
|
|
102
102
|
/**
|
|
103
103
|
* 指定每次渲染的数据偏移量,偏移量越大渲染次数就越少,但每次渲染耗时就越久
|
|
104
104
|
*/
|
|
105
|
-
oSize?: number
|
|
105
|
+
oSize?: number
|
|
106
106
|
/**
|
|
107
107
|
* 指定列表项的 className
|
|
108
108
|
*/
|
|
109
|
-
sItem?: string
|
|
109
|
+
sItem?: string
|
|
110
110
|
/**
|
|
111
111
|
* 是否启用
|
|
112
112
|
*/
|
|
113
|
-
enabled?: boolean
|
|
113
|
+
enabled?: boolean
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
|
|
117
117
|
export type VxeListProps<D = any> = {
|
|
118
|
-
size?: VxeListPropTypes.Size
|
|
119
|
-
data?: D[]
|
|
120
|
-
height?: VxeListPropTypes.Height
|
|
121
|
-
maxHeight?: VxeListPropTypes.MaxHeight
|
|
122
|
-
loading?: VxeListPropTypes.Loading
|
|
123
|
-
autoResize?: VxeListPropTypes.AutoResize
|
|
124
|
-
syncResize?: VxeListPropTypes.SyncResize
|
|
125
|
-
className?: VxeListPropTypes.ClassName
|
|
126
|
-
scrollY?: VxeListPropTypes.ScrollY
|
|
118
|
+
size?: VxeListPropTypes.Size
|
|
119
|
+
data?: D[]
|
|
120
|
+
height?: VxeListPropTypes.Height
|
|
121
|
+
maxHeight?: VxeListPropTypes.MaxHeight
|
|
122
|
+
loading?: VxeListPropTypes.Loading
|
|
123
|
+
autoResize?: VxeListPropTypes.AutoResize
|
|
124
|
+
syncResize?: VxeListPropTypes.SyncResize
|
|
125
|
+
className?: VxeListPropTypes.ClassName
|
|
126
|
+
scrollY?: VxeListPropTypes.ScrollY
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
export type VxeListEmits = [
|
|
@@ -132,7 +132,7 @@ export type VxeListEmits = [
|
|
|
132
132
|
|
|
133
133
|
export namespace VxeListDefines {
|
|
134
134
|
interface ListEventParams extends VxeEvent {
|
|
135
|
-
$list: VxeListConstructor
|
|
135
|
+
$list: VxeListConstructor
|
|
136
136
|
}
|
|
137
137
|
|
|
138
138
|
export interface ScrollParams { }
|
|
@@ -140,13 +140,13 @@ export namespace VxeListDefines {
|
|
|
140
140
|
}
|
|
141
141
|
|
|
142
142
|
export type VxeListEventProps = {
|
|
143
|
-
onScroll?: VxeListEvents.Scroll
|
|
143
|
+
onScroll?: VxeListEvents.Scroll
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
export interface VxeListListeners {
|
|
147
|
-
scroll?: VxeListEvents.Scroll
|
|
147
|
+
scroll?: VxeListEvents.Scroll
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
export namespace VxeListEvents {
|
|
151
|
-
export type Scroll = (params: VxeListDefines.ScrollEventParams) => void
|
|
151
|
+
export type Scroll = (params: VxeListDefines.ScrollEventParams) => void
|
|
152
152
|
}
|