2 lines
3.6 KiB
JavaScript
2 lines
3.6 KiB
JavaScript
import{E as u}from"./element-plus.4328d892.js";import{w as d}from"./index.500fd836.js";import{d as _,o as r,c as e,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.37f7aea6.js";import"./@vueuse.ec90c285.js";import"./@element-plus.a074d1f6.js";import"./lodash-es.29c53eac.js";import"./dayjs.e873ead7.js";import"./@amap.8a62addd.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.f9c983cd.js";import"./index.fe1d30dd.js";import"./picker.d415e27a.js";import"./index.5759a1a6.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.0fc4c9f8.js";import"./picker.3821e495.js";import"./index.af446662.js";import"./index.vue_vue_type_script_setup_true_lang.f93228b5.js";import"./index.5f944d34.js";import"./index.vue_vue_type_script_setup_true_lang.dc835bba.js";import"./usePaging.2ad8e1e6.js";import"./vue3-video-play.b911321b.js";import"./vuedraggable.0cb40d3a.js";import"./vue.5de34049.js";import"./sortablejs.ef73fc5c.js";import"./content.vue_vue_type_script_setup_true_lang.b3e4f379.js";import"./decoration-img.d7e5dbec.js";import"./lodash.08438971.js";import"./axios.105476b3.js";import"./vue-router.9f65afb1.js";import"./pinia.56356cb7.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.7ac6f233.js";import"./color.44a05936.js";import"./clone.0afcbf90.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.86067895.js";import"./ms.a9ae1d6d.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.a5f46be8.js";import"./content.416ba4d2.js";import"./attr.vue_vue_type_script_setup_true_lang.4cdc919e.js";import"./add-nav.vue_vue_type_script_setup_true_lang.35798c7b.js";import"./content.b3fbaeeb.js";import"./attr.vue_vue_type_script_setup_true_lang.d9838080.js";import"./content.vue_vue_type_script_setup_true_lang.888a9caf.js";import"./attr.vue_vue_type_script_setup_true_lang.d01577b5.js";import"./content.87312235.js";import"./decoration.6f039a71.js";import"./attr.vue_vue_type_script_setup_true_lang.0fc534ba.js";import"./content.39f10dd3.js";import"./attr.vue_vue_type_script_setup_true_lang.871cb086.js";import"./content.vue_vue_type_script_setup_true_lang.e6931808.js";import"./attr.vue_vue_type_script_setup_true_lang.00e826d0.js";import"./content.d63a41a9.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(),e("div",D,[f(c,null,{default:b(()=>[(r(!0),e(v,null,y(m.pageData,(o,a)=>(r(),e("div",{key:o.id,class:s(["relative",{"cursor-pointer":!(o!=null&&o.disabled)}]),onClick:p=>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 p;return[(r(),C(V((p=x(d)[o==null?void 0:o.name])==null?void 0:p.content),{content:o.content,styles:o.styles,key:o.id},null,8,["content","styles"]))]},!0)],10,E))),128))]),_:3})])}}});const Go=B(N,[["__scopeId","data-v-4eb981b5"]]);export{Go as default};
|