onInit() {
this.editFormOptions.forEach((option) => {
option.forEach((item) => {
if (item.field == '字段') {
item.extra = {
render: (h, {}) => {
return (
<div>
<el-popover
placement="top-start"
title="提示"
width="200"
trigger="hover"
content="还没想好"
>
{{
reference: (
<i
style="color:rgb(6 118 169);font-size:12px;margin-left:5px"
onClick={() => {
this.$message.success('提示信息')
}}
class="el-icon-warning-outline"
></i>
)
}}
</el-popover>
</div>
)
}
}
}
})
})
}
.Net快速开发框架-form表单自定义渲染
最新推荐文章于 2024-07-17 11:08:00 发布