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>
|
<script lang="ts" setup>
|
||||||
import { ref } from 'vue'
|
import { ref } from 'vue'
|
||||||
import { ElTable } from 'element-plus'
|
import { ElTable, type TableColumnCtx } from 'element-plus'
|
||||||
import type { TableColumnCtx } from 'element-plus/es/components/table/src/table-column/defaults'
|
|
||||||
|
|
||||||
interface User {
|
interface User {
|
||||||
date: string
|
date: string
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 {
|
interface User {
|
||||||
id: string
|
id: string
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 {
|
interface User {
|
||||||
date: string
|
date: string
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script lang="ts" setup>
|
<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 {
|
interface Product {
|
||||||
id: string
|
id: string
|
||||||
|
Reference in New Issue
Block a user