Skip to content

Commit

Permalink
fix(Divider): default type from app config
Browse files Browse the repository at this point in the history
Resolves #2398
  • Loading branch information
benjamincanac committed Oct 19, 2024
1 parent b72d343 commit 7846ca3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/runtime/components/layout/Divider.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ export default defineComponent({
},
type: {
type: String as PropType<'solid' | 'dotted' | 'dashed'>,
default: 'solid',
default: () => config.default.type,
validator: (value: string) => ['solid', 'dotted', 'dashed'].includes(value)
},
class: {
Expand Down
3 changes: 2 additions & 1 deletion src/runtime/ui.config/layout/divider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export default {
},
label: 'text-sm',
default: {
size: '2xs' as const
size: '2xs' as const,
type: 'solid' as const
}
}

0 comments on commit 7846ca3

Please sign in to comment.