2 lines
2.4 KiB
JavaScript
2 lines
2.4 KiB
JavaScript
import{c as P}from"./element-plus.eb2e53ea.js";import{d as V,bM as j,u as e,b as B,af as _,o,c as s,a as n,W as r,O as f,V as h,a7 as v,Q as D,U as x,P as F,X as I,S as M,bk as N,bj as O}from"./@vue.c3e77981.js";import{u as b}from"./useMenuOa.7a6a1d43.js";import{k as A,d as E}from"./index.82c98f71.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.16ed1fda.js";import"./axios.a8078129.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.b082b0c1.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.08c956d4.js";import"./lodash.a2abcd4b.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.975e80a5.js";import"./color.d986aa86.js";import"./clone.704d8332.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.ded7f805.js";import"./vue-clipboard3.987889a8.js";import"./clipboard.af74a91f.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.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"],X={class:"oa-phone-menu-subitem"},$=V({__name:"oa-phone",setup(i){j(y=>({"591d956f":e(C)}));const k=A(),C=B(()=>k.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=b(b);return(y,l)=>{const S=_("Grid"),d=P,g=_("Plus");return o(),s("div",L,[z,n("div",Q,[n("div",U,[r(d,null,{default:f(()=>[r(S)]),_:1})]),(o(!0),s(h,null,v(e(m),(t,a)=>(o(),s("div",{key:a,class:"relative flex-1",onClick:u=>p.value=a},[n("div",{class:D(["flex items-center justify-center flex-1 text-sm oa-phone-menu-item",{"active-menu":e(p)===a}])},x(t.name),3),F(n("div",X,[(o(!0),s(h,null,v(t.sub_button,(u,w)=>(o(),s("div",{key:w,class:"oa-phone-menu-subitem-title"},x(u.name),1))),128))],512),[[I,t.sub_button.length&&t.has_menu]])],8,W))),128)),e(m).length<=2?(o(),s("div",{key:0,class:"flex items-center justify-center flex-1 h-full",onClick:l[0]||(l[0]=(...t)=>e(c)&&e(c)(...t))},[r(d,null,{default:f(()=>[r(g)]),_:1})])):M("",!0)])])}}});const Pt=E($,[["__scopeId","data-v-d95f9d8f"]]);export{Pt as default};
|