mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [table-column] reactively update filterable state (#22879)
This commit is contained in:
@@ -76,6 +76,12 @@ function useWatcher<T extends DefaultRow>(
|
||||
() => props_[columnKey],
|
||||
(newVal) => {
|
||||
instance.columnConfig.value[key as never] = newVal
|
||||
if (key === 'filters' || key === 'filterMethod') {
|
||||
instance.columnConfig.value['filterable'] = !!(
|
||||
instance.columnConfig.value['filters'] ||
|
||||
instance.columnConfig.value['filterMethod']
|
||||
)
|
||||
}
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user