We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e6a92d commit bb5cceeCopy full SHA for bb5ccee
packages/component/src/component/table/index.vue
@@ -998,6 +998,10 @@ const getCheckDataInner = (
998
});
999
};
1000
1001
+const handleToolbarFilterCheck = (value: string[], column: any) => {
1002
+ column.hide = !value.some((v) => v === column.key);
1003
+};
1004
+
1005
defineExpose({ getCheckData });
1006
</script>
1007
@@ -1032,6 +1036,7 @@ defineExpose({ getCheckData });
1032
1036
:disabled="column.children"
1033
1037
:key="column.key"
1034
1038
:value="column.key"
1039
+ @change="(value: string[]) => handleToolbarFilterCheck(value, column)"
1035
1040
>{{ column.title }}</lay-checkbox
1041
>
1042
</div>
0 commit comments