s***@163.com
s***@163.com
  • 发布:2019-08-27 15:12
  • 更新:2019-08-27 15:12
  • 阅读:1692

#插件讨论# 【 Popup 弹出层 - DCloud 】在uni-popup中使用了uni-number-box时设置max报错

分类:uni-app

在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"

2019-08-27 15:12 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复