Skip to content

openModal 函数式弹窗

基本介绍

函数式弹窗,仅需要通过调用函数的形式让弹窗显示,其他什么都不用写,这样开发时把注意力都聚集在这个函数上,逻辑高度内聚

基本使用

函数入参

参数选项描述类型默许值
title弹窗标题string-
modalPropsmodal配置Partial<DialogProps>-
content内容Component | AsyncComponentLoader|string | boolean| number-
contentPropsmodal注册的组件入参T-

WetProElement