mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [table] 筛选demo在ElementPlusPlayground中无预览效果 (#11661)
This commit is contained in:
@@ -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'])
|
||||
|
||||
Reference in New Issue
Block a user