weui-miniprogram icon indicating copy to clipboard operation
weui-miniprogram copied to clipboard

slideview 异常

Open andekai opened this issue 6 years ago • 1 comments

点击按钮slideview 组件时出现以下异常信息

Component "components/slideview/slideview" does not have a method "function (nv_event,nv_ownerInstance){var nv_ins = nv_event.nv_instance;var nv_st = nv_ins.nv_getState();if (!nv_st.nv_size || !nv_st.nv_isMoving)return;;nv_st.nv_isMoving = false;var nv_btns = nv_ownerInstance.nv_selectAllComponents('.btn');var nv_len = nv_btns.nv_length;var nv_i = nv_len - 1;if (Math.nv_abs(nv_event.nv_changedTouches[(0)].nv_pageX - nv_st.nv_startX) < nv_st.nv_throttle || nv_event.nv_changedTouches[(0)].nv_pageX - nv_st.nv_startX > 0){nv_st.nv_out = false;nv_ins.nv_setStyle(({'nv_transform':'translate3d(0px, 0, 0)','nv_transition':'transform 0.4s',}));for(;nv_i >= 0;nv_i--){nv_btns[((nt_12=(nv_i),null==nt_12?undefined:'number'=== typeof nt_12?nt_12:"nv_"+nt_12))].nv_setStyle(({'nv_transform':'translate3d(0px, 0, 0)','nv_transition':'transform 0.4s',}))};nv_ownerInstance.nv_callMethod('hide');return};var nv_movex = nv_st.nv_max;nv_st.nv_out = true;nv_ins.nv_setStyle(({'nv_transform':'translate3d(' + (-nv_movex) + 'px, 0, 0)','nv_transition':'transform 0.4s',}));nv_st.nv_transformx = -nv_movex;var nv_transformTotal = 0;for(;nv_i >= 0;nv_i--){var nv_transform = nv_st.nv_size.nv_buttons[((nt_13=(nv_i),null==nt_13?undefined:'number'=== typeof nt_13?nt_13:"nv_"+nt_13))].nv_width / nv_st.nv_max * nv_movex;var nv_transformx = (-(nv_transform + nv_transformTotal));nv_btns[((nt_14=(nv_i),null==nt_14?undefined:'number'=== typeof nt_14?nt_14:"nv_"+nt_14))].nv_setStyle(({'nv_transform':'translate3d(' + nv_transformx + 'px, 0, 0)','nv_transition':'transform 0.4s',}));nv_st.nv_size.nv_buttons[((nt_15=(nv_i),null==nt_15?undefined:'number'=== typeof nt_15?nt_15:"nv_"+nt_15))].nv_transformx = nv_transformx;nv_transformTotal += nv_transform};nv_ownerInstance.nv_callMethod('show')}" to handle event "touchend".

andekai avatar Sep 29 '19 09:09 andekai

麻烦提供下代码片段看下

cunjinli6 avatar Sep 29 '19 12:09 cunjinli6