vxe-table 3.11.36 → 3.11.38-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/es/locale/lang/ar-EG.js +9 -0
- package/es/locale/lang/de-DE.js +9 -0
- package/es/locale/lang/en-US.js +9 -0
- package/es/locale/lang/es-ES.js +9 -0
- package/es/locale/lang/fr-FR.js +9 -0
- package/es/locale/lang/hu-HU.js +9 -0
- package/es/locale/lang/hy-AM.js +9 -0
- package/es/locale/lang/ja-JP.js +9 -0
- package/es/locale/lang/ko-KR.js +9 -0
- package/es/locale/lang/nb-NO.js +9 -0
- package/es/locale/lang/pt-BR.js +9 -0
- package/es/locale/lang/ru-RU.js +9 -0
- package/es/locale/lang/ug-CN.js +9 -0
- package/es/locale/lang/uk-UA.js +9 -0
- package/es/locale/lang/vi-VN.js +9 -0
- package/es/locale/lang/zh-CHT.js +9 -0
- package/es/locale/lang/zh-CN.js +9 -0
- package/es/style.css +1 -1
- package/es/table/render/index.js +42 -4
- package/es/table/src/body.js +4 -4
- package/es/table/src/footer.js +4 -2
- package/es/table/src/header.js +4 -2
- package/es/table/src/methods.js +1 -1
- package/es/table/src/table.js +6 -3
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/lib/index.umd.js +82 -15
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +9 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/de-DE.js +9 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/en-US.js +9 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +9 -0
- package/lib/locale/lang/es-ES.js +9 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +9 -0
- package/lib/locale/lang/fr-FR.js +9 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/hu-HU.js +9 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +9 -0
- package/lib/locale/lang/hy-AM.js +9 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/ja-JP.js +9 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +9 -0
- package/lib/locale/lang/ko-KR.js +9 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +9 -0
- package/lib/locale/lang/nb-NO.js +9 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/pt-BR.js +9 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +9 -0
- package/lib/locale/lang/ru-RU.js +9 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +9 -0
- package/lib/locale/lang/ug-CN.js +9 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/uk-UA.js +9 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +9 -0
- package/lib/locale/lang/vi-VN.js +9 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/zh-CHT.js +9 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +9 -0
- package/lib/locale/lang/zh-CN.js +9 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +9 -0
- package/lib/style.css +1 -1
- package/lib/table/render/index.js +53 -4
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +4 -3
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/footer.js +4 -1
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +4 -1
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +1 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +5 -3
- 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 +2 -2
- package/packages/locale/lang/ar-EG.ts +9 -0
- package/packages/locale/lang/de-DE.ts +9 -0
- package/packages/locale/lang/en-US.ts +9 -0
- package/packages/locale/lang/es-ES.ts +9 -0
- package/packages/locale/lang/fr-FR.ts +9 -0
- package/packages/locale/lang/hu-HU.ts +9 -0
- package/packages/locale/lang/hy-AM.ts +9 -0
- package/packages/locale/lang/ja-JP.ts +9 -0
- package/packages/locale/lang/ko-KR.ts +9 -0
- package/packages/locale/lang/nb-NO.ts +9 -0
- package/packages/locale/lang/pt-BR.ts +9 -0
- package/packages/locale/lang/ru-RU.ts +9 -0
- package/packages/locale/lang/ug-CN.ts +9 -0
- package/packages/locale/lang/uk-UA.ts +9 -0
- package/packages/locale/lang/vi-VN.ts +9 -0
- package/packages/locale/lang/zh-CHT.ts +9 -0
- package/packages/locale/lang/zh-CN.ts +9 -0
- package/packages/table/render/index.ts +42 -4
- package/packages/table/src/body.ts +4 -3
- package/packages/table/src/footer.ts +4 -2
- package/packages/table/src/header.ts +4 -2
- package/packages/table/src/methods.ts +1 -1
- package/packages/table/src/table.ts +6 -3
- /package/es/{iconfont.1734659093549.ttf → iconfont.1734966464342.ttf} +0 -0
- /package/es/{iconfont.1734659093549.woff → iconfont.1734966464342.woff} +0 -0
- /package/es/{iconfont.1734659093549.woff2 → iconfont.1734966464342.woff2} +0 -0
- /package/lib/{iconfont.1734659093549.ttf → iconfont.1734966464342.ttf} +0 -0
- /package/lib/{iconfont.1734659093549.woff → iconfont.1734966464342.woff} +0 -0
- /package/lib/{iconfont.1734659093549.woff2 → iconfont.1734966464342.woff2} +0 -0
|
@@ -459,7 +459,7 @@ function defaultSelectEditRender (h: CreateElement, renderOpts: any, params: any
|
|
|
459
459
|
]
|
|
460
460
|
}
|
|
461
461
|
|
|
462
|
-
function
|
|
462
|
+
function defaultTableOrTreeSelectEditRender (h: CreateElement, renderOpts: any, params: any) {
|
|
463
463
|
const { row, column } = params
|
|
464
464
|
const { options, optionProps } = renderOpts
|
|
465
465
|
const cellValue = getCellValue(row, column)
|
|
@@ -724,7 +724,7 @@ renderer.mixin({
|
|
|
724
724
|
},
|
|
725
725
|
VxeTreeSelect: {
|
|
726
726
|
tableAutoFocus: 'input',
|
|
727
|
-
renderTableEdit:
|
|
727
|
+
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
728
728
|
renderTableCell (h, renderOpts, params) {
|
|
729
729
|
return getCellLabelVNs(h, renderOpts, params, getTreeSelectCellValue(renderOpts, params))
|
|
730
730
|
},
|
|
@@ -732,15 +732,53 @@ renderer.mixin({
|
|
|
732
732
|
},
|
|
733
733
|
VxeTableSelect: {
|
|
734
734
|
tableAutoFocus: 'input',
|
|
735
|
-
renderTableEdit:
|
|
735
|
+
renderTableEdit: defaultTableOrTreeSelectEditRender,
|
|
736
736
|
renderTableCell (h, renderOpts, params) {
|
|
737
737
|
return getCellLabelVNs(h, renderOpts, params, getTreeSelectCellValue(renderOpts, params))
|
|
738
738
|
},
|
|
739
739
|
tableExportMethod: handleExportTreeSelectMethod
|
|
740
740
|
},
|
|
741
|
+
VxeColorPicker: {
|
|
742
|
+
tableAutoFocus: 'input',
|
|
743
|
+
renderTableEdit (h, renderOpts, params) {
|
|
744
|
+
const { row, column } = params
|
|
745
|
+
const { options } = renderOpts
|
|
746
|
+
const cellValue = getCellValue(row, column)
|
|
747
|
+
return [
|
|
748
|
+
h(getDefaultComponent(renderOpts), {
|
|
749
|
+
props: getCellEditProps(renderOpts, params, cellValue, { colors: options }),
|
|
750
|
+
on: getEditOns(renderOpts, params)
|
|
751
|
+
})
|
|
752
|
+
]
|
|
753
|
+
},
|
|
754
|
+
renderTableCell (h, renderOpts, params) {
|
|
755
|
+
const { row, column } = params
|
|
756
|
+
const cellValue = XEUtils.get(row, column.field)
|
|
757
|
+
return h('span', {
|
|
758
|
+
class: 'vxe-color-picker--readonly'
|
|
759
|
+
}, [
|
|
760
|
+
h('div', {
|
|
761
|
+
class: 'vxe-color-picker--readonly-color',
|
|
762
|
+
style: {
|
|
763
|
+
backgroundColor: cellValue
|
|
764
|
+
}
|
|
765
|
+
})
|
|
766
|
+
])
|
|
767
|
+
}
|
|
768
|
+
},
|
|
741
769
|
VxeIconPicker: {
|
|
742
770
|
tableAutoFocus: 'input',
|
|
743
|
-
renderTableEdit
|
|
771
|
+
renderTableEdit (h, renderOpts, params) {
|
|
772
|
+
const { row, column } = params
|
|
773
|
+
const { options } = renderOpts
|
|
774
|
+
const cellValue = getCellValue(row, column)
|
|
775
|
+
return [
|
|
776
|
+
h(getDefaultComponent(renderOpts), {
|
|
777
|
+
props: getCellEditProps(renderOpts, params, cellValue, { icons: options }),
|
|
778
|
+
on: getEditOns(renderOpts, params)
|
|
779
|
+
})
|
|
780
|
+
]
|
|
781
|
+
},
|
|
744
782
|
renderTableCell (h, renderOpts, params) {
|
|
745
783
|
const { row, column } = params
|
|
746
784
|
const cellValue = XEUtils.get(row, column.field)
|
|
@@ -337,7 +337,7 @@ function renderColumn (h: any, _vm: any, $xetable: any, seq: any, rowid: any, fi
|
|
|
337
337
|
getClass(className, params),
|
|
338
338
|
getClass(allCellClassName, params)
|
|
339
339
|
],
|
|
340
|
-
key: columnKey || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? column.id : $columnIndex,
|
|
340
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || rowOpts.useKey || columnOpts.drag ? column.id : $columnIndex,
|
|
341
341
|
attrs,
|
|
342
342
|
style: Object.assign({
|
|
343
343
|
height: cellHeight
|
|
@@ -362,6 +362,7 @@ function renderRows (h: CreateElement, _vm: any, $xeTable: any, fixedType: any,
|
|
|
362
362
|
expandOpts,
|
|
363
363
|
editOpts,
|
|
364
364
|
treeExpandedMaps,
|
|
365
|
+
scrollXLoad,
|
|
365
366
|
scrollYLoad,
|
|
366
367
|
rowExpandedMaps,
|
|
367
368
|
radioOpts,
|
|
@@ -467,7 +468,7 @@ function renderRows (h: CreateElement, _vm: any, $xeTable: any, fixedType: any,
|
|
|
467
468
|
rowid
|
|
468
469
|
},
|
|
469
470
|
style: rowStyle ? (XEUtils.isFunction(rowStyle) ? rowStyle(params) : rowStyle) : null,
|
|
470
|
-
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
471
|
+
key: rowKey || scrollXLoad || scrollYLoad || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
471
472
|
nativeOn: trOn
|
|
472
473
|
}, tdVNs)
|
|
473
474
|
: h('tr', {
|
|
@@ -476,7 +477,7 @@ function renderRows (h: CreateElement, _vm: any, $xeTable: any, fixedType: any,
|
|
|
476
477
|
rowid
|
|
477
478
|
},
|
|
478
479
|
style: rowStyle ? (XEUtils.isFunction(rowStyle) ? rowStyle(params) : rowStyle) : null,
|
|
479
|
-
key: rowKey || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
480
|
+
key: rowKey || scrollXLoad || scrollYLoad || rowOpts.useKey || rowOpts.drag || columnOpts.drag || treeConfig ? rowid : $rowIndex,
|
|
480
481
|
on: trOn
|
|
481
482
|
}, tdVNs)
|
|
482
483
|
)
|
|
@@ -26,7 +26,7 @@ function mergeFooterMethod (mergeFooterList: any, _rowIndex: any, _columnIndex:
|
|
|
26
26
|
|
|
27
27
|
function renderRows (h: CreateElement, _vm: any, tableColumn: VxeTableDefines.ColumnInfo[], footerTableData: any[], row: any, $rowIndex: number, _rowIndex: number) {
|
|
28
28
|
const { $parent: $xetable, fixedType } = _vm
|
|
29
|
-
const { $listeners: tableListeners, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, mergeFooterList, footerSpanMethod, align: allAlign, scrollXLoad, columnKey, columnOpts, showFooterOverflow: allColumnFooterOverflow, currentColumn, overflowX, scrollbarWidth, tooltipOpts } = $xetable
|
|
29
|
+
const { $listeners: tableListeners, footerCellClassName, footerCellStyle, footerAlign: allFooterAlign, mergeFooterList, footerSpanMethod, align: allAlign, scrollXLoad, columnKey, columnOpts, showFooterOverflow: allColumnFooterOverflow, currentColumn, overflowX, scrollYLoad, scrollbarWidth, tooltipOpts } = $xetable
|
|
30
30
|
|
|
31
31
|
return tableColumn.map((column: any, $columnIndex: any) => {
|
|
32
32
|
const { type, showFooterOverflow, footerAlign, align, footerClassName, editRender, cellRender } = column
|
|
@@ -135,7 +135,7 @@ function renderRows (h: CreateElement, _vm: any, tableColumn: VxeTableDefines.Co
|
|
|
135
135
|
attrs,
|
|
136
136
|
style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle) : null,
|
|
137
137
|
on: tfOns,
|
|
138
|
-
key: columnKey || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
|
|
138
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag ? column.id : $columnIndex
|
|
139
139
|
}, [
|
|
140
140
|
h('div', {
|
|
141
141
|
class: ['vxe-cell', {
|
|
@@ -170,6 +170,7 @@ function renderHeads (h: CreateElement, _vm: any, footerTableData: any[]) {
|
|
|
170
170
|
|
|
171
171
|
if (columnOpts.drag && columnDragOpts.animation) {
|
|
172
172
|
return h('transition-group', {
|
|
173
|
+
key: $rowIndex,
|
|
173
174
|
props: {
|
|
174
175
|
tag: 'tr',
|
|
175
176
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -182,6 +183,7 @@ function renderHeads (h: CreateElement, _vm: any, footerTableData: any[]) {
|
|
|
182
183
|
}, renderRows(h, _vm, tableColumn, footerTableData, row, $rowIndex, _rowIndex))
|
|
183
184
|
}
|
|
184
185
|
return h('tr', {
|
|
186
|
+
key: $rowIndex,
|
|
185
187
|
class: [
|
|
186
188
|
'vxe-footer--row',
|
|
187
189
|
footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''
|
|
@@ -17,7 +17,7 @@ const renderRows = (h: CreateElement, _vm: any, cols: VxeTableDefines.ColumnInfo
|
|
|
17
17
|
|
|
18
18
|
const { fixedType } = _vm
|
|
19
19
|
|
|
20
|
-
const { resizable: allResizable, border, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, currentColumn, scrollXLoad, overflowX, scrollbarWidth, mouseConfig, columnOpts } = $xeTable
|
|
20
|
+
const { resizable: allResizable, border, columnKey, headerCellClassName, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, currentColumn, scrollXLoad, scrollYLoad, overflowX, scrollbarWidth, mouseConfig, columnOpts } = $xeTable
|
|
21
21
|
const columnDragOpts = $xeTable.computeColumnDragOpts
|
|
22
22
|
const { disabledMethod: dragDisabledMethod } = columnDragOpts
|
|
23
23
|
return cols.map((column: any, $columnIndex: any) => {
|
|
@@ -90,7 +90,7 @@ const renderRows = (h: CreateElement, _vm: any, cols: VxeTableDefines.ColumnInfo
|
|
|
90
90
|
attrs: thAttrs,
|
|
91
91
|
style: headerCellStyle ? (XEUtils.isFunction(headerCellStyle) ? headerCellStyle(params) : headerCellStyle) : null,
|
|
92
92
|
on: thOns,
|
|
93
|
-
key: columnKey || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
93
|
+
key: columnKey || scrollXLoad || scrollYLoad || columnOpts.useKey || columnOpts.drag || isColGroup ? colid : $columnIndex
|
|
94
94
|
}, [
|
|
95
95
|
h('div', {
|
|
96
96
|
class: ['vxe-cell', {
|
|
@@ -140,6 +140,7 @@ function renderHeads (h: CreateElement, _vm: any, headerGroups: any[]) {
|
|
|
140
140
|
|
|
141
141
|
if (columnOpts.drag && columnDragOpts.animation) {
|
|
142
142
|
return h('transition-group', {
|
|
143
|
+
key: $rowIndex,
|
|
143
144
|
props: {
|
|
144
145
|
tag: 'tr',
|
|
145
146
|
name: `vxe-header--col-list${isDragColMove ? '' : '-disabled'}`,
|
|
@@ -152,6 +153,7 @@ function renderHeads (h: CreateElement, _vm: any, headerGroups: any[]) {
|
|
|
152
153
|
}, renderRows(h, _vm, cols, $rowIndex))
|
|
153
154
|
}
|
|
154
155
|
return h('tr', {
|
|
156
|
+
key: $rowIndex,
|
|
155
157
|
class: [
|
|
156
158
|
'vxe-header--row',
|
|
157
159
|
headerRowClassName ? XEUtils.isFunction(headerRowClassName) ? headerRowClassName(params) : headerRowClassName : ''
|
|
@@ -6785,7 +6785,7 @@ const Methods = {
|
|
|
6785
6785
|
|
|
6786
6786
|
const { lyTimeout, lyRunTime, scrollYStore } = internalData
|
|
6787
6787
|
const { visibleSize } = scrollYStore
|
|
6788
|
-
const fpsTime = Math.min(80, Math.floor(visibleSize
|
|
6788
|
+
const fpsTime = Math.min(80, Math.floor(visibleSize))
|
|
6789
6789
|
if (lyTimeout) {
|
|
6790
6790
|
clearTimeout(lyTimeout)
|
|
6791
6791
|
}
|
|
@@ -734,8 +734,11 @@ export default {
|
|
|
734
734
|
}
|
|
735
735
|
return false
|
|
736
736
|
},
|
|
737
|
-
|
|
738
|
-
const
|
|
737
|
+
computeTableBorder () {
|
|
738
|
+
const $xeTable = this
|
|
739
|
+
const props = $xeTable
|
|
740
|
+
|
|
741
|
+
const { border } = props
|
|
739
742
|
if (border === true) {
|
|
740
743
|
return 'full'
|
|
741
744
|
}
|
|
@@ -1213,7 +1216,6 @@ export default {
|
|
|
1213
1216
|
stripe,
|
|
1214
1217
|
showHeader,
|
|
1215
1218
|
height,
|
|
1216
|
-
tableBorder,
|
|
1217
1219
|
treeOpts,
|
|
1218
1220
|
treeConfig,
|
|
1219
1221
|
mouseConfig,
|
|
@@ -1250,6 +1252,7 @@ export default {
|
|
|
1250
1252
|
const loadingSlot = $scopedSlots.loading
|
|
1251
1253
|
const currLoading = this._isLoading || loading
|
|
1252
1254
|
const vSize = computeSize
|
|
1255
|
+
const tableBorder = $xeTable.computeTableBorder
|
|
1253
1256
|
const virtualScrollBars = $xeTable.computeVirtualScrollBars
|
|
1254
1257
|
const isArea = mouseConfig && mouseOpts.area
|
|
1255
1258
|
const tableStyle = $xeTable.computeTableStyle
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|