# slot
前言
vue 中相关api在typescript中的用法
# 1.slot类型定义
defineSlots<{
root: (props: { row: NodeType; handleExpand: () => void; expand: boolean; loading: boolean }) => void
branch: (props: { row: NodeType; handleExpand: () => void; expand: boolean; loading: boolean }) => void
leaf: (props: { row: NodeType }) => void
}>()
1
2
3
4
5
2
3
4
5
← component vue-router →