1.1.10 • Published 4 months ago

@zddi/modal v1.1.10

Weekly downloads
-
License
MIT
Repository
-
Last release
4 months ago

React Modal

React based dialog box components, automatic center, adaptive size, support before and after open callback methods

Install

yarn add @zddi/modal

Usage Modal

import Modal from "@zddi/modal";
import "@zddi/modal/modal.css";

API

PropertyTypeDefaultDescription
openBooleanfalseWhether to open the dialog box
closeFunction-Close the triggered callback function
loadingBooleantrueWhether to display loading
childrenReact Node-Used to confine a dialog box content area
footerReact Node-Used at the bottom of the configuration dialog
showMaskBooleantrueShow the mask layer
closeOnEscBooleantrueWhether support press esc to close
closeOnDocumentClickBooleanfalseSupport for clickable document closure
showHeaderBooleantrueWhether to display the title or not
dragHeaderBooleantrueWhether dragging is supported
beforeOpenFunction-The callback function that fires before the dialog box opens
beforeCloseFunction-The callback function that fires before the dialog box closes
isFormBooleanfalseThe outer layer is wrapped with the form tag
FormPropsObject{ }Attribute of the form tag

版本历史

1.1.10

2024 年 1 月 26 日 星期五 10 时 04 分 31 秒 CST

  • 支持form标签包裹

1.1.8

2023 年 9 月 18 日 星期一 14 时 04 分 11 秒 CST

  • 删除全局变量modalWrapScroll,还原 modal 内容的最大高度,增加全局变量modalDynamicMaxHeight 控制 modal 最大高度是否动态获取浏览器高度

1.1.7

2023 年 9 月 14 日 星期四 10 时 04 分 37 秒 CST

  • wrapScroll 参数替换为全局变量__modalWrapScroll 控制

1.1.6

2023 年 9 月 5 日 星期二 10 时 27 分 04 秒 UTC

  • 新增 wrapScroll 参数,调整 z-index
1.1.9

4 months ago

1.1.10

4 months ago

1.1.2

1 year ago

1.1.1

1 year ago