Skip to content

Extend type of 'content' attribute of Modal.method #824

@Lukinoh

Description

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

What problem does this feature solve?

As I user of ant-design-vue I would like to be able to use function(h) to define the content of a modal using the Modal.methods() function. The goal is to offer more elaborate content to display to the user.

Currently, we can only defined a string, however with Notification or Message component you can set function(h).

What does the proposed API look like?

The idea would be to harmonize the APIs and add the possibility to use function(h).

Probably doing something like this line at line 85 of ConfirmDialog.jsx would be enough ?

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