| | |
| | | @touchstart="evt => handleTouchStart()" |
| | | @touchmove="evt => handleTouchMove(evt)" |
| | | ></view> |
| | | <view class="current"><text class="text">{{current}}</text></view> |
| | | <view class="current"> |
| | | <text |
| | | class="text m-text-ignore" |
| | | v-if="current===''" |
| | | >(请拖动)</text> |
| | | <text |
| | | class="text" |
| | | v-else |
| | | >{{current}}</text> |
| | | </view> |
| | | </view> |
| | | </view> |
| | | <view class="btn"> |
| | |
| | | return { |
| | | opened: false, |
| | | rect: { width: 0, left: 0 }, |
| | | current: 0, |
| | | current: '', |
| | | sliderLeft: 0, |
| | | }; |
| | | }, |
| | | computed: { |
| | | valueStr() { |
| | | if (this.itemRes.formData[this.itemRes.name]) { |
| | | if ( |
| | | this.itemRes.formData[this.itemRes.name] || |
| | | this.itemRes.formData[this.itemRes.name] === 0 |
| | | ) { |
| | | return this.itemRes.formData[this.itemRes.name] + ' ' + this.unit; |
| | | } else { |
| | | return ''; |