直接上代码,希望能帮到你
render:(h,params) => {
return h(" 定义的元素 “,{ 元素的性质 },” 元素的内容"/[元素的内容])
}
props中默认定义content,如果下面定义了slot:‘content’,就不会显示默认定义的content内容
iview的render中slot写法
最新推荐文章于 2023-11-17 14:35:38 发布
直接上代码,希望能帮到你
render:(h,params) => {
return h(" 定义的元素 “,{ 元素的性质 },” 元素的内容"/[元素的内容])
}
props中默认定义content,如果下面定义了slot:‘content’,就不会显示默认定义的content内容