fix(docs): update tabs click prop type (#6709)

* fix(docs): update tabs click prop type

* fix(docs): import type
This commit is contained in:
长喆 2022-03-18 21:54:25 +08:00 committed by GitHub
parent fbccee19ba
commit 12c4ceb856
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View File

@ -8,10 +8,11 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
const activeName = ref('first')
const handleClick = (tab: string, event: Event) => {
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event)
}
</script>

View File

@ -13,10 +13,11 @@
</template>
<script lang="ts" setup>
import { ref } from 'vue'
import type { TabsPaneContext } from 'element-plus'
const activeName = ref('first')
const handleClick = (tab: string, event: Event) => {
const handleClick = (tab: TabsPaneContext, event: Event) => {
console.log(tab, event)
}
</script>