import{_ as B}from"./index-BwK8zDrs.js";import{H as C,s as f,h as E}from"./element-plus-z3MwpXC9.js";import{c as T,d as k}from"./decoration-BKETkxh7.js";import M from"./menu-BwbePDD9.js";import{_ as N}from"./attr.vue_vue_type_script_setup_true_lang-SdBDXmef.js";import P from"./content-BckIMvp4.js";import{d as v,r as S,Z as I,b as L,w as O,an as R,o as l,c as U,a as i,V as n,M as m,u as e,i as j,L as c,Q as b,ai as z,aj as H,O as Q,S as Z}from"./@vue-TMcuEboY.js";import{d as $}from"./index-DXEGVToZ.js";import"./lodash-es-R-kYiKr_.js";import"./async-validator-DKvM95Vc.js";import"./@element-plus-DRBc1Xzw.js";import"./dayjs-CMfar2R3.js";import"./balanced-match-mNcR6oh4.js";import"./@ctrl-r5W6hzzQ.js";import"./normalize-wheel-es-B6fDCfyv.js";import"./@popperjs-D9SI2xQl.js";import"./nprogress-Cgf5DU8x.js";import"./vue-router-D4MxfuQi.js";import"./pinia-ebUeA1L2.js";import"./axios-C-n2IhIP.js";import"./lodash-BtPWuHkK.js";import"./@vueuse-BQYVjZ5N.js";import"./css-color-function-rJvg8h-6.js";import"./color-B0v57BL7.js";import"./clone-CuIhj1wH.js";import"./color-convert-BGgJB5UM.js";import"./color-name-BQ5IbGbl.js";import"./color-string-BhgG7-8u.js";import"./ms-CzQ2E3wO.js";import"./vue-clipboard3-8CNoFg4V.js";import"./clipboard-Dch_ozqB.js";import"./echarts-BR_QmBtV.js";import"./tslib-BDyQ-Jie.js";import"./zrender-B-CeXLwU.js";import"./highlight.js-D5uP1KGk.js";import"./@highlightjs-KJi31KWJ.js";import"./index-BhjDDGVa.js";import"./picker-Cx07Sp9S.js";import"./index-CdmO5-Ss.js";import"./index-CUrZWbP0.js";import"./index.vue_vue_type_script_setup_true_lang-Bd2lff9j.js";import"./index-DywnEBie.js";import"./index.vue_vue_type_script_setup_true_lang-CMdP8z-B.js";import"./usePaging-DFi_nJOG.js";import"./vue3-video-play-xg7gp0Bu.js";import"./vuedraggable-OYPBN08G.js";import"./vue-CHxGqOme.js";import"./sortablejs-DdgKbxid.js";import"./index.vue_vue_type_script_setup_true_lang-Cj_-Ra1I.js";import"./decoration-img-m1qrTxwn.js";const q={attr:N,content:P},A={class:"decoration-tabbar"},F={class:"flex-1 min-h-0 w-full"},G={class:"h-full"},J={class:"flex min-w-[900px] scroll-view-content"},K={class:"flex-1 pages-preview-box"},W={class:"pages-preview mx-[30px]"},X={class:"px-5 pb-5"},Y=v({name:"decorationTabbar"}),tt=v({...Y,setup(ot){let d;(t=>{t.MOBILE="1",t.PC="2"})(d||(d={}));const a=S("1"),p=I({1:{id:1,type:1,name:"移动端导航栏",data:{style:{default_color:"",selected_color:""},list:[]},component:q}}),r=L(()=>p[a.value]),_=async()=>{const t=await T({type:a.value});p[1].data=t},x=async()=>{const{data:t}=r.value;await k({...t}),_()};return O(a,()=>{_()},{immediate:!0}),(t,s)=>{const h=C,u=f,w=f,g=E,y=B,V=R("perms");return l(),U("div",A,[i("div",F,[i("div",G,[n(w,null,{default:m(()=>[i("div",J,[n(h,{shadow:"never",class:"!border-none flex","body-style":{"padding-right":0}},{default:m(()=>[n(M,{class:"!h-full flex-none",modelValue:e(a),"onUpdate:modelValue":s[0]||(s[0]=o=>j(a)?a.value=o:null),menus:e(p)},null,8,["modelValue","menus"])]),_:1}),i("div",K,[i("div",W,[n(u,{height:"100%"},{default:m(()=>{var o;return[(l(),c(b((o=e(r).component)==null?void 0:o.content),z(H(e(r).data)),null,16))]}),_:1})])]),n(u,{class:"attr-setting flex-none"},{default:m(()=>{var o;return[i("div",X,[(l(),c(b((o=e(r).component)==null?void 0:o.attr),{modelValue:e(r).data,"onUpdate:modelValue":s[1]||(s[1]=D=>e(r).data=D)},null,8,["modelValue"]))])]}),_:1})])]),_:1})])]),Q((l(),c(y,{fixed:!0},{default:m(()=>[n(g,{type:"primary",onClick:x},{default:m(()=>s[2]||(s[2]=[Z("保存")])),_:1})]),_:1})),[[V,["decorate:tabbar:save"]]])])}}}),Xt=$(tt,[["__scopeId","data-v-182a0b32"]]);export{Xt as default};
