在popup中使用了uni-number-box
(1)设置max为data中的数据
<uni-popup :show="type === 'middle-reasonlist-wastenNum'" position="middle" mode="fixed" @hidePopup="togglePopup('')">
<view class="uni-flex uni-row align-center jk-des margin-tb-sm">
<uni-number-box :value="wasteNumber" :min="0" :max="styleInfo.num" @change="changeWasteNumber"></uni-number-box>
</view>
</uni-popup>
(2)渲染报错:
Avoid mutating a prop directly since the value will be overwritten whenever the parent component re-renders. Instead, use a data or computed property based on the prop's value. Prop being mutated: "value"
s***@163.com
- 发布:2019-08-27 15:12
- 更新:2019-08-27 15:12
- 阅读:1676
0 个回复