2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{c as P}from"./element-plus.258bf9e7.js";import{d as V,by as j,e as B,a5 as _,o as e,c as o,a as n,V as r,M as f,W as h,a8 as v,u as s,S as D,Q as F,U as x,O as I,P as M,b7 as N,b6 as O}from"./@vue.ab566ce7.js";import{u as y}from"./useMenuOa.a2948920.js";import{m as A,_ as E}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.42e1f7e2.js";import"./lodash.1d82ee7c.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";const G=i=>(N("data-v-d95f9d8f"),i=i(),O(),i),L={class:"oa-phone mr-[35px]"},z=G(()=>n("div",{class:"oa-phone-content"},null,-1)),Q={class:"flex oa-phone-menu"},U={class:"flex items-center justify-center oa-phone-menu-switch"},W=["onClick"],$={class:"oa-phone-menu-subitem"},q=V({__name:"oa-phone",setup(i){j(S=>({"591d956f":s(b)}));const C=A(),b=B(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=y(y);return(S,l)=>{const k=_("Grid"),u=P,g=_("Plus");return e(),o("div",L,[z,n("div",Q,[n("div",U,[r(u,null,{default:f(()=>[r(k)]),_:1})]),(e(!0),o(h,null,v(s(m),(t,a)=>(e(),o("div",{key:a,class:"relative flex-1",onClick:d=>p.value=a},[n("div",{class:F(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":s(p)===a}])},x(t.name),3),I(n("div",$,[(e(!0),o(h,null,v(t.sub_button,(d,w)=>(e(),o("div",{key:w,class:"oa-phone-menu-subitem-title"},x(d.name),1))),128))],512),[[M,t.sub_button.length&&t.has_menu]])],8,W))),128)),s(m).length<=2?(e(),o("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...t)=>s(c)&&s(c)(...t))},[r(u,null,{default:f(()=>[r(g)]),_:1})])):D("",!0)])])}}});const Vt=E(q,[["__scopeId","data-v-d95f9d8f"]]);export{Vt as default};
|