This commit is contained in:
2020-01-14 15:25:22 +08:00
parent 5f652d6183
commit 67682de4c7
13 changed files with 143 additions and 49 deletions

View File

@@ -4,8 +4,8 @@ Component({
* 组件的属性列表
*/
properties: {
title:String,
placeholder:String
title: String,
placeholder: String
},
/**
@@ -19,6 +19,8 @@ Component({
* 组件的方法列表
*/
methods: {
input(a) {
this.triggerEvent("input",{value:a.detail.value})
}
}
})

View File

@@ -1,4 +1,4 @@
<view class="orderyf">
<view class="left">{{title}}</view>
<input class="right" placeholder="{{placeholder}}"></input>
<input class="right" bindinput="input" placeholder="{{placeholder}}"></input>
</view>