mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-31 12:17:54 +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: {
|
default: {
|
||||||
size: 'sm',
|
size: 'sm',
|
||||||
|
chipColor: null,
|
||||||
chipVariant: 'solid',
|
chipVariant: 'solid',
|
||||||
chipPosition: 'top-right'
|
chipPosition: 'top-right'
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -43,7 +43,7 @@ export default defineComponent({
|
|||||||
},
|
},
|
||||||
chipColor: {
|
chipColor: {
|
||||||
type: String,
|
type: String,
|
||||||
default: null,
|
default: () => appConfig.ui.avatar.default.chipColor,
|
||||||
validator (value: string) {
|
validator (value: string) {
|
||||||
return ['gray', ...appConfig.ui.colors].includes(value)
|
return ['gray', ...appConfig.ui.colors].includes(value)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user