vxe-table 3.7.10-beta.2 → 3.7.10-beta.4
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/helper/vetur/attributes.json +12 -0
- package/helper/vetur/tags.json +3 -0
- package/lib/export/src/mixin.js +1 -0
- package/lib/export/src/mixin.min.js +1 -1
- package/lib/footer/src/footer.js +18 -22
- package/lib/footer/src/footer.min.js +1 -1
- package/lib/icon/src/icon.js +1 -1
- package/lib/icon/src/icon.min.js +1 -1
- package/lib/icon/style/style.css +1 -1
- package/lib/icon/style/style.min.css +1 -1
- package/lib/index.css +1 -1
- package/lib/index.umd.js +23 -26
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/src/methods.js +1 -1
- package/lib/table/src/methods.min.js +1 -1
- package/lib/tools/log.js +1 -1
- package/lib/tools/log.min.js +1 -1
- package/lib/v-x-e-table/index.js +1 -1
- package/lib/v-x-e-table/index.min.js +1 -1
- package/package.json +2 -2
- package/packages/export/src/mixin.js +1 -1
- package/packages/footer/src/footer.js +11 -10
- package/packages/icon/src/icon.js +1 -1
- package/packages/table/src/methods.js +1 -1
- /package/lib/icon/style/{iconfont.1710991034426.ttf → iconfont.1712735213510.ttf} +0 -0
- /package/lib/icon/style/{iconfont.1710991034426.woff → iconfont.1712735213510.woff} +0 -0
- /package/lib/icon/style/{iconfont.1710991034426.woff2 → iconfont.1712735213510.woff2} +0 -0
- /package/lib/{iconfont.1710991034426.ttf → iconfont.1712735213510.ttf} +0 -0
- /package/lib/{iconfont.1710991034426.woff → iconfont.1712735213510.woff} +0 -0
- /package/lib/{iconfont.1710991034426.woff2 → iconfont.1712735213510.woff2} +0 -0
|
@@ -133,9 +133,10 @@ export default {
|
|
|
133
133
|
ref: 'tfoot'
|
|
134
134
|
}, footerTableData.map((list, _rowIndex) => {
|
|
135
135
|
const $rowIndex = _rowIndex
|
|
136
|
+
const rowParams = { $table: $xetable, row: list, _rowIndex, $rowIndex, fixed: fixedType, type: cellType }
|
|
136
137
|
return h('tr', {
|
|
137
|
-
class: ['vxe-footer--row', footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(
|
|
138
|
-
style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(
|
|
138
|
+
class: ['vxe-footer--row', footerRowClassName ? XEUtils.isFunction(footerRowClassName) ? footerRowClassName(rowParams) : footerRowClassName : ''],
|
|
139
|
+
style: footerRowStyle ? (XEUtils.isFunction(footerRowStyle) ? footerRowStyle(rowParams) : footerRowStyle) : null
|
|
139
140
|
}, tableColumn.map((column, $columnIndex) => {
|
|
140
141
|
const { type, showFooterOverflow, footerAlign, align, footerClassName } = column
|
|
141
142
|
const showAllTip = tooltipOpts.showAll || tooltipOpts.enabled
|
|
@@ -152,7 +153,7 @@ export default {
|
|
|
152
153
|
const columnIndex = $xetable.getColumnIndex(column)
|
|
153
154
|
const _columnIndex = $xetable.getVTColumnIndex(column)
|
|
154
155
|
const itemIndex = _columnIndex
|
|
155
|
-
const
|
|
156
|
+
const cellParams = {
|
|
156
157
|
$table: $xetable,
|
|
157
158
|
$grid: $xetable.xegrid,
|
|
158
159
|
row: list,
|
|
@@ -177,7 +178,7 @@ export default {
|
|
|
177
178
|
if (showTitle) {
|
|
178
179
|
DomTools.updateCellTitle(evnt.currentTarget, column)
|
|
179
180
|
} else if (showTooltip || showAllTip) {
|
|
180
|
-
$xetable.triggerFooterTooltipEvent(evnt,
|
|
181
|
+
$xetable.triggerFooterTooltipEvent(evnt, cellParams)
|
|
181
182
|
}
|
|
182
183
|
}
|
|
183
184
|
}
|
|
@@ -190,12 +191,12 @@ export default {
|
|
|
190
191
|
}
|
|
191
192
|
if (tableListeners['footer-cell-click']) {
|
|
192
193
|
tfOns.click = evnt => {
|
|
193
|
-
$xetable.emitEvent('footer-cell-click', Object.assign({ cell: evnt.currentTarget },
|
|
194
|
+
$xetable.emitEvent('footer-cell-click', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
|
|
194
195
|
}
|
|
195
196
|
}
|
|
196
197
|
if (tableListeners['footer-cell-dblclick']) {
|
|
197
198
|
tfOns.dblclick = evnt => {
|
|
198
|
-
$xetable.emitEvent('footer-cell-dblclick', Object.assign({ cell: evnt.currentTarget },
|
|
199
|
+
$xetable.emitEvent('footer-cell-dblclick', Object.assign({ cell: evnt.currentTarget }, cellParams), evnt)
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
// 合并行或列
|
|
@@ -215,7 +216,7 @@ export default {
|
|
|
215
216
|
}
|
|
216
217
|
} else if (footerSpanMethod) {
|
|
217
218
|
// 自定义合并方法
|
|
218
|
-
const { rowspan = 1, colspan = 1 } = footerSpanMethod(
|
|
219
|
+
const { rowspan = 1, colspan = 1 } = footerSpanMethod(cellParams) || {}
|
|
219
220
|
if (!rowspan || !colspan) {
|
|
220
221
|
return null
|
|
221
222
|
}
|
|
@@ -234,9 +235,9 @@ export default {
|
|
|
234
235
|
'fixed--hidden': fixedHiddenColumn,
|
|
235
236
|
'col--ellipsis': hasEllipsis,
|
|
236
237
|
'col--current': currentColumn === column
|
|
237
|
-
}, UtilTools.getClass(footerClassName,
|
|
238
|
+
}, UtilTools.getClass(footerClassName, cellParams), UtilTools.getClass(footerCellClassName, cellParams)],
|
|
238
239
|
attrs,
|
|
239
|
-
style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(
|
|
240
|
+
style: footerCellStyle ? (XEUtils.isFunction(footerCellStyle) ? footerCellStyle(cellParams) : footerCellStyle) : null,
|
|
240
241
|
on: tfOns,
|
|
241
242
|
key: columnKey || columnOpts.useKey ? column.id : $columnIndex
|
|
242
243
|
}, [
|
|
@@ -246,7 +247,7 @@ export default {
|
|
|
246
247
|
'c--tooltip': showTooltip,
|
|
247
248
|
'c--ellipsis': showEllipsis
|
|
248
249
|
}]
|
|
249
|
-
}, column.renderFooter(h,
|
|
250
|
+
}, column.renderFooter(h, cellParams))
|
|
250
251
|
])
|
|
251
252
|
}).concat(scrollbarWidth ? [
|
|
252
253
|
h('td', {
|
|
@@ -8,7 +8,7 @@ export default {
|
|
|
8
8
|
render (h) {
|
|
9
9
|
const { name, roll, status } = this
|
|
10
10
|
return h('i', {
|
|
11
|
-
class: [`vxe-icon-${name}`, roll
|
|
11
|
+
class: [`vxe-icon-${name}`, roll ? 'roll' : '', status ? [`theme--${status}`] : ''],
|
|
12
12
|
on: {
|
|
13
13
|
click: this.clickEvent
|
|
14
14
|
}
|
|
@@ -5260,7 +5260,7 @@ const Methods = {
|
|
|
5260
5260
|
}
|
|
5261
5261
|
|
|
5262
5262
|
// Module methods
|
|
5263
|
-
const funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',')
|
|
5263
|
+
const funcs = 'setFilter,openFilter,clearFilter,getCheckedFilters,closeMenu,setActiveCellArea,getActiveCellArea,getCellAreas,clearCellAreas,copyCellArea,cutCellArea,pasteCellArea,getCopyCellArea,getCopyCellAreas,clearCopyCellArea,setCellAreas,openFNR,openFind,openReplace,closeFNR,getSelectedCell,clearSelected,insert,insertAt,insertNextAt,remove,removeCheckboxRow,removeRadioRow,removeCurrentRow,getRecordset,getInsertRecords,getRemoveRecords,getUpdateRecords,clearEdit,clearActived,getEditRecord,getActiveRecord,isEditByRow,isActiveByRow,setEditRow,setActiveRow,setEditCell,setActiveCell,setSelectCell,clearValidate,fullValidate,validate,openExport,openPrint,exportData,openImport,importData,saveFile,readFile,importByFile,print'.split(',')
|
|
5264
5264
|
|
|
5265
5265
|
funcs.forEach(name => {
|
|
5266
5266
|
Methods[name] = function (...args) {
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|