diff --git a/examples/hello-uniapp/common/uni.css b/examples/hello-uniapp/common/uni.css index 3c0871eac305de45f6c819b22864e3ca3ab97175..b7a82cc93fe2344c8891792d7496758be7c3a89c 100644 --- a/examples/hello-uniapp/common/uni.css +++ b/examples/hello-uniapp/common/uni.css @@ -44,6 +44,10 @@ form { .uni-inline-item text{ margin-right: 20upx; } +.uni-inline-item text:last-child{ + margin-right: 0upx; + margin-left: 20upx; +} /* page */ .uni-page-head{ 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 de35d9e55257417655d6b9372760181022fe7f97..d903037ae38e7a1f5009651a27523e05fdc7f8d5 100644 --- a/examples/hello-uniapp/pages/template/number-box/number-box.vue +++ b/examples/hello-uniapp/pages/template/number-box/number-box.vue @@ -22,12 +22,17 @@ + + + + 行内应用 购买数量 : - + + {{numberValue3}} @@ -40,7 +45,9 @@ data() { return { title: 'number-box', - numberValue: 0 + numberValue: 0, + numberValue2 : 5, + numberValue3 : 0 } }, components: { @@ -50,7 +57,8 @@ onNumberChange(value) { this.numberValue = value; }, - onNumberChange2(value) { + onNumberChange3(value) { + this.numberValue3 = value; console.log('购买数量 : ' + value); } }