vxe-table 3.6.16 → 3.6.17
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/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +133 -99
- package/lib/index.umd.min.js +1 -1
- 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 +1 -0
- package/lib/table/src/columnInfo.min.js +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/package.json +1 -1
- package/packages/export/src/mixin.js +9 -7
- package/packages/form/src/form.js +91 -60
- package/packages/table/src/cell.js +9 -1
- package/packages/table/src/column.js +2 -0
- package/packages/table/src/columnInfo.js +1 -0
- package/types/column.d.ts +2 -1
- package/types/export.d.ts +5 -0
- package/types/form.d.ts +14 -8
- /package/lib/icon/style/{iconfont.1688167751253.ttf → iconfont.1688790389988.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1688167751253.woff → iconfont.1688790389988.woff} +0 -0
- /package/lib/icon/style/{iconfont.1688167751253.woff2 → iconfont.1688790389988.woff2} +0 -0
- /package/lib/{iconfont.1688167751253.ttf → iconfont.1688790389988.ttf} +0 -0
- /package/lib/{iconfont.1688167751253.woff → iconfont.1688790389988.woff} +0 -0
- /package/lib/{iconfont.1688167751253.woff2 → iconfont.1688790389988.woff2} +0 -0
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
|
/**
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|