From d18a7ee861cb5a4fb85434f02d46621188f71a9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 28 Jun 2018 14:16:03 +0800 Subject: [PATCH] Input support global setting --- src/components/input/input.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/components/input/input.vue b/src/components/input/input.vue index 045f7d57..79673eb2 100644 --- a/src/components/input/input.vue +++ b/src/components/input/input.vue @@ -90,6 +90,9 @@ size: { validator (value) { return oneOf(value, ['small', 'large', 'default']); + }, + default () { + return this.$IVIEW.size === '' ? 'default' : this.$IVIEW.size; } }, placeholder: {