From 8a83e7c42b961eced21421bb95c1351b9a03e6fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Thu, 5 Jan 2017 18:09:37 +0800 Subject: [PATCH] update Form update Form --- src/components/form/form-item.vue | 2 +- src/styles/components/input.less | 1 + src/styles/mixins/input.less | 1 + test/routers/button.vue | 62 ++++++++++++++++++++----------- 4 files changed, 44 insertions(+), 22 deletions(-) diff --git a/src/components/form/form-item.vue b/src/components/form/form-item.vue index 1ca39116..898b92ab 100644 --- a/src/components/form/form-item.vue +++ b/src/components/form/form-item.vue @@ -57,7 +57,7 @@ type: [Object, Array] }, error: { - type: Boolean + type: String }, validateStatus: { type: Boolean diff --git a/src/styles/components/input.less b/src/styles/components/input.less index 9652a836..a9cc1943 100644 --- a/src/styles/components/input.less +++ b/src/styles/components/input.less @@ -6,6 +6,7 @@ display: inline-block; width: 100%; position: relative; + vertical-align: middle; } &-icon { width: 32px; diff --git a/src/styles/mixins/input.less b/src/styles/mixins/input.less index 66a906d3..0883be30 100644 --- a/src/styles/mixins/input.less +++ b/src/styles/mixins/input.less @@ -102,6 +102,7 @@ border-collapse: separate; position: relative; font-size: @font-size-small; + top: 1px; // fixed when using in form inline, &-large{ font-size: @font-size-base; diff --git a/test/routers/button.vue b/test/routers/button.vue index 496faa5a..7866643a 100644 --- a/test/routers/button.vue +++ b/test/routers/button.vue @@ -1,6 +1,19 @@