Skip to content

About calling the Modal.confirm method to assign jsx to the content attribute in the passed props object #6146

@zawazawa101

Description

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

Version

3.2.14

Environment

vue3

Reproduction link

Edit on CodeSandbox

Steps to reproduce

  1. 我打算用编程式使用moda组件
  2. 官方文档中的modal.confirm方法接收的props对象中content属性的类型接受vnode | jsx
  3. 于是我在js中调用modal.confirm方法并给props中的content赋值了jsx
  4. 但是报错了

What is expected?

调用modal.confirm方法给接收的props对象中content属性赋值jsx

What is actually happening?

报错了

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