优化页面
This commit is contained in:
@@ -1 +1 @@
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),r=require("../../../utils/env.js");Math||o();const o=()=>"../../common/Icon.js",a=e.defineComponent({__name:"index",props:{searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(o){const a=o,t=e.ref(),s=e.ref(!1),i=()=>{s.value=!s.value,!r.isUniFrameWork&&s.value&&e.O.listen({domRefs:t.value,handler:u})},c=e.ref([]),u=()=>{s.value=!1};return e.onMounted((()=>{c.value=[...e.R.getExtensionList(e.E.TUISearch.EXTENSION.SEARCH_MORE.EXT_ID)],e.R.callService({serviceName:e.E.TUIConversation.SERVICE.NAME,method:e.E.TUIConversation.SERVICE.METHOD.HIDE_CONVERSATION_HEADER,params:{}})})),e.watch((()=>s.value),(()=>{s.value&&e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:a.searchType})})),(o,a)=>e.e({a:e.p({file:e.unref(n.searchMoreSVG),width:e.unref(r.isPC)?"28px":"34px",height:e.unref(r.isPC)?"28px":"34px"}),b:e.o$1((e=>i())),c:e.unref(s)},e.unref(s)?{d:e.f(e.unref(c),((n,r,o)=>e.e({a:n.icon},n.icon?{b:"e08734bf-1-"+o,c:e.p({file:n.icon})}:{},{d:e.t(n.text),e:r,f:e.o$1((e=>(e=>{var n;const{listener:r={onClicked:()=>{}}}=e;null==(n=null==r?void 0:r.onClicked)||n.call(r,e),i()})(n)),r)})))}:{},{e:e.n(!e.unref(r.isPC)&&"tui-search-more-h5")})}}),t=e._export_sfc(a,[["__scopeId","data-v-e08734bf"]]);wx.createComponent(t);
|
||||
"use strict";const e=require("../../../../common/vendor.js");require("../../../adapter-vue.js");const n=require("../../../../common/assets.js"),r=require("../../../utils/env.js");Math||a();const a=()=>"../../common/Icon.js",o=e.defineComponent({__name:"index",props:{searchType:{type:String,default:"global",validator:e=>["global","conversation"].includes(e)}},setup(a){const o=a,t=e.ref(),s=e.ref(!1),i=()=>{s.value=!s.value,!r.isUniFrameWork&&s.value&&e.O.listen({domRefs:t.value,handler:u})},c=e.ref([]),u=()=>{s.value=!1};return e.onMounted((()=>{c.value=[...e.R.getExtensionList(e.E.TUISearch.EXTENSION.SEARCH_MORE.EXT_ID)],e.R.callService({serviceName:e.E.TUIConversation.SERVICE.NAME,method:e.E.TUIConversation.SERVICE.METHOD.HIDE_CONVERSATION_HEADER,params:{}})})),e.watch((()=>s.value),(()=>{s.value&&e.Jt.update(e.o.SEARCH,"currentSearchingStatus",{isSearching:!1,searchType:o.searchType})})),(a,o)=>e.e({a:e.p({file:e.unref(n.searchMoreSVG),width:e.unref(r.isPC)?"28px":"34px",height:e.unref(r.isPC)?"28px":"34px"}),b:e.o$1((e=>i())),c:e.unref(s)},e.unref(s)?{d:e.f(e.unref(c),((n,r,a)=>e.e({a:n.icon},n.icon?{b:"2dda292a-1-"+a,c:e.p({file:n.icon})}:{},{d:e.t(n.text),e:r,f:e.o$1((e=>(e=>{var n;const{listener:r={onClicked:()=>{}}}=e;null==(n=null==r?void 0:r.onClicked)||n.call(r,e),i()})(n)),r)})))}:{},{e:e.n(!e.unref(r.isPC)&&"tui-search-more-h5")})}}),t=e._export_sfc(o,[["__scopeId","data-v-2dda292a"]]);wx.createComponent(t);
|
||||
|
||||
@@ -1 +1 @@
|
||||
<view ref="searchMoreRef" class="{{['data-v-e08734bf', 'tui-search-more', e]}}"><view class="more data-v-e08734bf" bindtap="{{b}}"><icon wx:if="{{a}}" class="more-icon data-v-e08734bf" u-i="e08734bf-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{c}}" class="tui-search-more-list data-v-e08734bf"><view wx:for="{{d}}" wx:for-item="extension" wx:key="e" class="list-item data-v-e08734bf" bindtap="{{extension.f}}"><icon wx:if="{{extension.a}}" class="list-item-icon data-v-e08734bf" u-i="{{extension.b}}" bind:__l="__l" u-p="{{extension.c}}"/><view class="list-item-title data-v-e08734bf">{{extension.d}}</view></view></view></view>
|
||||
<view ref="searchMoreRef" class="{{['data-v-2dda292a', 'tui-search-more', e]}}"><view class="more data-v-2dda292a" bindtap="{{b}}"><icon wx:if="{{a}}" class="more-icon data-v-2dda292a" u-i="2dda292a-0" bind:__l="__l" u-p="{{a}}"/></view><view wx:if="{{c}}" class="tui-search-more-list data-v-2dda292a"><view wx:for="{{d}}" wx:for-item="extension" wx:key="e" class="list-item data-v-2dda292a" bindtap="{{extension.f}}"><icon wx:if="{{extension.a}}" class="list-item-icon data-v-2dda292a" u-i="{{extension.b}}" bind:__l="__l" u-p="{{extension.c}}"/><view class="list-item-title data-v-2dda292a">{{extension.d}}</view></view></view></view>
|
||||
@@ -1 +1 @@
|
||||
.tui-search-more.data-v-e08734bf{display:flex;flex-direction:column;position:relative}.tui-search-more .more.data-v-e08734bf{width:28px;height:28px;margin-right:6px}.tui-search-more-list.data-v-e08734bf{margin:10px 0;position:absolute;list-style:none;cursor:pointer;right:6px;top:20px;z-index:1000;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px}.tui-search-more-list .list-item.data-v-e08734bf{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:40px;padding:0 10px}.tui-search-more-list .list-item-icon.data-v-e08734bf{margin-right:2px}.tui-search-more-list .list-item-title.data-v-e08734bf{font-size:14px;text-wrap:nowrap;word-break:keep-all}.tui-search-more-h5 .more.data-v-e08734bf{width:34px;height:34px}
|
||||
.tui-search-more.data-v-2dda292a{display:flex;flex-direction:column;position:relative}.tui-search-more .more.data-v-2dda292a{width:28px;height:28px;margin-right:6px}.tui-search-more-list.data-v-2dda292a{margin:10px 0;position:absolute;list-style:none;cursor:pointer;right:6px;top:20px;z-index:1000;background:#fff;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding:0;box-shadow:rgba(0,0,0,.16) 0 3px 6px,rgba(0,0,0,.23) 0 3px 6px}.tui-search-more-list .list-item.data-v-2dda292a{display:flex;flex-direction:row;justify-content:space-between;align-items:center;height:40px;padding:0 10px}.tui-search-more-list .list-item-icon.data-v-2dda292a{margin-right:2px}.tui-search-more-list .list-item-title.data-v-2dda292a{font-size:14px;text-wrap:nowrap;word-break:keep-all}.tui-search-more-h5 .more.data-v-2dda292a{width:34px;height:34px}
|
||||
|
||||
Reference in New Issue
Block a user