mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-24 08:50:34 +01:00
feat(types): support custom values from app.config.ts (#863)
This commit is contained in:
@@ -17,7 +17,7 @@ export default defineComponent({
|
||||
inheritAttrs: false,
|
||||
props: {
|
||||
size: {
|
||||
type: String as PropType<keyof typeof avatarConfig.size>,
|
||||
type: String as PropType<AvatarSize>,
|
||||
default: null,
|
||||
validator (value: string) {
|
||||
return Object.keys(avatarConfig.size).includes(value)
|
||||
|
||||
Reference in New Issue
Block a user