engineering/public/admin/assets/preview.9ced20cb.js
2024-02-20 17:15:05 +08:00

2 lines
3.5 KiB
JavaScript

import{E as u}from"./element-plus.b3353ca6.js";import{e as _}from"./index.1b08477d.js";import{d,o as r,c as p,V as f,M as b,W as v,a8 as y,Q as s,a as h,I as k,L as C,R as V,u as x}from"./@vue.ab566ce7.js";import{_ as B}from"./index.892155dd.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"./attr.vue_vue_type_script_setup_true_lang.c894ba9e.js";import"./index.a32217c7.js";import"./picker.bdae437d.js";import"./index.771e5a41.js";import"./picker.c87c33d0.js";import"./index.c9c3d029.js";import"./index.vue_vue_type_script_setup_true_lang.f8e9523f.js";import"./index.vue_vue_type_script_setup_true_lang.a5118056.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.723079c9.js";import"./decoration-img.aaa79b68.js";import"./lodash.1d82ee7c.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.0cc496e7.js";import"./content.4179b558.js";import"./attr.vue_vue_type_script_setup_true_lang.d6f9cb18.js";import"./add-nav.vue_vue_type_script_setup_true_lang.d0982be7.js";import"./content.f3cb6f82.js";import"./attr.vue_vue_type_script_setup_true_lang.5a24334b.js";import"./content.vue_vue_type_script_setup_true_lang.81afa6e3.js";import"./attr.vue_vue_type_script_setup_true_lang.d4a01b37.js";import"./content.6bb18b92.js";import"./decoration.f68a613b.js";import"./attr.vue_vue_type_script_setup_true_lang.d755c81f.js";import"./content.b61ca333.js";import"./attr.vue_vue_type_script_setup_true_lang.ebad76b3.js";import"./content.vue_vue_type_script_setup_true_lang.78f5fa07.js";import"./attr.vue_vue_type_script_setup_true_lang.8af8a080.js";import"./content.932245e4.js";const D={class:"shadow mx-[30px] pages-preview"},E=["onClick"],N=d({__name:"preview",props:{pageData:{type:Array,default:()=>[]},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(m,{emit:l}){const n=(t,i)=>{t.disabled||l("update:modelValue",i)};return(t,i)=>{const c=u;return r(),p("div",D,[f(c,null,{default:b(()=>[(r(!0),p(v,null,y(m.pageData,(o,a)=>(r(),p("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:e=>n(o,a)},[h("div",{class:s(["absolute w-full h-full z-[100] border-dashed",{select:a==m.modelValue,"border-[#dcdfe6] border-2":!(o!=null&&o.disabled)}])},null,2),k(t.$slots,"default",{},()=>{var e;return[(r(),C(V((e=x(_)[o==null?void 0:o.name])==null?void 0:e.content),{content:o.content,styles:o.styles,key:o.id},null,8,["content","styles"]))]},!0)],10,E))),128))]),_:3})])}}});const jo=B(N,[["__scopeId","data-v-4eb981b5"]]);export{jo as default};