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"),o={name:"u-search",mixins:[e.mpMixin,e.mixin,e.props$10],data(){return{keyword:"",showClear:!1,show:!1,focused:this.focus}},watch:{keyword(e){this.$emit("update:modelValue",e),this.$emit("change",e)},modelValue:{immediate:!0,handler(e){this.keyword=e}}},computed:{showActionBtn(){return!this.animation&&this.showAction}},emits:["clear","search","custom","focus","blur","click","clickIcon","update:modelValue","change"],methods:{addStyle:e.addStyle,addUnit:e.addUnit,inputChange(e){this.keyword=e.detail.value},clear(){this.keyword="",this.$nextTick((()=>{this.$emit("clear")}))},search(o){this.$emit("search",o.detail.value);try{e.index.hideKeyboard()}catch(t){}},custom(){this.$emit("custom",this.keyword);try{e.index.hideKeyboard()}catch(o){}},getFocus(){this.focused=!0,this.animation&&this.showAction&&(this.show=!0),this.$emit("focus",this.keyword)},blur(){setTimeout((()=>{this.focused=!1}),100),this.show=!1,this.$emit("blur",this.keyword)},clickHandler(){this.disabled&&this.$emit("click")},clickIcon(o){this.$emit("clickIcon",this.keyword);try{e.index.hideKeyboard()}catch(t){}}}};if(!Array){e.resolveComponent("u-icon")()}Math;const t=e._export_sfc(o,[["render",function(o,t,i,c,s,a){return e.e({a:o.$slots.label||null!==o.label},o.$slots.label||null!==o.label?{b:e.t(o.label)}:{},{c:e.o(a.clickIcon),d:e.p({size:o.searchIconSize,name:o.searchIcon,color:o.searchIconColor?o.searchIconColor:o.color}),e:e.o(((...e)=>a.blur&&a.blur(...e))),f:s.keyword,g:e.o(((...e)=>a.search&&a.search(...e))),h:e.o(((...e)=>a.inputChange&&a.inputChange(...e))),i:o.disabled,j:e.o(((...e)=>a.getFocus&&a.getFocus(...e))),k:o.focus,l:o.maxlength,m:o.adjustPosition,n:o.autoBlur,o:o.placeholder,p:`color: ${o.placeholderColor}`,q:e.s({textAlign:o.inputAlign,color:o.color,backgroundColor:o.bgColor,height:a.addUnit(o.height)}),r:e.s(o.inputStyle),s:s.keyword&&o.clearabled&&s.focused},s.keyword&&o.clearabled&&s.focused?{t:e.p({name:"close",size:"11",color:"#ffffff",customStyle:"line-height: 12px"}),v:e.o(((...e)=>a.clear&&a.clear(...e)))}:{},{w:o.bgColor,x:"round"==o.shape?"100px":"4px",y:o.borderColor,z:e.t(o.actionText),A:e.s(o.actionStyle),B:e.n((a.showActionBtn||s.show)&&"u-search__action--active"),C:e.o(((...e)=>a.custom&&a.custom(...e))),D:e.o(((...e)=>a.clickHandler&&a.clickHandler(...e))),E:e.s({margin:o.margin}),F:e.s(a.addStyle(o.customStyle))})}],["__scopeId","data-v-9c758f09"]]);wx.createComponent(t);
@@ -0,0 +1,6 @@
{
"component": true,
"usingComponents": {
"u-icon": "../u-icon/u-icon"
}
}
@@ -0,0 +1 @@
<view bindtap="{{D}}" style="{{E + ';' + F + ';' + virtualHostStyle}}" class="{{['u-search', 'data-v-9c758f09', virtualHostClass]}}"><view class="u-search__content data-v-9c758f09" style="{{'background-color:' + w + ';' + ('border-radius:' + x) + ';' + ('border-color:' + y)}}"><block wx:if="{{a}}"><block wx:if="{{$slots.label}}"><slot name="label"></slot></block><block wx:else><text class="u-search__content__label data-v-9c758f09">{{b}}</text></block></block><view class="u-search__content__icon data-v-9c758f09"><u-icon wx:if="{{d}}" class="data-v-9c758f09" virtualHostClass="data-v-9c758f09" bindtap="{{c}}" u-i="9c758f09-0" bind:__l="__l" u-p="{{d}}"></u-icon></view><input confirm-type="search" bindblur="{{e}}" value="{{f}}" bindconfirm="{{g}}" bindinput="{{h}}" disabled="{{i}}" bindfocus="{{j}}" focus="{{k}}" maxlength="{{l}}" adjust-position="{{m}}" auto-blur="{{n}}" placeholder-class="u-search__content__input--placeholder" placeholder="{{o}}" placeholder-style="{{p}}" class="u-search__content__input data-v-9c758f09" type="text" style="{{q + ';' + r}}"/><view wx:if="{{s}}" class="u-search__content__icon u-search__content__close data-v-9c758f09" bindtap="{{v}}"><u-icon wx:if="{{t}}" class="data-v-9c758f09" virtualHostClass="data-v-9c758f09" u-i="9c758f09-1" bind:__l="__l" u-p="{{t}}"></u-icon></view></view><text style="{{A}}" class="{{['u-search__action', 'data-v-9c758f09', B]}}" catchtap="{{C}}">{{z}}</text></view>
@@ -0,0 +1 @@
.u-empty.data-v-9c758f09,.u-empty__wrap.data-v-9c758f09,.u-tabs.data-v-9c758f09,.u-tabs__wrapper.data-v-9c758f09,.u-tabs__wrapper__scroll-view-wrapper.data-v-9c758f09,.u-tabs__wrapper__scroll-view.data-v-9c758f09,.u-tabs__wrapper__nav.data-v-9c758f09,.u-tabs__wrapper__nav__line.data-v-9c758f09,.up-empty.data-v-9c758f09,.up-empty__wrap.data-v-9c758f09,.up-tabs.data-v-9c758f09,.up-tabs__wrapper.data-v-9c758f09,.up-tabs__wrapper__scroll-view-wrapper.data-v-9c758f09,.up-tabs__wrapper__scroll-view.data-v-9c758f09,.up-tabs__wrapper__nav.data-v-9c758f09,.up-tabs__wrapper__nav__line.data-v-9c758f09{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-search.data-v-9c758f09{display:flex;flex-direction:row;align-items:center;flex:1}.u-search__content.data-v-9c758f09{display:flex;flex-direction:row;align-items:center;padding:0 10px;flex:1;justify-content:space-between;border-width:1px;border-color:transparent;border-style:solid;overflow:hidden}.u-search__content__icon.data-v-9c758f09{display:flex;flex-direction:row;align-items:center}.u-search__content__label.data-v-9c758f09{color:#303133;font-size:14px;margin:0 4px}.u-search__content__close.data-v-9c758f09{width:20px;height:20px;border-radius:100px;background-color:#c6c7cb;display:flex;flex-direction:row;align-items:center;justify-content:center;transform:scale(.82)}.u-search__content__input.data-v-9c758f09{flex:1;font-size:14px;line-height:1;margin:0 5px;color:#303133}.u-search__content__input--placeholder.data-v-9c758f09{color:#909193}.u-search__action.data-v-9c758f09{font-size:14px;color:#303133;width:0;overflow:hidden;transition-property:width;transition-duration:.3s;white-space:nowrap;text-align:center}.u-search__action--active.data-v-9c758f09{width:40px;margin-left:5px}