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||n();const n=()=>"../../popup/src/popup.js",r=e.defineComponent({__name:"picker",props:e.pickerProps,emits:e.pickerEmits,setup(n,{expose:r}){const o=n,{openPopup:t,showPicker:c,pickerData:i,currentPickerIndex:u,closePopupEvent:s,pickerViewChangeEvent:f,confirmEvent:a,cancelEvent:p,initDefaultPickerIndex:l,resetPickerIndexWithPosition:m}=e.usePicker(o),{ns:d,overlayOpacity:k,operationBtnClass:v,operationBtnStyle:x}=e.usePickerCustomStyle(o);return r({resetPickerViewIndex:()=>{l()},resetPickerIndexWithPosition:m}),(n,r)=>e.e({a:n.showCancel},n.showCancel?{b:e.t(o.cancelText),c:e.n(e.unref(v)("cancel")),d:e.s(e.unref(x)("cancel")),e:e.o(((...n)=>e.unref(p)&&e.unref(p)(...n)))}:{},{f:e.t(o.confirmText),g:e.n(e.unref(v)("confirm")),h:e.s(e.unref(x)("confirm")),i:e.o(((...n)=>e.unref(a)&&e.unref(a)(...n))),j:e.n(e.unref(d).e("operation")),k:e.n(e.unref(d).is("only-confirm",!n.showCancel)),l:e.unref(c)},e.unref(c)?{m:e.f(e.unref(i),((n,r,o)=>({a:e.f(n,((n,r,o)=>({a:e.t(n.label),b:r}))),b:r}))),n:e.n(e.unref(d).em("content-item","data")),o:e.n(e.unref(d).e("content-item")),p:e.n(e.unref(d).e("picker-view-column")),q:e.n(e.unref(d).e("picker-view")),r:e.unref(u),s:e.o(((...n)=>e.unref(f)&&e.unref(f)(...n)))}:{},{t:e.n(e.unref(d).e("content")),v:e.n(e.unref(d).b()),w:e.o(e.unref(s)),x:e.o((n=>e.isRef(t)?t.value=n:null)),y:e.p({"open-direction":"bottom",overlay:!0,"overlay-opacity":e.unref(k),radius:0,"safe-area-inset-bottom":!1,"z-index":n.zIndex,modelValue:e.unref(t)})})}}),o=e._export_sfc(r,[["__scopeId","data-v-4c4f040c"]]);wx.createComponent(o);
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"tn-popup": "../../popup/src/popup"
}
}
@@ -0,0 +1 @@
<tn-popup wx:if="{{y}}" u-s="{{['d']}}" bindclose="{{w}}" u-i="4c4f040c-0" bind:__l="__l" bindupdateModelValue="{{x}}" u-p="{{y}}" class="{{['data-v-4c4f040c', virtualHostClass]}}" virtualHostClass="{{['data-v-4c4f040c', virtualHostClass]}}" style="{{virtualHostStyle}}" virtualHostStyle="{{virtualHostStyle}}"><view class="{{['tn-u-safe-area', 'data-v-4c4f040c', v]}}"><view class="{{['data-v-4c4f040c', j, k]}}"><view wx:if="{{a}}" class="{{['data-v-4c4f040c', c]}}" style="{{d}}" catchtap="{{e}}"><block wx:if="{{$slots.cancel}}"><slot name="cancel"></slot></block><block wx:else>{{b}}</block></view><view class="{{['data-v-4c4f040c', g]}}" style="{{h}}" catchtap="{{i}}"><block wx:if="{{$slots.confirm}}"><slot name="confirm"></slot></block><block wx:else>{{f}}</block></view></view><view class="{{['data-v-4c4f040c', t]}}"><picker-view wx:if="{{l}}" class="{{['data-v-4c4f040c', q]}}" value="{{r}}" bindchange="{{s}}"><picker-view-column wx:for="{{m}}" wx:for-item="item" wx:key="b" class="{{['data-v-4c4f040c', p]}}"><view wx:for="{{item.a}}" wx:for-item="dItem" wx:key="b" class="{{['data-v-4c4f040c', o]}}"><view class="{{['tn-text-ellipsis-1', 'data-v-4c4f040c', n]}}">{{dItem.a}}</view></view></picker-view-column></picker-view></view></view></tn-popup>
@@ -0,0 +1 @@
.tn-picker.data-v-4c4f040c{position:relative;width:100%;border-radius:30rpx 30rpx 0rpx 0rpx;box-shadow:0 0 40rpx 4rpx rgba(0,0,0,.1)}.tn-picker__operation.data-v-4c4f040c{position:relative;width:100%;display:flex;align-items:center;justify-content:space-between;padding:30rpx 0rpx;font-size:30rpx}.tn-picker__operation.is-only-confirm.data-v-4c4f040c{justify-content:flex-end}.tn-picker__operation-btn.data-v-4c4f040c{padding:0rpx 30rpx}.tn-picker__content.data-v-4c4f040c{position:relative;width:100%;height:440rpx;padding:0rpx 30rpx 20rpx}.tn-picker__content-item.data-v-4c4f040c{display:flex;align-items:center;justify-content:center}.tn-picker__content-item--data.data-v-4c4f040c{width:100%;height:-moz-fit-content;height:fit-content;text-align:center}.tn-picker__picker-view.data-v-4c4f040c{flex-grow:1;height:100%}