渲染一个组件,赋值props,prop名称为驼峰写法
h(CUpload, {
actionUrl: `/`,
accept: 'image/png, image/jpeg, .pdf',
showUploadButton: false,
showRemoveButton: false,
modelValue: record.respond.invitation_resp_files,
})
渲染一个组件,有子组件
h(CUpload, {
actionUrl: `/`,
accept: 'image/png, image/jpeg, .pdf',
showUploadButton: false,
showRemoveButton: false,
modelValue: record.respond.invitation_resp_files,
}, () => [
h(IconSearch, { size: 15 })
])
或者写成
h(CUpload, {
actionUrl: `/`,
accept: 'image/png, image/jpeg, .pdf',
showUploadButton: false,
showRemoveButton: false,
modelValue: record.respond.invitation_resp_files,
}, h(IconSearch, { size: 15 }))
应该也可以
渲染一个组件,绑定点击事件
h(Button, {
type: 'primary',
shape: "circle",
onclick: () => {
console.log()
}
},
() => [h(IconSearch, { size: 15 })]
)
渲染一个组件,传入v-model,传入具名插槽
h(InputNumber, {
modelValue: record.percentage,
hideButton: true,
["onUpdate:modelValue"]: (modelValue) => {
record.percentage = modelValue
},
}, { suffix: () => '%' })
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。