From d01fe28a640f1e6676f89c229d71b727f3b946d3 Mon Sep 17 00:00:00 2001
From: shenhai <5213606@qq.com>
Date: Mon, 12 Nov 2018 11:17:32 +0800
Subject: [PATCH] =?UTF-8?q?numberBox=20=E9=A1=B5=E9=9D=A2=E7=BB=93?=
=?UTF-8?q?=E6=9E=84=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
examples/hello-uniapp/common/uni.css | 4 ++++
.../pages/template/number-box/number-box.vue | 10 ++++++++++
2 files changed, 14 insertions(+)
diff --git a/examples/hello-uniapp/common/uni.css b/examples/hello-uniapp/common/uni.css
index 665b2521..3c0871ea 100644
--- a/examples/hello-uniapp/common/uni.css
+++ b/examples/hello-uniapp/common/uni.css
@@ -39,6 +39,10 @@ form {
.uni-inline-item{
display: flex;
flex-direction: row;
+ align-items:center;
+}
+.uni-inline-item text{
+ margin-right: 20upx;
}
/* page */
diff --git a/examples/hello-uniapp/pages/template/number-box/number-box.vue b/examples/hello-uniapp/pages/template/number-box/number-box.vue
index e457a4b8..de35d9e5 100644
--- a/examples/hello-uniapp/pages/template/number-box/number-box.vue
+++ b/examples/hello-uniapp/pages/template/number-box/number-box.vue
@@ -23,6 +23,13 @@
+
+ 行内应用
+
+ 购买数量 :
+
+
+
@@ -42,6 +49,9 @@
methods: {
onNumberChange(value) {
this.numberValue = value;
+ },
+ onNumberChange2(value) {
+ console.log('购买数量 : ' + value);
}
}
}
--
GitLab