1.1.1 • Published 3 years ago
@dengyongchao/modal v1.1.1
Modal
React based dialog box components, automatic center, adaptive size, support before and after open callback methods
Install
yarn add @dengyongchao/modalUsage Modal
import Modal from "@dengyongchao/modal";
import "@dengyongchao/modal/modal.css";API
| Property | Type | Default | Description |
|---|---|---|---|
| open | Boolean | false | Whether to open the dialog box |
| close | Function | - | Close the triggered callback function |
| loading | Boolean | true | Whether to display loading |
| children | React Node | - | Used to confine a dialog box content area |
| footer | React Node | - | Used at the bottom of the configuration dialog |
| showMask | Boolean | true | Show the mask layer |
| closeOnEsc | Boolean | true | Whether support press esc to close |
| closeOnDcumentClick | Boolean | false | Support for clickable document closure |
| showHeader | Boolean | true | Whether to display the title or not |
| drapHeader | Boolean | true | Whether dragging is supported |
| beforeOpen | Function | - | The callback function that fires before the dialog box opens |
| beforeClose | Function | - | The callback function that fires before the dialog box closes |
1.1.1
3 years ago
1.1.0
4 years ago
1.0.6
5 years ago
1.0.5
5 years ago
1.0.4
5 years ago
1.0.2
5 years ago
1.0.3
5 years ago
1.0.1
5 years ago
1.0.0
5 years ago
0.3.8
7 years ago
0.3.6
7 years ago
0.3.4
7 years ago
0.3.3
7 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