Skip to content

Commit

Permalink
releases 4.7.53
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Jul 16, 2024
1 parent 8df9799 commit f7bfc82
Show file tree
Hide file tree
Showing 9 changed files with 17 additions and 16 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.7.52",
"version": "4.7.53",
"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.0.68"
"vxe-pc-ui": "^4.0.70"
},
"devDependencies": {
"@types/resize-observer-browser": "^0.1.11",
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/en-US.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: 'Minimize',
zoomIn: 'Maximize',
zoomOut: 'Reduction',
close: 'Close'
close: 'Close',
miniMaxSize: 'The number of minimized Windows cannot exceed {0}.'
},
drawer: {
close: 'Close'
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/es-ES.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: 'Minimize',
zoomIn: 'Maximize',
zoomOut: 'Reducir',
close: 'Cerrar'
close: 'Cerrar',
miniMaxSize: 'The number of minimized Windows cannot exceed {0}.'
},
drawer: {
close: 'Cerrar'
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/ja-JP.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: 'Minimize',
zoomIn: 'Maximize',
zoomOut: '縮小',
close: '閉じる'
close: '閉じる',
miniMaxSize: 'The number of minimized Windows cannot exceed {0}.'
},
drawer: {
close: '閉じる'
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/pt-BR.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: 'Minimize',
zoomIn: 'Maximize',
zoomOut: 'Restaurar',
close: 'Fechar'
close: 'Fechar',
miniMaxSize: 'The number of minimized Windows cannot exceed {0}.'
},
drawer: {
close: 'Fechar'
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/zh-CN.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: '最小化',
zoomIn: '最大化',
zoomOut: '还原',
close: '关闭'
close: '关闭',
miniMaxSize: '最小化窗口的数量不能超过 {0} 个'
},
drawer: {
close: '关闭'
Expand Down
3 changes: 2 additions & 1 deletion packages/locale/lang/zh-TC.ts
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ export default {
zoomMin: '最小化',
zoomIn: '最大化',
zoomOut: '還原',
close: '關閉'
close: '關閉',
miniMaxSize: '最小化窗口的數量不能超過 {0} 個'
},
drawer: {
close: '關閉'
Expand Down
2 changes: 1 addition & 1 deletion packages/table/module/filter/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export default defineComponent({
const { filterRender } = column
const compConf = isEnableConf(filterRender) ? renderer.get(filterRender.name) : null
const isDisabled = !hasCheckOption && !filterStore.isAllSelected && !filterStore.isIndeterminate
return multiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false) : true)
return multiple && (compConf ? !(compConf.showTableFilterFooter === false || compConf.showFilterFooter === false || compConf.isFooter === false) : true)
? [
h('div', {
class: 'vxe-table--filter-footer'
Expand Down
9 changes: 2 additions & 7 deletions packages/table/src/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1242,21 +1242,16 @@ export default defineComponent({
})
}
internalData.headerHeight = headerHeight

let overflowX = false
let footerHeight = 0
let scrollbarHeight = 0
if (footerElem) {
footerHeight = footerElem.offsetHeight
overflowX = tableWidth > footerElem.clientWidth
if (overflowX) {
scrollbarHeight = Math.max(footerHeight - footerElem.clientHeight, 0)
}
scrollbarHeight = Math.max(footerHeight - footerElem.clientHeight, 0)
} else {
overflowX = tableWidth > bodyWidth
if (overflowX) {
scrollbarHeight = Math.max(tableHeight - bodyElem.clientHeight, 0)
}
scrollbarHeight = Math.max(tableHeight - bodyElem.clientHeight, 0)
}
internalData.footerHeight = footerHeight
reactData.overflowX = overflowX
Expand Down

0 comments on commit f7bfc82

Please sign in to comment.