2024-06-25 16:56:14 +08:00
|
|
|
import{_ as V}from"./index.ce38b77c.js";import{I as E,E as f,w as C}from"./element-plus.0a93cab1.js";import{c as T,d as F}from"./decoration.3bf01d3c.js";import k from"./menu.b63f97d3.js";import{_ as M}from"./attr.vue_vue_type_script_setup_true_lang.b42f71ca.js";import P from"./content.c44bb14f.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.f0edef73.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"./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";import"./index.841b95f7.js";import"./picker.bd28119b.js";import"./index.vue_vue_type_script_setup_true_lang.3863431c.js";import"./usePaging.d25ebf19.js";import"./article.98abe412.js";import"./index.7aed2c51.js";import"./picker.95684f92.js";import"./index.0b0a4c61.js";import"./index.7bc9048f.js";import"./index.vue_vue_type_script_setup_true_lang.3a6265a0.js";import"./vue3-video-play.4813c60b.js";import"./vuedraggable.5825c4b1.js";import"./vue.74758107.js";import"./sortablejs.275d9d20.js";import"./index.vue_vue_type_script_setup_true_lang.8ebf0fa3.js";import"./decoration-img.2dc341c6.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};
|