vxe-table 3.6.16 → 3.7.0-beta.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/lib/export/src/mixin.js +12 -7
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/form/src/form.js +109 -89
- package/lib/form/src/form.min.js +1 -1
- package/lib/icon/style/{iconfont.1688167751253.ttf → iconfont.1688918886373.ttf} +0 -0
- package/lib/icon/style/iconfont.1688918886373.woff +0 -0
- package/lib/icon/style/iconfont.1688918886373.woff2 +0 -0
- package/lib/icon/style/style.css +25 -1
- package/lib/icon/style/style.min.css +25 -1
- package/lib/{iconfont.1688167751253.ttf → iconfont.1688918886373.ttf} +0 -0
- package/lib/iconfont.1688918886373.woff +0 -0
- package/lib/iconfont.1688918886373.woff2 +0 -0
- package/lib/index.css +1 -1
- package/lib/index.umd.js +271 -129
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +6 -2
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +6 -2
- package/lib/locale/lang/es-ES.js +9 -5
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +9 -5
- package/lib/locale/lang/ja-JP.js +6 -2
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +6 -2
- package/lib/locale/lang/zh-CN.js +6 -2
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +6 -2
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +6 -2
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +6 -2
- package/lib/locale/lang/zh-TC.js +6 -2
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +6 -2
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +6 -2
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/cell.js +7 -1
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +2 -0
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +2 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +26 -11
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +17 -0
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +16 -0
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +2 -2
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +57 -12
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +44 -13
- 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/src/conf.js +12 -3
- package/lib/v-x-e-table/src/conf.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +25 -1
- package/lib/v-x-e-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/export/src/mixin.js +9 -7
- package/packages/form/src/form.js +91 -60
- package/packages/locale/lang/en-US.js +6 -2
- package/packages/locale/lang/es-ES.js +9 -5
- package/packages/locale/lang/ja-JP.js +6 -2
- package/packages/locale/lang/zh-CN.js +6 -2
- package/packages/locale/lang/zh-TC.js +6 -2
- package/packages/table/src/cell.js +9 -1
- package/packages/table/src/column.js +2 -0
- package/packages/table/src/columnInfo.js +2 -0
- package/packages/table/src/methods.js +25 -12
- package/packages/table/src/table.js +17 -0
- package/packages/table/src/util.js +16 -0
- package/packages/toolbar/src/toolbar.js +98 -45
- package/packages/v-x-e-table/src/conf.js +11 -3
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/icon.scss +25 -1
- package/styles/table.scss +2 -2
- package/styles/toolbar.scss +35 -8
- package/types/column.d.ts +4 -1
- package/types/export.d.ts +5 -0
- package/types/form.d.ts +14 -8
- package/types/toolbar.d.ts +17 -6
- package/lib/icon/style/iconfont.1688167751253.woff +0 -0
- package/lib/icon/style/iconfont.1688167751253.woff2 +0 -0
- package/lib/iconfont.1688167751253.woff +0 -0
- package/lib/iconfont.1688167751253.woff2 +0 -0
package/styles/toolbar.scss
CHANGED
|
@@ -118,8 +118,8 @@
|
|
|
118
118
|
.vxe-custom--header,
|
|
119
119
|
.vxe-custom--body {
|
|
120
120
|
& > li {
|
|
121
|
-
max-width:
|
|
122
|
-
min-width:
|
|
121
|
+
max-width: 18em;
|
|
122
|
+
min-width: 14em;
|
|
123
123
|
padding: 0.2em 1em 0.2em 1em;
|
|
124
124
|
@for $i from 2 through 8 {
|
|
125
125
|
$interval: $i - 1 + 0.2;
|
|
@@ -154,6 +154,11 @@
|
|
|
154
154
|
}
|
|
155
155
|
}
|
|
156
156
|
|
|
157
|
+
.vxe-custom--option {
|
|
158
|
+
display: flex;
|
|
159
|
+
flex-direction: row;
|
|
160
|
+
}
|
|
161
|
+
|
|
157
162
|
.vxe-custom--option-wrapper .vxe-custom--header,
|
|
158
163
|
.vxe-custom--option-wrapper .vxe-custom--body {
|
|
159
164
|
list-style-type: none;
|
|
@@ -162,15 +167,37 @@
|
|
|
162
167
|
margin: 0;
|
|
163
168
|
padding: 0;
|
|
164
169
|
user-select: none;
|
|
165
|
-
& > li {
|
|
166
|
-
overflow: hidden;
|
|
167
|
-
text-overflow: ellipsis;
|
|
168
|
-
white-space: nowrap;
|
|
169
|
-
}
|
|
170
170
|
}
|
|
171
171
|
|
|
172
|
-
.vxe-custom--option {
|
|
172
|
+
.vxe-custom--checkbox-option {
|
|
173
173
|
@extend %XECheckboxIcon;
|
|
174
|
+
overflow: hidden;
|
|
175
|
+
text-overflow: ellipsis;
|
|
176
|
+
white-space: nowrap;
|
|
177
|
+
flex-grow: 1;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.vxe-custom--fixed-option {
|
|
181
|
+
flex-shrink: 0;
|
|
182
|
+
padding-left: 0.5em;
|
|
183
|
+
display: flex;
|
|
184
|
+
flex-direction: row;
|
|
185
|
+
align-items: center;
|
|
186
|
+
.vxe-custom--fixed-left-option,
|
|
187
|
+
.vxe-custom--fixed-right-option {
|
|
188
|
+
line-height: 1.34em;
|
|
189
|
+
font-size: 1.1em;
|
|
190
|
+
padding: 0 0.2em;
|
|
191
|
+
cursor: pointer;
|
|
192
|
+
&.is--checked,
|
|
193
|
+
&:hover {
|
|
194
|
+
color: $vxe-primary-color;
|
|
195
|
+
}
|
|
196
|
+
&.is--disabled {
|
|
197
|
+
cursor: no-drop;
|
|
198
|
+
color: $vxe-input-disabled-color;
|
|
199
|
+
}
|
|
200
|
+
}
|
|
174
201
|
}
|
|
175
202
|
|
|
176
203
|
.vxe-toolbar {
|
package/types/column.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { ColumnCellRenderParams, ColumnDefaultSlotParams, ColumnIconSlotParams,
|
|
|
5
5
|
import { ColumnHeaderSlotParams, ColumnHeaderRenderParams } from './header'
|
|
6
6
|
import { ColumnFooterSlotParams, ColumnFooterRenderParams } from './footer'
|
|
7
7
|
import { ColumnEditRenderOptions, ColumnEditSlotParams } from './edit'
|
|
8
|
-
import { ColumnExportCellRenderParams, ColumnExportFooterRenderParams } from './export'
|
|
8
|
+
import { ColumnExportCellRenderParams, ColumnExportFooterRenderParams, ColumnExportHeaderRenderParams } from './export'
|
|
9
9
|
import { TableOverflow } from './table'
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -121,6 +121,7 @@ export declare class Column extends VXETableComponent {
|
|
|
121
121
|
* 是否可视
|
|
122
122
|
*/
|
|
123
123
|
visible?: boolean;
|
|
124
|
+
headerExportMethod?(params: ColumnExportHeaderRenderParams): string | number;
|
|
124
125
|
/**
|
|
125
126
|
* 自定义单元格数据导出方法
|
|
126
127
|
*/
|
|
@@ -346,6 +347,8 @@ export class ColumnInfo {
|
|
|
346
347
|
halfChecked: boolean;
|
|
347
348
|
disabled: boolean;
|
|
348
349
|
order: string;
|
|
350
|
+
sortTime: number
|
|
351
|
+
customOrder: number
|
|
349
352
|
renderWidth: number;
|
|
350
353
|
renderHeight: number;
|
|
351
354
|
resizeWidth: number;
|
package/types/export.d.ts
CHANGED
|
@@ -81,6 +81,7 @@ export interface TableExportConfig {
|
|
|
81
81
|
* 是否服务端导出
|
|
82
82
|
*/
|
|
83
83
|
remote?: boolean;
|
|
84
|
+
|
|
84
85
|
/**
|
|
85
86
|
* 只对 remote=true 有效,用于自定义导出逻辑
|
|
86
87
|
*/
|
|
@@ -228,6 +229,10 @@ export interface ColumnExportCellRenderParams extends GridRenderParams {
|
|
|
228
229
|
options: ExportParams;
|
|
229
230
|
}
|
|
230
231
|
|
|
232
|
+
export interface ColumnExportHeaderRenderParams extends GridRenderParams {
|
|
233
|
+
column: ColumnInfo;
|
|
234
|
+
}
|
|
235
|
+
|
|
231
236
|
export interface ColumnExportFooterRenderParams extends GridRenderParams {
|
|
232
237
|
items: any[];
|
|
233
238
|
_columnIndex: number;
|
package/types/form.d.ts
CHANGED
|
@@ -33,12 +33,12 @@ export declare class Form extends VXETableComponent {
|
|
|
33
33
|
* 对表单执行项进行校验,参数为一个回调函数。该回调函数会在校验结束后被调用 callback(errMap)。若不传入回调函数,则会返回一个 promise
|
|
34
34
|
* @param callback 回调函数
|
|
35
35
|
*/
|
|
36
|
-
validateField(callback?: (errMap?: FormValidErrMapParams) => void): Promise<any>;
|
|
36
|
+
validateField(field?: string | string[], callback?: (errMap?: FormValidErrMapParams) => void): Promise<any>;
|
|
37
37
|
/**
|
|
38
38
|
* 手动清除校验状态,如果指定 field 则清除指定的项,否则清除整个表单
|
|
39
39
|
* @param field 字段名
|
|
40
40
|
*/
|
|
41
|
-
clearValidate(field?: string): Promise<any>;
|
|
41
|
+
clearValidate(field?: string | string[]): Promise<any>;
|
|
42
42
|
/**
|
|
43
43
|
* 更新项状态
|
|
44
44
|
* 当使用自定义渲染时可能会用到
|
|
@@ -56,10 +56,6 @@ export declare class Form extends VXETableComponent {
|
|
|
56
56
|
[key: string]: any;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
-
export function FormValidatorMethod(params: FormValidErrParams): void;
|
|
60
|
-
export function FormValidatorMethod(params: FormValidErrParams): Error;
|
|
61
|
-
export function FormValidatorMethod(params: FormValidErrParams): Promise<any>;
|
|
62
|
-
|
|
63
59
|
export interface FormRule {
|
|
64
60
|
/**
|
|
65
61
|
* 是否必填
|
|
@@ -85,7 +81,18 @@ export interface FormRule {
|
|
|
85
81
|
* 使用自定义校验函数,接收一个 Promise
|
|
86
82
|
* @param params 参数
|
|
87
83
|
*/
|
|
88
|
-
validator
|
|
84
|
+
validator?(params: {
|
|
85
|
+
$form: Form,
|
|
86
|
+
itemValue: any,
|
|
87
|
+
rule: FormRule;
|
|
88
|
+
rules: FormRule[];
|
|
89
|
+
data: any;
|
|
90
|
+
field: string
|
|
91
|
+
/**
|
|
92
|
+
* @deprecated
|
|
93
|
+
*/
|
|
94
|
+
property: string
|
|
95
|
+
}): void | Error | Promise<any>
|
|
89
96
|
/**
|
|
90
97
|
* 提示消息
|
|
91
98
|
*/
|
|
@@ -105,7 +112,6 @@ export interface FormValidErrParams {
|
|
|
105
112
|
$form: Form,
|
|
106
113
|
itemValue: any,
|
|
107
114
|
rule: FormRule;
|
|
108
|
-
rules: FormRule[];
|
|
109
115
|
data: any;
|
|
110
116
|
field: string
|
|
111
117
|
/**
|
package/types/toolbar.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare class Toolbar extends VXETableComponent {
|
|
|
21
21
|
resizable?: boolean | {
|
|
22
22
|
storage?: boolean;
|
|
23
23
|
};
|
|
24
|
+
|
|
24
25
|
/**
|
|
25
26
|
* 刷新按钮配置
|
|
26
27
|
*/
|
|
@@ -29,6 +30,7 @@ export declare class Toolbar extends VXETableComponent {
|
|
|
29
30
|
icon?: string;
|
|
30
31
|
iconLoading?: string;
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/**
|
|
33
35
|
* 导入按钮配置
|
|
34
36
|
*/
|
|
@@ -36,6 +38,7 @@ export declare class Toolbar extends VXETableComponent {
|
|
|
36
38
|
icon?: string;
|
|
37
39
|
[key: string]: any;
|
|
38
40
|
};
|
|
41
|
+
|
|
39
42
|
/**
|
|
40
43
|
* 导出按钮配置
|
|
41
44
|
*/
|
|
@@ -43,6 +46,7 @@ export declare class Toolbar extends VXETableComponent {
|
|
|
43
46
|
icon?: string;
|
|
44
47
|
[key: string]: any;
|
|
45
48
|
};
|
|
49
|
+
|
|
46
50
|
/**
|
|
47
51
|
* 自定义列配置
|
|
48
52
|
*/
|
|
@@ -51,10 +55,17 @@ export declare class Toolbar extends VXETableComponent {
|
|
|
51
55
|
immediate?: boolean;
|
|
52
56
|
storage?: boolean;
|
|
53
57
|
checkMethod?(params: { column: ColumnInfo }): boolean;
|
|
54
|
-
|
|
58
|
+
showFooter?: boolean;
|
|
55
59
|
icon?: string;
|
|
60
|
+
/**
|
|
61
|
+
* 已废弃,请使用 showFooter
|
|
62
|
+
* @deprecated
|
|
63
|
+
*/
|
|
64
|
+
isFooter?: boolean
|
|
65
|
+
|
|
56
66
|
[key: string]: any;
|
|
57
67
|
};
|
|
68
|
+
|
|
58
69
|
/**
|
|
59
70
|
* 按钮列表
|
|
60
71
|
*/
|
|
@@ -110,7 +121,7 @@ export interface ToolbarOptions {
|
|
|
110
121
|
immediate?: boolean;
|
|
111
122
|
storage?: boolean;
|
|
112
123
|
checkMethod?(params: { column: ColumnInfo }): boolean;
|
|
113
|
-
isFooter?:
|
|
124
|
+
isFooter?: boolean;
|
|
114
125
|
icon?: string;
|
|
115
126
|
[key: string]: any;
|
|
116
127
|
};
|
|
@@ -130,14 +141,14 @@ export interface ToolbarOptions {
|
|
|
130
141
|
[key: string]: any;
|
|
131
142
|
}
|
|
132
143
|
|
|
133
|
-
export
|
|
134
|
-
export
|
|
144
|
+
export type ToolbarButtonsSlotParams = GridRenderParams
|
|
145
|
+
export type ToolbarToolsSlotParams = ToolbarButtonsSlotParams
|
|
135
146
|
|
|
136
147
|
/**
|
|
137
148
|
* 按钮渲染配置项
|
|
138
149
|
*/
|
|
139
|
-
export
|
|
140
|
-
export
|
|
150
|
+
export type ToolbarButtonRenderOptions = RenderOptions
|
|
151
|
+
export type ToolbarToolRenderOptions = RenderOptions
|
|
141
152
|
|
|
142
153
|
/**
|
|
143
154
|
* 按钮渲染渲染参数
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|