| | |
| | | :value="itemRes.formData[itemRes.name]" |
| | | :onChange="evt=>itemRes.onChange(evt)" |
| | | > |
| | | <view |
| | | class="c-input-scan-btn" |
| | | @tap="evt => handleScan()" |
| | | ></view> |
| | | <view class="c-input-scan-space"></view> |
| | | <AtButton |
| | | class="c-input-scan-show" |
| | | class="c-input-scan-btn" |
| | | size="small" |
| | | type="primary" |
| | | :onClick="evt => handleScan()" |
| | | > |
| | | <text v-show="!scaning">扫描</text> |
| | | <AtIcon |
| | |
| | | if (this.onScaning) { |
| | | this.onScaning(res => { |
| | | this.scaning = false; |
| | | this.itemRes.onChange(res.result); |
| | | if (res.result) { |
| | | this.itemRes.onChange(res.result); |
| | | } |
| | | }); |
| | | } |
| | | } |