2025/2/8第一次更新

This commit is contained in:
爱吃咸鱼小猫咪
2025-02-08 18:50:38 +08:00
commit d7af560866
26519 changed files with 5046029 additions and 0 deletions
@@ -0,0 +1 @@
"use strict";const e=require("../../../../../../common/vendor.js");Math||o();const o=()=>"../../lazy-load/src/lazy-load.js",t=e.defineComponent({__name:"photo-album",props:e.photoAlbumProps,emits:e.photoAlbumEmits,setup(o,{emit:t}){const n=o,a=t,m=e.useNamespace("photo-album"),{imageData:r,imageClickEvent:d}=e.usePhotoAlbum(n,a),s=e.computed((()=>{const e={};let o=`calc(100% / ${n.column} - 20rpx)`;return e.width=e.paddingBottom=o,e}));return(o,t)=>({a:e.f(e.unref(r),((t,a,r)=>e.e(o.lazyLoad?{a:"d79d4130-0-"+r,b:e.p({src:t,mode:n.imgMode})}:{c:e.n(e.unref(m).e("item__image")),d:t,e:n.imgMode},{f:a,g:e.o((o=>e.unref(d)(a)),a)}))),b:o.lazyLoad,c:e.n(e.unref(m).e("item")),d:e.n(e.unref(m).e("container")),e:e.s(s.value),f:e.n(e.unref(m).b())})}}),n=e._export_sfc(t,[["__scopeId","data-v-d79d4130"]]);wx.createComponent(n);
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"tn-lazy-load": "../../lazy-load/src/lazy-load"
}
}
@@ -0,0 +1 @@
<view class="{{['data-v-d79d4130', f, virtualHostClass]}}" style="{{virtualHostStyle}}"><view wx:for="{{a}}" wx:for-item="item" wx:key="f" class="{{['data-v-d79d4130', d]}}" style="{{e}}" catchtap="{{item.g}}"><view class="{{['data-v-d79d4130', c]}}"><tn-lazy-load wx:if="{{b}}" class="data-v-d79d4130" virtualHostClass="data-v-d79d4130" u-i="{{item.a}}" bind:__l="__l" u-p="{{item.b}}"/><image wx:else class="{{['data-v-d79d4130', item.c]}}" src="{{item.d}}" mode="{{item.e}}"/></view></view></view>
@@ -0,0 +1 @@
.tn-photo-album.data-v-d79d4130{position:relative;width:100%;display:flex;flex-wrap:wrap}.tn-photo-album__container.data-v-d79d4130{flex-grow:0;flex-shrink:0;position:relative;height:0;margin:10rpx 20rpx 10rpx 0rpx}.tn-photo-album__item.data-v-d79d4130{position:absolute;left:0;top:0;width:100%;height:100%;border-radius:15rpx;background-color:var(--tn-color-gray-light)}.tn-photo-album__item__image.data-v-d79d4130{width:100%;height:100%;border-radius:inherit}