first commit

This commit is contained in:
编码猿
2024-09-27 02:06:13 +08:00
commit 852d94fbb9
36760 changed files with 3274413 additions and 0 deletions

View File

@@ -0,0 +1 @@
8005b59b-d812-4bc8-aae2-b49feb4d4a63

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,3 @@
{
"component": true
}

View File

@@ -0,0 +1,19 @@
<view class="wux-class {{ classes.wrap }}" style="{{ !enablePageScroll ? wrapStyle : '' }}">
<view class="{{ classes.mask }}" wx:if="{{ disableScroll }}" catchtouchmove="noop"></view>
<scroll-view
class="{{ classes.scrollView }}"
scroll-y="{{ !enablePageScroll && !disableScroll }}"
upper-threshold="{{ upperThreshold }}"
lower-threshold="{{ lowerThreshold }}"
scroll-top="{{ innerScrollOffset }}"
scroll-with-animation="{{ scrollWithAnimation }}"
enable-back-to-top="{{ enableBackToTop }}"
bindscroll="scrollHandler"
bindscrolltoupper="onScrollToUpper"
bindscrolltolower="onScrollToLower"
>
<view class="{{ classes.scrollArea }}" style="{{ virtual && virtual.style }}">
<slot></slot>
</view>
</scroll-view>
</view>

View File

@@ -0,0 +1 @@
.wux-virtual-list{position:relative;display:block;overflow:auto;height:auto}.wux-virtual-list__mask{position:absolute;left:0;top:0;z-index:2;width:100%;height:100%;background-color:transparent}.wux-virtual-list__scroll-view{width:100%;height:100%}

View File

@@ -0,0 +1 @@
"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.getVisibleItemBounds=exports.mapVirtualToProps=void 0;var mapVirtualToProps=function(t,e){var o=t.items,r=t.itemHeight,i=e.startIndex,s=e.endIndex,a=-1<s?o.slice(i,s+1):[],n=o.length*r,p=i*r;return{virtual:{items:a,style:"height: ".concat(n,"px; padding-top: ").concat(p,"px; box-sizing: border-box;")}}};exports.mapVirtualToProps=mapVirtualToProps;var getVisibleItemBounds=function(t,e,o,r,i){var s=Math.max(0,t),a=Math.max(0,Math.floor(s/r));return{startIndex:a,endIndex:Math.min(a+Math.ceil(e/r)+i-1,o)}};exports.getVisibleItemBounds=getVisibleItemBounds;