1
0
mirror of synced 2025-12-09 07:08:22 +08:00

fix 修复筛选报错问题

This commit is contained in:
xuliangzhan
2024-07-10 10:31:30 +08:00
parent 0dac8d60fc
commit 5bf63f4aaf
2 changed files with 4 additions and 4 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table",
"version": "4.7.46",
"version": "4.7.47",
"description": "一个基于 vue 的 PC 端表格组件支持增删改查、虚拟树、列拖拽懒加载、快捷菜单、数据校验、树形结构、打印、导入导出、自定义模板、渲染器、JSON 配置式...",
"scripts": {
"update": "npm install --legacy-peer-deps",
@@ -28,7 +28,7 @@
"style": "lib/style.css",
"typings": "types/index.d.ts",
"dependencies": {
"vxe-pc-ui": "^4.0.52"
"vxe-pc-ui": "^4.0.56"
},
"devDependencies": {
"@types/resize-observer-browser": "^0.1.11",

View File

@@ -108,7 +108,7 @@ export default defineComponent({
const renderOptions = (filterRender: any, compConf: any) => {
const { filterStore } = props
const { column, multiple, maxHeight } = filterStore
const { slots } = column
const slots = column ? column.slots : null
const filterSlot = slots ? slots.filter : null
const params = Object.assign({}, tableInternalData._currFilterParams, { $panel, $table: $xeTable })
const rtFilter = compConf ? (compConf.renderTableFilter || compConf.renderFilter) : null
@@ -233,7 +233,7 @@ export default defineComponent({
}
],
style: filterStore.style
}, initStore.filter ? renderOptions(filterRender, compConf).concat(renderFooters()) : [])
}, initStore.filter && column ? renderOptions(filterRender, compConf).concat(renderFooters()) : [])
}
return renderVN