1.1.1 • Published 2 years ago

@dengyongchao/modal v1.1.1

Weekly downloads
27
License
MIT
Repository
-
Last release
2 years ago

Modal

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

Install

yarn add @dengyongchao/modal

Usage Modal

import Modal from "@dengyongchao/modal";
import "@dengyongchao/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
closeOnDcumentClickBooleanfalseSupport for clickable document closure
showHeaderBooleantrueWhether to display the title or not
drapHeaderBooleantrueWhether 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
1.1.1

2 years ago

1.1.0

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.3

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.3.8

6 years ago

0.3.6

6 years ago

0.3.4

6 years ago

0.3.3

6 years ago

0.3.2

7 years ago

0.3.1

7 years ago

0.2.4

7 years ago

0.2.3

7 years ago

0.2.2

7 years ago

0.2.15

7 years ago

0.1.3

7 years ago

0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago