Skip to content

Commit

Permalink
releases 4.10.9
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Feb 10, 2025
1 parent 8da4fc3 commit a4275a7
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 26 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.10.8",
"version": "4.10.9",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、拖拽排序,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down Expand Up @@ -28,7 +28,7 @@
"style": "lib/style.css",
"typings": "types/index.d.ts",
"dependencies": {
"vxe-pc-ui": "^4.3.80"
"vxe-pc-ui": "^4.3.81"
},
"devDependencies": {
"@types/resize-observer-browser": "^0.1.11",
Expand Down
46 changes: 24 additions & 22 deletions packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9200,7 +9200,7 @@ export default defineComponent({
}

const renderDragTip = () => {
const { dragRow } = reactData
const { dragRow, dragCol } = reactData
const rowOpts = computeRowOpts.value
const columnOpts = computeColumnOpts.value
const rowDragOpts = computeRowDragOpts.value
Expand All @@ -9222,31 +9222,33 @@ export default defineComponent({
'is--guides': columnDragOpts.showGuidesStatus
}]
}),
h('div', {
ref: refDragTipElem,
class: 'vxe-table--drag-sort-tip'
}, [
h('div', {
class: 'vxe-table--drag-sort-tip-wrapper'
(dragRow && rowDragOpts.showDragTip) || (dragCol && columnDragOpts.showDragTip)
? h('div', {
ref: refDragTipElem,
class: 'vxe-table--drag-sort-tip'
}, [
h('div', {
class: 'vxe-table--drag-sort-tip-status'
class: 'vxe-table--drag-sort-tip-wrapper'
}, [
h('span', {
class: ['vxe-table--drag-sort-tip-normal-status', dragRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
}),
h('span', {
class: ['vxe-table--drag-sort-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
}),
h('span', {
class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
})
]),
h('div', {
class: 'vxe-table--drag-sort-tip-content'
}, renderDragTipContents())
h('div', {
class: 'vxe-table--drag-sort-tip-status'
}, [
h('span', {
class: ['vxe-table--drag-sort-tip-normal-status', dragRow ? getIcon().TABLE_DRAG_STATUS_ROW : getIcon().TABLE_DRAG_STATUS_COLUMN]
}),
h('span', {
class: ['vxe-table--drag-sort-tip-sub-status', getIcon().TABLE_DRAG_STATUS_SUB_ROW]
}),
h('span', {
class: ['vxe-table--drag-sort-tip-disabled-status', getIcon().TABLE_DRAG_DISABLED]
})
]),
h('div', {
class: 'vxe-table--drag-sort-tip-content'
}, renderDragTipContents())
])
])
])
: renderEmptyElement($xeTable)
])
}
return renderEmptyElement($xeTable)
Expand Down
6 changes: 4 additions & 2 deletions packages/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,14 @@ VxeUI.setConfig({
rowDragConfig: {
showIcon: true,
animation: true,
showGuidesStatus: true
showGuidesStatus: true,
showDragTip: true
},
columnDragConfig: {
showIcon: true,
animation: true,
showGuidesStatus: true
showGuidesStatus: true,
showDragTip: true
},
checkboxConfig: {
// trigger: 'default',
Expand Down

0 comments on commit a4275a7

Please sign in to comment.