Skip to content

Commit

Permalink
releases 4.9.25
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 13, 2024
1 parent ff658e6 commit 86e1281
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.9.24",
"version": "4.9.25",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
8 changes: 4 additions & 4 deletions packages/table/module/custom/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ export default defineComponent({
if (showLine) {
const optRect = optEl.getBoundingClientRect()
dragLineEl.style.display = 'block'
dragLineEl.style.top = `${Math.max(1, optRect.y - wrapperRect.y)}px`
dragLineEl.style.top = `${Math.max(1, optRect.y + el.scrollTop - wrapperRect.y)}px`
dragLineEl.style.height = `${optRect.height}px`
dragLineEl.style.width = `${optRect.width}px`
dragLineEl.setAttribute('drag-pos', dragPos)
Expand All @@ -209,8 +209,8 @@ export default defineComponent({
const dragTipEl = refDragTipElem.value
if (dragTipEl) {
dragTipEl.style.display = 'block'
dragTipEl.style.top = `${Math.min(el.clientHeight - el.scrollTop - dragTipEl.clientHeight, evnt.clientY - wrapperRect.y)}px`
dragTipEl.style.left = `${Math.min(el.clientWidth - el.scrollLeft - dragTipEl.clientWidth - 16, evnt.clientX - wrapperRect.x)}px`
dragTipEl.style.top = `${Math.min(el.clientHeight + el.scrollTop - dragTipEl.clientHeight, evnt.clientY + el.scrollTop - wrapperRect.y)}px`
dragTipEl.style.left = `${Math.min(el.clientWidth + el.scrollLeft - dragTipEl.clientWidth, evnt.clientX + el.scrollLeft - wrapperRect.x)}px`
dragTipEl.setAttribute('drag-status', showLine ? (prevDragToChild ? 'sub' : 'normal') : 'disabled')
}
}
Expand Down Expand Up @@ -500,7 +500,7 @@ export default defineComponent({
})
]),
h('div', {
class: 'vxe-table--drag-tip-content'
class: 'vxe-table-custom-popup--drag-tip-content'
}, getI18n('vxe.custom.cstmDragTarget', [dragCol && dragCol.type !== 'html' ? dragCol.getTitle() : '']))
])
])
Expand Down
5 changes: 4 additions & 1 deletion packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2878,7 +2878,10 @@ export default defineComponent({
}
return nextTick().then(() => {
if ($xeToolbar) {
$xeToolbar.syncUpdate({ collectColumn, $table: $xeTable })
$xeToolbar.syncUpdate({
collectColumn: internalData.collectColumn,
$table: $xeTable
})
}
return tableMethods.recalculate()
})
Expand Down

0 comments on commit 86e1281

Please sign in to comment.