fields=day的时候app会报错,取消后app出原生样式,
接修复及原生单
- 发布:2023-03-14 15:19
- 更新:2023-03-15 11:38
- 阅读:108
picker组件中mode = date时的错误
分类:nvue
接修复及原生单 (作者)
10:03:53.733 [Vue warn]: Unhandled error during execution of native event handler
at <Pickermode="date"fields="day"value="2023-03-17" ...>
at <Datepickerstart=30time="2023-03-17"onTime=fn<bound time_select>>
at <AddbabypageId=5pagePath="pages/lifetime/addbaby/addbaby"pageQuery={}>
10:03:53.740 [JS Framework] Failed to invoke the event handler of "click" on view (10118):
ReferenceError: uniConfig is not defined
10:03:53.756 reportJSException >>>> exception function:WEEX_CALL_JAVASCRIPT, exception:JavaScript execute error!Uncaught ReferenceError: __uniConfig is not defined
at Kt (uni-jsframework.js:2:7574)
at Ie (uni-jsframework.js:2:40215)
at He (uni-jsframework.js:2:41065)
at _t (uni-jsframework.js:2:41094)
at Ht (uni-jsframework.js:6:1762)
at In (uni-jsframework.js:6:1849)
at h (uni-jsframework.js:16:15431)
at fireEvent (uni-jsframework.js:18:11179)
at fireEvent (uni-jsframework.js:32:248072)
at IN (uni-jsframework.js:19:3873)
上面是报错
<picker mode="date" fields="day" :value="date" :start="startDate" :end="endDate" @change="bindDateChange">
<view :class="class_">{{date}}</view>
</picker>
这是代码片段
去掉fields="day"后会弹出原生的界面 加上去就报错
2023-03-17 10:05
DCloud_UNI_WZF
回复 5***@qq.com: 提供可复现的测试工程
2023-03-17 10:42