vxe-table 3.20.0-beta.8 → 3.20.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/grid/src/grid.js +23 -18
- package/es/index.css +1 -1
- package/es/index.min.css +1 -1
- package/es/locale/lang/ar-EG.js +6 -0
- package/es/locale/lang/de-DE.js +6 -0
- package/es/locale/lang/en-US.js +6 -0
- package/es/locale/lang/es-ES.js +6 -0
- package/es/locale/lang/fr-FR.js +6 -0
- package/es/locale/lang/hu-HU.js +6 -0
- package/es/locale/lang/hy-AM.js +6 -0
- package/es/locale/lang/id-ID.js +6 -0
- package/es/locale/lang/it-IT.js +6 -0
- package/es/locale/lang/ja-JP.js +6 -0
- package/es/locale/lang/ko-KR.js +6 -0
- package/es/locale/lang/ms-MY.js +6 -0
- package/es/locale/lang/nb-NO.js +6 -0
- package/es/locale/lang/pt-BR.js +6 -0
- package/es/locale/lang/ru-RU.js +6 -0
- package/es/locale/lang/th-TH.js +6 -0
- package/es/locale/lang/ug-CN.js +6 -0
- package/es/locale/lang/uk-UA.js +6 -0
- package/es/locale/lang/uz-UZ.js +6 -0
- package/es/locale/lang/vi-VN.js +6 -0
- package/es/locale/lang/zh-CHT.js +6 -0
- package/es/locale/lang/zh-CN.js +6 -0
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/table/module/export/mixin.js +15 -1
- package/es/table/module/keyboard/mixin.js +18 -8
- package/es/table/module/validator/mixin.js +7 -6
- package/es/table/render/index.js +11 -0
- package/es/table/src/body.js +12 -5
- package/es/table/src/columnInfo.js +2 -0
- package/es/table/src/methods.js +199 -73
- package/es/table/src/props.js +4 -0
- package/es/table/src/table.js +68 -7
- package/es/table/src/util.js +38 -20
- package/es/table/style.css +11 -17
- package/es/table/style.min.css +1 -1
- package/es/toolbar/src/toolbar.js +10 -5
- package/es/ui/index.js +7 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +11 -17
- package/es/vxe-table/style.min.css +1 -1
- package/lib/grid/src/grid.js +23 -18
- 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 +275 -100
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/ar-EG.js +6 -0
- package/lib/locale/lang/ar-EG.min.js +1 -1
- package/lib/locale/lang/ar-EG.umd.js +6 -0
- package/lib/locale/lang/de-DE.js +6 -0
- package/lib/locale/lang/de-DE.min.js +1 -1
- package/lib/locale/lang/de-DE.umd.js +6 -0
- package/lib/locale/lang/en-US.js +6 -0
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +6 -0
- package/lib/locale/lang/es-ES.js +6 -0
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +6 -0
- package/lib/locale/lang/fr-FR.js +6 -0
- package/lib/locale/lang/fr-FR.min.js +1 -1
- package/lib/locale/lang/fr-FR.umd.js +6 -0
- package/lib/locale/lang/hu-HU.js +6 -0
- package/lib/locale/lang/hu-HU.min.js +1 -1
- package/lib/locale/lang/hu-HU.umd.js +6 -0
- package/lib/locale/lang/hy-AM.js +6 -0
- package/lib/locale/lang/hy-AM.min.js +1 -1
- package/lib/locale/lang/hy-AM.umd.js +6 -0
- package/lib/locale/lang/id-ID.js +6 -0
- package/lib/locale/lang/id-ID.min.js +1 -1
- package/lib/locale/lang/id-ID.umd.js +6 -0
- package/lib/locale/lang/it-IT.js +6 -0
- package/lib/locale/lang/it-IT.min.js +1 -1
- package/lib/locale/lang/it-IT.umd.js +6 -0
- package/lib/locale/lang/ja-JP.js +6 -0
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +6 -0
- package/lib/locale/lang/ko-KR.js +6 -0
- package/lib/locale/lang/ko-KR.min.js +1 -1
- package/lib/locale/lang/ko-KR.umd.js +6 -0
- package/lib/locale/lang/ms-MY.js +6 -0
- package/lib/locale/lang/ms-MY.min.js +1 -1
- package/lib/locale/lang/ms-MY.umd.js +6 -0
- package/lib/locale/lang/nb-NO.js +6 -0
- package/lib/locale/lang/nb-NO.min.js +1 -1
- package/lib/locale/lang/nb-NO.umd.js +6 -0
- package/lib/locale/lang/pt-BR.js +6 -0
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +6 -0
- package/lib/locale/lang/ru-RU.js +6 -0
- package/lib/locale/lang/ru-RU.min.js +1 -1
- package/lib/locale/lang/ru-RU.umd.js +6 -0
- package/lib/locale/lang/th-TH.js +6 -0
- package/lib/locale/lang/th-TH.min.js +1 -1
- package/lib/locale/lang/th-TH.umd.js +6 -0
- package/lib/locale/lang/ug-CN.js +6 -0
- package/lib/locale/lang/ug-CN.min.js +1 -1
- package/lib/locale/lang/ug-CN.umd.js +6 -0
- package/lib/locale/lang/uk-UA.js +6 -0
- package/lib/locale/lang/uk-UA.min.js +1 -1
- package/lib/locale/lang/uk-UA.umd.js +6 -0
- package/lib/locale/lang/uz-UZ.js +6 -0
- package/lib/locale/lang/uz-UZ.min.js +1 -1
- package/lib/locale/lang/uz-UZ.umd.js +6 -0
- package/lib/locale/lang/vi-VN.js +6 -0
- package/lib/locale/lang/vi-VN.min.js +1 -1
- package/lib/locale/lang/vi-VN.umd.js +6 -0
- package/lib/locale/lang/zh-CHT.js +6 -0
- package/lib/locale/lang/zh-CHT.min.js +1 -1
- package/lib/locale/lang/zh-CHT.umd.js +6 -0
- package/lib/locale/lang/zh-CN.js +6 -0
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +6 -0
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/module/export/mixin.js +18 -6
- package/lib/table/module/export/mixin.min.js +1 -1
- package/lib/table/module/keyboard/mixin.js +18 -4
- package/lib/table/module/keyboard/mixin.min.js +1 -1
- package/lib/table/module/validator/mixin.js +8 -6
- package/lib/table/module/validator/mixin.min.js +1 -1
- package/lib/table/render/index.js +15 -0
- package/lib/table/render/index.min.js +1 -1
- package/lib/table/src/body.js +13 -4
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/columnInfo.js +2 -0
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/methods.js +806 -14157
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +4 -0
- package/lib/table/src/props.min.js +1 -1
- package/lib/table/src/table.js +78 -6
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +41 -21
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +11 -17
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/src/toolbar.js +10 -5
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/ui/index.js +7 -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 +11 -17
- package/lib/vxe-table/style/style.min.css +1 -1
- package/package.json +2 -2
- package/packages/grid/src/grid.ts +23 -18
- package/packages/locale/lang/ar-EG.ts +6 -0
- package/packages/locale/lang/de-DE.ts +6 -0
- package/packages/locale/lang/en-US.ts +6 -0
- package/packages/locale/lang/es-ES.ts +6 -0
- package/packages/locale/lang/fr-FR.ts +6 -0
- package/packages/locale/lang/hu-HU.ts +6 -0
- package/packages/locale/lang/hy-AM.ts +6 -0
- package/packages/locale/lang/id-ID.ts +6 -0
- package/packages/locale/lang/it-IT.ts +6 -0
- package/packages/locale/lang/ja-JP.ts +6 -0
- package/packages/locale/lang/ko-KR.ts +6 -0
- package/packages/locale/lang/ms-MY.ts +6 -0
- package/packages/locale/lang/nb-NO.ts +6 -0
- package/packages/locale/lang/pt-BR.ts +6 -0
- package/packages/locale/lang/ru-RU.ts +6 -0
- package/packages/locale/lang/th-TH.ts +6 -0
- package/packages/locale/lang/ug-CN.ts +6 -0
- package/packages/locale/lang/uk-UA.ts +6 -0
- package/packages/locale/lang/uz-UZ.ts +6 -0
- package/packages/locale/lang/vi-VN.ts +6 -0
- package/packages/locale/lang/zh-CHT.ts +6 -0
- package/packages/locale/lang/zh-CN.ts +6 -0
- package/packages/table/module/export/mixin.ts +13 -1
- package/packages/table/module/keyboard/mixin.ts +21 -12
- package/packages/table/module/validator/mixin.ts +7 -6
- package/packages/table/render/index.ts +12 -0
- package/packages/table/src/body.ts +12 -5
- package/packages/table/src/columnInfo.ts +2 -0
- package/packages/table/src/methods.ts +192 -72
- package/packages/table/src/props.ts +4 -0
- package/packages/table/src/table.ts +75 -8
- package/packages/table/src/util.ts +43 -19
- package/packages/toolbar/src/toolbar.ts +11 -5
- package/packages/ui/index.ts +6 -0
- package/styles/components/table-module/filter.scss +1 -1
- package/styles/components/table-module/menu.scss +4 -9
- package/styles/components/table.scss +8 -2
- package/styles/theme/base.scss +0 -1
- /package/es/{iconfont.1768463274097.ttf → iconfont.1773027250443.ttf} +0 -0
- /package/es/{iconfont.1768463274097.woff → iconfont.1773027250443.woff} +0 -0
- /package/es/{iconfont.1768463274097.woff2 → iconfont.1773027250443.woff2} +0 -0
- /package/lib/{iconfont.1768463274097.ttf → iconfont.1773027250443.ttf} +0 -0
- /package/lib/{iconfont.1768463274097.woff → iconfont.1773027250443.woff} +0 -0
- /package/lib/{iconfont.1768463274097.woff2 → iconfont.1773027250443.woff2} +0 -0
|
@@ -372,6 +372,8 @@ export default {
|
|
|
372
372
|
uploadErr: '上传失败',
|
|
373
373
|
uploadSuccess: '上传成功',
|
|
374
374
|
moreBtnText: '更多({0})',
|
|
375
|
+
moreImgBtnText: '图片({0})',
|
|
376
|
+
moreFileBtnText: '文件({0})',
|
|
375
377
|
viewItemTitle: '点击查看',
|
|
376
378
|
morePopup: {
|
|
377
379
|
readTitle: '查看列表',
|
|
@@ -591,6 +593,8 @@ export default {
|
|
|
591
593
|
},
|
|
592
594
|
fnr: {
|
|
593
595
|
title: '查找和替换',
|
|
596
|
+
titleFd: '查找',
|
|
597
|
+
titleRe: '替换',
|
|
594
598
|
findLabel: '查找',
|
|
595
599
|
replaceLabel: '替换',
|
|
596
600
|
findTitle: '查找内容:',
|
|
@@ -740,6 +744,8 @@ export default {
|
|
|
740
744
|
},
|
|
741
745
|
fnr: {
|
|
742
746
|
title: '查找和替换',
|
|
747
|
+
titleFd: '查找',
|
|
748
|
+
titleRe: '替换',
|
|
743
749
|
findLabel: '查找',
|
|
744
750
|
replaceLabel: '替换',
|
|
745
751
|
findTitle: '查找内容:',
|
|
@@ -1406,7 +1406,19 @@ export default {
|
|
|
1406
1406
|
return Promise.resolve((beforeQueryAll || ajaxMethods)(params))
|
|
1407
1407
|
.then(rest => {
|
|
1408
1408
|
const listProp = resConfigs.list
|
|
1409
|
-
|
|
1409
|
+
let tdData: any[] = []
|
|
1410
|
+
if (listProp) {
|
|
1411
|
+
if (XEUtils.isFunction(listProp)) {
|
|
1412
|
+
tdData = listProp({ data: rest, $table: $xeTable, $grid: $xeGrid, $gantt: $xeGantt })
|
|
1413
|
+
} else {
|
|
1414
|
+
tdData = XEUtils.isArray(rest) ? rest : XEUtils.get(rest, listProp)
|
|
1415
|
+
}
|
|
1416
|
+
} else {
|
|
1417
|
+
if (XEUtils.isArray(rest)) {
|
|
1418
|
+
tdData = rest
|
|
1419
|
+
}
|
|
1420
|
+
}
|
|
1421
|
+
handleOptions.data = tdData
|
|
1410
1422
|
if (afterQueryAll) {
|
|
1411
1423
|
afterQueryAll(params)
|
|
1412
1424
|
}
|
|
@@ -79,9 +79,18 @@ function handleMoveSelected ($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
79
79
|
|
|
80
80
|
const { afterFullData, visibleColumn } = internalData
|
|
81
81
|
const params = Object.assign({}, args)
|
|
82
|
-
const
|
|
83
|
-
const
|
|
84
|
-
|
|
82
|
+
const { row, column } = params
|
|
83
|
+
const _rowIndex = $xeTable.getVTRowIndex(row)
|
|
84
|
+
const _columnIndex = $xeTable.getVTColumnIndex(column)
|
|
85
|
+
const refTableBody = $xeTable.$refs.refTableBody
|
|
86
|
+
const tableBodyElem = refTableBody ? (refTableBody as any).$el as HTMLDivElement : null
|
|
87
|
+
const tableWidth = tableBodyElem ? tableBodyElem.clientWidth : 0
|
|
88
|
+
let colAlign = isLeftArrow || isRightArrow || (column.renderWidth < tableWidth)
|
|
89
|
+
if ((isLeftArrow && _columnIndex >= 0) || (isRightArrow && _columnIndex <= visibleColumn.length - 1)) {
|
|
90
|
+
colAlign = false
|
|
91
|
+
} else {
|
|
92
|
+
evnt.preventDefault()
|
|
93
|
+
}
|
|
85
94
|
if (isUpArrow && _rowIndex > 0) {
|
|
86
95
|
// 移动到上一行
|
|
87
96
|
params.rowIndex = _rowIndex - 1
|
|
@@ -99,7 +108,9 @@ function handleMoveSelected ($xeTable: VxeTableConstructor & VxeTablePrivateMeth
|
|
|
99
108
|
params.columnIndex = _columnIndex + 1
|
|
100
109
|
params.column = visibleColumn[params.columnIndex]
|
|
101
110
|
}
|
|
102
|
-
$xeTable.scrollToRow(params.row, params.column
|
|
111
|
+
$xeTable.scrollToRow(params.row, params.column, {
|
|
112
|
+
colAlign
|
|
113
|
+
}).then(() => {
|
|
103
114
|
params.cell = $xeTable.getCellElement(params.row, params.column)
|
|
104
115
|
$xeTable.handleSelected(params, evnt)
|
|
105
116
|
})
|
|
@@ -335,17 +346,15 @@ export default {
|
|
|
335
346
|
if (editOpts.mode === 'row') {
|
|
336
347
|
$xeTable.handleEdit(params, evnt)
|
|
337
348
|
} else {
|
|
338
|
-
$xeTable.scrollToRow(params.row, params.column)
|
|
339
|
-
.
|
|
340
|
-
|
|
341
|
-
})
|
|
349
|
+
$xeTable.scrollToRow(params.row, params.column).then(() => {
|
|
350
|
+
$xeTable.handleSelected(params, evnt)
|
|
351
|
+
})
|
|
342
352
|
}
|
|
343
353
|
}
|
|
344
354
|
} else {
|
|
345
|
-
$xeTable.scrollToRow(params.row, params.column)
|
|
346
|
-
.
|
|
347
|
-
|
|
348
|
-
})
|
|
355
|
+
$xeTable.scrollToRow(params.row, params.column).then(() => {
|
|
356
|
+
$xeTable.handleSelected(params, evnt)
|
|
357
|
+
})
|
|
349
358
|
}
|
|
350
359
|
}
|
|
351
360
|
},
|
|
@@ -122,19 +122,20 @@ function validRuleValue (rule: VxeTableDefines.ValidatorRule, val: any, required
|
|
|
122
122
|
return true
|
|
123
123
|
}
|
|
124
124
|
|
|
125
|
-
function checkRuleStatus (rule: VxeTableDefines.ValidatorRule, val: any) {
|
|
126
|
-
const { required } = rule
|
|
127
|
-
const
|
|
125
|
+
function checkRuleStatus (rule: VxeTableDefines.ValidatorRule, row: any, val: any) {
|
|
126
|
+
const { required, field } = rule
|
|
127
|
+
const currVal = field ? XEUtils.get(row, field) : val
|
|
128
|
+
const isEmptyVal = XEUtils.isArray(currVal) ? !currVal.length : eqEmptyValue(currVal)
|
|
128
129
|
if (required) {
|
|
129
130
|
if (isEmptyVal) {
|
|
130
131
|
return false
|
|
131
132
|
}
|
|
132
|
-
if (!validRuleValue(rule,
|
|
133
|
+
if (!validRuleValue(rule, currVal, required)) {
|
|
133
134
|
return false
|
|
134
135
|
}
|
|
135
136
|
} else {
|
|
136
137
|
if (!isEmptyVal) {
|
|
137
|
-
if (!validRuleValue(rule,
|
|
138
|
+
if (!validRuleValue(rule, currVal, required)) {
|
|
138
139
|
return false
|
|
139
140
|
}
|
|
140
141
|
}
|
|
@@ -473,7 +474,7 @@ export default {
|
|
|
473
474
|
}
|
|
474
475
|
}
|
|
475
476
|
} else {
|
|
476
|
-
if (!checkRuleStatus(rule, cellValue)) {
|
|
477
|
+
if (!checkRuleStatus(rule, row, cellValue)) {
|
|
477
478
|
internalData.validRuleErr = true
|
|
478
479
|
errorRules.push(new Rule(rule))
|
|
479
480
|
}
|
|
@@ -793,6 +793,17 @@ function handleNumberCell (h: CreateElement, renderOpts: VxeGlobalRendererHandle
|
|
|
793
793
|
: {})
|
|
794
794
|
}
|
|
795
795
|
|
|
796
|
+
function handleFormatDatePicker (renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellFormatterParams) {
|
|
797
|
+
const { props = {} } = renderOpts
|
|
798
|
+
const { cellValue } = params
|
|
799
|
+
if (cellValue) {
|
|
800
|
+
if (props.type !== 'time') {
|
|
801
|
+
return getLabelFormatDate(cellValue, props)
|
|
802
|
+
}
|
|
803
|
+
}
|
|
804
|
+
return cellValue
|
|
805
|
+
}
|
|
806
|
+
|
|
796
807
|
function handleFormatSelect (renderOpts: VxeGlobalRendererHandles.RenderTableDefaultOptions, params: VxeGlobalRendererHandles.TableCellFormatterParams | VxeGlobalRendererHandles.TableCellCopyMethodParams) {
|
|
797
808
|
const { cellValue } = params
|
|
798
809
|
return handleSelectCellValue(cellValue, renderOpts)
|
|
@@ -1022,6 +1033,7 @@ renderer.mixin({
|
|
|
1022
1033
|
}
|
|
1023
1034
|
return getCellLabelVNs(h, renderOpts, params, cellValue)
|
|
1024
1035
|
},
|
|
1036
|
+
tableCellFormatter: handleFormatDatePicker,
|
|
1025
1037
|
renderTableDefault: defaultEditRender,
|
|
1026
1038
|
createTableFilterOptions: defaultFilterOptions,
|
|
1027
1039
|
renderTableFilter: defaultFilterRender,
|
|
@@ -106,7 +106,7 @@ function renderTdColumn (
|
|
|
106
106
|
|
|
107
107
|
const { columnKey, resizable: allResizable, showOverflow: allShowOverflow, border, height, treeConfig, cellClassName: allCellClassName, cellStyle, align: allAlign, spanMethod, mouseConfig, editConfig, editRules, tooltipConfig, padding: allPadding } = tableProps
|
|
108
108
|
const { tableData, tableColumn, dragRow, overflowX, overflowY, currentColumn, scrollXLoad, scrollYLoad, mergeBodyFlag, calcCellHeightFlag, resizeHeightFlag, resizeWidthFlag, editStore, isAllOverflow, validErrorMaps } = tableReactData
|
|
109
|
-
const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore } = tableInternalData
|
|
109
|
+
const { fullAllDataRowIdData, fullColumnIdData, mergeBodyCellMaps, visibleColumn, afterFullData, mergeBodyList, scrollXStore, scrollYStore, keepUpdateFieldMaps } = tableInternalData
|
|
110
110
|
const cellOpts = $xeTable.computeCellOpts
|
|
111
111
|
const validOpts = $xeTable.computeValidOpts
|
|
112
112
|
const checkboxOpts = $xeTable.computeCheckboxOpts
|
|
@@ -125,7 +125,7 @@ function renderTdColumn (
|
|
|
125
125
|
const areaOpts = $xeTable.computeAreaOpts
|
|
126
126
|
const cellOffsetWidth = $xeTable.computeCellOffsetWidth
|
|
127
127
|
const { selectCellToRow } = areaOpts
|
|
128
|
-
const { type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column
|
|
128
|
+
const { field, type, cellRender, editRender, align, showOverflow, className, treeNode, rowResize, padding, verticalAlign, slots } = column
|
|
129
129
|
const { verticalAlign: allVerticalAlign } = cellOpts
|
|
130
130
|
const { actived } = editStore
|
|
131
131
|
const rowRest = fullAllDataRowIdData[rowid] || {}
|
|
@@ -280,8 +280,8 @@ function renderTdColumn (
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
// 如果编辑列开启显示状态
|
|
283
|
-
if (!fixedHiddenColumn && editConfig && (
|
|
284
|
-
isDirty = $xeTable.isUpdateByRow(row,
|
|
283
|
+
if (!fixedHiddenColumn && editConfig && (editOpts.showStatus || editOpts.showUpdateStatus) && keepUpdateFieldMaps[field]) {
|
|
284
|
+
isDirty = $xeTable.isUpdateByRow(row, field)
|
|
285
285
|
}
|
|
286
286
|
|
|
287
287
|
const isVNAutoHeight = !hasEllipsis && (scrollYLoad || scrollXLoad)
|
|
@@ -598,6 +598,13 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
598
598
|
const expandOpts = $xeTable.computeExpandOpts
|
|
599
599
|
const { height: expandHeight, padding, mode: expandMode } = expandOpts
|
|
600
600
|
if (expandMode === 'fixed') {
|
|
601
|
+
const currExpHeight = rowRest.expandHeight
|
|
602
|
+
let expHeight = 0
|
|
603
|
+
if (rowExpandHeightFlag) {
|
|
604
|
+
if (currExpHeight || expandHeight) {
|
|
605
|
+
expHeight = (currExpHeight || expandHeight || 0) + 1
|
|
606
|
+
}
|
|
607
|
+
}
|
|
601
608
|
rows.push(
|
|
602
609
|
h('tr', {
|
|
603
610
|
class: 'vxe-body--row-expanded-place',
|
|
@@ -612,7 +619,7 @@ function renderRows (h: CreateElement, _vm: any, fixedType: 'left' | 'right' | '
|
|
|
612
619
|
colspan: tableColumn.length
|
|
613
620
|
},
|
|
614
621
|
style: {
|
|
615
|
-
height: `${
|
|
622
|
+
height: `${expHeight}px`
|
|
616
623
|
}
|
|
617
624
|
})
|
|
618
625
|
])
|