0.1.1 • Published 5 years ago

vdrawer-hl v0.1.1

Weekly downloads
8
License
-
Repository
-
Last release
5 years ago

vue-drawer

Project setup

npm install vdrawer-hl

抽屉组件

  • Attributes
参数类型是否必须说明默认值
valueBoolean抽屉是否显示,可使用 v-model 双向绑定数据false
titleString标题-
widthString宽度260px
modalBoolean是否需要遮罩层false
modalStyleObject,String遮罩层样式-
placementString抽屉的方向,可选值为 left 或 rightright
closableBoolean是否显示右上角的关闭按钮false
fullscreenBoolean是否全屏false
drawerClassString外层类名-
stylesObject内容的样式-
centerBoolean顶部是否居中false
lockScrollBoolean是否在drawer出现时将 body 滚动锁定false
maskClosableBoolean是否允许点击遮罩区域关闭true
outClosableBoolean是否允许点击其他区域关闭true
beforeClosefunction(done),done 用于关闭关闭之前回调false
innerBoolean是否在某个盒子内部使用,外层盒子需要增加属性position:relativefalse
  • Slot
参数说明
header自定义标题栏
  • Events
参数说明回调参数
input关闭处理,必传false
close关闭的回调-
onVisibleChange显示和关闭切换回调true显示false关闭