From a5e56d43e806368c034cdd02c7779a140c43bac8 Mon Sep 17 00:00:00 2001 From: GPPoseidon <1335734732@qq.com> Date: Wed, 11 Dec 2019 17:47:30 +0800 Subject: [PATCH] fix(Field): add input-align example (#2519) --- example/pages/field/index.js | 1 + example/pages/field/index.wxml | 11 +++++++++++ packages/field/README.md | 13 +++++++++++++ 3 files changed, 25 insertions(+) diff --git a/example/pages/field/index.js b/example/pages/field/index.js index 4a20bf65..d0f633c6 100644 --- a/example/pages/field/index.js +++ b/example/pages/field/index.js @@ -7,6 +7,7 @@ Page({ password: '', username: '', username2: '', + username3: '', message: '', phone: '1365577' }, diff --git a/example/pages/field/index.wxml b/example/pages/field/index.wxml index 78319328..a026395d 100644 --- a/example/pages/field/index.wxml +++ b/example/pages/field/index.wxml @@ -57,6 +57,17 @@ + + + + + + ``` +### 内容对齐方式 +可以通过`input-align`属性设置内容的对齐方式 + +```html + + + +``` ### 高度自适应 对于 textarea,可以通过`autosize`属性设置高度自适应