vxe-table 4.3.0-beta.6 → 4.3.0
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 +3 -3
- package/README.md +3 -3
- package/README.zh-TW.md +3 -3
- package/es/checkbox/src/checkbox.js +20 -7
- package/es/checkbox/src/group.js +14 -2
- package/es/checkbox/style.css +1 -1
- package/es/export/style.css +1 -13
- package/es/filter/style.css +1 -13
- package/es/form/src/form.js +1 -1
- package/es/grid/style.css +1 -1
- package/es/icon/index.js +8 -4
- package/es/icon/src/icon.js +23 -0
- package/es/icon/style.css +98 -525
- package/es/input/style.css +1 -1
- package/es/list/src/list.js +1 -1
- package/es/loading/src/loading.js +33 -23
- package/es/locale/lang/en-US.js +1 -1
- package/es/locale/lang/ja-JP.js +1 -1
- package/es/locale/lang/zh-CN.js +1 -1
- package/es/locale/lang/zh-TC.js +1 -1
- package/es/modal/src/modal.js +17 -7
- package/es/modal/style.css +14 -13
- package/es/pager/style.css +1 -1
- package/es/radio/style.css +1 -1
- package/es/select/src/select.js +25 -3
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/src/body.js +17 -10
- package/es/table/src/props.js +2 -0
- package/es/table/src/table.js +8 -1
- package/es/table/style.css +4 -2
- package/es/toolbar/style.css +2 -10
- package/es/tools/log.js +1 -1
- package/es/v-x-e-table/index.js +1 -1
- package/es/v-x-e-table/style.css +99 -526
- package/es/vxe-checkbox/style.css +1 -1
- package/es/vxe-grid/style.css +1 -1
- package/es/vxe-icon/style.css +98 -525
- package/es/vxe-input/style.css +1 -1
- package/es/vxe-modal/style.css +14 -13
- package/es/vxe-module-export/style.css +1 -13
- package/es/vxe-module-filter/style.css +1 -13
- package/es/vxe-pager/style.css +1 -1
- package/es/vxe-radio/style.css +1 -1
- package/es/vxe-table/style.css +4 -2
- package/es/vxe-toolbar/style.css +2 -10
- package/helper/vetur/attributes.json +17 -5
- package/helper/vetur/tags.json +10 -2
- package/lib/checkbox/src/checkbox.js +23 -7
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +21 -1
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox/style/style.css +1 -1
- package/lib/checkbox/style/style.min.css +1 -1
- package/lib/export/style/style.css +1 -13
- package/lib/export/style/style.min.css +1 -1
- package/lib/filter/style/style.css +1 -13
- package/lib/filter/style/style.min.css +1 -1
- package/lib/form/src/form.js +1 -1
- package/lib/form/src/form.min.js +1 -1
- package/lib/grid/style/style.css +1 -1
- package/lib/grid/style/style.min.css +1 -1
- package/lib/icon/index.js +15 -4
- package/lib/icon/index.min.js +1 -1
- package/lib/icon/src/icon.js +35 -0
- package/lib/icon/src/icon.min.js +1 -0
- package/lib/icon/style/style.css +98 -525
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.umd.js +201 -53
- package/lib/index.umd.min.js +1 -1
- package/lib/input/style/style.css +1 -1
- package/lib/input/style/style.min.css +1 -1
- package/lib/list/src/list.js +1 -1
- package/lib/list/src/list.min.js +1 -1
- package/lib/loading/src/loading.js +28 -18
- package/lib/loading/src/loading.min.js +1 -1
- package/lib/locale/lang/en-US.js +1 -1
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +1 -1
- package/lib/locale/lang/ja-JP.js +1 -1
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +1 -1
- package/lib/locale/lang/zh-CN.js +1 -1
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +1 -1
- package/lib/locale/lang/zh-TC.js +1 -1
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +1 -1
- package/lib/modal/src/modal.js +20 -7
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +14 -13
- package/lib/modal/style/style.min.css +1 -1
- package/lib/pager/style/style.css +1 -1
- package/lib/pager/style/style.min.css +1 -1
- package/lib/radio/style/style.css +1 -1
- package/lib/radio/style/style.min.css +1 -1
- package/lib/select/src/select.js +37 -3
- package/lib/select/src/select.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/body.js +16 -7
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/props.js +2 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +8 -1
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/style/style.css +4 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/style/style.css +2 -10
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +99 -526
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/lib/vxe-checkbox/style/style.css +1 -1
- package/lib/vxe-checkbox/style/style.min.css +1 -1
- package/lib/vxe-grid/style/style.css +1 -1
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-icon/style/style.css +98 -525
- package/lib/vxe-icon/style/style.min.css +1 -1
- package/lib/vxe-input/style/style.css +1 -1
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-modal/style/style.css +14 -13
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-module-export/style/style.css +1 -13
- package/lib/vxe-module-export/style/style.min.css +1 -1
- package/lib/vxe-module-filter/style/style.css +1 -13
- package/lib/vxe-module-filter/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +1 -1
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-radio/style/style.css +1 -1
- package/lib/vxe-radio/style/style.min.css +1 -1
- package/lib/vxe-table/style/style.css +4 -2
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/style/style.css +2 -10
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/checkbox/src/checkbox.ts +20 -7
- package/packages/checkbox/src/group.ts +18 -3
- package/packages/form/src/form.ts +1 -1
- package/packages/icon/index.ts +11 -4
- package/packages/icon/src/icon.ts +25 -0
- package/packages/list/src/list.ts +1 -1
- package/packages/loading/src/loading.ts +34 -22
- package/packages/locale/lang/en-US.ts +1 -1
- package/packages/locale/lang/ja-JP.ts +1 -1
- package/packages/locale/lang/zh-CN.ts +1 -1
- package/packages/locale/lang/zh-TC.ts +1 -1
- package/packages/modal/src/modal.ts +21 -7
- package/packages/select/src/select.ts +27 -3
- package/packages/table/src/body.ts +15 -8
- package/packages/table/src/props.ts +2 -0
- package/packages/table/src/table.ts +9 -1
- package/styles/base/checked.scss +2 -2
- package/styles/export.scss +0 -29
- package/styles/filter.scss +0 -29
- package/styles/icon.scss +126 -29
- package/styles/input.scss +1 -1
- package/styles/loading.scss +1 -1
- package/styles/modal.scss +19 -16
- package/styles/table.scss +3 -0
- package/styles/toolbar.scss +0 -20
- package/styles/variable.scss +2 -1
- package/types/checkbox-group.d.ts +8 -1
- package/types/icon.d.ts +46 -1
- package/types/modal.d.ts +1 -0
- package/types/select.d.ts +2 -0
- package/types/table.d.ts +9 -0
- package/types/v-x-e-table/index.d.ts +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SetupContext, RenderFunction, ComponentPublicInstance } from 'vue'
|
|
1
|
+
import { SetupContext, RenderFunction, ComponentPublicInstance, ComputedRef } from 'vue'
|
|
2
2
|
import { VXEComponent, VxeComponentBase, SizeType, VxeEvent, ValueOf } from './component'
|
|
3
3
|
import { VxeCheckboxEvents, VxeCheckboxPropTypes } from './checkbox'
|
|
4
4
|
|
|
@@ -17,6 +17,7 @@ export type VxeCheckboxGroupInstance = ComponentPublicInstance<VxeCheckboxGroupP
|
|
|
17
17
|
export interface VxeCheckboxGroupConstructor extends VxeComponentBase, VxeCheckboxGroupMethods {
|
|
18
18
|
props: VxeCheckboxGroupProps
|
|
19
19
|
context: SetupContext<VxeCheckboxGroupEmits>
|
|
20
|
+
getComputeMaps(): CheckboxPrivateComputed
|
|
20
21
|
renderVN: RenderFunction
|
|
21
22
|
}
|
|
22
23
|
|
|
@@ -26,6 +27,7 @@ export type VxeCheckboxGroupProps = {
|
|
|
26
27
|
* 绑定值
|
|
27
28
|
*/
|
|
28
29
|
modelValue?: VxeCheckboxGroupPropTypes.ModelValue
|
|
30
|
+
max?: VxeCheckboxGroupPropTypes.Max
|
|
29
31
|
/**
|
|
30
32
|
* 是否禁用
|
|
31
33
|
*/
|
|
@@ -35,9 +37,14 @@ export type VxeCheckboxGroupProps = {
|
|
|
35
37
|
export namespace VxeCheckboxGroupPropTypes {
|
|
36
38
|
export type Size = SizeType
|
|
37
39
|
export type ModelValue = any[]
|
|
40
|
+
export type Max = string | number
|
|
38
41
|
export type Disabled = boolean
|
|
39
42
|
}
|
|
40
43
|
|
|
44
|
+
export interface CheckboxPrivateComputed {
|
|
45
|
+
computeIsMaximize: ComputedRef<boolean>
|
|
46
|
+
}
|
|
47
|
+
|
|
41
48
|
export interface CheckboxGroupMethods {
|
|
42
49
|
dispatchEvent(type: ValueOf<VxeCheckboxGroupEmits>, params: any, evnt: Event): void
|
|
43
50
|
}
|
package/types/icon.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SetupContext } from 'vue'
|
|
2
|
+
import { VXEComponent, VxeComponentBase } from './component'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* 组件 - 图标
|
|
@@ -9,3 +10,47 @@ export const VxeIcon: VXEComponent<{}>
|
|
|
9
10
|
* 组件 - 图标
|
|
10
11
|
*/
|
|
11
12
|
export const Icon: VXEComponent<{}>
|
|
13
|
+
|
|
14
|
+
export interface VxeIconConstructor extends VxeComponentBase, VxeIconMethods {
|
|
15
|
+
props: VxeIconProps
|
|
16
|
+
context: SetupContext<VxeIconEmits>
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface IconMethods {}
|
|
20
|
+
|
|
21
|
+
export interface VxeIconMethods extends IconMethods { }
|
|
22
|
+
|
|
23
|
+
export type VxeIconProps<D = any> = {
|
|
24
|
+
name?: VxeIconPropTypes.Name
|
|
25
|
+
roll?: VxeIconPropTypes.Roll
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export namespace VxeIconPropTypes {
|
|
29
|
+
export type Name = string
|
|
30
|
+
export type Roll = boolean
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
export type VxeIconEmits = [
|
|
35
|
+
'click'
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
export namespace VxeIconDefines {
|
|
39
|
+
interface IconKeyboardEventParams {
|
|
40
|
+
$event: KeyboardEvent
|
|
41
|
+
}
|
|
42
|
+
export interface ClickParams {}
|
|
43
|
+
export interface ClickEventParams extends IconKeyboardEventParams, ClickParams { }
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type VxeIconEventProps = {
|
|
47
|
+
onClick?: VxeIconEvents.Click
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export interface VxeIconListeners {
|
|
51
|
+
click?: VxeIconEvents.Click
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export namespace VxeIconEvents {
|
|
55
|
+
export type Click = (params: VxeIconDefines.ClickEventParams) => void
|
|
56
|
+
}
|
package/types/modal.d.ts
CHANGED
|
@@ -212,6 +212,7 @@ export type ModalSlots = {
|
|
|
212
212
|
default?(params: ModalDefaultSlotParams): JSX.Element[] | VNode[] | string[]
|
|
213
213
|
header?(params: ModalHeaderSlotParams): JSX.Element[] | VNode[] | string[]
|
|
214
214
|
title?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
|
|
215
|
+
corner?(params: ModalTitleSlotParams): JSX.Element[] | VNode[] | string[]
|
|
215
216
|
footer?(params: ModalFooterSlotParams): JSX.Element[] | VNode[] | string[]
|
|
216
217
|
}
|
|
217
218
|
|
package/types/select.d.ts
CHANGED
|
@@ -74,6 +74,7 @@ export type VxeSelectProps = {
|
|
|
74
74
|
filterMethod?: VxeSelectPropTypes.FilterMethod
|
|
75
75
|
remote?: VxeSelectPropTypes.Remote
|
|
76
76
|
remoteMethod?: VxeSelectPropTypes.RemoteMethod
|
|
77
|
+
max?: VxeSelectPropTypes.Max
|
|
77
78
|
/**
|
|
78
79
|
* 已废弃,被 optionConfig.keyField 替换
|
|
79
80
|
* @deprecated
|
|
@@ -107,6 +108,7 @@ export namespace VxeSelectPropTypes {
|
|
|
107
108
|
export type FilterMethod = (params: { group: any, option: any, searchValue: string }) => boolean
|
|
108
109
|
export type Remote = boolean
|
|
109
110
|
export type RemoteMethod = (params: { searchValue: string }) => Promise<void> | void
|
|
111
|
+
export type Max = number | string
|
|
110
112
|
/**
|
|
111
113
|
* 选项配置项
|
|
112
114
|
*/
|
package/types/table.d.ts
CHANGED
|
@@ -85,6 +85,7 @@ export interface TablePrivateComputed {
|
|
|
85
85
|
computeExpandOpts: ComputedRef<VxeTablePropTypes.ExpandOpts>
|
|
86
86
|
computeTreeOpts: ComputedRef<VxeTablePropTypes.TreeOpts>
|
|
87
87
|
computeEmptyOpts: ComputedRef<VxeTablePropTypes.EmptyOpts>
|
|
88
|
+
computeLoadingOpts: ComputedRef<VxeTablePropTypes.LoadingOpts>
|
|
88
89
|
computeCustomOpts: ComputedRef<VxeTablePropTypes.CustomOpts>
|
|
89
90
|
computeIsAllCheckboxDisabled: ComputedRef<boolean>
|
|
90
91
|
}
|
|
@@ -1426,6 +1427,7 @@ export namespace VxeTablePropTypes {
|
|
|
1426
1427
|
trigger?: 'default' | 'cell' | 'row'
|
|
1427
1428
|
lazy?: boolean
|
|
1428
1429
|
reserve?: boolean
|
|
1430
|
+
height?: number
|
|
1429
1431
|
loadMethod?(params: {
|
|
1430
1432
|
$table: VxeTableConstructor & VxeTablePrivateMethods
|
|
1431
1433
|
row: any
|
|
@@ -1925,6 +1927,12 @@ export namespace VxeTablePropTypes {
|
|
|
1925
1927
|
export type ZIndex = number
|
|
1926
1928
|
export type EmptyText = string
|
|
1927
1929
|
|
|
1930
|
+
export interface LoadingConfig {
|
|
1931
|
+
icon?: string
|
|
1932
|
+
text?: string
|
|
1933
|
+
}
|
|
1934
|
+
export interface LoadingOpts extends LoadingConfig { }
|
|
1935
|
+
|
|
1928
1936
|
export interface EmptyRender extends VxeGlobalRendererHandles.RenderOptions { }
|
|
1929
1937
|
export interface EmptyOpts extends EmptyRender { }
|
|
1930
1938
|
|
|
@@ -2056,6 +2064,7 @@ export type VxeTableProps<D = any> = {
|
|
|
2056
2064
|
editRules?: VxeTablePropTypes.EditRules
|
|
2057
2065
|
emptyText?: VxeTablePropTypes.EmptyText
|
|
2058
2066
|
emptyRender?: VxeTablePropTypes.EmptyRender
|
|
2067
|
+
loadingConfig?: VxeTablePropTypes.LoadingConfig
|
|
2059
2068
|
/**
|
|
2060
2069
|
* 不建议使用,后续废弃
|
|
2061
2070
|
* @deprecated
|
|
@@ -130,7 +130,7 @@ export interface VXETableCore {
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
/**
|
|
133
|
-
* 一个基于 vue 的 PC
|
|
133
|
+
* 一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟滚动、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、虚拟列表、弹窗、自定义模板、渲染器、贼灵活的配置项等...
|
|
134
134
|
*/
|
|
135
135
|
export const VXETable: VXETableCore
|
|
136
136
|
|