Skip to content

Why does Modal. confirm's content not support rendering of template strings? #843

@djx474068077

Description

@djx474068077
  • I have searched the issues of this repository and believe that this is not a duplicate.

What problem does this feature solve?

This feature solves the problem that content in Modal. confirm can use what it wants.

What does the proposed API look like?

this.$Modal.confirm({
render: (h) => {
return h('div', [
h('p', {
style: {
marginTop: '20px'
}
}, '确认要完结当前逾期订单??'),
h('Input', {
props: {
value: this.income,
autofocus: true,
placeholder: '输入金额...'
},
})
])
},
})

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions