Files
zb-table/uni_modules/zb-drawer/readme.md
2022-04-11 18:39:01 +08:00

1.0 KiB
Raw Blame History

介绍

基于uni-app开发的一个抽屉组件功能有、支持设置宽度百分比、高度百分比、左边弹出、右边弹出、顶部弹出、底部弹出、 关闭按钮等功能 已用于生产环境

qq群 731805264

-- github 永远保持最新有啥想法的可以提PR,共同开发 地址

drawer属性

参数 说明 类型 可选值 默认值 是否必须
modal 是否需要遮罩层 boolean -- true
mode Drawer 打开的方向 String 'left'、'right'、'top'、'bottom' right
show-close 是否显示关闭按钮 boolean -- true
title Drawer 的标题,也可通过具名 slot (见下表)传入 string -- --
visible 是否显示 Drawer支持 .sync 修饰符 boolean -- false

示例

<zb-drawer 
	:mode="mode" 
	width="80%" 
	:visible.sync="isShow1" >
	<view class="top-content"></view>
	</zb-drawer>