mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
docs(components): [table] 筛选demo在ElementPlusPlayground中无预览效果 (#11661)
This commit is contained in:
parent
17de7e3056
commit
c1068870e3
@ -43,7 +43,7 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { ref } from 'vue'
|
||||
import { ElTable, type TableColumnCtx } from 'element-plus'
|
||||
import type { TableColumnCtx, TableInstance } from 'element-plus'
|
||||
|
||||
interface User {
|
||||
date: string
|
||||
@ -52,7 +52,7 @@ interface User {
|
||||
tag: string
|
||||
}
|
||||
|
||||
const tableRef = ref<InstanceType<typeof ElTable>>()
|
||||
const tableRef = ref<TableInstance>()
|
||||
|
||||
const resetDateFilter = () => {
|
||||
tableRef.value!.clearFilter(['date'])
|
||||
|
Loading…
Reference in New Issue
Block a user