Commit 40ada899 authored by Damon's avatar Damon

perf: 选择物料优化

parent fe6979d0
<template>
<view class="u-flex parts">
<view class="u-flex left" v-if="showChecked">
<view class="u-flex parts" @click="selectChange">
<view class="u-flex left" v-if="showChecked" @tap.stop.prevent>
<u-checkbox v-model="info.checked" @change="selectChange" shape="circle" width="30rpx"></u-checkbox>
</view>
<view class="u-flex right">
......@@ -62,7 +62,7 @@
return images ? process.uniEnv.systemUrl.apiUrl + images : process.uniEnv.qn_base_url + 'morentupian.png'
},
selectChange(event) {
this.$emit('selectChange', event.value)
this.$emit('selectChange', event.value ? event.value : !this.info.checked)
},
numChange(event) {
this.$emit('numChange', event.value)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment