1.1.0 • Published 7 years ago

m-slip v1.1.0

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
7 years ago

m-slip 滑片组件


何时使用

侧边栏、操作表、Popup等等很多场景。可以指定滑入的距离、方向

API

参数说明类型可选值默认值
content滑块内容,必填react元素
titleCenter标题释放居中booleantrue
hasHeader是否有头部结构booleantrue
hasCross右上角的叉图标。规则是:如果depth是'100',默认有叉;否则默认没有叉。在这个前提上,如果调用者手动传入了hasCross为true或false,则忽略对depth的判断依赖booleanundefined
depth片滑入的深度占方向总宽(或高)的百分比值string默认是100(即100%,全屏),0~100都可以'100'
dir滑块进入方向string'top', 'bottom', 'left', 'right''bottom'
onOpen滑块打开时的回调funtionnoop
onOpened滑块打开动画完成后的回调funtionnoop
onClose滑块关闭时的回调funtionnoop
onClosed滑块关闭动画完成后的回调funtionnoop

静态方法

Slip.hide()

比如:Slip.hide(3000)

参数说明类型可选值默认值
delaytime可选,延时多少毫秒后关闭当前的Slipnumber
1.1.0

7 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago