data_center/public/admin/assets/preview-pc.ba78a759.js

2 lines
3.6 KiB
JavaScript

import{e as u}from"./index.ade5f456.js";import{d,o as r,c as p,T as _,a7 as f,O as s,a as y,_ as v,H as b,K as k,P as h,u as C}from"./@vue.53f8d7c3.js";import{d as V}from"./index.b57b84f0.js";import"./attr.vue_vue_type_script_setup_true_lang.5dd3ab68.js";import"./element-plus.9c2fdfa8.js";import"./@vueuse.038954e7.js";import"./@element-plus.37f92579.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./@ctrl.82a509e0.js";import"./@popperjs.36402333.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./index.b370dd86.js";import"./picker.2c9cd9c1.js";import"./index.3fc23cf2.js";import"./index.vue_vue_type_style_index_0_scoped_187b1ead_lang.33043b78.js";import"./picker.5ad7fc14.js";import"./index.a9321345.js";import"./index.vue_vue_type_script_setup_true_lang.261df48b.js";import"./index.06c1697f.js";import"./index.vue_vue_type_script_setup_true_lang.aa03e8e3.js";import"./usePaging.c22e2b6f.js";import"./vue3-video-play.65ddc377.js";import"./vuedraggable.c7bbafb5.js";import"./vue.a327c52f.js";import"./sortablejs.cb65aecb.js";import"./content.vue_vue_type_script_setup_true_lang.cb0ba886.js";import"./decoration-img.dcabf528.js";import"./lodash.5512e984.js";import"./axios.92474d72.js";import"./vue-router.e2f4a118.js";import"./pinia.bd103f5d.js";import"./vue-demi.ebc8116b.js";import"./css-color-function.ee641d3d.js";import"./color.cbc2f3a9.js";import"./clone.7fddbad2.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.a7d78d4d.js";import"./ms.a9ae1d6d.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.8d7a50ae.js";import"./zrender.1084fa23.js";import"./tslib.60310f1a.js";import"./highlight.js.4ebdf9a4.js";import"./@highlightjs.9cf3e967.js";import"./attr.vue_vue_type_script_setup_true_lang.34f31355.js";import"./content.f1a5edad.js";import"./attr.vue_vue_type_script_setup_true_lang.89741c1d.js";import"./add-nav.vue_vue_type_script_setup_true_lang.d1d665bc.js";import"./content.3433b81b.js";import"./attr.vue_vue_type_script_setup_true_lang.4b2b04c7.js";import"./content.vue_vue_type_script_setup_true_lang.2ded593e.js";import"./attr.vue_vue_type_script_setup_true_lang.6aa74a67.js";import"./content.16ec59b4.js";import"./decoration.17f04f2c.js";import"./attr.vue_vue_type_script_setup_true_lang.6e3bb62f.js";import"./content.0959fdc9.js";import"./attr.vue_vue_type_script_setup_true_lang.7d8c1f73.js";import"./content.vue_vue_type_script_setup_true_lang.6170a32a.js";import"./attr.vue_vue_type_script_setup_true_lang.6aefd81d.js";import"./content.d94591e4.js";const B={class:"pages-preview"},P=["onClick"],x=d({__name:"preview-pc",props:{pageData:{type:Array,default:()=>[]},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(m,{emit:l}){const n=l,c=(t,i)=>{t.disabled||n("update:modelValue",i)};return(t,i)=>(r(),p("div",B,[(r(!0),p(_,null,f(m.pageData,(o,a)=>(r(),p("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:e=>c(o,a)},[y("div",{class:s(["absolute w-full h-full z-[100] border-dashed",{select:a==m.modelValue,"border-[#dcdfe6] border-2":!(o!=null&&o.disabled)}]),style:v(o.styles)},null,6),b(t.$slots,"default",{},()=>{var e;return[(r(),k(h((e=C(u)[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,P))),128))]))}});const qo=V(x,[["__scopeId","data-v-7e9e2ca0"]]);export{qo as default};