vxe-table 3.18.20 → 3.18.22
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/index.esm.js +1 -2
- package/es/style.css +1 -1
- package/es/table/src/cell.js +3 -7
- package/es/table/src/methods.js +9 -2
- package/es/table/style.css +48 -18
- package/es/ui/index.js +1 -1
- package/es/ui/src/log.js +1 -1
- package/es/vxe-table/style.css +48 -18
- package/lib/index.common.js +1 -2
- package/lib/index.umd.js +2276 -937
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +3 -9
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/methods.js +8 -2
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/style/style.css +48 -18
- 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/lib/v-x-e-table/index.js +1 -2
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/vxe-colgroup/index.js +1 -2
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-column/index.js +1 -2
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-grid/index.js +1 -2
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-table/index.js +1 -2
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +48 -18
- package/lib/vxe-toolbar/index.js +1 -2
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-ui/index.js +1 -2
- package/lib/vxe-ui/index.min.js +1 -1
- package/lib/vxe-v-x-e-table/index.js +1 -2
- package/lib/vxe-v-x-e-table/index.min.js +1 -1
- package/package.json +3 -2
- package/packages/table/src/cell.ts +3 -7
- package/packages/table/src/methods.ts +8 -2
- /package/es/{iconfont.1758850648674.ttf → iconfont.1767491242406.ttf} +0 -0
- /package/es/{iconfont.1758850648674.woff → iconfont.1767491242406.woff} +0 -0
- /package/es/{iconfont.1758850648674.woff2 → iconfont.1767491242406.woff2} +0 -0
- /package/lib/{iconfont.1758850648674.ttf → iconfont.1767491242406.ttf} +0 -0
- /package/lib/{iconfont.1758850648674.woff → iconfont.1767491242406.woff} +0 -0
- /package/lib/{iconfont.1758850648674.woff2 → iconfont.1767491242406.woff2} +0 -0
|
@@ -299,7 +299,7 @@ function renderCellHandle (h: CreateElement, params: VxeTableDefines.CellRenderB
|
|
|
299
299
|
case 'html':
|
|
300
300
|
return isDeepCell ? Cell.renderDeepHTMLCell(h, params) : Cell.renderHTMLCell(h, params)
|
|
301
301
|
}
|
|
302
|
-
if (
|
|
302
|
+
if (isEnableConf(editConfig) && editRender) {
|
|
303
303
|
return editOpts.mode === 'cell' ? (isDeepCell ? Cell.renderDeepCellEdit(h, params) : Cell.renderCellEdit(h, params)) : (isDeepCell ? Cell.renderDeepRowEdit(h, params) : Cell.renderRowEdit(h, params))
|
|
304
304
|
}
|
|
305
305
|
return isDeepCell ? Cell.renderDeepCell(h, params) : Cell.renderDefaultCell(h, params)
|
|
@@ -311,7 +311,6 @@ function renderHeaderHandle (h: CreateElement, params: VxeTableDefines.CellRende
|
|
|
311
311
|
const { column, $table } = params
|
|
312
312
|
const tableProps = $table
|
|
313
313
|
const { editConfig } = tableProps
|
|
314
|
-
const editOpts = $table.computeEditOpts
|
|
315
314
|
const { type, filters, sortable, editRender } = column
|
|
316
315
|
switch (type) {
|
|
317
316
|
case 'seq':
|
|
@@ -330,7 +329,7 @@ function renderHeaderHandle (h: CreateElement, params: VxeTableDefines.CellRende
|
|
|
330
329
|
}
|
|
331
330
|
break
|
|
332
331
|
}
|
|
333
|
-
if (editConfig &&
|
|
332
|
+
if (editConfig && editRender) {
|
|
334
333
|
return Cell.renderEditHeader(h, params)
|
|
335
334
|
} else if (filters && sortable) {
|
|
336
335
|
return Cell.renderSortAndFilterHeader(h, params)
|
|
@@ -385,14 +384,11 @@ export const Cell = {
|
|
|
385
384
|
},
|
|
386
385
|
renderDefaultCell (h: CreateElement, params: VxeTableDefines.CellRenderBodyParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
387
386
|
const { $table, row, column } = params
|
|
388
|
-
const tableProps = $table
|
|
389
387
|
const tableReactData = $table as unknown as TableReactData
|
|
390
388
|
const tableInternalData = $table as unknown as TableInternalData
|
|
391
389
|
const { isRowGroupStatus } = tableReactData
|
|
392
|
-
const { editConfig } = tableProps
|
|
393
|
-
const editOpts = $table.computeEditOpts
|
|
394
390
|
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column
|
|
395
|
-
const renderOpts =
|
|
391
|
+
const renderOpts = editRender || cellRender
|
|
396
392
|
const defaultSlot = slots ? slots.default : null
|
|
397
393
|
const gcSlot = slots ? (slots.groupContent || slots['group-content']) : null
|
|
398
394
|
let cellValue: string | number | null = ''
|
|
@@ -3882,7 +3882,9 @@ const wheelScrollTopTo = (diffNum: number, cb: (progress: number) => void) => {
|
|
|
3882
3882
|
let countTop = 0
|
|
3883
3883
|
const step = (timestamp: number) => {
|
|
3884
3884
|
let progress = (timestamp - startTime) / duration
|
|
3885
|
-
if (progress
|
|
3885
|
+
if (progress < 0) {
|
|
3886
|
+
progress = 0
|
|
3887
|
+
} else if (progress > 1) {
|
|
3886
3888
|
progress = 1
|
|
3887
3889
|
}
|
|
3888
3890
|
const easedProgress = Math.pow(progress, 2)
|
|
@@ -4271,7 +4273,7 @@ const Methods = {
|
|
|
4271
4273
|
reactData.tableData = tableData
|
|
4272
4274
|
internalData.visibleDataRowIdData = visibleDataRowIdMaps
|
|
4273
4275
|
if ($xeGanttView && $xeGanttView.updateViewData) {
|
|
4274
|
-
$xeGanttView.updateViewData()
|
|
4276
|
+
$xeGanttView.updateViewData(force)
|
|
4275
4277
|
}
|
|
4276
4278
|
return $xeTable.$nextTick()
|
|
4277
4279
|
},
|
|
@@ -11107,6 +11109,10 @@ const Methods = {
|
|
|
11107
11109
|
if (target && /^textarea$/i.test((target as HTMLElement).tagName)) {
|
|
11108
11110
|
return
|
|
11109
11111
|
}
|
|
11112
|
+
// 如果滚轮未移动或者触摸板未变化位置
|
|
11113
|
+
if (!deltaY && !deltaX) {
|
|
11114
|
+
return
|
|
11115
|
+
}
|
|
11110
11116
|
|
|
11111
11117
|
const { highlightHoverRow } = tableProps
|
|
11112
11118
|
const { scrollXLoad, scrollYLoad, expandColumn } = reactData
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|