WokerTask/public/admin/assets/preview.3c44c2a0.js

2 lines
3.5 KiB
JavaScript

import{E as u}from"./element-plus.b0ecf6ae.js";import{w as d}from"./index.d930792b.js";import{d as _,o as r,c as p,U as f,L as b,T as v,a7 as y,O as s,a as h,H as k,K as C,P as V,u as x}from"./@vue.51d7f2d8.js";import{d as B}from"./index.9e5a9063.js";import"./@vueuse.ec90c285.js";import"./@element-plus.c80b8015.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"./attr.vue_vue_type_script_setup_true_lang.33c9bc1c.js";import"./index.ba4432e6.js";import"./picker.fa1cff4f.js";import"./index.3a572f9b.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./picker.1e645783.js";import"./index.489298c9.js";import"./index.vue_vue_type_script_setup_true_lang.ebbecf1a.js";import"./index.073d2b63.js";import"./index.vue_vue_type_script_setup_true_lang.00eabce0.js";import"./usePaging.2ad8e1e6.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.884a7061.js";import"./vue.47d317a9.js";import"./sortablejs.263ac6c9.js";import"./content.vue_vue_type_script_setup_true_lang.bdeb3c5f.js";import"./decoration-img.1c3bd91a.js";import"./lodash.ffb5376d.js";import"./axios.f9df025a.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.4b0c77cb.js";import"./color.992612d2.js";import"./clone.d8d3ae9a.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./nprogress.f73355d0.js";import"./vue-clipboard3.dca5bca3.js";import"./clipboard.16e4491b.js";import"./echarts.ac57a99a.js";import"./zrender.d54ce080.js";import"./tslib.60310f1a.js";import"./highlight.js.dba6fa1b.js";import"./@highlightjs.40d5feba.js";import"./attr.vue_vue_type_script_setup_true_lang.bde89411.js";import"./content.682f9f8c.js";import"./attr.vue_vue_type_script_setup_true_lang.bbb1b4d0.js";import"./add-nav.vue_vue_type_script_setup_true_lang.f2541f4b.js";import"./content.2a75e0f4.js";import"./attr.vue_vue_type_script_setup_true_lang.6bae4197.js";import"./content.vue_vue_type_script_setup_true_lang.3b3a3ac1.js";import"./attr.vue_vue_type_script_setup_true_lang.d01577b5.js";import"./content.f229e546.js";import"./decoration.4d4cb62f.js";import"./attr.vue_vue_type_script_setup_true_lang.0fc534ba.js";import"./content.ddfc6c53.js";import"./attr.vue_vue_type_script_setup_true_lang.9ece0853.js";import"./content.vue_vue_type_script_setup_true_lang.98fb1fbd.js";import"./attr.vue_vue_type_script_setup_true_lang.00e826d0.js";import"./content.90545e3c.js";const D={class:"shadow mx-[30px] pages-preview"},E=["onClick"],N=_({__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(d)[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};