forked from lsl/xzjl-ui
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
3 years ago | |
|---|---|---|
| .. | ||
| README.en-US.md | 3 years ago | |
| README.md | 3 years ago | |
| drawer.d.ts | 3 years ago | |
| drawer.js | 3 years ago | |
| drawer.json | 3 years ago | |
| drawer.wxml | 3 years ago | |
| drawer.wxss | 3 years ago | |
| props.d.ts | 3 years ago | |
| props.js | 3 years ago | |
| type.d.ts | 3 years ago | |
| type.js | 3 years ago | |
README.en-US.md
:: BASE_DOC ::
API
Drawer Props
| name | type | default | description | required |
|---|---|---|---|---|
| close-on-overlay-click | Boolean | undefined | - | N |
| destroy-on-close | Boolean | false | - | N |
| footer | Slot | - | 0.29.0 |
N |
| items | Array | - | Typescript:DrawerItem[] interface DrawerItem { title: string; icon: string; }。see more ts definition |
N |
| placement | String | right | options:left/right | N |
| show-overlay | Boolean | true | - | N |
| title | String / Slot | - | 0.29.0 |
N |
| visible | Boolean | false | - | N |
| z-index | Number | 11500 | - | N |
Drawer Events
| name | params | description |
|---|---|---|
| close | (trigger: TriggerSource) |
see more ts definition。type TriggerSource = 'overlay' |
| item-click | (index: number; item: DrawerItem) |
- |
| overlay-click | - | - |