This commit is contained in:
asd
2019-12-20 14:03:59 +08:00
parent 6bc644c5ec
commit e50c0b269c
14 changed files with 356 additions and 52 deletions

View File

@@ -6,7 +6,7 @@ Component({
properties: {
left: String,
right: String,
ifarrow: Boolean
ifarrow: Boolean,
},
/**
@@ -20,6 +20,12 @@ Component({
* 组件的方法列表
*/
methods: {
}
get(e){
// console.log(e)
this.triggerEvent('myevent', e.detail.value)
},
choose(e){
}
}
})

View File

@@ -1,11 +1,11 @@
<view class="shuru">
<view class="left">{{left}}</view>
<view class="right"wx:if="{{ifarrow}}">
<view class="right"wx:if="{{ifarrow}}" bindtap="choose">
<text class="shurupla">{{right}}</text>
<view class="arrow"></view>
</view>
<view class="right" wx:else>
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value=""/>
<input type="text" placeholder-class="shurupla" class="shuru1" placeholder="{{right}}" value="" bindinput="get" no="0" data-left="{{left}}"/>
</view>
</view>