Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@aligov/balloon-confirm

Package Overview
Dependencies
Maintainers
11
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aligov/balloon-confirm

intro component

  • 1.0.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-75%
Maintainers
11
Weekly downloads
 
Created
Source

气泡确认框

@aligov/balloon-confirm

API

参数名说明必填类型默认值备注
size弹框尺寸,small 或 mediumstring'small'
align弹框定位,具体见 Balloonstring'br'默认 alignEdge
iconfusion icon type 或 icon 元素string/ React Node'warning'
title弹出层标题string''
content弹出层内容string / React Node
onOk确认键回调funtion
okText确认键文字string'确认'
onCancel取消键回调funtionnoop
cancelText取消键文字string'取消'
balloonProps透传给 Balloon 的参数,具体见 Balloonobject{}
className类名string''
disabled是否禁用Booleanfalse

onOkonCancel 在为 falsy 时,对应的确定和取消按钮则不渲染出来。这两个函数可以是普通函数或异步函数(返回 promise),并且在返回 false 或 resolve false 时阻止关闭弹层。

另外,onOk 如果是一个异步函数,那么在 resolve 前,确定按钮展示 loading 状态并且阻止再次点击。

Keywords

FAQs

Package last updated on 29 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc