multiStoreAdmin/build/store/assets/tabbar.402914cb.js

2 lines
3.6 KiB
JavaScript

import{_ as V}from"./index.dbd0126e.js";import{I as E,E as f,w as C}from"./element-plus.9175fe58.js";import{c as T,d as F}from"./decoration.27da8197.js";import k from"./menu.e04a8fc7.js";import{_ as M}from"./attr.vue_vue_type_script_setup_true_lang.91bd203f.js";import P from"./content.5042601b.js";import{d as v,r as A,a0 as I,b as N,w as R,am as O,o as p,c as S,a as s,W as i,O as n,u as e,j as U,M as c,R as b,ag as j,ah as z,P as L,T as W}from"./@vue.c3e77981.js";import{d as $}from"./index.026c5631.js";import"./@vueuse.a48d0173.js";import"./@element-plus.12c58ce2.js";import"./lodash-es.2b5acb28.js";import"./dayjs.1f51da93.js";import"./axios.13991fdc.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"./lodash.6c5d06b3.js";import"./vue-router.43c06794.js";import"./pinia.b5130627.js";import"./css-color-function.23ed6179.js";import"./color.9c368256.js";import"./clone.e9277309.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.212df0f4.js";import"./vue-clipboard3.f310ddad.js";import"./clipboard.141ef824.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.b8b719e9.js";import"./index.225dc555.js";import"./picker.c21f8f4f.js";import"./index.vue_vue_type_script_setup_true_lang.0fb3ad1e.js";import"./usePaging.d25ebf19.js";import"./article.d24c7223.js";import"./index.2c1fd077.js";import"./picker.90497432.js";import"./index.b8bc489b.js";import"./index.3cfd8e7d.js";import"./index.vue_vue_type_script_setup_true_lang.5e44b2ed.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.39068026.js";import"./vue.ecf7f5ee.js";import"./sortablejs.a3e32c99.js";import"./index.vue_vue_type_script_setup_true_lang.a4bd6b7c.js";import"./decoration-img.5a40d757.js";const q={attr:M,content:P},G={class:"decoration-tabbar"},H={class:"flex-1 min-h-0 w-full"},J={class:"h-full"},K={class:"flex min-w-[900px] scroll-view-content"},Q={class:"flex-1 pages-preview-box"},X={class:"pages-preview mx-[30px]"},Y={class:"px-5 pb-5"},Z=v({name:"decorationTabbar"}),tt=v({...Z,setup(ot){let d;(t=>{t.MOBILE="1",t.PC="2"})(d||(d={}));const a=A("1"),l=I({[1]:{id:1,type:1,name:"\u79FB\u52A8\u7AEF\u5BFC\u822A\u680F",data:{style:{default_color:"",selected_color:""},list:[]},component:q}}),r=N(()=>l[a.value]),_=async()=>{const t=await T({type:a.value});l[1].data=t},x=async()=>{const{data:t}=r.value;await F({...t}),_()};return R(a,()=>{_()},{immediate:!0}),(t,m)=>{const h=E,u=f,w=f,g=C,y=V,B=O("perms");return p(),S("div",G,[s("div",H,[s("div",J,[i(w,null,{default:n(()=>[s("div",K,[i(h,{shadow:"never",class:"!border-none flex","body-style":{"padding-right":0}},{default:n(()=>[i(k,{class:"!h-full flex-none",modelValue:e(a),"onUpdate:modelValue":m[0]||(m[0]=o=>U(a)?a.value=o:null),menus:e(l)},null,8,["modelValue","menus"])]),_:1}),s("div",Q,[s("div",X,[i(u,{height:"100%"},{default:n(()=>{var o;return[(p(),c(b((o=e(r).component)==null?void 0:o.content),j(z(e(r).data)),null,16))]}),_:1})])]),i(u,{class:"attr-setting flex-none"},{default:n(()=>{var o;return[s("div",Y,[(p(),c(b((o=e(r).component)==null?void 0:o.attr),{modelValue:e(r).data,"onUpdate:modelValue":m[1]||(m[1]=D=>e(r).data=D)},null,8,["modelValue"]))])]}),_:1})])]),_:1})])]),L((p(),c(y,{fixed:!0},{default:n(()=>[i(g,{type:"primary",onClick:x},{default:n(()=>[W("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["decorate:tabbar:save"]]])])}}});const oo=$(tt,[["__scopeId","data-v-f7a9692b"]]);export{oo as default};