vxe-table 4.16.20 → 4.16.21
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/style.css +1 -1
- package/es/table/src/cell.js +3 -9
- package/es/table/src/table.js +8 -1
- 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 +1929 -1841
- package/lib/index.umd.min.js +1 -1
- package/lib/style.css +1 -1
- package/lib/table/src/cell.js +3 -15
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/table.js +3 -2
- package/lib/table/src/table.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 -9
- package/packages/table/src/table.ts +7 -1
- /package/es/{iconfont.1758850674944.ttf → iconfont.1760075743559.ttf} +0 -0
- /package/es/{iconfont.1758850674944.woff → iconfont.1760075743559.woff} +0 -0
- /package/es/{iconfont.1758850674944.woff2 → iconfont.1760075743559.woff2} +0 -0
- /package/lib/{iconfont.1758850674944.ttf → iconfont.1760075743559.ttf} +0 -0
- /package/lib/{iconfont.1758850674944.woff → iconfont.1760075743559.woff} +0 -0
- /package/lib/{iconfont.1758850674944.woff2 → iconfont.1760075743559.woff2} +0 -0
|
@@ -318,7 +318,7 @@ function renderCellHandle (params: VxeTableDefines.CellRenderBodyParams & {
|
|
|
318
318
|
case 'html':
|
|
319
319
|
return isDeepCell ? Cell.renderDeepHTMLCell(params) : Cell.renderHTMLCell(params)
|
|
320
320
|
}
|
|
321
|
-
if (
|
|
321
|
+
if (isEnableConf(editConfig) && editRender) {
|
|
322
322
|
return editOpts.mode === 'cell' ? (isDeepCell ? Cell.renderDeepCellEdit(params) : Cell.renderCellEdit(params)) : (isDeepCell ? Cell.renderDeepRowEdit(params) : Cell.renderRowEdit(params))
|
|
323
323
|
}
|
|
324
324
|
return isDeepCell ? Cell.renderDeepCell(params) : Cell.renderDefaultCell(params)
|
|
@@ -329,9 +329,7 @@ function renderHeaderHandle (params: VxeTableDefines.CellRenderHeaderParams & {
|
|
|
329
329
|
}) {
|
|
330
330
|
const { column, $table } = params
|
|
331
331
|
const tableProps = $table.props
|
|
332
|
-
const { computeEditOpts } = $table.getComputeMaps()
|
|
333
332
|
const { editConfig } = tableProps
|
|
334
|
-
const editOpts = computeEditOpts.value
|
|
335
333
|
const { type, filters, sortable, editRender } = column
|
|
336
334
|
switch (type) {
|
|
337
335
|
case 'seq':
|
|
@@ -350,7 +348,7 @@ function renderHeaderHandle (params: VxeTableDefines.CellRenderHeaderParams & {
|
|
|
350
348
|
}
|
|
351
349
|
break
|
|
352
350
|
}
|
|
353
|
-
if (editConfig &&
|
|
351
|
+
if (editConfig && editRender) {
|
|
354
352
|
return Cell.renderEditHeader(params)
|
|
355
353
|
} else if (filters && sortable) {
|
|
356
354
|
return Cell.renderSortAndFilterHeader(params)
|
|
@@ -408,15 +406,11 @@ export const Cell = {
|
|
|
408
406
|
},
|
|
409
407
|
renderDefaultCell (params: VxeTableDefines.CellRenderBodyParams & { $table: VxeTableConstructor & VxeTablePrivateMethods }) {
|
|
410
408
|
const { $table, row, column } = params
|
|
411
|
-
const tableProps = $table.props
|
|
412
409
|
const tableReactData = $table.reactData
|
|
413
410
|
const tableInternalData = $table.internalData
|
|
414
411
|
const { isRowGroupStatus } = tableReactData
|
|
415
|
-
const { computeEditOpts } = $table.getComputeMaps()
|
|
416
|
-
const { editConfig } = tableProps
|
|
417
|
-
const editOpts = computeEditOpts.value
|
|
418
412
|
const { field, slots, editRender, cellRender, rowGroupNode, aggFunc } = column
|
|
419
|
-
const renderOpts =
|
|
413
|
+
const renderOpts = editRender || cellRender
|
|
420
414
|
const defaultSlot = slots ? slots.default : null
|
|
421
415
|
const gcSlot = slots ? (slots.groupContent || slots['group-content']) : null
|
|
422
416
|
let cellValue: string | number | null = ''
|
|
@@ -4415,7 +4415,9 @@ export default defineVxeComponent({
|
|
|
4415
4415
|
let countTop = 0
|
|
4416
4416
|
const step = (timestamp: number) => {
|
|
4417
4417
|
let progress = (timestamp - startTime) / duration
|
|
4418
|
-
if (progress
|
|
4418
|
+
if (progress < 0) {
|
|
4419
|
+
progress = 0
|
|
4420
|
+
} else if (progress > 1) {
|
|
4419
4421
|
progress = 1
|
|
4420
4422
|
}
|
|
4421
4423
|
const easedProgress = Math.pow(progress, 2)
|
|
@@ -11354,6 +11356,10 @@ export default defineVxeComponent({
|
|
|
11354
11356
|
if (target && /^textarea$/i.test((target as HTMLElement).tagName)) {
|
|
11355
11357
|
return
|
|
11356
11358
|
}
|
|
11359
|
+
// 如果滚轮未移动或者触摸板未变化位置
|
|
11360
|
+
if (!deltaY && !deltaX) {
|
|
11361
|
+
return
|
|
11362
|
+
}
|
|
11357
11363
|
|
|
11358
11364
|
const { highlightHoverRow } = tableProps
|
|
11359
11365
|
const { scrollXLoad, scrollYLoad, expandColumn } = reactData
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|