1.0.10 • Published 5 years ago

@beisen-phoenix/ux-builder-drawer v1.0.10

Weekly downloads
-
License
ISC
Repository
gitlab
Last release
5 years ago

API

参数说明类型默认值版本
closable是否显示右上角的关闭按钮booleantrue
destroyOnClose关闭时销毁 Drawer 里的子元素booleanfalse
getContainer指定 Drawer 挂载的 HTML 节点, false 为挂载在当前 domHTMLElement | () => HTMLElement | Selectors | false'body'
maskClosable点击蒙层是否允许关闭booleantrue
mask是否展示遮罩Booleantrue
maskStyle遮罩样式object{}
style可用于设置 Drawer 最外层容器的样式object-
bodyStyle可用于设置 Drawer 的样式,调整浮层位置等object-
title标题string | ReactNode-
visibleDrawer 是否可见boolean-
width宽度string | number256
height高度, 在 placementtopbottom 时使用string | number256
className对话框外层容器的类名string-3.8.0
zIndex设置 Drawer 的 z-indexNumber1000
placement抽屉的方向'top' | 'right' | 'bottom' | 'left''right'
onClose点击遮罩层或右上角叉或取消按钮的回调function(e)
afterVisibleChange切换抽屉时动画结束后的回调function(visible)
keyboard是否支持键盘 esc 关闭booleantrue
size右推屏的大小stringlg
1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago