docs(components): [table] better types introduced (#10777)

This commit is contained in:
RealityBoy
2022-11-26 13:51:36 +08:00
committed by GitHub
parent ec434a7044
commit f48d497a58
4 changed files with 4 additions and 5 deletions

View File

@ -43,8 +43,7 @@
<script lang="ts" setup>
import { ref } from 'vue'
import { ElTable } from 'element-plus'
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
import { ElTable, type TableColumnCtx } from 'element-plus'
interface User {
date: string

View File

@ -29,7 +29,7 @@
</template>
<script lang="ts" setup>
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
import type { TableColumnCtx } from 'element-plus'
interface User {
id: string

View File

@ -11,7 +11,7 @@
</template>
<script lang="ts" setup>
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
import type { TableColumnCtx } from 'element-plus'
interface User {
date: string

View File

@ -24,7 +24,7 @@
</template>
<script lang="ts" setup>
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
import type { TableColumnCtx } from 'element-plus'
interface Product {
id: string