naive-ui/demo/documentation/components/drawer/enUS/index.md
2020-03-20 22:25:21 +08:00

895 B

Drawer

I think it is similar with modal, with a bit difference on placement.

Demos

basic
multiple
target

V-model

prop event
show hide

Props

Name Parameters Default Description
theme 'light' | 'dark' null
themed-style { [themeName: string]: object } null
show boolean false
placement 'top' | 'right' | 'bottom' | 'left' 'right'
width number | string 251
height number | string 251 Works when placement is top and bottom.
mask-closable boolean true Whether to emit hide event when click mask.
drawer-style object null
target () => HTMLElement () => document.body The area where the drawer appears.
drawer-class string null

Slots

Name Parameters Description
default ()

Events

Name Parameters Description
show ()
hide (show: false)