@aliwind/rc-confirm

React component for Alibaba Cloud.

Usage no npm install needed!

<script type="module">
  import aliwindRcConfirm from 'https://cdn.skypack.dev/@aliwind/rc-confirm';
</script>

README


name: rc-confirm zhName: 确认弹窗 type: biz-component

@aliwind/rc-confirm

方便使用的确认弹窗。基于基础组件<Dialog><Message>封装。

使用示例

通过一个触发 trigger 来激活弹窗: MDXInstruction:importDemo:BasicDemo

命令式地激活弹窗: MDXInstruction:importDemo:ImperativeDemo

控制底层<Dialog><Message>组件的 props: MDXInstruction:importDemo:PassPropsDemo

APIs

通过组件来使用: MDXInstruction:renderInterface:IConfirmProps

通过命令式 API 来使用: MDXInstruction:renderInterface:IShowConfirmDialogConfig