9 lines
72 KiB
JavaScript
9 lines
72 KiB
JavaScript
|
import{_ as e}from"./u-icon.e3aa4770.js";import{V as t,W as o,D as r,h as n,i as a,w as i,S as l,d as s,u,c as d,r as c,aa as p,aD as h,aE as m,p as g,q as f,E as v,F as b,G as y,H as x,m as w,x as _,j as C,l as S,J as D,K as k,n as E,$ as R,t as T,L as I,M as O,aF as N,aG as A,ao as W,X as M,aH as H,ag as P,aI as B,aj as z,Y as j,a0 as F,aJ as X,aK as Y,U as L,a1 as G,ac as U,aL as $}from"./index-849cf30e.js";import{p as q,_ as V}from"./u-image.5cc88b24.js";import{_ as K}from"./_plugin-vue_export-helper.1b428a4d.js";import{_ as J}from"./app-link.vue_vue_type_script_setup_true_lang.d62f9cf3.js";import{_ as Z}from"./u-avatar.2111318d.js";import{_ as Q,a as ee}from"./u-tabbar.9997804a.js";const te=K({name:"u--image",mixins:[t,q,o],components:{uvImage:V},emits:["click","error","load"]},[["render",function(e,t,o,s,u,d){const c=r("uvImage");return n(),a(c,{src:e.src,mode:e.mode,width:e.width,height:e.height,shape:e.shape,radius:e.radius,lazyLoad:e.lazyLoad,showMenuByLongpress:e.showMenuByLongpress,loadingIcon:e.loadingIcon,errorIcon:e.errorIcon,showLoading:e.showLoading,showError:e.showError,fade:e.fade,webp:e.webp,duration:e.duration,bgColor:e.bgColor,customStyle:e.customStyle,onClick:t[0]||(t[0]=t=>e.$emit("click")),onError:t[1]||(t[1]=t=>e.$emit("error")),onLoad:t[2]||(t[2]=t=>e.$emit("load"))},{loading:i((()=>[l(e.$slots,"loading")])),error:i((()=>[l(e.$slots,"error")])),_:3},8,["src","mode","width","height","shape","radius","lazyLoad","showMenuByLongpress","loadingIcon","errorIcon","showLoading","showError","fade","webp","duration","bgColor","customStyle"])}]]),oe=K(s({__name:"index",props:["component","index","pullDownRefreshCount"],setup(t){const o=t,r=u(),l=d((()=>"decorate"==r.mode?r.value[o.index]:o.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottomRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-right-radius:"+2*l.value.bottomRounded+"rpx;"),e})),I=c([]);p((()=>o.pullDownRefreshCount),((e,t)=>{})),h((()=>{O(),"decorate"==r.mode&&p((()=>l.value),((e,t)=>{e&&"AddonList"==e.componentName&&O()}))}));const O=()=>{"decorate"==r.mode&&l.value.list.forEach(((e,t)=>{""==e.icon&&(e.icon="static/resource/images/diy/figure.png"),""==e.title&&(e.title="应用名称")})),0==l.value.list.length?m({}).then((e=>{I.value=e.data})):I.value=l.value.list};return(t,o)=>{const r=g(f("u-icon"),e),l=g(f("u--image"),te),u=T;return n(),a(u,{style:E(w(s))},{default:i((()=>[(n(!0),v(b,null,y(I.value,((e,t)=>(n(),a(u,{key:e.id,class:x(["item flex align-center p-[20rpx] mb-[20rpx]",{"border-solid border-t-0 border-l-0 border-r-0 border-b border-gray-200":I.value.length-1!==t}]),onClick:t=>{return o=e.url,void R({url:o});var o}},{default:i((()=>[e.icon?(n(),a(l,{key:0,width:"120rpx",height:"120rpx",src:w(_)(e.icon),class:"rounded-md overflow-hidden",model:"aspectFill"},{error:i((()=>[C(r,{name:"photo",color:"#999",size:"60"})])),_:2},1032,["src"])):S("v-if",!0),C(u,{class:"flex-1 flex flex-col justify-center ml-[20rpx]"},{default:i((()=>[C(u,{class:"text-sm leading-[1.3] using-hidden"},{default:i((()=>[D(k(e.title),1)])),_:2},1024),C(u,{class:"text-xs text-[#999] mt-[8rpx] leading-[1.6] multi-hidden"},{default:i((()=>[D(k(e.desc),1)])),_:2},1024)])),_:2},1024)])),_:2},1032,["class","onClick"])))),128))])),_:1},8,["style"])}}}),[["__scopeId","data-v-a13755df"]]),re=K(s({__name:"index",props:["component","index","pullDownRefresh"],setup(t){const o=t,r=u(),l=d((()=>"decorate"==r.mode?r.value[o.index]:o.component)),s=d((()=>{var e="";return l.value.componentBgColor&&(e+="background-color:"+l.value.componentBgColor+";"),l.value.topRounded&&(e+="border-top-left-radius:"+2*l.value.topRounded+"rpx;"),l.value.topRounded&&(e+="border-top-right-radius:"+2*l.value.topRounded+"rpx;"),l.value.bottomRounded&&(e+="border-bottom-left-radius:"+2*l.value.bottom
|
||
|
/**!
|
||
|
* Sortable 1.15.0
|
||
|
* @author RubaXa <trash@rubaxa.org>
|
||
|
* @author owenm <owen23355@gmail.com>
|
||
|
* @license MIT
|
||
|
*/
|
||
|
function pe(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,r)}return o}function he(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?pe(Object(o),!0).forEach((function(t){ge(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):pe(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function me(e){return(me="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function ge(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function fe(){return fe=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var o=arguments[t];for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(e[r]=o[r])}return e},fe.apply(this,arguments)}function ve(e,t){if(null==e)return{};var o,r,n=function(e,t){if(null==e)return{};var o,r,n={},a=Object.keys(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||(n[o]=e[o]);return n}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)o=a[r],t.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(e,o)&&(n[o]=e[o])}return n}function be(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}var ye=be(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),xe=be(/Edge/i),we=be(/firefox/i),_e=be(/safari/i)&&!be(/chrome/i)&&!be(/android/i),Ce=be(/iP(ad|od|hone)/i),Se=be(/chrome/i)&&be(/android/i),De={capture:!1,passive:!1};function ke(e,t,o){e.addEventListener(t,o,!ye&&De)}function Ee(e,t,o){e.removeEventListener(t,o,!ye&&De)}function Re(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(o){return!1}return!1}}function Te(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Ie(e,t,o,r){if(e){o=o||document;do{if(null!=t&&(">"===t[0]?e.parentNode===o&&Re(e,t):Re(e,t))||r&&e===o)return e;if(e===o)break}while(e=Te(e))}return null}var Oe,Ne=/\s+/g;function Ae(e,t,o){if(e&&t)if(e.classList)e.classList[o?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Ne," ").replace(" "+t+" "," ");e.className=(r+(o?" "+t:"")).replace(Ne," ")}}function We(e,t,o){var r=e&&e.style;if(r){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(o=e.currentStyle),void 0===t?o:o[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=o+("string"==typeof o?"":"px")}}function Me(e,t){var o="";if("string"==typeof e)o=e;else do{var r=We(e,"transform");r&&"none"!==r&&(o=r+" "+o)}while(!t&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(o)}function He(e,t,o){if(e){var r=e.getElementsByTagName(t),n=0,a=r.length;if(o)for(;n<a;n++)o(r[n],n);return r}return[]}function Pe(){var e=document.scrollingElement;return e||document.documentElement}function Be(e,t,o,r,n){if(e.getBoundingClientRect||e===window){var a,i,l,s,u,d,c;if(e!==window&&e.parentNode&&e!==Pe()?(i=(a=e.getBoundingClientRect()).top,l=a.left,s=a.bottom,u=a.right,d=a.height,c=a.width):(i=0,l=0,s=window.innerHeight,u=window.innerWidth,d=window.innerHeight,c=window.innerWidth),(t||o)&&e!==window&&(n=n||e.parentNode,!ye))do{if(n&&n.getBoundingClientRect&&("none"!==We(n,"transform")||o&&"static"!==We(n,"position"))){var p=n.getBoundingClientRect();i-=p.top+parseInt(We(n,"border-top-width")),l-=p.left+parseInt(We(n,"border-left-width")),s=i+a.height,u=l+a.width;break}}while(n=n.parentNode);if(r&&e!==window){var h=Me(n||e),m=h&&h.a,g=h&&h.d;h&&(s=(i/=g)+(d/=g),u=(l/=m)
|