Skip to content

Commit

Permalink
releases 4.8.7
Browse files Browse the repository at this point in the history
  • Loading branch information
xuliangzhan committed Nov 8, 2024
1 parent cbfb953 commit d440edc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 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.8.6",
"version": "4.8.7",
"description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟树、列拖拽,懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
Expand Down
8 changes: 6 additions & 2 deletions packages/table/module/custom/panel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ export default defineComponent({

const $xeTable = inject('$xeTable', {} as VxeTableConstructor & VxeTableMethods & VxeTablePrivateMethods)

const { reactData } = $xeTable
const { props: tableProps, reactData } = $xeTable
const { computeCustomOpts, computeColumnOpts, computeIsMaxFixedColumn, computeResizableOpts } = $xeTable.getComputeMaps()

const refElem = ref() as Ref<HTMLDivElement>
Expand Down Expand Up @@ -546,6 +546,7 @@ export default defineComponent({

const renderPopupPanel = () => {
const { customStore } = props
const { resizable: allResizable } = tableProps
const { customColumnList } = reactData
const customOpts = computeCustomOpts.value
const { modalOptions, drawerOptions, allowVisible, allowSort, allowFixed, allowResizable, checkMethod, visibleMethod } = customOpts
Expand Down Expand Up @@ -679,7 +680,10 @@ export default defineComponent({
? h('td', {
class: 'vxe-table-custom-popup--column-item col--resizable'
}, [
column.children && column.children.length
(
(column.children && column.children.length) ||
!(XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
)
? h('span', '-')
: (
VxeUINumberInputComponent
Expand Down
4 changes: 2 additions & 2 deletions packages/table/src/header.ts
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default defineComponent({

const renderVN = () => {
const { fixedType, fixedColumn, tableColumn } = props
const { resizable, border, columnKey, headerRowClassName, headerCellClassName, headerRowStyle, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
const { resizable: allResizable, border, columnKey, headerRowClassName, headerCellClassName, headerRowStyle, headerCellStyle, showHeaderOverflow: allColumnHeaderOverflow, headerAlign: allHeaderAlign, align: allAlign, mouseConfig } = tableProps
const { isGroup, currentColumn, scrollXLoad, overflowX, scrollbarWidth } = tableReactData
const { visibleColumn } = tableInternalData
const columnOpts = computeColumnOpts.value
Expand Down Expand Up @@ -293,7 +293,7 @@ export default defineComponent({
/**
* 列宽拖动
*/
!fixedHiddenColumn && !isColGroup && (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || resizable))
!fixedHiddenColumn && !isColGroup && (XEUtils.isBoolean(column.resizable) ? column.resizable : (columnOpts.resizable || allResizable))
? h('div', {
class: ['vxe-resizable', {
'is--line': !border || border === 'none'
Expand Down

0 comments on commit d440edc

Please sign in to comment.