毕设
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
6.3 KiB

1 year ago
(self["webpackChunkuview2_0_cli"]=self["webpackChunkuview2_0_cli"]||[]).push([[1080],{72164:function(t,e,i){var n=i(12059);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(56).Z;s("3f0ff4f5",n,!0,{sourceMap:!1,shadowMode:!1})},73015:function(t,e,i){var n=i(63128);n.__esModule&&(n=n.default),"string"===typeof n&&(n=[[t.id,n,""]]),n.locals&&(t.exports=n.locals);var s=i(56).Z;s("7241ac7d",n,!0,{sourceMap:!1,shadowMode:!1})},69493:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return h}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-view",{ref:"u-list-item-"+t.anchor,staticClass:"u-list-item",class:["u-list-item-"+t.anchor],attrs:{anchor:"u-list-item-"+t.anchor}},[t._t("default")],2)},l=[],r=(i(82772),i(41539),i(9653),{props:{anchor:{type:[String,Number],default:uni.$u.props.listItem.anchor}}}),u={name:"u-list-item",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],data:function(){return{rect:{},index:0,show:!0,sys:uni.$u.sys()}},computed:{},inject:["uList"],watch:{"uList.innerScrollTop":function(t){var e=this.uList.preLoadScreen,i=this.sys.windowHeight;t<=i*e?this.parent.updateOffsetFromChild(0):this.rect.top<=t-i*e&&this.parent.updateOffsetFromChild(this.rect.top)}},created:function(){this.parent={}},mounted:function(){this.init()},methods:{init:function(){this.updateParentData(),this.index=this.parent.children.indexOf(this),this.resize()},updateParentData:function(){this.getParentData("u-list")},resize:function(){var t=this;this.queryRect("u-list-item-".concat(this.anchor)).then((function(e){var i=t.parent.children[t.index-1];t.rect=e;var n=t.uList.preLoadScreen,s=t.sys.windowHeight;i&&(t.rect.top=i.rect.top+i.rect.height),e.top>=t.uList.innerScrollTop+(1+n)*s&&(t.show=!1)}))},queryRect:function(t){var e=this;return new Promise((function(i){e.$uGetRect(".".concat(t)).then((function(t){i(t)}))}))}}},a=u,c=(i(72164),i(69453)),p=(0,c.Z)(a,o,l,!1,null,"686b42e6",null,!1,n,s),h=p.exports},71590:function(t,e,i){"use strict";var n;i.d(e,{Z:function(){return h}});var s,o=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("v-uni-scroll-view",{staticClass:"u-list",style:[t.listStyle],attrs:{"scroll-into-view":t.scrollIntoView,"scroll-y":!0,"scroll-top":Number(t.scrollTop),"lower-threshold":Number(t.lowerThreshold),"upper-threshold":Number(t.upperThreshold),"show-scrollbar":t.showScrollbar,"enable-back-to-top":t.enableBackToTop,"scroll-with-animation":t.scrollWithAnimation},on:{scroll:function(e){arguments[0]=e=t.$handleEvent(e),t.onScroll.apply(void 0,arguments)},scrolltolower:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltolower.apply(void 0,arguments)},scrolltoupper:function(e){arguments[0]=e=t.$handleEvent(e),t.scrolltoupper.apply(void 0,arguments)}}},[i("v-uni-view",[t._t("default")],2)],1)},l=[],r=(i(9653),{props:{showScrollbar:{type:Boolean,default:uni.$u.props.list.showScrollbar},lowerThreshold:{type:[String,Number],default:uni.$u.props.list.lowerThreshold},upperThreshold:{type:[String,Number],default:uni.$u.props.list.upperThreshold},scrollTop:{type:[String,Number],default:uni.$u.props.list.scrollTop},offsetAccuracy:{type:[String,Number],default:uni.$u.props.list.offsetAccuracy},enableFlex:{type:Boolean,default:uni.$u.props.list.enableFlex},pagingEnabled:{type:Boolean,default:uni.$u.props.list.pagingEnabled},scrollable:{type:Boolean,default:uni.$u.props.list.scrollable},scrollIntoView:{type:String,default:uni.$u.props.list.scrollIntoView},scrollWithAnimation:{type:Boolean,default:uni.$u.props.list.scrollWithAnimation},enableBackToTop:{type:Boolean,default:uni.$u.props.list.enableBackToTop},height:{type:[String,Number],default:uni.$u.props.list.height},width:{type:[String,Number],default:uni.$u.props.list.width},preLoadScreen:{type:[String,Number],default:uni.$u.props.list.preLoadScreen}}}),u={name:"u-list",mixins:[uni.$u.mpMixin,uni.$u.mixin,r],watch:{scrollIntoView:function(t){this.scrollIntoViewById(t)}},data:function(){return{innerScrollTop:0,offset:0,sys:uni.$u.sys()}},computed:{listStyle:function(){var t={},