2 lines
3.7 KiB
JavaScript
2 lines
3.7 KiB
JavaScript
import{_ as V}from"./index.df78ca68.js";import{J as E,E as f,w as C}from"./element-plus.e43a9281.js";import{c as T,d as F}from"./decoration.8108b6dd.js";import k from"./menu.3edbe399.js";import{_ as P}from"./attr.vue_vue_type_script_setup_true_lang.257ddc84.js";import A from"./content.a245214b.js";import{d as v,r as M,$ as N,b as R,w as S,ap as U,o as p,c as I,a as s,W as i,Q as n,u as e,j as $,P as c,S as b,ad as j,ae as z,R as J,U as L}from"./@vue.340249d8.js";import{d as O}from"./index.191d3c47.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@element-plus.558a564d.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.5d871bc3.js";import"./axios.7bd66c25.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./lodash.e1b6d49d.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.92cf4b29.js";import"./color.10cd7b9e.js";import"./clone.3a905afa.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.95290f48.js";import"./vue-clipboard3.d7f6d60e.js";import"./clipboard.07d173e7.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./index.1e733008.js";import"./picker.ddd16269.js";import"./index.vue_vue_type_script_setup_true_lang.4e4b54d4.js";import"./usePaging.fff444fa.js";import"./article.3db58c69.js";import"./index.0321c0f3.js";import"./picker.d01f1b0c.js";import"./index.748aaa8d.js";import"./index.d983ee81.js";import"./index.vue_vue_type_script_setup_true_lang.efe6fcf6.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.77a75095.js";import"./vue.a889dc59.js";import"./sortablejs.9f315f39.js";import"./index.vue_vue_type_script_setup_true_lang.87bb859f.js";import"./decoration-img.b6172db0.js";const Q={attr:P,content:A},W={class:"decoration-tabbar"},q={class:"flex-1 min-h-0 w-full"},G={class:"h-full"},H={class:"flex min-w-[900px] scroll-view-content"},K={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=M("1"),l=N({[1]:{id:1,type:1,name:"\u79FB\u52A8\u7AEF\u5BFC\u822A\u680F",data:{style:{default_color:"",selected_color:""},list:[]},component:Q}}),r=R(()=>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 S(a,()=>{_()},{immediate:!0}),(t,m)=>{const h=E,u=f,w=f,y=C,g=V,B=U("perms");return p(),I("div",W,[s("div",q,[s("div",G,[i(w,null,{default:n(()=>[s("div",H,[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=>$(a)?a.value=o:null),menus:e(l)},null,8,["modelValue","menus"])]),_:1}),s("div",K,[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})])]),J((p(),c(g,{fixed:!0},{default:n(()=>[i(y,{type:"primary",onClick:x},{default:n(()=>[L("\u4FDD\u5B58")]),_:1})]),_:1})),[[B,["decorate:tabbar:save"]]])])}}});const eo=O(tt,[["__scopeId","data-v-f7a9692b"]]);export{eo as default};
|