multiStoreAdmin/build/store/assets/preview.4722cf1b.js

2 lines
5.5 KiB
JavaScript
Raw Normal View History

2024-09-05 22:56:41 +08:00
import{w as A,a as T,E as P}from"./element-plus.ab0703f2.js";import{d as z,r as U,b,o as i,P as k,Q as s,c as f,W as l,U as W,T as C,a as c,F as j,a9 as J,K as V,J as K,S as L,u,a4 as B}from"./@vue.340249d8.js";import{e as O}from"./index.06f6c25d.js";import{v as Q,h as q,S as G,T as H}from"./@element-plus.558a564d.js";import{d as R}from"./index.26dce67b.js";import"./lodash-es.edba6135.js";import"./@vueuse.e3650918.js";import"./@popperjs.36402333.js";import"./@ctrl.b082b0c1.js";import"./dayjs.9886411c.js";import"./axios.45058a27.js";import"./async-validator.fb49d0f5.js";import"./memoize-one.4ee5c96d.js";import"./normalize-wheel-es.8aeb3683.js";import"./@floating-ui.0f9ce7c3.js";import"./attr.2c4f7c4b.js";import"./index.5b716f69.js";import"./picker.ea15ca85.js";import"./index.vue_vue_type_script_setup_true_lang.5fc87b57.js";import"./usePaging.fff444fa.js";import"./article.1597ad9b.js";import"./index.b76ec1c2.js";import"./picker.09d1a7ad.js";import"./index.27485157.js";import"./index.b0dbb4c3.js";import"./index.vue_vue_type_script_setup_true_lang.9909e290.js";import"./vue3-video-play.fb56db8a.js";import"./vuedraggable.5c3595e9.js";import"./vue.75cf012d.js";import"./sortablejs.dcbae258.js";import"./lodash.3d784a58.js";import"./vue-router.9ddb0e92.js";import"./pinia.97fe9b12.js";import"./css-color-function.5c1c877d.js";import"./color.97e03886.js";import"./clone.cfa55f7b.js";import"./color-convert.755d189f.js";import"./color-name.e7a4e1d3.js";import"./color-string.e356f5de.js";import"./balanced-match.d2a36341.js";import"./ms.564e106c.js";import"./nprogress.8c276ac9.js";import"./vue-clipboard3.44194d32.js";import"./clipboard.47836ecb.js";import"./echarts.8535e5a6.js";import"./zrender.3eba8991.js";import"./tslib.60310f1a.js";import"./highlight.js.31cd7941.js";import"./@highlightjs.309a94da.js";import"./content.vue_vue_type_script_setup_true_lang.e956f750.js";import"./decoration-img.8af40d5c.js";import"./attr.vue_vue_type_script_setup_true_lang.d79a0d5e.js";import"./content.ad7b72b4.js";import"./attr.vue_vue_type_script_setup_true_lang.59e009a0.js";import"./content.vue_vue_type_script_setup_true_lang.837ff47f.js";import"./attr.vue_vue_type_script_setup_true_lang.e6cc4cd8.js";import"./add-nav.vue_vue_type_script_setup_true_lang.97c93434.js";import"./content.aa932d19.js";import"./attr.vue_vue_type_script_setup_true_lang.4387a85f.js";import"./content.vue_vue_type_script_setup_true_lang.6211c7a6.js";import"./attr.vue_vue_type_script_setup_true_lang.cd68c626.js";import"./content.89f6131d.js";import"./decoration.3a684a1f.js";import"./attr.vue_vue_type_script_setup_true_lang.286cbf71.js";import"./index.vue_vue_type_script_setup_true_lang.9482c280.js";import"./content.ce53c7f0.js";import"./attr.afdc3f02.js";import"./content.vue_vue_type_script_setup_true_lang.4f7a537f.js";import"./attr.vue_vue_type_script_setup_true_lang.14dc4336.js";import"./content.3a422a0d.js";import"./attr.vue_vue_type_script_setup_true_lang.9983d82d.js";import"./content.vue_vue_type_script_setup_true_lang.bdd0eb6d.js";import"./attr.vue_vue_type_script_setup_true_lang.784c60ef.js";import"./content.766719f5.js";const X={class:"shadow mx-[30px] pages-preview"},Y=["onClick"],Z={key:0,class:"widget-btns py-[5px]"},g=z({__name:"preview",props:{pageMeta:{type:Object,default:()=>null},pageData:{type:Array,default:()=>[]},modelValue:{type:Number,default:0}},emits:["update:modelValue"],setup(m,{emit:E}){const a=m,d=E,y=U(-1),D=()=>{a.modelValue===-1?d("update:modelValue",y.value):(y.value=a.modelValue,d("update:modelValue",-1))},M=(e,o)=>{e.disabled||d("update:modelValue",o)},F=b(()=>e=>e===0),S=b(()=>e=>{var o;return((o=a.pageData)==null?void 0:o.length)===e+1}),_=b(()=>e=>(e==null?void 0:e.enabled)==0),N=e=>{e.enabled!==void 0&&(e.enabled=e.enabled?0:1)},h=(e,o)=>{if(e<0||e>=a.pageData.length||o<0||o>=a.pageData.length)return;const p=a.pageData.splice(e,1)[0];a.pageData.splice(o,0,p),d("update:modelValue",o)};return(e,o)=>{const p=A,v=T,$=P;return i(),k($,{class:"pages-preview-container"},{default:s(()=>[m.pageMeta!==null?(i(),f("div",{key:0,class:"absolute right-4 top-4",