Skip to content

Commit

Permalink
chore(deps): lock file maintenance (v3) (#2863)
Browse files Browse the repository at this point in the history
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Benjamin Canac <[email protected]>
  • Loading branch information
renovate[bot] and benjamincanac authored Dec 9, 2024
1 parent 3b9ca22 commit c2189b8
Show file tree
Hide file tree
Showing 4 changed files with 936 additions and 1,680 deletions.
6 changes: 3 additions & 3 deletions devtools/app/components/ComponentPreview.vue
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,9 @@ const code = computed(() => {
const slotsTemplate = props.themeSlots
? genPropValue(Object.keys(props.themeSlots).filter(key => key !== 'base').reduce((acc, key) => {
acc[key] = genPropValue(props.themeSlots?.[key])
return acc
}, {} as Record<string, string>))
acc[key] = genPropValue(props.themeSlots?.[key])
return acc
}, {} as Record<string, string>))
: undefined
const extraTemplate = [
Expand Down
14 changes: 7 additions & 7 deletions docs/app/components/content/ComponentCode.vue
Original file line number Diff line number Diff line change
Expand Up @@ -127,16 +127,16 @@ const options = computed(() => {
const propItems = get(props.items, key, [])
const items = propItems.length
? propItems.map((item: any) => ({
value: item,
label: item
}))
value: item,
label: item
}))
: prop?.type === 'boolean' || prop?.type === 'boolean | undefined'
? [{ value: true, label: 'true' }, { value: false, label: 'false' }]
: Object.keys(componentTheme?.variants?.[key] || {}).map(variant => ({
value: variant,
label: variant,
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
}))
value: variant,
label: variant,
chip: key.toLowerCase().endsWith('color') ? { color: variant } : undefined
}))

return {
name: key,
Expand Down
Loading

0 comments on commit c2189b8

Please sign in to comment.