docs(components): [table] 筛选demo在ElementPlusPlayground中无预览效果 (#11661)

This commit is contained in:
acyza 2023-02-22 00:13:03 +08:00 committed by GitHub
parent 17de7e3056
commit c1068870e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'])