mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-02-02 13:17:57 +01:00
docs: add Slideover component
This commit is contained in:
@@ -75,7 +75,7 @@ const sections = [
|
|||||||
{ label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'FormGroup', to: '/components/FormGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }, { label: 'Toggle', to: '/components/Toggle' }] },
|
{ label: 'Forms', links: [{ label: 'Checkbox', to: '/components/Checkbox' }, { label: 'Input', to: '/components/Input' }, { label: 'FormGroup', to: '/components/FormGroup' }, { label: 'Radio', to: '/components/Radio' }, { label: 'Select', to: '/components/Select' }, { label: 'SelectCustom', to: '/components/SelectCustom' }, { label: 'Textarea', to: '/components/Textarea' }, { label: 'Toggle', to: '/components/Toggle' }] },
|
||||||
{ label: 'Layout', links: [{ label: 'Card', to: '/components/Card' }, { label: 'Container', to: '/components/Container' }] },
|
{ label: 'Layout', links: [{ label: 'Card', to: '/components/Card' }, { label: 'Container', to: '/components/Container' }] },
|
||||||
{ label: 'Navigation', links: [{ label: 'Pills', to: '/components/Pills' }, { label: 'Tabs', to: '/components/Tabs' }, { label: 'VerticalNavigation', to: '/components/VerticalNavigation' }] },
|
{ label: 'Navigation', links: [{ label: 'Pills', to: '/components/Pills' }, { label: 'Tabs', to: '/components/Tabs' }, { label: 'VerticalNavigation', to: '/components/VerticalNavigation' }] },
|
||||||
{ label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Tooltip', to: '/components/Tooltip' }] }
|
{ label: 'Overlays', links: [{ label: 'Modal', to: '/components/Modal' }, { label: 'Notification', to: '/components/Notification' }, { label: 'Popover', to: '/components/Popover' }, { label: 'Slideover', to: '/components/Slideover' }, { label: 'Tooltip', to: '/components/Tooltip' }] }
|
||||||
]
|
]
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|||||||
@@ -114,6 +114,7 @@ const selectCustom = ref(people[0])
|
|||||||
const alertDialog = ref(false)
|
const alertDialog = ref(false)
|
||||||
const toggle = ref(false)
|
const toggle = ref(false)
|
||||||
const modal = ref(false)
|
const modal = ref(false)
|
||||||
|
const slideover = ref(false)
|
||||||
|
|
||||||
const defaultProps = {
|
const defaultProps = {
|
||||||
Button: {
|
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: {
|
Popover: {
|
||||||
slots: {
|
slots: {
|
||||||
panel: {
|
panel: {
|
||||||
|
|||||||
@@ -234,6 +234,12 @@ const components = [
|
|||||||
nuxt3: true,
|
nuxt3: true,
|
||||||
capi: true
|
capi: true
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
label: 'Slideover',
|
||||||
|
to: '/components/Slideover',
|
||||||
|
nuxt3: true,
|
||||||
|
capi: true
|
||||||
|
},
|
||||||
{
|
{
|
||||||
label: 'Tooltip',
|
label: 'Tooltip',
|
||||||
to: '/components/Tooltip',
|
to: '/components/Tooltip',
|
||||||
|
|||||||
Reference in New Issue
Block a user