Skip to content

Commit

Permalink
releases 3.11.17
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Dec 4, 2024
1 parent 99d0405 commit 0bb7759
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 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": "3.11.16",
"version": "3.11.17",
"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": "~3.3.15"
"vxe-pc-ui": "^3.3.17"
},
"devDependencies": {
"@babel/plugin-transform-modules-commonjs": "^7.25.7",
Expand Down
4 changes: 2 additions & 2 deletions packages/locale/lang/zh-CHT.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ export default {
notExp: '該瀏覽器不支援匯入/匯出功能',
impFields: '匯入失敗,請檢查欄位名稱和資料格式是否正確',
treeNotImp: '樹表格不支援導入',
reqPlugin: '可选扩展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
reqPlugin: '可選擴展插件 "{1}" https://vxeui.com/other{0}/#/{1}/install'
},
table: {
emptyText: '暫無數據',
Expand All @@ -73,7 +73,7 @@ export default {
customCancel: '取消',
customRestore: '恢復預設',
maxFixedCol: '最大凍結列的數量不能超過 {0} 個',
dragTip: '移动:{0}'
dragTip: '移動:{0}'
},
grid: {
selectOneRecord: '請至少選擇一筆記錄!',
Expand Down
6 changes: 5 additions & 1 deletion packages/table/src/methods.ts
Original file line number Diff line number Diff line change
Expand Up @@ -400,8 +400,12 @@ const updateRowDropTipContent = ($xeTable: any, tdEl: HTMLElement) => {
const updateColDropOrigin = ($xeTable: any, column: VxeTableDefines.ColumnInfo) => {
const el = $xeTable.$el as HTMLElement
if (el) {
const colQuerys: string[] = []
XEUtils.eachTree([column], item => {
colQuerys.push(`[colid="${item.id}"]`)
})
const clss = 'col--drag-origin'
XEUtils.arrayEach(el.querySelectorAll(`[colid="${column.id}"]`), (elem) => {
XEUtils.arrayEach(el.querySelectorAll(colQuerys.join(',')), (elem) => {
addClass(elem, clss)
})
}
Expand Down
4 changes: 3 additions & 1 deletion styles/components/table.scss
Original file line number Diff line number Diff line change
Expand Up @@ -1281,7 +1281,9 @@
width: 1px;
background-color: var(--vxe-ui-font-primary-color);
}
.vxe-header--column {
.vxe-header--column,
.vxe-body--column,
.vxe-footer--column {
&.col--drag-origin {
& > .vxe-cell {
opacity: 0.5;
Expand Down

0 comments on commit 0bb7759

Please sign in to comment.