Skip to content

Commit fb95395

Browse files
committed
!308 fix(table): 筛选column显示隐藏状态未与column数据绑定
* chore: update * fix(table): 筛选column显示隐藏状态未与column数据绑定
1 parent 7b2cfe7 commit fb95395

File tree

1 file changed

+5
-0
lines changed
  • packages/component/src/component/table

1 file changed

+5
-0
lines changed

packages/component/src/component/table/index.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -998,6 +998,10 @@ const getCheckDataInner = (
998998
});
999999
};
10001000
1001+
const handleToolbarFilterCheck = (value: string[], column: any) => {
1002+
column.hide = !value.some((v) => v === column.key);
1003+
};
1004+
10011005
defineExpose({ getCheckData });
10021006
</script>
10031007

@@ -1032,6 +1036,7 @@ defineExpose({ getCheckData });
10321036
:disabled="column.children"
10331037
:key="column.key"
10341038
:value="column.key"
1039+
@change="(value: string[]) => handleToolbarFilterCheck(value, column)"
10351040
>{{ column.title }}</lay-checkbox
10361041
>
10371042
</div>

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy