Files
zb-table/uni_modules/zb-drawer/readme.md
zouzhibing 5e04b468d7 提交
2022-04-08 12:00:29 +08:00

29 lines
1.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

## 介绍
基于uni-app开发的一个抽屉组件功能有、支持设置宽度百分比、高度百分比、左边弹出、右边弹出、顶部弹出、底部弹出、
关闭按钮等功能
已用于生产环境
## qq群 731805264
## -- github 永远保持最新有啥想法的可以提PR,共同开发 [地址](https://github.com/zouzhibin/zb-table.git)
## 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>
```