vxe-table 3.8.7-beta.5 → 3.8.7-beta.7
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/all.js +2 -2
- package/lib/all.min.js +1 -1
- package/lib/export/index.js +1 -1
- package/lib/export/index.min.js +1 -1
- package/lib/form/src/form.js +33 -41
- 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 +59 -56
- 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/methods.js +8 -2
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +1 -1
- package/lib/table/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/validator/src/mixin.js +12 -12
- package/lib/vxe-table/style/style.css +1 -1
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/all.js +3 -3
- package/packages/export/index.js +1 -1
- package/packages/form/src/form.js +4 -11
- package/packages/table/src/methods.js +8 -2
- package/packages/validator/src/mixin.js +12 -12
- package/styles/table.scss +1 -1
- /package/lib/icon/style/{iconfont.1716214381092.ttf → iconfont.1716544406262.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1716214381092.woff → iconfont.1716544406262.woff} +0 -0
- /package/lib/icon/style/{iconfont.1716214381092.woff2 → iconfont.1716544406262.woff2} +0 -0
- /package/lib/{iconfont.1716214381092.ttf → iconfont.1716544406262.ttf} +0 -0
- /package/lib/{iconfont.1716214381092.woff → iconfont.1716544406262.woff} +0 -0
- /package/lib/{iconfont.1716214381092.woff2 → iconfont.1716544406262.woff2} +0 -0
|
@@ -128,18 +128,18 @@ export default {
|
|
|
128
128
|
const validRest = {}
|
|
129
129
|
const { editRules, afterFullData, visibleColumn, treeConfig, treeOpts } = this
|
|
130
130
|
const childrenField = treeOpts.children || treeOpts.childrenField
|
|
131
|
-
let
|
|
131
|
+
let validList
|
|
132
132
|
if (rows === true) {
|
|
133
|
-
|
|
133
|
+
validList = afterFullData
|
|
134
134
|
} else if (rows) {
|
|
135
135
|
if (XEUtils.isFunction(rows)) {
|
|
136
136
|
cb = rows
|
|
137
137
|
} else {
|
|
138
|
-
|
|
138
|
+
validList = XEUtils.isArray(rows) ? rows : [rows]
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
-
if (!
|
|
142
|
-
|
|
141
|
+
if (!validList) {
|
|
142
|
+
validList = this.getInsertRecords().concat(this.getUpdateRecords())
|
|
143
143
|
}
|
|
144
144
|
const rowValidErrs = []
|
|
145
145
|
this.lastCallTime = Date.now()
|
|
@@ -188,9 +188,9 @@ export default {
|
|
|
188
188
|
}
|
|
189
189
|
}
|
|
190
190
|
if (treeConfig) {
|
|
191
|
-
XEUtils.eachTree(
|
|
191
|
+
XEUtils.eachTree(validList, handleVaild, { children: childrenField })
|
|
192
192
|
} else {
|
|
193
|
-
|
|
193
|
+
validList.forEach(handleVaild)
|
|
194
194
|
}
|
|
195
195
|
return Promise.all(rowValidErrs).then(() => {
|
|
196
196
|
const ruleProps = Object.keys(validRest)
|
|
@@ -279,7 +279,7 @@ export default {
|
|
|
279
279
|
const { editRules } = this
|
|
280
280
|
const { property } = column
|
|
281
281
|
const errorRules = []
|
|
282
|
-
const
|
|
282
|
+
const syncValidList = []
|
|
283
283
|
if (property && editRules) {
|
|
284
284
|
const rules = XEUtils.get(editRules, property)
|
|
285
285
|
if (rules) {
|
|
@@ -324,7 +324,7 @@ export default {
|
|
|
324
324
|
errorRules.push(new Rule({ type: 'custom', trigger, content: customValid.message, rule: new Rule(rule) }))
|
|
325
325
|
} else if (customValid.catch) {
|
|
326
326
|
// 如果为异步校验(注:异步校验是并发无序的)
|
|
327
|
-
|
|
327
|
+
syncValidList.push(
|
|
328
328
|
customValid.catch(e => {
|
|
329
329
|
this.validRuleErr = true
|
|
330
330
|
errorRules.push(new Rule({ type: 'custom', trigger, content: e && e.message ? e.message : (rule.content || rule.message), rule: new Rule(rule) }))
|
|
@@ -352,7 +352,7 @@ export default {
|
|
|
352
352
|
})
|
|
353
353
|
}
|
|
354
354
|
}
|
|
355
|
-
return Promise.all(
|
|
355
|
+
return Promise.all(syncValidList).then(() => {
|
|
356
356
|
if (errorRules.length) {
|
|
357
357
|
const rest = { rules: errorRules, rule: errorRules[0] }
|
|
358
358
|
return Promise.reject(rest)
|
|
@@ -384,9 +384,9 @@ export default {
|
|
|
384
384
|
})
|
|
385
385
|
})
|
|
386
386
|
} else if (rowList.length) {
|
|
387
|
-
const
|
|
387
|
+
const rowIdList = rowList.map(row => `${getRowid(this, row)}`)
|
|
388
388
|
XEUtils.each(validErrorMaps, (item, key) => {
|
|
389
|
-
if (
|
|
389
|
+
if (rowIdList.indexOf(key.split(':')[0]) > -1) {
|
|
390
390
|
validErrMaps[key] = item
|
|
391
391
|
}
|
|
392
392
|
})
|
package/styles/table.scss
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|