官方 SweetAlert2 增强器添加了对 React 元素作为内容的支持

时间:2024-06-28 09:24:19
【文件属性】:

文件名称:官方 SweetAlert2 增强器添加了对 React 元素作为内容的支持

文件大小:113KB

文件格式:ZIP

更新时间:2024-06-28 09:24:19

Overlay

sweetalert2-react-content 官方 SweetAlert2 增强器添加了对 React 元素作为内容的支持。 以下选项可以是 React 元素: title html confirmButtonText denyButtonText cancelButtonText footer closeButtonHtml iconHtml 安装 npm install --save sweetalert2 sweetalert2-react-content 用法示例 import Swal from 'sweetalert2' import withReactContent from 'sweetalert2-react-content' const MySwal = withReactContent (Swal) MySwal.fire({ 标题:


【文件预览】:
sweetalert2-react-content-master
----release.config.js(269B)
----.gitattributes(17B)
----rollup.config.js(1KB)
----.github()
--------workflows()
----yarn.lock(259KB)
----.eslintrc.js(168B)
----src()
--------mounts.js(654B)
--------index.js(2KB)
--------sweetalert2-react-content.d.ts(2KB)
----.babelrc(275B)
----TODO.md(99B)
----LICENSE(1KB)
----test()
--------test-build-v9.html(794B)
--------util()
--------test-build.html(908B)
--------integration.test.js(5KB)
----tslint.json(154B)
----README.md(2KB)
----.npmrc(19B)
----.editorconfig(169B)
----.gitignore(56B)
----CHANGELOG.md(10KB)
----package.json(2KB)

网友评论