docs: add Slideover component

This commit is contained in:
Benjamin Canac
2022-04-08 10:56:14 +02:00
parent 368f93c294
commit 289de07ba1
3 changed files with 26 additions and 1 deletions

View File

@@ -114,6 +114,7 @@ const selectCustom = ref(people[0])
const alertDialog = ref(false)
const toggle = ref(false)
const modal = ref(false)
const slideover = ref(false)
const defaultProps = {
Button: {
@@ -271,6 +272,24 @@ const defaultProps = {
}
}
},
Slideover: {
modelValue: slideover,
'onUpdate:modelValue': (v) => { slideover.value = v },
component: {
name: 'Button',
props: {
variant: 'secondary',
label: 'Open slideover',
onClick: () => { slideover.value = true }
}
},
slots: {
default: {
tag: 'div',
html: 'Slideover content'
}
}
},
Popover: {
slots: {
panel: {