ModalProps interface
模态弹窗:可拖拽、可调整大小的顶层弹窗
Signature
typescript
interface ModalProps1
Properties
Property | Modifiers | Type | Description |
|---|---|---|---|
any | (Optional) Popup content child nodes | ||
number | Height ( pixels, required) | ||
boolean | (Optional) Whether to hide the popup | ||
number | Position from the left (pixels, required) | ||
number | (Optional) Maximum horizontal drag distance (pixels) | ||
number | (Optional) Maximum vertical drag distance ( pixels) | ||
(top: number, left: number) => void | (Optional) 弹窗移动时触发,参数为新位置 | ||
boolean | (Optional) Whether to show the mask layer | ||
boolean | (Optional) Whether horizontal resizing is allowed | ||
boolean | (Optional) Whether vertical resizing is allowed | ||
number | Position from the top (pixels, required) | ||
number | Width ( pixels, required) |