chore: [table] fix warn info & ts error (#17271)

This commit is contained in:
btea
2024-07-28 22:25:21 +08:00
committed by GitHub
parent 233d38b631
commit f6bfe8ec3d

View File

@@ -32,7 +32,7 @@
>
<template #default="scope">
<el-tag
:type="scope.row.tag === 'Home' ? '' : 'success'"
:type="scope.row.tag === 'Home' ? 'primary' : 'success'"
disable-transitions
>{{ scope.row.tag }}</el-tag
>
@@ -57,10 +57,7 @@ const tableRef = ref<TableInstance>()
const resetDateFilter = () => {
tableRef.value!.clearFilter(['date'])
}
// TODO: improvement typing when refactor table
const clearFilter = () => {
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
tableRef.value!.clearFilter()
}
const formatter = (row: User, column: TableColumnCtx<User>) => {