mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 12:14:41 +01:00
chore(Avatar): allow default value for chipColor through app.config.ts
This commit is contained in:
@@ -41,6 +41,7 @@ const avatar = {
|
||||
},
|
||||
default: {
|
||||
size: 'sm',
|
||||
chipColor: null,
|
||||
chipVariant: 'solid',
|
||||
chipPosition: 'top-right'
|
||||
}
|
||||
|
||||
@@ -43,7 +43,7 @@ export default defineComponent({
|
||||
},
|
||||
chipColor: {
|
||||
type: String,
|
||||
default: null,
|
||||
default: () => appConfig.ui.avatar.default.chipColor,
|
||||
validator (value: string) {
|
||||
return ['gray', ...appConfig.ui.colors].includes(value)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user