vxe-table 3.22.7 → 3.22.9
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 +14 -0
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- 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/src/cell.js +2 -2
- package/es/table/src/footer.js +3 -3
- package/es/table/src/header.js +3 -3
- package/es/table/src/methods.js +30 -12
- package/es/table/src/table.js +3 -3
- package/es/table/src/util.js +5 -1
- package/es/table/style.css +22 -12
- package/es/table/style.min.css +1 -1
- package/es/ui/index.js +3 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +22 -12
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +18 -0
- 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 +52 -28
- package/lib/index.umd.min.js +1 -1
- 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/src/cell.js +2 -2
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/footer.js +3 -3
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/header.js +3 -3
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +11 -11
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/table.js +3 -3
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +5 -1
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +22 -12
- package/lib/table/style/style.min.css +1 -1
- package/lib/ui/index.js +3 -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/lib/vxe-table/style/style.css +22 -12
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +15 -0
- package/packages/table/module/export/mixin.ts +3 -3
- package/packages/table/src/cell.ts +2 -2
- package/packages/table/src/footer.ts +3 -3
- package/packages/table/src/header.ts +3 -3
- package/packages/table/src/methods.ts +30 -12
- package/packages/table/src/table.ts +3 -3
- package/packages/table/src/util.ts +5 -1
- package/packages/ui/index.ts +2 -0
- package/styles/components/table.scss +24 -6
- package/styles/theme/base.scss +0 -1
- /package/es/{iconfont.1784868282490.ttf → iconfont.1785242725062.ttf} +0 -0
- /package/es/{iconfont.1784868282490.woff → iconfont.1785242725062.woff} +0 -0
- /package/es/{iconfont.1784868282490.woff2 → iconfont.1785242725062.woff2} +0 -0
- /package/lib/{iconfont.1784868282490.ttf → iconfont.1785242725062.ttf} +0 -0
- /package/lib/{iconfont.1784868282490.woff → iconfont.1785242725062.woff} +0 -0
- /package/lib/{iconfont.1784868282490.woff2 → iconfont.1785242725062.woff2} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vxe-table",
|
|
3
|
-
"version": "3.22.
|
|
3
|
+
"version": "3.22.9",
|
|
4
4
|
"description": "A PC-end table component based on Vxe UI, supporting copy-paste, data pivot table, and high-performance virtual list table solution.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"update": "npm install --legacy-peer-deps",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"vue-i18n": "^8.15.1",
|
|
66
66
|
"vue-router": "^3.5.1",
|
|
67
67
|
"vue-template-compiler": "2.6.14",
|
|
68
|
-
"vxe-pc-ui": "3.16.
|
|
68
|
+
"vxe-pc-ui": "3.16.22"
|
|
69
69
|
},
|
|
70
70
|
"vetur": {
|
|
71
71
|
"tags": "helper/vetur/tags.json",
|
|
@@ -1462,6 +1462,21 @@ export default /* define-vxe-component start */ defineVxeComponent({
|
|
|
1462
1462
|
}
|
|
1463
1463
|
return null
|
|
1464
1464
|
},
|
|
1465
|
+
getCustomPagerData () {
|
|
1466
|
+
const $xeGrid = this
|
|
1467
|
+
const props = $xeGrid
|
|
1468
|
+
const reactData = $xeGrid.reactData
|
|
1469
|
+
|
|
1470
|
+
const { pagerConfig } = props
|
|
1471
|
+
const { tablePage } = reactData
|
|
1472
|
+
const pagerOpts = $xeGrid.computePagerOpts
|
|
1473
|
+
if (pagerConfig && isEnableConf(pagerOpts)) {
|
|
1474
|
+
return {
|
|
1475
|
+
pSize: tablePage.pageSize
|
|
1476
|
+
}
|
|
1477
|
+
}
|
|
1478
|
+
return {}
|
|
1479
|
+
},
|
|
1465
1480
|
loadColumn (columns: any[]) {
|
|
1466
1481
|
const $xeGrid = this
|
|
1467
1482
|
const slots = $xeGrid.$scopedSlots
|
|
@@ -1325,7 +1325,7 @@ function handleExportAndPrint ($xeTable: VxeTableConstructor, options: VxeTableP
|
|
|
1325
1325
|
const isColGroup = column.children && column.children.length > 0
|
|
1326
1326
|
let isChecked = false
|
|
1327
1327
|
const isExtraChecked = extraFdMaps[column.field]
|
|
1328
|
-
if (columns
|
|
1328
|
+
if (columns) {
|
|
1329
1329
|
isChecked = handleFilterColumns(defOpts, column, columns)
|
|
1330
1330
|
} else if (excludeFields || includeFields) {
|
|
1331
1331
|
isChecked = handleFilterFields(defOpts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
|
|
@@ -1536,7 +1536,7 @@ export default {
|
|
|
1536
1536
|
|
|
1537
1537
|
let isCustomCol = false
|
|
1538
1538
|
let customCols = []
|
|
1539
|
-
if (columns
|
|
1539
|
+
if (columns) {
|
|
1540
1540
|
isCustomCol = true
|
|
1541
1541
|
customCols = XEUtils.searchTree(columns, () => true, { children: 'children', mapChildren: 'childNodes', original: true })
|
|
1542
1542
|
} else {
|
|
@@ -1544,7 +1544,7 @@ export default {
|
|
|
1544
1544
|
const isColGroup = column.children && column.children.length > 0
|
|
1545
1545
|
let isChecked = false
|
|
1546
1546
|
const isExtraChecked = extraFdMaps[column.field]
|
|
1547
|
-
if (columns
|
|
1547
|
+
if (columns) {
|
|
1548
1548
|
isChecked = handleFilterColumns(opts, column, columns)
|
|
1549
1549
|
} else if (excludeFields || includeFields) {
|
|
1550
1550
|
isChecked = handleFilterFields(opts, column, includeFields, includeFdMaps, excludeFdMaps, extraFdMaps)
|
|
@@ -190,8 +190,8 @@ function renderTitleContent (h: CreateElement, params: VxeTableDefines.CellRende
|
|
|
190
190
|
const headerTooltipOpts = $table.computeHeaderTooltipOpts
|
|
191
191
|
const showAllTip = headerTooltipOpts.showAll
|
|
192
192
|
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow
|
|
193
|
-
const showTitle = headOverflow === 'title'
|
|
194
|
-
const showTooltip = headOverflow === true
|
|
193
|
+
const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title'
|
|
194
|
+
const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip'
|
|
195
195
|
const ons: Record<string, any> = {}
|
|
196
196
|
if (showTitle || showTooltip || showAllTip) {
|
|
197
197
|
ons.mouseenter = (evnt: MouseEvent) => {
|
|
@@ -47,9 +47,9 @@ function renderRows (h: CreateElement, _vm: any, isOptimizeMode: boolean, tableC
|
|
|
47
47
|
const isPadding = XEUtils.isBoolean(footerCellOpts.padding) ? footerCellOpts.padding : cellOpts.padding
|
|
48
48
|
const footOverflow = XEUtils.eqNull(showFooterOverflow) ? allColumnFooterOverflow : showFooterOverflow
|
|
49
49
|
const footAlign = footerAlign || (compConf ? compConf.tableFooterCellAlign : '') || allFooterAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign
|
|
50
|
-
const showEllipsis = footOverflow === 'ellipsis'
|
|
51
|
-
const showTitle = footOverflow === 'title'
|
|
52
|
-
const showTooltip = footOverflow === true ? footerTooltipOpts.mode
|
|
50
|
+
const showEllipsis = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'ellipsis'
|
|
51
|
+
const showTitle = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'title'
|
|
52
|
+
const showTooltip = (footOverflow === true ? footerTooltipOpts.mode : footOverflow) === 'tooltip'
|
|
53
53
|
const hasEllipsis = showTitle || showTooltip || showEllipsis
|
|
54
54
|
const showResizable = (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
|
|
55
55
|
const attrs: any = { colid }
|
|
@@ -250,9 +250,9 @@ function renderFilterRows (h: CreateElement, _vm: any, isOptimizeMode: boolean,
|
|
|
250
250
|
const isPadding = XEUtils.isBoolean(headerCellOpts.padding) ? headerCellOpts.padding : cellOpts.padding
|
|
251
251
|
const headOverflow = XEUtils.eqNull(showHeaderOverflow) ? allColumnHeaderOverflow : showHeaderOverflow
|
|
252
252
|
const headAlign = headerAlign || (compConf ? compConf.tableHeaderCellAlign : '') || allHeaderAlign || align || (compConf ? compConf.tableCellAlign : '') || allAlign
|
|
253
|
-
const showEllipsis = headOverflow === 'ellipsis'
|
|
254
|
-
const showTitle = headOverflow === 'title'
|
|
255
|
-
const showTooltip = headOverflow === true ? headerTooltipOpts.mode
|
|
253
|
+
const showEllipsis = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'ellipsis'
|
|
254
|
+
const showTitle = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'title'
|
|
255
|
+
const showTooltip = (headOverflow === true ? headerTooltipOpts.mode : headOverflow) === 'tooltip'
|
|
256
256
|
const hasEllipsis = showTitle || showTooltip || showEllipsis
|
|
257
257
|
let hasFilter = false
|
|
258
258
|
let firstFilterOption: VxeTableDefines.FilterOption | null = null
|
|
@@ -141,12 +141,15 @@ function handleCustomRestore ($xeTable: VxeTableConstructor & VxeTablePrivateMet
|
|
|
141
141
|
const props = $xeTable
|
|
142
142
|
const reactData = $xeTable as unknown as TableReactData
|
|
143
143
|
const internalData = $xeTable as unknown as TableInternalData
|
|
144
|
+
const $xeGrid = $xeTable.$xeGrid as VxeGridConstructor & VxeGridPrivateMethods
|
|
145
|
+
const $xeGantt = $xeTable.$xeGantt
|
|
146
|
+
const $xeGGWrapper = $xeGrid || $xeGantt
|
|
144
147
|
|
|
145
148
|
const { aggregateConfig, rowGroupConfig } = props
|
|
146
149
|
const { collectColumn } = internalData
|
|
147
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
|
|
150
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
|
|
148
151
|
|
|
149
|
-
let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData } = storeData
|
|
152
|
+
let { alignData, headerAlignData, footerAlignData, resizableData, sortData, visibleData, fixedData, aggGroupData, aggFuncData, pagerData } = storeData
|
|
150
153
|
// 处理还原
|
|
151
154
|
if ((isCustomAlign && alignData) ||
|
|
152
155
|
(isCustomHeaderAlign && headerAlignData) ||
|
|
@@ -156,7 +159,8 @@ function handleCustomRestore ($xeTable: VxeTableConstructor & VxeTablePrivateMet
|
|
|
156
159
|
(isCustomVisible && visibleData) ||
|
|
157
160
|
(isCustomFixed && fixedData) ||
|
|
158
161
|
(isCustomAggGroup && aggGroupData) ||
|
|
159
|
-
(isCustomAggFunc && aggFuncData)
|
|
162
|
+
(isCustomAggFunc && aggFuncData) ||
|
|
163
|
+
(isCustomPager && pagerData && $xeGGWrapper)) {
|
|
160
164
|
const sortColMaps: Record<string, {
|
|
161
165
|
key: string
|
|
162
166
|
sNum: number
|
|
@@ -670,7 +674,7 @@ function updateAfterTreeIndex ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
670
674
|
const fullMaps: Record<string, any> = {}
|
|
671
675
|
let rowNum = 0
|
|
672
676
|
const { handleGetRowId } = createHandleGetRowId($xeTable)
|
|
673
|
-
XEUtils.eachTree(afterTreeFullData, (row, index, items, path) => {
|
|
677
|
+
XEUtils.eachTree(afterTreeFullData, (row, index, items, path, parentRow) => {
|
|
674
678
|
const rowid = handleGetRowId(row)
|
|
675
679
|
const rowRest = fullAllDataRowIdData[rowid]
|
|
676
680
|
const seq = path.map((num, i) => i % 2 === 0 ? (Number(num) + 1) : '.').join('')
|
|
@@ -678,9 +682,10 @@ function updateAfterTreeIndex ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
678
682
|
rowRest.seq = seq
|
|
679
683
|
rowRest._seq = rowNum
|
|
680
684
|
rowRest.treeIndex = index
|
|
685
|
+
rowRest._index = rowNum
|
|
681
686
|
rowRest._tIndex = rowNum
|
|
682
687
|
} else {
|
|
683
|
-
const rest = { row, rowid, _seq: rowNum, seq, index
|
|
688
|
+
const rest = { row, rowid, _seq: rowNum, seq, index, $index: -1, _index: rowNum, treeIndex: index, _tIndex: rowNum, items, parent: parentRow, level: 0, height: 0, resizeHeight: 0, oTop: 0, expandHeight: 0 }
|
|
684
689
|
fullAllDataRowIdData[rowid] = rest
|
|
685
690
|
fullDataRowIdData[rowid] = rest
|
|
686
691
|
}
|
|
@@ -4370,7 +4375,7 @@ function calcCellWidth ($xeTable: VxeTableConstructor & VxeTablePrivateMethods)
|
|
|
4370
4375
|
const autoWidthColumnList = $xeTable.computeAutoWidthColumnList
|
|
4371
4376
|
const { fullColumnIdData } = internalData
|
|
4372
4377
|
const el = $xeTable.$refs.refElem as HTMLDivElement
|
|
4373
|
-
if (el) {
|
|
4378
|
+
if (el && autoWidthColumnList.length) {
|
|
4374
4379
|
el.setAttribute('data-calc-col', 'Y')
|
|
4375
4380
|
autoWidthColumnList.forEach(column => {
|
|
4376
4381
|
const colid = column.id
|
|
@@ -4475,12 +4480,12 @@ function updateRowExpandStyle ($xeTable: VxeTableConstructor & VxeTablePrivateMe
|
|
|
4475
4480
|
return
|
|
4476
4481
|
}
|
|
4477
4482
|
const expandOpts = $xeTable.computeExpandOpts
|
|
4478
|
-
const rowOpts = $xeTable.computeRowOpts
|
|
4479
|
-
const cellOpts = $xeTable.computeCellOpts
|
|
4480
|
-
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
4481
4483
|
const { mode } = expandOpts
|
|
4482
4484
|
if (expandColumn && mode === 'fixed') {
|
|
4483
4485
|
const { elemStore, fullAllDataRowIdData } = internalData
|
|
4486
|
+
const rowOpts = $xeTable.computeRowOpts
|
|
4487
|
+
const cellOpts = $xeTable.computeCellOpts
|
|
4488
|
+
const defaultRowHeight = $xeTable.computeDefaultRowHeight
|
|
4484
4489
|
const rowExpandEl = $xeTable.$refs.refRowExpandElem as HTMLDivElement
|
|
4485
4490
|
const bodyScrollElem = getRefElem(elemStore['main-body-scroll'])
|
|
4486
4491
|
if (rowExpandEl && bodyScrollElem) {
|
|
@@ -6789,6 +6794,9 @@ const tableMethods: any = {
|
|
|
6789
6794
|
*/
|
|
6790
6795
|
getCustomStoreData () {
|
|
6791
6796
|
const $xeTable = this as VxeTableConstructor & VxeTablePrivateMethods
|
|
6797
|
+
const $xeGrid = $xeTable.$xeGrid
|
|
6798
|
+
const $xeGantt = $xeTable.$xeGantt
|
|
6799
|
+
const $xeGGWrapper = $xeGrid || $xeGantt
|
|
6792
6800
|
const props = $xeTable
|
|
6793
6801
|
const reactData = $xeTable as unknown as TableReactData
|
|
6794
6802
|
const internalData = $xeTable as unknown as TableInternalData
|
|
@@ -6798,7 +6806,7 @@ const tableMethods: any = {
|
|
|
6798
6806
|
const { isRowGroupStatus, rowGroupList } = reactData
|
|
6799
6807
|
const { fullColumnFieldData, collectColumn } = internalData
|
|
6800
6808
|
const { storage, checkMethod } = customOpts
|
|
6801
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
|
|
6809
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
|
|
6802
6810
|
|
|
6803
6811
|
const alignData: Record<string, VxeColumnPropTypes.Align> = {}
|
|
6804
6812
|
const headerAlignData: Record<string, VxeColumnPropTypes.HeaderAlign> = {}
|
|
@@ -6811,6 +6819,7 @@ const tableMethods: any = {
|
|
|
6811
6819
|
const aggFuncData: Record<string, VxeColumnPropTypes.AggFunc> = {}
|
|
6812
6820
|
|
|
6813
6821
|
const storeData: VxeTableDefines.CustomStoreData = {
|
|
6822
|
+
pagerData: isCustomPager && $xeGGWrapper && $xeGGWrapper.getCustomPagerData ? $xeGGWrapper.getCustomPagerData() : undefined,
|
|
6814
6823
|
alignData: undefined,
|
|
6815
6824
|
headerAlignData: undefined,
|
|
6816
6825
|
footerAlignData: undefined,
|
|
@@ -6946,7 +6955,7 @@ const tableMethods: any = {
|
|
|
6946
6955
|
const tableId = $xeTable.computeTableId
|
|
6947
6956
|
const customOpts = $xeTable.computeCustomOpts
|
|
6948
6957
|
const { updateStore, storage } = customOpts
|
|
6949
|
-
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc } = handleCustomStoreConfig($xeTable)
|
|
6958
|
+
const { isCustomAlign, isCustomHeaderAlign, isCustomFooterAlign, isCustomResizable, isCustomVisible, isCustomFixed, isCustomSort, isCustomAggGroup, isCustomAggFunc, isCustomPager } = handleCustomStoreConfig($xeTable)
|
|
6950
6959
|
|
|
6951
6960
|
if (type !== 'reset') {
|
|
6952
6961
|
// fix:修复拖动列宽,重置按钮无法点击的问题
|
|
@@ -6963,7 +6972,8 @@ const tableMethods: any = {
|
|
|
6963
6972
|
isCustomFixed ||
|
|
6964
6973
|
isCustomSort ||
|
|
6965
6974
|
isCustomAggGroup ||
|
|
6966
|
-
isCustomAggFunc
|
|
6975
|
+
isCustomAggFunc ||
|
|
6976
|
+
isCustomPager
|
|
6967
6977
|
)
|
|
6968
6978
|
) {
|
|
6969
6979
|
if (!tableId) {
|
|
@@ -6972,6 +6982,7 @@ const tableMethods: any = {
|
|
|
6972
6982
|
}
|
|
6973
6983
|
const storeData: VxeTableDefines.CustomStoreData = type === 'reset'
|
|
6974
6984
|
? {
|
|
6985
|
+
pagerData: {},
|
|
6975
6986
|
alignData: {},
|
|
6976
6987
|
headerAlignData: {},
|
|
6977
6988
|
footerAlignData: {},
|
|
@@ -10247,6 +10258,7 @@ const tableMethods: any = {
|
|
|
10247
10258
|
status: false
|
|
10248
10259
|
}
|
|
10249
10260
|
if (!(el && prevDragRow && dragRow)) {
|
|
10261
|
+
handleRowDragEndClearStatus($xeTable)
|
|
10250
10262
|
return Promise.resolve(errRest)
|
|
10251
10263
|
}
|
|
10252
10264
|
// 判断是否有拖动
|
|
@@ -10355,6 +10367,9 @@ const tableMethods: any = {
|
|
|
10355
10367
|
}
|
|
10356
10368
|
|
|
10357
10369
|
const isDragToChildFlag = isSelfToChildDrag && dragToChildMethod ? dragToChildMethod(dragParams) : prevDragToChild
|
|
10370
|
+
if (dEndMethod) {
|
|
10371
|
+
handleRowDragEndClearStatus($xeTable)
|
|
10372
|
+
}
|
|
10358
10373
|
return Promise.resolve(dEndMethod ? dEndMethod(dragParams) : true).then((status) => {
|
|
10359
10374
|
if (!status) {
|
|
10360
10375
|
return errRest
|
|
@@ -10675,6 +10690,9 @@ const tableMethods: any = {
|
|
|
10675
10690
|
const errRest = {
|
|
10676
10691
|
status: false
|
|
10677
10692
|
}
|
|
10693
|
+
if (dragEndMethod) {
|
|
10694
|
+
handleRowDragEndClearStatus($xeTable)
|
|
10695
|
+
}
|
|
10678
10696
|
Promise.resolve(dragEndMethod ? dragEndMethod(dragParams) : true).then((status) => {
|
|
10679
10697
|
if (!status) {
|
|
10680
10698
|
if ($oldTable) {
|
|
@@ -1767,9 +1767,9 @@ export default {
|
|
|
1767
1767
|
// if (treeConfig && (treeOpts.showLine || treeOpts.line) && !showOverflow) {
|
|
1768
1768
|
// warnLog('vxe.error.reqProp', ['show-overflow'])
|
|
1769
1769
|
// }
|
|
1770
|
-
if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
1771
|
-
|
|
1772
|
-
}
|
|
1770
|
+
// if (treeConfig && !treeOpts.transform && props.stripe) {
|
|
1771
|
+
// warnLog('vxe.error.noTree', ['stripe'])
|
|
1772
|
+
// }
|
|
1773
1773
|
if (treeConfig && !treeOpts.transform) {
|
|
1774
1774
|
if (sortOpts.isDeep) {
|
|
1775
1775
|
warnLog('vxe.error.reqSupportProp', ['transform=false', 'sort-config.isDeep=false'])
|
|
@@ -165,6 +165,8 @@ export function createInternalData (): TableInternalData {
|
|
|
165
165
|
initStatus: false,
|
|
166
166
|
isActivated: false,
|
|
167
167
|
|
|
168
|
+
// rceTimeout: undefined,
|
|
169
|
+
// rceRunTime: undefined,
|
|
168
170
|
rceDelay: 0
|
|
169
171
|
|
|
170
172
|
// _sToTime: null
|
|
@@ -1123,6 +1125,7 @@ export function handleCustomStoreConfig ($xeTable: VxeTableConstructor) {
|
|
|
1123
1125
|
const isCustomSort = hangleBolleanDefaultValue(storageOpts.sort, isAllCustom)
|
|
1124
1126
|
const isCustomAggGroup = hangleBolleanDefaultValue(storageOpts.aggGroup, isAllCustom)
|
|
1125
1127
|
const isCustomAggFunc = hangleBolleanDefaultValue(storageOpts.aggFunc, isAllCustom)
|
|
1128
|
+
const isCustomPager = hangleBolleanDefaultValue(storageOpts.pager, isAllCustom)
|
|
1126
1129
|
return {
|
|
1127
1130
|
isCustomAlign,
|
|
1128
1131
|
isCustomHeaderAlign,
|
|
@@ -1132,6 +1135,7 @@ export function handleCustomStoreConfig ($xeTable: VxeTableConstructor) {
|
|
|
1132
1135
|
isCustomFixed,
|
|
1133
1136
|
isCustomSort,
|
|
1134
1137
|
isCustomAggGroup,
|
|
1135
|
-
isCustomAggFunc
|
|
1138
|
+
isCustomAggFunc,
|
|
1139
|
+
isCustomPager
|
|
1136
1140
|
}
|
|
1137
1141
|
}
|
package/packages/ui/index.ts
CHANGED
|
@@ -4,6 +4,27 @@
|
|
|
4
4
|
@use './icon.scss';
|
|
5
5
|
@use './table-module/all.scss';
|
|
6
6
|
|
|
7
|
+
|
|
8
|
+
// 局部变量
|
|
9
|
+
.vxe-table {
|
|
10
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-default);
|
|
11
|
+
&.size--xlarge {
|
|
12
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-xlarge);
|
|
13
|
+
}
|
|
14
|
+
&.size--large {
|
|
15
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-large);
|
|
16
|
+
}
|
|
17
|
+
&.size--medium {
|
|
18
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-medium);
|
|
19
|
+
}
|
|
20
|
+
&.size--small {
|
|
21
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-small);
|
|
22
|
+
}
|
|
23
|
+
&.size--mini {
|
|
24
|
+
--vxe-ui-table-current-font-size: var(--vxe-ui-font-size-mini);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
7
28
|
$btnThemeList: (
|
|
8
29
|
(
|
|
9
30
|
name: "primary",
|
|
@@ -1374,7 +1395,7 @@ $btnThemeList: (
|
|
|
1374
1395
|
/*table*/
|
|
1375
1396
|
.vxe-table--render-default {
|
|
1376
1397
|
position: relative;
|
|
1377
|
-
font-size: var(--vxe-ui-font-size
|
|
1398
|
+
font-size: var(--vxe-ui-table-current-font-size);
|
|
1378
1399
|
color: var(--vxe-ui-font-color);
|
|
1379
1400
|
font-family: var(--vxe-ui-font-family);
|
|
1380
1401
|
direction: ltr;
|
|
@@ -1832,7 +1853,6 @@ $btnThemeList: (
|
|
|
1832
1853
|
}
|
|
1833
1854
|
|
|
1834
1855
|
&.size--medium {
|
|
1835
|
-
font-size: var(--vxe-ui-font-size-medium);
|
|
1836
1856
|
.vxe-table--empty-placeholder,
|
|
1837
1857
|
.vxe-table--empty-block {
|
|
1838
1858
|
min-height: var(--vxe-ui-table-row-height-medium);
|
|
@@ -1866,7 +1886,6 @@ $btnThemeList: (
|
|
|
1866
1886
|
}
|
|
1867
1887
|
}
|
|
1868
1888
|
&.size--small {
|
|
1869
|
-
font-size: var(--vxe-ui-font-size-small);
|
|
1870
1889
|
.vxe-table--empty-placeholder,
|
|
1871
1890
|
.vxe-table--empty-block {
|
|
1872
1891
|
min-height: var(--vxe-ui-table-row-height-small);
|
|
@@ -1900,7 +1919,6 @@ $btnThemeList: (
|
|
|
1900
1919
|
}
|
|
1901
1920
|
}
|
|
1902
1921
|
&.size--mini {
|
|
1903
|
-
font-size: var(--vxe-ui-font-size-mini);
|
|
1904
1922
|
.vxe-table--empty-placeholder,
|
|
1905
1923
|
.vxe-table--empty-block {
|
|
1906
1924
|
min-height: var(--vxe-ui-table-row-height-mini);
|
|
@@ -2447,7 +2465,7 @@ $btnThemeList: (
|
|
|
2447
2465
|
width: 100%;
|
|
2448
2466
|
position: absolute;
|
|
2449
2467
|
left: 50%;
|
|
2450
|
-
font-size: var(--vxe-ui-table-validate-error-font-size);
|
|
2468
|
+
font-size: var(--vxe-ui-table-validate-error-font-size, var(--vxe-ui-table-current-font-size));
|
|
2451
2469
|
line-height: 1em;
|
|
2452
2470
|
transform: translate(-50%, -2px);
|
|
2453
2471
|
text-align: left;
|
|
@@ -2473,7 +2491,7 @@ $btnThemeList: (
|
|
|
2473
2491
|
// }
|
|
2474
2492
|
}
|
|
2475
2493
|
.vxe-cell--valid-error-theme-beautify {
|
|
2476
|
-
padding: 0.2em 0.6em
|
|
2494
|
+
padding: var(--vxe-ui-table-validate-error-padding, 0.2em 0.6em);
|
|
2477
2495
|
color: #fff;
|
|
2478
2496
|
background-color: var(--vxe-ui-table-validate-error-color);
|
|
2479
2497
|
.vxe-cell--valid-error-msg {
|
package/styles/theme/base.scss
CHANGED
|
@@ -91,7 +91,6 @@
|
|
|
91
91
|
--vxe-ui-table-view-scrollbar-width: 18px;
|
|
92
92
|
--vxe-ui-table-view-scrollbar-height: 18px;
|
|
93
93
|
|
|
94
|
-
--vxe-ui-table-validate-error-font-size: 12px;
|
|
95
94
|
--vxe-ui-table-validate-error-color: #f56c6c;
|
|
96
95
|
--vxe-ui-table-validate-error-cell-background-color: rgba(245, 108,108, 0.1);
|
|
97
96
|
--vxe-ui-table-validate-error-theme-normal-background-color: var(--vxe-ui-layout-background-color);
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|