vxe-table 3.18.0-beta.8 → 3.18.1
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/es/locale/lang/en-US.js +12 -12
- package/es/style.css +1 -1
- package/es/table/module/edit/mixin.js +58 -20
- package/es/table/module/filter/mixin.js +12 -10
- package/es/table/module/keyboard/mixin.js +175 -172
- package/es/table/module/menu/mixin.js +16 -9
- package/es/table/module/validator/mixin.js +4 -2
- package/es/table/src/methods.js +344 -46
- package/es/table/src/store.js +8 -0
- package/es/table/src/table.js +35 -9
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +713 -289
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.js +12 -12
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +12 -12
- package/lib/style.css +1 -1
- package/lib/table/module/edit/mixin.js +55 -16
- package/lib/table/module/edit/mixin.min.js +1 -1
- package/lib/table/module/filter/mixin.js +12 -10
- package/lib/table/module/filter/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +184 -185
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +20 -13
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +4 -2
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/src/methods.js +388 -52
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/store.js +15 -0
- package/lib/table/src/store.min.js +1 -0
- package/lib/table/src/table.js +39 -9
- package/lib/table/src/table.min.js +1 -1
- package/lib/ui/index.js +1 -1
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/package.json +1 -1
- package/packages/locale/lang/en-US.ts +12 -12
- package/packages/table/module/edit/mixin.ts +59 -23
- package/packages/table/module/filter/mixin.ts +17 -13
- package/packages/table/module/keyboard/mixin.ts +169 -165
- package/packages/table/module/menu/mixin.ts +16 -9
- package/packages/table/module/validator/mixin.ts +8 -4
- package/packages/table/src/methods.ts +362 -50
- package/packages/table/src/store.ts +15 -0
- package/packages/table/src/table.ts +37 -9
- /package/es/{iconfont.1755775629306.ttf → iconfont.1756272539382.ttf} +0 -0
- /package/es/{iconfont.1755775629306.woff → iconfont.1756272539382.woff} +0 -0
- /package/es/{iconfont.1755775629306.woff2 → iconfont.1756272539382.woff2} +0 -0
- /package/lib/{iconfont.1755775629306.ttf → iconfont.1756272539382.ttf} +0 -0
- /package/lib/{iconfont.1755775629306.woff → iconfont.1756272539382.woff} +0 -0
- /package/lib/{iconfont.1755775629306.woff2 → iconfont.1756272539382.woff2} +0 -0
|
@@ -5,7 +5,7 @@ import { scrollToView } from '../../../ui/src/dom'
|
|
|
5
5
|
import { handleFieldOrColumn, getRowid } from '../../src/util'
|
|
6
6
|
import { warnLog, errLog } from '../../../ui/src/log'
|
|
7
7
|
|
|
8
|
-
import type { VxeTableDefines, TableInternalData, TableReactData } from '../../../../types'
|
|
8
|
+
import type { VxeTableDefines, TableInternalData, TableReactData, VxeTableConstructor, VxeTablePrivateMethods } from '../../../../types'
|
|
9
9
|
|
|
10
10
|
const { getConfig, validators } = VxeUI
|
|
11
11
|
|
|
@@ -185,10 +185,12 @@ export default {
|
|
|
185
185
|
* 聚焦到校验通过的单元格并弹出校验错误提示
|
|
186
186
|
*/
|
|
187
187
|
handleValidError (params: any) {
|
|
188
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
189
|
+
|
|
188
190
|
const { validOpts } = this
|
|
189
191
|
return new Promise<void>(resolve => {
|
|
190
192
|
if (validOpts.autoPos === false) {
|
|
191
|
-
|
|
193
|
+
$xeTable.dispatchEvent('valid-error', params, null)
|
|
192
194
|
resolve()
|
|
193
195
|
} else {
|
|
194
196
|
this.handleEdit(params, { type: 'valid-error', trigger: 'call' }).then(() => {
|
|
@@ -227,7 +229,7 @@ export default {
|
|
|
227
229
|
* 返回 Promise 对象,或者使用回调方式
|
|
228
230
|
*/
|
|
229
231
|
beginValidate (rows: any, cols: VxeTableDefines.ColumnInfo[] | null, cb: any, isFull: any) {
|
|
230
|
-
const $xeTable = this
|
|
232
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
231
233
|
const props = $xeTable
|
|
232
234
|
const reactData = $xeTable as unknown as TableReactData
|
|
233
235
|
const internalData = $xeTable as unknown as TableInternalData
|
|
@@ -546,6 +548,8 @@ export default {
|
|
|
546
548
|
* 弹出校验错误提示
|
|
547
549
|
*/
|
|
548
550
|
showValidTooltip (params: any) {
|
|
551
|
+
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
552
|
+
|
|
549
553
|
const { $refs, height, validStore, validErrorMaps, tableData, validOpts } = this
|
|
550
554
|
const { rule, row, column, cell } = params
|
|
551
555
|
const validTip = $refs.refValidTooltip
|
|
@@ -570,7 +574,7 @@ export default {
|
|
|
570
574
|
}
|
|
571
575
|
})
|
|
572
576
|
}
|
|
573
|
-
|
|
577
|
+
$xeTable.dispatchEvent('valid-error', params, null)
|
|
574
578
|
if (validTip) {
|
|
575
579
|
if (validTip && (validOpts.message === 'tooltip' || (validOpts.message === 'default' && !height && tableData.length < 2))) {
|
|
576
580
|
return validTip.open(cell, content)
|