2 lines
2.5 KiB
JavaScript
2 lines
2.5 KiB
JavaScript
import{c as P}from"./element-plus.bb5d129a.js";import{d as V,by as j,e as B,a4 as d,o as e,c as o,a as n,U as r,L as h,V as f,a7 as v,u as s,R as D,P as F,T as x,M as I,O as L,b7 as M,b6 as N}from"./@vue.e8706010.js";import{u as b}from"./useMenuOa.9fa1b8b0.js";import{k as O,d as A}from"./index.69ffdd93.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.c5177e7a.js";import"./axios.ba5f746b.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./wx_oa.8987cf12.js";import"./lodash.5226da61.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.cc41886d.js";import"./vue-clipboard3.7988db4f.js";import"./clipboard.cb7a871d.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.2cdc8407.js";const E=i=>(M("data-v-3ba084df"),i=i(),N(),i),G={class:"oa-phone mr-[35px]"},z=E(()=>n("div",{class:"oa-phone-content"},null,-1)),R={class:"flex oa-phone-menu"},T={class:"flex items-center justify-center oa-phone-menu-switch"},U=["onClick"],$={class:"oa-phone-menu-subitem"},q=V({__name:"oa-phone",setup(i){j(k=>({"2d48fecc":s(C)}));const y=O(),C=B(()=>y.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=b(b);return(k,l)=>{const S=d("Grid"),u=P,g=d("Plus");return e(),o("div",G,[z,n("div",R,[n("div",T,[r(u,null,{default:h(()=>[r(S)]),_:1})]),(e(!0),o(f,null,v(s(m),(t,a)=>(e(),o("div",{key:a,class:"relative flex-1",onClick:_=>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(f,null,v(t.sub_button,(_,w)=>(e(),o("div",{key:w,class:"oa-phone-menu-subitem-title"},x(_.name),1))),128))],512),[[L,t.sub_button.length&&t.has_menu]])],8,U))),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:h(()=>[r(g)]),_:1})])):D("",!0)])])}}});const jt=A(q,[["__scopeId","data-v-3ba084df"]]);export{jt as default};
|