2 lines
4.2 KiB
JavaScript
2 lines
4.2 KiB
JavaScript
import{_ as y}from"./index.25a763ba.js";import{C as V,w as b}from"./element-plus.517d4382.js";import B from"./menu.140daacf.js";import C from"./preview-pc.aa33724e.js";import{_ as P}from"./attr-setting.vue_vue_type_script_setup_true_lang.955f12f1.js";import"./index.5a9cf762.js";import{s as h,a as E}from"./decoration.0dd036b4.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.8b1962e9.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.b30ab882.js";import"./tslib.60310f1a.js";import"./zrender.3760070d.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.62ff6725.js";import"./attr.vue_vue_type_script_setup_true_lang.af0b5e5a.js";import"./index.0a0ddda3.js";import"./picker.fe9e67a7.js";import"./index.b17dae19.js";import"./picker.6eb62d2f.js";import"./index.ee772d81.js";import"./index.vue_vue_type_script_setup_true_lang.5ae95555.js";import"./index.vue_vue_type_script_setup_true_lang.f8507404.js";import"./usePaging.f6660143.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.bc25388b.js";import"./decoration-img.b2c91106.js";import"./attr.vue_vue_type_script_setup_true_lang.71b382f4.js";import"./content.fb8633fb.js";import"./attr.vue_vue_type_script_setup_true_lang.0c22d3f6.js";import"./add-nav.vue_vue_type_script_setup_true_lang.51d11432.js";import"./content.1e70c053.js";import"./attr.vue_vue_type_script_setup_true_lang.407a7b96.js";import"./content.vue_vue_type_script_setup_true_lang.340f70c5.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.194c14ab.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.77a4522b.js";import"./attr.vue_vue_type_script_setup_true_lang.f9d54c53.js";import"./content.vue_vue_type_script_setup_true_lang.6600aa19.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.71147d7a.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 ie=T(j,[["__scopeId","data-v-0627c615"]]);export{ie as default};
|