diff --git a/src/components/input/index.js b/src/components/input/index.js
index 08cec3df0..01e7c7d70 100644
--- a/src/components/input/index.js
+++ b/src/components/input/index.js
@@ -92,7 +92,7 @@ class AtInput extends Taro.Component {
{
error
?
-
+
: null
}
diff --git a/src/components/input/index.scss b/src/components/input/index.scss
index c533e4430..30178e45d 100644
--- a/src/components/input/index.scss
+++ b/src/components/input/index.scss
@@ -2,8 +2,9 @@
@import "../../style/mixins/index.scss";
.at-input {
+ padding: $spacing-v-lg 0;
background-color: $color-bg;
- padding: $spacing-v-md 0;
+ color: $color-text-base;
@include border-thin-bottom;
&__container {
@@ -11,12 +12,21 @@
align-items: center;
}
+ &__title {
+ margin-right: $spacing-h-md;
+ width: 172px;
+ font-size: $font-size-lg;
+ line-height: $line-height-zh;
+ vertical-align: middle;
+ text-align: left;
+ }
+
&__input {
flex: 1;
- font-size: $font-size-base;
- line-height: normal;
- padding-right: $spacing-v-md;
display: inline-block;
+ padding-right: $spacing-v-md;
+ font-size: $font-size-lg;
+ line-height: $line-height-zh;
vertical-align: middle;
}
@@ -29,16 +39,7 @@
display: inline-block;
padding-right: $spacing-v-md;
text-align: center;
- font-size: $font-size-base;
- }
-
- &__title {
- width: 150px;
- margin-right: $spacing-h-md;
- font-size: $font-size-base;
- line-height: $line-height-zh;
- vertical-align: middle;
- text-align: left;
+ font-size: $font-size-lg;
}
&__children {
@@ -51,11 +52,11 @@
text,
image,
.taro-img {
- font-size: $font-size-base;
display: inline-block;
- text-align: center;
padding: 0 $spacing-v-md;
color: $color-brand-dark;
+ font-size: $font-size-lg;
+ text-align: center;
}
> image,
diff --git a/src/pages/form/input/index.js b/src/pages/form/input/index.js
index 349872c05..d6ee8d3bf 100644
--- a/src/pages/form/input/index.js
+++ b/src/pages/form/input/index.js
@@ -82,10 +82,12 @@ export default class Index extends Taro.Component {
{/* S Header */}
{/* E Header */}
+
{/* S Body */}
+ {/* 基础用法 */}
- 输入框标题
+ 基础用法
@@ -96,6 +98,8 @@ export default class Index extends Taro.Component {
+
+ {/* 输入框类型 */}
输入框类型
@@ -111,6 +115,8 @@ export default class Index extends Taro.Component {
+
+ {/* 状态 */}
状态
@@ -118,12 +124,14 @@ export default class Index extends Taro.Component {
-
+
+
+ {/* 自定义右边栏 */}
自定义右边栏
@@ -135,7 +143,8 @@ export default class Index extends Taro.Component {