![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
@aligov/balloon-confirm
Advanced tools
@aligov/balloon-confirm
参数名 | 说明 | 必填 | 类型 | 默认值 | 备注 |
---|---|---|---|---|---|
size | 弹框尺寸,small 或 medium | 否 | string | 'small' | |
align | 弹框定位,具体见 Balloon | 否 | string | 'br' | 默认 alignEdge |
icon | fusion icon type 或 icon 元素 | 否 | string/ React Node | 'warning' | |
title | 弹出层标题 | 否 | string | '' | |
content | 弹出层内容 | 否 | string / React Node | ||
onOk | 确认键回调 | 否 | funtion | ||
okText | 确认键文字 | 否 | string | '确认' | |
onCancel | 取消键回调 | 否 | funtion | noop | |
cancelText | 取消键文字 | 否 | string | '取消' | |
balloonProps | 透传给 Balloon 的参数,具体见 Balloon | 否 | object | {} | |
className | 类名 | 否 | string | '' | |
disabled | 是否禁用 | 否 | Boolean | false |
onOk
和 onCancel
在为 falsy
时,对应的确定和取消按钮则不渲染出来。这两个函数可以是普通函数或异步函数(返回 promise),并且在返回 false 或 resolve false 时阻止关闭弹层。
另外,onOk
如果是一个异步函数,那么在 resolve 前,确定按钮展示 loading 状态并且阻止再次点击。
FAQs
intro component
The npm package @aligov/balloon-confirm receives a total of 0 weekly downloads. As such, @aligov/balloon-confirm popularity was classified as not popular.
We found that @aligov/balloon-confirm demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 open source maintainers collaborating on the project.
Did you know?
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.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.