WokerTask/public/admin/assets/preview.da7efe9b.js

2 lines
3.7 KiB
JavaScript

import{E as u}from"./element-plus.ff90c99c.js";import{w as d}from"./index.28dba72e.js";import{d as _,o as r,c as m,W as f,Q as b,F as v,a9 as y,K as s,a as h,J as k,P as C,S as V,u as x}from"./@vue.f8dfc830.js";import{d as B}from"./index.a6925776.js";import"./lodash-es.a73406b7.js";import"./@vueuse.a2e59ee9.js";import"./@element-plus.0374639c.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.7f1be2bc.js";import"./@amap.8a62addd.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./escape-html.e5dfadb9.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.34a21088.js";import"./attr.vue_vue_type_script_setup_true_lang.a04d2946.js";import"./index.57adeac9.js";import"./picker.0904bfb2.js";import"./index.0edf4687.js";import"./index.vue_vue_type_style_index_0_scoped_95d1884e_lang.af59f801.js";import"./picker.2c414b08.js";import"./index.4274cbab.js";import"./index.vue_vue_type_script_setup_true_lang.44dbc460.js";import"./index.0c1f6612.js";import"./index.vue_vue_type_script_setup_true_lang.ec118b31.js";import"./usePaging.bd7a7dec.js";import"./vue3-video-play.5592bdaa.js";import"./vuedraggable.99ce9db3.js";import"./vue.80fb6650.js";import"./sortablejs.76b408b5.js";import"./content.vue_vue_type_script_setup_true_lang.af9e7776.js";import"./decoration-img.c8a0d4dc.js";import"./lodash.3e731b89.js";import"./axios.c2babb35.js";import"./vue-router.6d4cf914.js";import"./pinia.4b196199.js";import"./vue-demi.b3a9cad9.js";import"./css-color-function.3a7f085f.js";import"./color.5ae3e2dd.js";import"./clone.7bcb5228.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./debug.37836f15.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.79024f1a.js";import"./attr.vue_vue_type_script_setup_true_lang.06c15e55.js";import"./content.415e2190.js";import"./attr.vue_vue_type_script_setup_true_lang.cf1f4b0b.js";import"./add-nav.vue_vue_type_script_setup_true_lang.d85c93af.js";import"./content.b3662391.js";import"./attr.vue_vue_type_script_setup_true_lang.ca96501d.js";import"./content.vue_vue_type_script_setup_true_lang.1c67d243.js";import"./attr.vue_vue_type_script_setup_true_lang.b806e4c7.js";import"./content.52b6fbe2.js";import"./decoration.78a78c1a.js";import"./attr.vue_vue_type_script_setup_true_lang.153369b3.js";import"./content.6e545432.js";import"./attr.vue_vue_type_script_setup_true_lang.ea78fe4d.js";import"./content.vue_vue_type_script_setup_true_lang.e34c5b4c.js";import"./attr.vue_vue_type_script_setup_true_lang.645b3e63.js";import"./content.8acf6236.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(e,{emit:l}){const n=(t,i)=>{t.disabled||l("update:modelValue",i)};return(t,i)=>{const c=u;return r(),m("div",D,[f(c,null,{default:b(()=>[(r(!0),m(v,null,y(e.pageData,(o,a)=>(r(),m("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==e.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 Ro=B(N,[["__scopeId","data-v-4eb981b5"]]);export{Ro as default};