suyuan/public/admin/assets/oa-phone.81364048.js

2 lines
2.5 KiB
JavaScript

import{c as P}from"./element-plus.fbdc16f2.js";import{d as V,by as j,e as B,a4 as _,o as e,c as o,a as n,U as r,L as f,V as h,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 y}from"./useMenuOa.36fc6801.js";import{l as O,d as A}from"./index.eedb7e65.js";import"./@vueuse.1e5a6e21.js";import"./@element-plus.196c7323.js";import"./lodash-es.29c53eac.js";import"./dayjs.03adc6f0.js";import"./axios.3eae2260.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.f6178817.js";import"./lodash.e154233a.js";import"./vue-router.12d45bc3.js";import"./pinia.dfca86b4.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.31dc130b.js";import"./color.b6d632a4.js";import"./clone.7a47b02c.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.3a33898e.js";import"./ms.a9ae1d6d.js";import"./nprogress.c495a36d.js";import"./vue-clipboard3.d4154da9.js";import"./clipboard.7105729c.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-d95f9d8f"),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=>({"591d956f":s(b)}));const C=O(),b=B(()=>C.theme||"#4A5DFF"),{menuList:m,menuIndex:p,handleAddMenu:c}=y(y);return(k,l)=>{const S=_("Grid"),d=P,g=_("Plus");return e(),o("div",G,[z,n("div",R,[n("div",T,[r(d,null,{default:f(()=>[r(S)]),_:1})]),(e(!0),o(h,null,v(s(m),(t,a)=>(e(),o("div",{key:a,class:"relative flex-1",onClick:u=>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,(u,w)=>(e(),o("div",{key:w,class:"oa-phone-menu-subitem-title"},x(u.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(d,null,{default:f(()=>[r(g)]),_:1})])):D("",!0)])])}}});const jt=A(q,[["__scopeId","data-v-d95f9d8f"]]);export{jt as default};