vxe-table 3.12.9 → 3.12.10-beta.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/grid/src/grid.js +6 -1
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ko-KR.js +515 -515
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/mixin.js +3 -3
- package/es/table/module/filter/mixin.js +3 -3
- package/es/table/module/keyboard/mixin.js +4 -4
- package/es/table/module/menu/mixin.js +2 -2
- package/es/table/module/validator/mixin.js +2 -2
- package/es/table/src/body.js +247 -351
- package/es/table/src/footer.js +135 -154
- package/es/table/src/header.js +120 -100
- package/es/table/src/methods.js +1192 -797
- package/es/table/src/props.js +9 -3
- package/es/table/src/table.js +187 -103
- package/es/table/src/util.js +16 -7
- package/es/table/style.css +146 -63
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +14 -4
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +146 -63
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +4 -1
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/index.css +1 -1
- package/lib/index.min.css +1 -1
- package/lib/index.umd.js +1917 -1550
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ko-KR.js +515 -515
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +515 -515
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +3 -3
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/filter/mixin.js +4 -4
- package/lib/table/module/filter/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +5 -5
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/menu/mixin.js +2 -2
- package/lib/table/module/menu/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +2 -2
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/src/body.js +185 -365
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +124 -151
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +97 -74
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +1282 -840
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +9 -3
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +171 -90
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +17 -7
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +146 -63
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +14 -4
- 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/lib/vxe-table/style/style.css +146 -63
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +6 -1
- package/packages/locale/lang/ko-KR.ts +515 -515
- package/packages/table/module/export/mixin.ts +3 -3
- package/packages/table/module/filter/mixin.ts +3 -3
- package/packages/table/module/keyboard/mixin.ts +4 -4
- package/packages/table/module/menu/mixin.ts +2 -2
- package/packages/table/module/validator/mixin.ts +2 -2
- package/packages/table/src/body.ts +281 -427
- package/packages/table/src/footer.ts +148 -164
- package/packages/table/src/header.ts +135 -111
- package/packages/table/src/methods.ts +1271 -858
- package/packages/table/src/props.ts +9 -3
- package/packages/table/src/table.ts +195 -146
- package/packages/table/src/util.ts +17 -7
- package/packages/ui/index.ts +13 -3
- package/styles/components/table.scss +164 -74
- /package/es/{iconfont.1736414871619.ttf → iconfont.1736690657500.ttf} +0 -0
- /package/es/{iconfont.1736414871619.woff → iconfont.1736690657500.woff} +0 -0
- /package/es/{iconfont.1736414871619.woff2 → iconfont.1736690657500.woff2} +0 -0
- /package/lib/{iconfont.1736414871619.ttf → iconfont.1736690657500.ttf} +0 -0
- /package/lib/{iconfont.1736414871619.woff → iconfont.1736690657500.woff} +0 -0
- /package/lib/{iconfont.1736414871619.woff2 → iconfont.1736690657500.woff2} +0 -0
|
@@ -1329,14 +1329,14 @@ export default {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
}
|
|
1331
1331
|
|
|
1332
|
-
if (!
|
|
1332
|
+
if (!handleOptions.data) {
|
|
1333
1333
|
handleOptions.data = []
|
|
1334
1334
|
if (mode === 'selected') {
|
|
1335
1335
|
const selectRecords = $xeTable.getCheckboxRecords()
|
|
1336
1336
|
if (['html', 'pdf'].indexOf(type) > -1 && treeConfig) {
|
|
1337
|
-
|
|
1337
|
+
handleOptions.data = XEUtils.searchTree($xeTable.getTableData().fullData, item => $xeTable.findRowIndexOf(selectRecords, item) > -1, Object.assign({}, treeOpts, { data: '_row' }))
|
|
1338
1338
|
} else {
|
|
1339
|
-
|
|
1339
|
+
handleOptions.data = selectRecords
|
|
1340
1340
|
}
|
|
1341
1341
|
} else if (mode === 'all') {
|
|
1342
1342
|
if (process.env.VUE_APP_VXE_ENV === 'development') {
|
|
@@ -92,9 +92,9 @@ export default {
|
|
|
92
92
|
this.initStore.filter = true
|
|
93
93
|
this.$nextTick(() => {
|
|
94
94
|
const { $refs } = this
|
|
95
|
-
const {
|
|
96
|
-
const bodyElem =
|
|
97
|
-
const headerElem =
|
|
95
|
+
const { refTableHeader, refTableBody, filterWrapper } = $refs
|
|
96
|
+
const bodyElem = refTableBody.$el
|
|
97
|
+
const headerElem = refTableHeader ? refTableHeader.$el : null
|
|
98
98
|
if (!bodyElem) {
|
|
99
99
|
return
|
|
100
100
|
}
|
|
@@ -31,8 +31,8 @@ function getCheckboxRangeRows ($xeTable: any, evnt: MouseEvent, params: any, tar
|
|
|
31
31
|
let rangeRows: any[] = []
|
|
32
32
|
let moveSize = 0
|
|
33
33
|
const isDown = moveRange > 0
|
|
34
|
-
const { scrollYLoad } = reactData
|
|
35
|
-
const { afterFullData
|
|
34
|
+
const { scrollYLoad, rowHeight } = reactData
|
|
35
|
+
const { afterFullData } = internalData
|
|
36
36
|
if (scrollYLoad) {
|
|
37
37
|
if (isDown) {
|
|
38
38
|
moveSize = offsetClientTop + moveRange
|
|
@@ -41,9 +41,9 @@ function getCheckboxRangeRows ($xeTable: any, evnt: MouseEvent, params: any, tar
|
|
|
41
41
|
}
|
|
42
42
|
const _rowIndex = $xeTable.getVTRowIndex(params.row)
|
|
43
43
|
if (isDown) {
|
|
44
|
-
rangeRows = afterFullData.slice(_rowIndex, _rowIndex + Math.ceil(moveSize /
|
|
44
|
+
rangeRows = afterFullData.slice(_rowIndex, _rowIndex + Math.ceil(moveSize / rowHeight))
|
|
45
45
|
} else {
|
|
46
|
-
rangeRows = afterFullData.slice(_rowIndex - Math.floor(moveSize /
|
|
46
|
+
rangeRows = afterFullData.slice(_rowIndex - Math.floor(moveSize / rowHeight), _rowIndex + 1)
|
|
47
47
|
}
|
|
48
48
|
} else {
|
|
49
49
|
if (isDown) {
|
|
@@ -59,7 +59,7 @@ export default {
|
|
|
59
59
|
const { selected } = editStore
|
|
60
60
|
const layoutList = ['header', 'body', 'footer']
|
|
61
61
|
if (isEnableConf(menuConfig) || contextMenu) {
|
|
62
|
-
if (ctxMenuStore.visible && $refs.
|
|
62
|
+
if (ctxMenuStore.visible && $refs.refTableMenu && getEventTargetNode(evnt, $refs.refTableMenu.$el).flag) {
|
|
63
63
|
evnt.preventDefault()
|
|
64
64
|
return
|
|
65
65
|
}
|
|
@@ -165,7 +165,7 @@ export default {
|
|
|
165
165
|
}
|
|
166
166
|
})
|
|
167
167
|
this.$nextTick(() => {
|
|
168
|
-
const ctxElem = this.$refs.
|
|
168
|
+
const ctxElem = this.$refs.refTableMenu.$el
|
|
169
169
|
const clientHeight = ctxElem.clientHeight
|
|
170
170
|
const clientWidth = ctxElem.clientWidth
|
|
171
171
|
const { boundingTop, boundingLeft } = getAbsolutePos(ctxElem)
|
|
@@ -388,7 +388,7 @@ export default {
|
|
|
388
388
|
},
|
|
389
389
|
_clearValidate (rows: any, fieldOrColumn: any) {
|
|
390
390
|
const { validOpts, validErrorMaps } = this
|
|
391
|
-
const validTip = this.$refs.
|
|
391
|
+
const validTip = this.$refs.refValidTooltip
|
|
392
392
|
const rowList = XEUtils.isArray(rows) ? rows : (rows ? [rows] : [])
|
|
393
393
|
const colList = (XEUtils.isArray(fieldOrColumn) ? fieldOrColumn : (fieldOrColumn ? [fieldOrColumn] : [])).map(column => handleFieldOrColumn(this, column))
|
|
394
394
|
let validErrMaps: any = {}
|
|
@@ -466,7 +466,7 @@ export default {
|
|
|
466
466
|
showValidTooltip (params: any) {
|
|
467
467
|
const { $refs, height, validStore, validErrorMaps, tableData, validOpts } = this
|
|
468
468
|
const { rule, row, column, cell } = params
|
|
469
|
-
const validTip = $refs.
|
|
469
|
+
const validTip = $refs.refValidTooltip
|
|
470
470
|
const content = rule.content
|
|
471
471
|
validStore.visible = true
|
|
472
472
|
if (validOpts.msgMode === 'single') {
|