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=()=>"../../icon/src/icon.js",r=e.defineComponent({__name:"input",props:e.inputProps,emits:e.inputEmits,setup(n,{emit:r}){const t=n,u=r,{inputText:o,needStatusIcon:s,validateState:f,validateIcon:a,passwordVisible:i,passwordIcon:p,showIcon:c,disabled:l,showWordLimit:m,currentWordCount:d,togglePasswordVisible:h,inputInputEvent:w,inputFocusEvent:y,inputBlurEvent:g,clearClickEvent:x,confirmEvent:v,inputClickEvent:I}=e.useInput(t,u),{ns:C,inputClass:S,inputStyle:b,placeholderStyle:E,wordLimitClass:$,wordLimitStyle:_}=e.useInputCustomStyle(t,f,l);return(n,r)=>e.e({a:n.$slots.prefix},n.$slots.prefix?{b:e.n(e.unref(C).em("slot","left"))}:{},{c:"textarea"===n.type},"textarea"===n.type?{d:e.n(e.unref(C).e("base")),e:e.n(e.unref(C).e("textarea")),f:e.n(e.unref(C).is("custom-height",!!n.height)),g:e.unref(o),h:n.placeholder,i:e.unref(E),j:e.unref(l),k:n.maxlength,l:n.focus,m:n.confirmType,n:!n.height&&n.autoHeight,o:n.selectionStart,p:n.selectionEnd,q:n.cursorSpacing,r:n.showConfirmBar,s:e.o(((...n)=>e.unref(w)&&e.unref(w)(...n))),t:e.o(((...n)=>e.unref(y)&&e.unref(y)(...n))),v:e.o(((...n)=>e.unref(g)&&e.unref(g)(...n))),w:e.o(((...n)=>e.unref(v)&&e.unref(v)(...n)))}:{x:e.n(e.unref(C).e("base")),y:e.n(e.unref(C).e("input")),z:e.n(e.unref(C).em("input",n.type)),A:"password"===n.type||"select"===n.type?"text":n.type,B:e.unref(o),C:n.placeholder,D:"password"===n.type&&!e.unref(i),E:e.unref(E),F:e.unref(l)||"select"===n.type,G:n.maxlength,H:n.focus,I:n.confirmType,J:n.selectionStart,K:n.selectionEnd,L:n.cursorSpacing,M:n.showConfirmBar,N:e.o(((...n)=>e.unref(w)&&e.unref(w)(...n))),O:e.o(((...n)=>e.unref(y)&&e.unref(y)(...n))),P:e.o(((...n)=>e.unref(g)&&e.unref(g)(...n))),Q:e.o(((...n)=>e.unref(v)&&e.unref(v)(...n)))},{R:e.unref(c)},e.unref(c)?e.e({S:n.rightIcon},n.rightIcon?{T:e.p({name:n.rightIcon}),U:e.n(e.unref(C).em("icon","custom"))}:{},{V:"password"===n.type&&n.showPassword},"password"===n.type&&n.showPassword?{W:e.p({name:e.unref(p)}),X:e.n(e.unref(C).em("icon","password")),Y:e.o(((...n)=>e.unref(h)&&e.unref(h)(...n)))}:n.clearable&&e.unref(o)?{aa:e.p({name:"close"}),ab:e.n(e.unref(C).em("icon","clear")),ac:e.o(((...n)=>e.unref(x)&&e.unref(x)(...n)))}:{},{Z:n.clearable&&e.unref(o),ad:e.unref(f)&&e.unref(a)&&e.unref(s)},e.unref(f)&&e.unref(a)&&e.unref(s)?{ae:e.p({name:e.unref(a)}),af:e.n(e.unref(C).em("icon",`validate-${e.unref(f)}`))}:{},{ag:e.n(e.unref(C).e("icon"))}):{},{ah:n.$slots.suffix},n.$slots.suffix?{ai:e.n(e.unref(C).em("slot","right"))}:{},{aj:e.unref(m)},e.unref(m)?{ak:e.t(e.unref(d)),al:e.t(n.maxlength),am:e.n(e.unref($)),an:e.s(e.unref(_))}:{},{ao:e.n(e.unref(S)),ap:e.n(`${"textarea"===n.type?e.unref(C).m("textarea"):e.unref(C).m("input")}`),aq:e.n(e.unref(C).is("show-word-limit",e.unref(m))),ar:e.s(e.unref(b)),as:e.o(((...n)=>e.unref(I)&&e.unref(I)(...n)))})}}),t=e._export_sfc(r,[["__scopeId","data-v-b1f46cc7"]]);wx.createComponent(t);
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"tn-icon": "../../icon/src/icon"
}
}
@@ -0,0 +1 @@
<view class="{{['data-v-b1f46cc7', ao, ap, aq, virtualHostClass]}}" style="{{ar + ';' + virtualHostStyle}}" bindtap="{{as}}"><view wx:if="{{a}}" class="{{['data-v-b1f46cc7', b]}}"><slot name="prefix"/></view><textarea wx:if="{{c}}" class="{{['data-v-b1f46cc7', d, e, f]}}" value="{{g}}" placeholder="{{h}}" placeholder-style="{{i}}" disabled="{{j}}" maxlength="{{k}}" focus="{{l}}" confirm-type="{{m}}" auto-height="{{n}}" selection-start="{{o}}" selection-end="{{p}}" cursor-spacing="{{q}}" show-confirm-bar="{{r}}" bindinput="{{s}}" bindfocus="{{t}}" bindblur="{{v}}" bindconfirm="{{w}}"/><block wx:else><input wx:if="{{r0}}" class="{{['data-v-b1f46cc7', x, y, z]}}" type="{{A}}" value="{{B}}" placeholder="{{C}}" password="{{D}}" placeholder-style="{{E}}" disabled="{{F}}" maxlength="{{G}}" focus="{{H}}" confirm-type="{{I}}" selection-start="{{J}}" selection-end="{{K}}" cursor-spacing="{{L}}" show-confirm-bar="{{M}}" bindinput="{{N}}" bindfocus="{{O}}" bindblur="{{P}}" bindconfirm="{{Q}}"/></block><view wx:if="{{R}}" class="{{['data-v-b1f46cc7', ag]}}"><view wx:if="{{S}}" class="{{['data-v-b1f46cc7', U]}}"><tn-icon wx:if="{{T}}" class="data-v-b1f46cc7" virtualHostClass="data-v-b1f46cc7" u-i="b1f46cc7-0" bind:__l="__l" u-p="{{T}}"/></view><view wx:if="{{V}}" class="{{['data-v-b1f46cc7', X]}}" catchtap="{{Y}}"><tn-icon wx:if="{{W}}" class="data-v-b1f46cc7" virtualHostClass="data-v-b1f46cc7" u-i="b1f46cc7-1" bind:__l="__l" u-p="{{W}}"/></view><view wx:elif="{{Z}}" class="{{['data-v-b1f46cc7', ab]}}" catchtap="{{ac}}"><tn-icon wx:if="{{aa}}" class="data-v-b1f46cc7" virtualHostClass="data-v-b1f46cc7" u-i="b1f46cc7-2" bind:__l="__l" u-p="{{aa}}"/></view><view wx:if="{{ad}}" class="{{['data-v-b1f46cc7', af]}}"><tn-icon wx:if="{{ae}}" class="data-v-b1f46cc7" virtualHostClass="data-v-b1f46cc7" u-i="b1f46cc7-3" bind:__l="__l" u-p="{{ae}}"/></view></view><view wx:if="{{ah}}" class="{{['data-v-b1f46cc7', ai]}}"><slot name="suffix"/></view><view wx:if="{{aj}}" class="{{['data-v-b1f46cc7', am]}}" style="{{an}}">{{ak}} / {{al}}</view></view>
@@ -0,0 +1 @@
.tn-input.data-v-b1f46cc7{display:inline-flex;position:relative;width:100%;padding:16rpx;font-size:28rpx;border-radius:15rpx;overflow:auto}.tn-input--underline.data-v-b1f46cc7{border-radius:0}.tn-input--input.data-v-b1f46cc7{align-items:center}.tn-input--text-left .tn-input__base.data-v-b1f46cc7{text-align:left}.tn-input--text-right .tn-input__base.data-v-b1f46cc7{text-align:right}.tn-input--text-center .tn-input__base.data-v-b1f46cc7{text-align:center}.tn-input__base.data-v-b1f46cc7{flex-grow:1;position:relative;width:100%;background-color:transparent;color:inherit;font-size:inherit}.tn-input__textarea.is-custom-height.data-v-b1f46cc7{height:100%}.tn-input__input--select.data-v-b1f46cc7{z-index:1}.tn-input__input--select.data-v-b1f46cc7 .uni-input-input{z-index:-1}.tn-input__icon.data-v-b1f46cc7{display:flex;align-items:center;justify-content:center;position:relative;height:100%;padding-left:10rpx;line-height:1;color:var(--tn-color-gray)}.tn-input__icon [class*=validate].data-v-b1f46cc7{margin-left:6rpx}.tn-input__icon--validate-error.data-v-b1f46cc7{color:var(--tn-color-red)}.tn-input__icon--validate-success.data-v-b1f46cc7{color:var(--tn-color-green)}.tn-input--sm.data-v-b1f46cc7{padding:10rpx;font-size:24rpx}.tn-input--lg.data-v-b1f46cc7{padding:20rpx;font-size:32rpx}.tn-input--disabled.data-v-b1f46cc7{background-color:var(--tn-color-gray-light)}.tn-input__slot--left.data-v-b1f46cc7{margin-right:8rpx}.tn-input__slot--right.data-v-b1f46cc7{margin-left:8rpx}.tn-input.is-show-word-limit.data-v-b1f46cc7{padding-bottom:40rpx}.tn-input__word-limit.data-v-b1f46cc7{position:absolute;right:20rpx;bottom:10rpx;font-size:24rpx;line-height:1;display:flex;align-items:center}