mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
chore: [table] fix warn info & ts error (#17271)
This commit is contained in:
@@ -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>) => {
|
||||
|
||||
Reference in New Issue
Block a user