| | |
| | | <view class="main"> |
| | | <view class="title item-height">{{titleText}}</view> |
| | | <view class="input item-height"> |
| | | <input type="text" :placeholder="placeholderText" @input="input(val)" |
| | | <input type="text" :placeholder="placeholderText" @input="input" |
| | | placeholder-style="font-size:28rpx" v-model="val"> |
| | | </view> |
| | | </view> |
| | |
| | | type: [String, Number], |
| | | default: '' |
| | | } |
| | | }, |
| | | watch: { |
| | | value(val) { |
| | | this.val = val |
| | | }, |
| | | }, |
| | | created() { |
| | | this.val = this.value |
| | |
| | | }; |
| | | }, |
| | | methods: { |
| | | input(val) { |
| | | this.val = val |
| | | this.$emit('input',val); |
| | | input() { |
| | | this.$emit('input',this.val); |
| | | } |
| | | } |
| | | } |