Commit 55238beb0162ab15e0cd1f2410c247ddc140f88e
1 parent
e44ba4d4
Avatar support global setting
Showing
1 changed file
with
3 additions
and
1 deletions
Show diff stats
src/components/avatar/avatar.vue
| @@ -25,7 +25,9 @@ | @@ -25,7 +25,9 @@ | ||
| 25 | validator (value) { | 25 | validator (value) { |
| 26 | return oneOf(value, ['small', 'large', 'default']); | 26 | return oneOf(value, ['small', 'large', 'default']); |
| 27 | }, | 27 | }, |
| 28 | - default: 'default' | 28 | + default () { |
| 29 | + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; | ||
| 30 | + } | ||
| 29 | }, | 31 | }, |
| 30 | src: { | 32 | src: { |
| 31 | type: String | 33 | type: String |