mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 12:32:17 +08:00
docs(components): [table] better types introduced (#10777)
This commit is contained in:
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
Reference in New Issue
Block a user