mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-25 17:30:37 +01:00
docs: update
This commit is contained in:
@@ -184,7 +184,7 @@ const defaultProps = {
|
|||||||
Notification: {
|
Notification: {
|
||||||
id: '1',
|
id: '1',
|
||||||
title: 'Notification title',
|
title: 'Notification title',
|
||||||
callback: 'alert(\'Timer expired\')'
|
callback: 'console.log(\'Timer expired\')'
|
||||||
},
|
},
|
||||||
Modal: {
|
Modal: {
|
||||||
modelValue: modal,
|
modelValue: modal,
|
||||||
@@ -228,7 +228,7 @@ const { props: componentProps } = await component.__asyncLoader()
|
|||||||
const refProps = Object.entries(componentProps).map(([key, prop]) => {
|
const refProps = Object.entries(componentProps).map(([key, prop]) => {
|
||||||
const defaultValue = componentDefaultProps[key]
|
const defaultValue = componentDefaultProps[key]
|
||||||
const propDefault = (typeof prop.default === 'function' ? prop.default() : prop.default)
|
const propDefault = (typeof prop.default === 'function' ? prop.default() : prop.default)
|
||||||
let value = defaultValue || propDefault
|
let value = defaultValue !== undefined ? defaultValue : propDefault
|
||||||
let type = prop.type
|
let type = prop.type
|
||||||
if (Array.isArray(type)) {
|
if (Array.isArray(type)) {
|
||||||
type = type[0].name
|
type = type[0].name
|
||||||
|
|||||||
@@ -186,7 +186,8 @@ const components = [
|
|||||||
{
|
{
|
||||||
label: 'Notification',
|
label: 'Notification',
|
||||||
to: '/components/Notification',
|
to: '/components/Notification',
|
||||||
nuxt3: true
|
nuxt3: true,
|
||||||
|
capi: true
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: 'Notifications',
|
label: 'Notifications',
|
||||||
|
|||||||
Reference in New Issue
Block a user