2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{_ as y}from"./index.6f7221a5.js";import{C as V,w as b}from"./element-plus.258bf9e7.js";import B from"./menu.d6517ef5.js";import C from"./preview-pc.2ae62126.js";import{_ as P}from"./attr-setting.vue_vue_type_script_setup_true_lang.be564d52.js";import"./index.c5b91f96.js";import{s as h,a as E}from"./decoration.b25b786a.js";import"./lodash.1d82ee7c.js";import{d as _,a0 as N,r as l,e as c,w as k,ai as I,o as d,c as S,V as i,M as s,O as M,L as O,a as F,u,T as J}from"./@vue.ab566ce7.js";import{_ as T}from"./index.ec401e3b.js";import"./@vueuse.8fcae4c2.js";import"./@element-plus.b89f1627.js";import"./lodash-es.49f4af13.js";import"./dayjs.4afe12d3.js";import"./axios.37fc980d.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./vue-router.87ebc608.js";import"./pinia.b6700c26.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.d0bec2c9.js";import"./color.ea90db3f.js";import"./clone.cbd692e6.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.ad6bc3c0.js";import"./ms.a9ae1d6d.js";import"./nprogress.bcdf1f46.js";import"./vue-clipboard3.c45111bf.js";import"./clipboard.1cb79a0d.js";import"./echarts.50cbfcc9.js";import"./tslib.60310f1a.js";import"./zrender.a255a587.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./attr.vue_vue_type_script_setup_true_lang.4ae63624.js";import"./index.7a6cc892.js";import"./picker.f1021c28.js";import"./index.9492d03b.js";import"./picker.4547601e.js";import"./index.59cb12da.js";import"./index.vue_vue_type_script_setup_true_lang.60e89e82.js";import"./index.vue_vue_type_script_setup_true_lang.84fcd2ee.js";import"./usePaging.f6660143.js";import"./file.vue_vue_type_style_index_0_scoped_5ccc0f84_lang.e4e8877b.js";import"./vue3-video-play.b66b1487.js";import"./vuedraggable.05ef589e.js";import"./vue.6436c619.js";import"./sortablejs.81b741d7.js";import"./content.vue_vue_type_script_setup_true_lang.abf2a72b.js";import"./decoration-img.bd7b8284.js";import"./attr.vue_vue_type_script_setup_true_lang.afd77cca.js";import"./content.f62dbe7a.js";import"./attr.vue_vue_type_script_setup_true_lang.9020e00d.js";import"./add-nav.vue_vue_type_script_setup_true_lang.da62d4a6.js";import"./content.5cd012b8.js";import"./attr.vue_vue_type_script_setup_true_lang.979c9cce.js";import"./content.vue_vue_type_script_setup_true_lang.a9db47e5.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.639b0b89.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.b038d327.js";import"./attr.vue_vue_type_script_setup_true_lang.1dbcafd0.js";import"./content.vue_vue_type_script_setup_true_lang.4eabcd5f.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.42c53fe6.js";const U={class:"decoration-pages min-w-[1100px]"},W={class:"flex h-full items-start"},L=J("\u4FDD\u5B58"),$=_({name:"decorationPc"}),j=_({...$,setup(q){const a=N({[4]:{id:4,type:4,name:"\u9996\u9875\u88C5\u4FEE",pageData:[]}}),o=l("4"),r=l(0),p=c(()=>{var e,t;return(t=(e=a[o.value])==null?void 0:e.pageData)!=null?t:[]}),f=c(()=>{var e,t;return(t=(e=a[o.value])==null?void 0:e.pageData[r.value])!=null?t:""}),n=async()=>{const e=await E({id:o.value});a[String(e.id)].pageData=JSON.parse(e.data),r.value=p.value.findIndex(t=>!t.disabled)},v=async()=>{await h({...a[o.value],data:JSON.stringify(a[o.value].pageData)}),n()};return k(o,()=>{r.value=p.value.findIndex(e=>!e.disabled),n()},{immediate:!0}),(e,t)=>{const g=V,x=b,D=y,w=I("perms");return d(),S("div",U,[i(g,{shadow:"never",class:"!border-none flex-1 flex","body-style":{flex:1}},{default:s(()=>[F("div",W,[i(B,{modelValue:o.value,"onUpdate:modelValue":t[0]||(t[0]=m=>o.value=m),menus:a},null,8,["modelValue","menus"]),i(C,{class:"mx-4",modelValue:r.value,"onUpdate:modelValue":t[1]||(t[1]=m=>r.value=m),pageData:u(p)},null,8,["modelValue","pageData"]),i(P,{class:"flex-1",widget:u(f),type:"pc"},null,8,["widget"])])]),_:1}),M((d(),O(D,{class:"mt-4",fixed:!1},{default:s(()=>[i(x,{type:"primary",onClick:v},{default:s(()=>[L]),_:1})]),_:1})),[[w,["decorate:pages:save"]]])])}}});const pe=T(j,[["__scopeId","data-v-0627c615"]]);export{pe as default};
|