officialblock 2.1.5 → 2.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-D_wawBrn.mjs → index-7OmxLW6F.mjs} +1 -1
- package/dist/{index-J8LamgdJ.js → index-B1yWv0YS.js} +1 -1
- package/dist/{index-DGvRy0FG.js → index-BOG-7Ghe.js} +1 -1
- package/dist/{index-CY_5stdH.js → index-BXzRwf_F.js} +1 -1
- package/dist/{index-ChMoNeEO.js → index-BdqQKcnl.js} +1 -1
- package/dist/{index-DKFNhqPK.js → index-CU8BeqSQ.js} +5 -5
- package/dist/{index-Bq7PruNu.mjs → index-CmKQGmlH.mjs} +1 -1
- package/dist/{index-DuMXP10V.mjs → index-Cp-cdRqx.mjs} +1 -1
- package/dist/{index-CYJDfNO2.mjs → index-D1DP-U_o.mjs} +1 -1
- package/dist/{index-Byrk1Mlt.js → index-DacD9d4A.js} +1 -1
- package/dist/{index-ByHLUvb4.mjs → index-DcjvupYq.mjs} +35 -35
- package/dist/{index-DLh3Q6AQ.mjs → index-DeRtxVh8.mjs} +1 -1
- package/dist/{index-Bf8pSKt6.js → index-Em3TAL8o.js} +1 -1
- package/dist/{index-Dag86dDG.js → index-Z8RYRTX6.js} +1 -1
- package/dist/index-k5A3MqeE.mjs +4 -0
- package/dist/{index-BLL7s823.mjs → index-omKkljt7.mjs} +1 -1
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +1 -1
- package/dist/official-block.umd.js +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-CdyHd9C0.mjs +0 -4
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as Y, ref as k, resolveComponent as g, createBlock as f, openBlock as i, withCtx as w, createElementVNode as a, createVNode as u, createElementBlock as p, Fragment as N, renderList as O, createTextVNode as B, toDisplayString as H, normalizeStyle as E, computed as d, createCommentVNode as $, normalizeClass as U } from "vue";
|
|
2
|
-
import { P as j, _ as A, i as M, a as R, O as T, r as D } from "./index-
|
|
2
|
+
import { P as j, _ as A, i as M, a as R, O as T, r as D } from "./index-DcjvupYq.mjs";
|
|
3
3
|
const F = { class: "setting-content" }, J = { class: "setting-header flex items-center" }, L = { class: "setting-header flex items-center" }, W = { class: "setting-header flex items-center" }, q = { class: "setting-header flex items-center" }, G = { class: "setting-header flex items-center" }, K = { class: "setting-header flex items-center" }, Q = { class: "preview-container" }, X = ["src"], Z = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "no-preview"
|
|
@@ -4,7 +4,7 @@ var r = (a, u, c) => L(a, typeof u != "symbol" ? u + "" : u, c);
|
|
|
4
4
|
import { defineComponent as A, shallowRef as R, ref as p, computed as F, inject as y, watch as C, nextTick as b, onBeforeUnmount as q, createElementBlock as J, openBlock as G, createVNode as I, unref as H, normalizeStyle as P } from "vue";
|
|
5
5
|
import { Toolbar as Q, Editor as W } from "@wangeditor/editor-for-vue";
|
|
6
6
|
import { Boot as z } from "@wangeditor/editor";
|
|
7
|
-
import { _ as X } from "./index-
|
|
7
|
+
import { _ as X } from "./index-DcjvupYq.mjs";
|
|
8
8
|
const Y = { class: "rich-text-editor" }, Z = /* @__PURE__ */ A({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance as A, ref as n, computed as k, watch as B, onMounted as H, nextTick as V, createElementBlock as b, openBlock as i, createElementVNode as r, withDirectives as S, vShow as T, Fragment as U, renderList as D, normalizeClass as P, toDisplayString as O, normalizeStyle as Y, createCommentVNode as R, unref as E, createVNode as q, createBlock as F } from "vue";
|
|
2
|
-
import { _ as W, $ as G, r as J } from "./index-
|
|
2
|
+
import { _ as W, $ as G, r as J } from "./index-DcjvupYq.mjs";
|
|
3
3
|
const K = ["onClick"], Q = {
|
|
4
4
|
__name: "VrTourTab",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-DKFNhqPK.js"),N=["onClick"],I={__name:"VrTourTab",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B=k,i=w,c=e.ref(0),l=e.ref(0),a=e.ref(0),f=e.ref(0),u=e.ref(null),m=e.ref(null),d=e.ref([]),b=e.computed(()=>c.value>40),h=e.computed(()=>a.value+f.value<l.value+40),s=e.computed({get(){return B.currentIdx??0},set(r){i("updateIdx",r)}});e.watch(y,()=>{v()});const v=()=>{if(B.list.length<=0)return;m.value&&(c.value=m.value.scrollLeft),u.value&&(a.value=u.value.getBoundingClientRect().left,f.value=u.value.getBoundingClientRect().width);let r=null;d.value.length>0&&(r=Array.isArray(d.value)?d.value[d.value.length-1]:d.value),r&&r.getBoundingClientRect&&(l.value=r.getBoundingClientRect().left)},n=r=>{m.value&&(r==="next"?m.value.scrollLeft+=200:m.value.scrollLeft-=200)},t=()=>{v()};return e.onMounted(()=>{e.nextTick(()=>{t()})}),(r,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-tag",ref_key:"VrtourWrapper",ref:u},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"VrtourList",ref:m,onScroll:t},[e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__prev",onClick:p[0]||(p[0]=o=>n("prev"))},null,512),[[e.vShow,b.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.list,(o,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":s.value==_}]),ref_for:!0,ref_key:"VrtourBtn",ref:d,onClick:g=>s.value=_},e.toDisplayString(o.name),11,N)]))),128)),e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__next",onClick:p[1]||(p[1]=o=>n("next"))},null,512),[[e.vShow,h.value]])],544)],512))}},L=V._(I,[["__scopeId","data-v-efdafd78"]]),$=["onClick"],S={__name:"VrTourCat",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),y=k,B=w,i=e.ref(null),c=e.ref(null),l=e.ref(null),a=e.ref(0),f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.ref(0),b=e.computed(()=>a.value>40),h=e.computed(()=>u.value+m.value<f.value+40),s=e.computed({get(){return y.currentIdx??0},set(p){B("updateIdx",p),e.nextTick(r)}}),v=()=>{if(y.list.length<=0)return;c.value&&(a.value=c.value.scrollLeft),i.value&&(u.value=i.value.getBoundingClientRect().left,m.value=i.value.getBoundingClientRect().width);let p=null;l.value&&(p=Array.isArray(l.value)?l.value[l.value.length-1]:l.value),p&&p.getBoundingClientRect&&(f.value=p.getBoundingClientRect().left)},n=p=>{p=="next"?c.value.scrollLeft+=200:c.value.scrollLeft-=200},t=()=>{c.value&&(a.value=c.value.scrollLeft),v()},r=async()=>{if(await e.nextTick(),!l.value||!l.value[s.value])return;const p=l.value[s.value],o=p.clientWidth/2,_=x.$_vsWidth/2;d.value=p.getBoundingClientRect().right-o,c.value.scrollLeft-=_-d.value};return e.watch(()=>x.$_vsWidth,()=>{v()}),e.watch(()=>y.list,()=>{e.nextTick(v),c.value&&c.value.scrollLeft&&(c.value.scrollLeft=0)},{deep:!0}),e.onMounted(()=>{e.nextTick(t)}),(p,o)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-tag",ref_key:"wrapper",ref:i},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"list",ref:c,onScroll:t},[e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__prev",onClick:o[0]||(o[0]=_=>n("prev"))},null,512),[[e.vShow,b.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(_,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:"tab-tag__item"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":s.value==g}]),ref_for:!0,ref_key:"btnRef",ref:l,onClick:C=>s.value=g},e.toDisplayString(_.name),11,$)]))),128)),e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__next",onClick:o[1]||(o[1]=_=>n("next"))},null,512),[[e.vShow,h.value]])],544)],512))}},E=V._(S,[["__scopeId","data-v-6dd36752"]]),T={class:"tab-tag__nav__prev"},R=["onClick"],D=["src","alt"],O={class:"tab-tag__btn__title"},P={class:"tab-tag__nav__next"},W={__name:"VrTourChoose",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B=k,i=w,c=e.ref(null),l=e.ref(null),a=e.ref(null),f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.ref(0),b=e.ref(0),h=e.computed(()=>f.value>0),s=e.computed(()=>u.value-40>d.value),v=e.computed({get(){return B.currentIdx??0},set(o){i("updateIdx",o),e.nextTick(r)}}),n=()=>{var _,g,C;if(B.list.length<=0)return;f.value=(_=l.value)==null?void 0:_.scrollLeft,m.value=(g=c.value)==null?void 0:g.getBoundingClientRect().left,d.value=(C=c.value)==null?void 0:C.getBoundingClientRect().right;let o=null;a.value&&(o=Array.isArray(a.value)?a.value[a.value.length-1]:a.value),u.value=o==null?void 0:o.getBoundingClientRect().right},t=o=>{o==="next"?l.value.scrollLeft+=200:l.value.scrollLeft-=200},r=()=>{const o=a.value[v.value];if(!o)return;const _=o.clientWidth/2,g=y.value/2;b.value=o.getBoundingClientRect().right-_,l.value.scrollLeft-=g-b.value},p=()=>{n()};return e.watch(()=>y.value,()=>{n()}),e.watch(()=>B.list,()=>{e.nextTick(n),l.value&&l.value.scrollLeft&&(l.value.scrollLeft=0)}),e.onMounted(()=>{e.nextTick(p)}),(o,_)=>(e.openBlock(),e.createElementBlock("div",{class:"vr-tour-choose tab-tag",ref_key:"wrapper",ref:c},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"list",ref:l,onScroll:p},[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("button",{type:"button",class:"nav__btn",onClick:_[0]||(_[0]=g=>t("prev"))})],512),[[e.vShow,h.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:C,class:"tab-tag__item"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":v.value===C}]),ref_for:!0,ref_key:"btn",ref:a,onClick:ue=>v.value=C},[e.createElementVNode("img",{src:g.url,alt:g.name},null,8,D),e.createElementVNode("div",O,e.toDisplayString(g.name),1)],10,R)]))),128)),e.withDirectives(e.createElementVNode("div",P,[e.createElementVNode("button",{type:"button",class:"nav__btn",onClick:_[1]||(_[1]=g=>t("next"))})],512),[[e.vShow,s.value]])],544)],512))}},A=V._(W,[["__scopeId","data-v-ebb85a22"]]),q={class:"vr-tour-scene"},z=["src"],F={key:1,class:"vr-tour-scene__img"},H=["src","alt"],M={__name:"VrTourScene",props:{scene:{type:Object,default:()=>({})}},setup(k){const w=k,x=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.embed}),y=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.url}),B=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.name});return(i,c)=>(e.openBlock(),e.createElementBlock("div",q,[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:x.value,frameborder:"0"},null,8,z)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:y.value,alt:B.value},null,8,H)]))]))}},U=V._(M,[["__scopeId","data-v-c07507d5"]]),Y={class:"vr-tour-select"},G={class:"select-btn__focus-name line-clamp-1"},J={class:"select-list"},K=["onClick"],Q={__name:"VrTourSelect",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B={mounted(s,v){s.clickOutsideEvent=n=>{s===n.target||s.contains(n.target)||v.value(n)},document.body.addEventListener("click",s.clickOutsideEvent)},unmounted(s){document.body.removeEventListener("click",s.clickOutsideEvent)}},i=k,c=w,l=e.ref(!1),a=e.ref(-8),f=e.ref(null),u=e.computed({get(){return i.currentIdx??0},set(s){c("updateIdx",s)}}),m=e.computed(()=>{var s;return((s=i.list[u.value])==null?void 0:s.name)||""});e.watch(l,()=>{b()}),e.onMounted(()=>{window.addEventListener("resize",()=>{y.value=window.innerWidth,l.value&&b()})});const d=()=>{l.value=!1},b=()=>{const s=f.value;if(!s)return;const v=V.$(s).x+s.clientWidth;v>y.value&&(a.value=a.value-v+y.value-4)},h=s=>{u.value=s,d()};return(s,v)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["select-btn",{"is-open":l.value}]),onClick:v[0]||(v[0]=n=>l.value=!l.value)},[e.createElementVNode("div",G,e.toDisplayString(m.value),1),v[1]||(v[1]=e.createElementVNode("div",{class:"select-btn__arrow"},null,-1))],2),e.createElementVNode("div",{class:e.normalizeClass(["select-block",{"is-open":l.value}]),style:e.normalizeStyle({"--left":`${a.value}px`}),ref_key:"blockRef",ref:f},[e.createElementVNode("ul",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.list,(n,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["select-item line-clamp-1",{"is-active":u.value===t}]),key:t,onClick:r=>h(t)},e.toDisplayString(n.name),11,K))),128))])],6)])),[[B,d]])}},j=V._(Q,[["__scopeId","data-v-536804a2"]]),X={class:"vr-tour__wrapper"},Z={key:0,class:"vr-tour__tabs"},ee={class:"container-content-middle"},te={key:1,class:"vr-tour__selects"},le={class:"container-content"},ne={class:"vr-tour__selects__list"},se={class:"vr-tour__scene"},re={key:2,class:"vr-tour__cats"},oe={class:"pt-2"},ce={key:3,class:"vr-tour__chooses"},ae={__name:"index",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y,$_vsScrollY:B,$vsScreenAddListener:i,$vsScreenDestroyListener:c}=x,l=w,a=k,f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.computed(()=>{var n;return((n=a.modelValue)==null?void 0:n.data)??null}),b=e.computed(()=>{var n,t;return(t=(n=d.value)==null?void 0:n[f.value])==null?void 0:t.categoriesList}),h=e.computed(()=>{var n,t;return(t=(n=b.value)==null?void 0:n[u.value])==null?void 0:t.facilitiesList}),s=e.computed(()=>{var n;return(n=h.value)==null?void 0:n[m.value]}),v=()=>{var t;if(a.modelValue&&a.modelValue.data)return;const n={id:((t=a.modelValue)==null?void 0:t.id)||V.r(),type:"VrTour",onlyShowPc:!1,containerWidth:"",bgColor:"",classes:"custom-class another-class",style:{},width:"",data:[{key:"secondary-school",name:"Secondary School",categoriesList:[{key:"facilities",name:"Facilities",facilitiesList:[{key:"ece-learning-communities",name:"ECE Learning Communities",url:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt/multi_floor_plans/853_floorplan.png",scene:null,embed:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt-2026/en/index.html"},{key:"primary-learning-communities",name:"Primary Learning Communities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5/tour.html"},{key:"our-libraries",name:"Our Libraries",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries/tour.html"},{key:"our-facilities",name:"Our Facilities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities2/tour.html"},{key:"honglingjin-park",name:"Honglingjin Park",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park2/tour.html"},{key:"other-public-areas",name:"Other Public Areas",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus/tour.html"}]}]},{key:"secondary-school",name:"Secondary School",categoriesList:[{key:"facilities",name:"Facilities",facilitiesList:[{key:"ece-learning-communities",name:"ECE Learning Communities",url:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt/multi_floor_plans/853_floorplan.png",scene:null,embed:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt-2026/en/index.html"},{key:"primary-learning-communities",name:"Primary Learning Communities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5/tour.html"},{key:"our-libraries",name:"Our Libraries",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries/tour.html"},{key:"our-facilities",name:"Our Facilities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities2/tour.html"},{key:"honglingjin-park",name:"Honglingjin Park",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park2/tour.html"},{key:"other-public-areas",name:"Other Public Areas",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus/tour.html"}]}]}]};l("update:modelValue",n),f.value=0};return e.watch(f,()=>{u.value=0}),e.watch(u,()=>{m.value=0}),v(),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vr-tour bg-neutral-lightest",{"pb-0":h.value&&h.value.length<=1}])},[e.createElementVNode("div",X,[d.value&&d.value.length>1&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",ee,[e.createVNode(L,{list:d.value,onUpdateIdx:t[0]||(t[0]=r=>f.value=r),currentIdx:f.value},null,8,["list","currentIdx"])])])):e.createCommentVNode("",!0),e.unref(y)<768?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",le,[e.createElementVNode("div",ne,[d.value.length>1?(e.openBlock(),e.createBlock(j,{key:0,list:d.value,onUpdateIdx:t[1]||(t[1]=r=>f.value=r),currentIdx:f.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0),b.value.length>1?(e.openBlock(),e.createBlock(j,{key:1,list:b.value,onUpdateIdx:t[2]||(t[2]=r=>u.value=r),currentIdx:u.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0)])]),h.value.length>1?(e.openBlock(),e.createBlock(E,{key:0,list:h.value,onUpdateIdx:t[3]||(t[3]=r=>m.value=r),currentIdx:m.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",se,[e.createVNode(U,{scene:s.value},null,8,["scene"])]),b.value&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",re,[e.withDirectives(e.createElementVNode("div",oe,null,512),[[e.vShow,b.value.length<=1&&h.value.length>1]]),e.withDirectives(e.createVNode(E,{list:b.value,onUpdateIdx:t[4]||(t[4]=r=>u.value=r),currentIdx:u.value},null,8,["list","currentIdx"]),[[e.vShow,b.value.length>1]])])):e.createCommentVNode("",!0),h.value&&h.value.length>1&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(A,{list:h.value,onUpdateIdx:t[5]||(t[5]=r=>m.value=r),currentIdx:m.value},null,8,["list","currentIdx"])])):e.createCommentVNode("",!0)])],2))}},ie=V._(ae,[["__scopeId","data-v-f386fe24"]]);exports.default=ie;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),V=require("./index-CU8BeqSQ.js"),N=["onClick"],I={__name:"VrTourTab",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B=k,i=w,c=e.ref(0),l=e.ref(0),a=e.ref(0),f=e.ref(0),u=e.ref(null),m=e.ref(null),d=e.ref([]),b=e.computed(()=>c.value>40),h=e.computed(()=>a.value+f.value<l.value+40),s=e.computed({get(){return B.currentIdx??0},set(r){i("updateIdx",r)}});e.watch(y,()=>{v()});const v=()=>{if(B.list.length<=0)return;m.value&&(c.value=m.value.scrollLeft),u.value&&(a.value=u.value.getBoundingClientRect().left,f.value=u.value.getBoundingClientRect().width);let r=null;d.value.length>0&&(r=Array.isArray(d.value)?d.value[d.value.length-1]:d.value),r&&r.getBoundingClientRect&&(l.value=r.getBoundingClientRect().left)},n=r=>{m.value&&(r==="next"?m.value.scrollLeft+=200:m.value.scrollLeft-=200)},t=()=>{v()};return e.onMounted(()=>{e.nextTick(()=>{t()})}),(r,p)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-tag",ref_key:"VrtourWrapper",ref:u},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"VrtourList",ref:m,onScroll:t},[e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__prev",onClick:p[0]||(p[0]=o=>n("prev"))},null,512),[[e.vShow,b.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.list,(o,_)=>(e.openBlock(),e.createElementBlock("li",{key:_},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":s.value==_}]),ref_for:!0,ref_key:"VrtourBtn",ref:d,onClick:g=>s.value=_},e.toDisplayString(o.name),11,N)]))),128)),e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__next",onClick:p[1]||(p[1]=o=>n("next"))},null,512),[[e.vShow,h.value]])],544)],512))}},L=V._(I,[["__scopeId","data-v-efdafd78"]]),$=["onClick"],S={__name:"VrTourCat",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),y=k,B=w,i=e.ref(null),c=e.ref(null),l=e.ref(null),a=e.ref(0),f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.ref(0),b=e.computed(()=>a.value>40),h=e.computed(()=>u.value+m.value<f.value+40),s=e.computed({get(){return y.currentIdx??0},set(p){B("updateIdx",p),e.nextTick(r)}}),v=()=>{if(y.list.length<=0)return;c.value&&(a.value=c.value.scrollLeft),i.value&&(u.value=i.value.getBoundingClientRect().left,m.value=i.value.getBoundingClientRect().width);let p=null;l.value&&(p=Array.isArray(l.value)?l.value[l.value.length-1]:l.value),p&&p.getBoundingClientRect&&(f.value=p.getBoundingClientRect().left)},n=p=>{p=="next"?c.value.scrollLeft+=200:c.value.scrollLeft-=200},t=()=>{c.value&&(a.value=c.value.scrollLeft),v()},r=async()=>{if(await e.nextTick(),!l.value||!l.value[s.value])return;const p=l.value[s.value],o=p.clientWidth/2,_=x.$_vsWidth/2;d.value=p.getBoundingClientRect().right-o,c.value.scrollLeft-=_-d.value};return e.watch(()=>x.$_vsWidth,()=>{v()}),e.watch(()=>y.list,()=>{e.nextTick(v),c.value&&c.value.scrollLeft&&(c.value.scrollLeft=0)},{deep:!0}),e.onMounted(()=>{e.nextTick(t)}),(p,o)=>(e.openBlock(),e.createElementBlock("div",{class:"tab-tag",ref_key:"wrapper",ref:i},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"list",ref:c,onScroll:t},[e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__prev",onClick:o[0]||(o[0]=_=>n("prev"))},null,512),[[e.vShow,b.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(_,g)=>(e.openBlock(),e.createElementBlock("li",{key:g,class:"tab-tag__item"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":s.value==g}]),ref_for:!0,ref_key:"btnRef",ref:l,onClick:C=>s.value=g},e.toDisplayString(_.name),11,$)]))),128)),e.withDirectives(e.createElementVNode("div",{class:"tab-tag__nav__next",onClick:o[1]||(o[1]=_=>n("next"))},null,512),[[e.vShow,h.value]])],544)],512))}},E=V._(S,[["__scopeId","data-v-6dd36752"]]),T={class:"tab-tag__nav__prev"},R=["onClick"],D=["src","alt"],O={class:"tab-tag__btn__title"},P={class:"tab-tag__nav__next"},W={__name:"VrTourChoose",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B=k,i=w,c=e.ref(null),l=e.ref(null),a=e.ref(null),f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.ref(0),b=e.ref(0),h=e.computed(()=>f.value>0),s=e.computed(()=>u.value-40>d.value),v=e.computed({get(){return B.currentIdx??0},set(o){i("updateIdx",o),e.nextTick(r)}}),n=()=>{var _,g,C;if(B.list.length<=0)return;f.value=(_=l.value)==null?void 0:_.scrollLeft,m.value=(g=c.value)==null?void 0:g.getBoundingClientRect().left,d.value=(C=c.value)==null?void 0:C.getBoundingClientRect().right;let o=null;a.value&&(o=Array.isArray(a.value)?a.value[a.value.length-1]:a.value),u.value=o==null?void 0:o.getBoundingClientRect().right},t=o=>{o==="next"?l.value.scrollLeft+=200:l.value.scrollLeft-=200},r=()=>{const o=a.value[v.value];if(!o)return;const _=o.clientWidth/2,g=y.value/2;b.value=o.getBoundingClientRect().right-_,l.value.scrollLeft-=g-b.value},p=()=>{n()};return e.watch(()=>y.value,()=>{n()}),e.watch(()=>B.list,()=>{e.nextTick(n),l.value&&l.value.scrollLeft&&(l.value.scrollLeft=0)}),e.onMounted(()=>{e.nextTick(p)}),(o,_)=>(e.openBlock(),e.createElementBlock("div",{class:"vr-tour-choose tab-tag",ref_key:"wrapper",ref:c},[e.createElementVNode("ul",{class:"tab-tag__list",ref_key:"list",ref:l,onScroll:p},[e.withDirectives(e.createElementVNode("div",T,[e.createElementVNode("button",{type:"button",class:"nav__btn",onClick:_[0]||(_[0]=g=>t("prev"))})],512),[[e.vShow,h.value]]),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l.value,(g,C)=>(e.openBlock(),e.createElementBlock("li",{key:C,class:"tab-tag__item"},[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["tab-tag__btn",{"is-active":v.value===C}]),ref_for:!0,ref_key:"btn",ref:a,onClick:ue=>v.value=C},[e.createElementVNode("img",{src:g.url,alt:g.name},null,8,D),e.createElementVNode("div",O,e.toDisplayString(g.name),1)],10,R)]))),128)),e.withDirectives(e.createElementVNode("div",P,[e.createElementVNode("button",{type:"button",class:"nav__btn",onClick:_[1]||(_[1]=g=>t("next"))})],512),[[e.vShow,s.value]])],544)],512))}},A=V._(W,[["__scopeId","data-v-ebb85a22"]]),q={class:"vr-tour-scene"},z=["src"],F={key:1,class:"vr-tour-scene__img"},H=["src","alt"],M={__name:"VrTourScene",props:{scene:{type:Object,default:()=>({})}},setup(k){const w=k,x=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.embed}),y=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.url}),B=e.computed(()=>{var i;return(i=w.scene)==null?void 0:i.name});return(i,c)=>(e.openBlock(),e.createElementBlock("div",q,[x.value?(e.openBlock(),e.createElementBlock("iframe",{key:0,src:x.value,frameborder:"0"},null,8,z)):(e.openBlock(),e.createElementBlock("div",F,[e.createElementVNode("img",{src:y.value,alt:B.value},null,8,H)]))]))}},U=V._(M,[["__scopeId","data-v-c07507d5"]]),Y={class:"vr-tour-select"},G={class:"select-btn__focus-name line-clamp-1"},J={class:"select-list"},K=["onClick"],Q={__name:"VrTourSelect",props:{list:{type:Array,default:()=>[]},currentIdx:{type:[String,Number],default:0}},emits:["updateIdx"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y}=x,B={mounted(s,v){s.clickOutsideEvent=n=>{s===n.target||s.contains(n.target)||v.value(n)},document.body.addEventListener("click",s.clickOutsideEvent)},unmounted(s){document.body.removeEventListener("click",s.clickOutsideEvent)}},i=k,c=w,l=e.ref(!1),a=e.ref(-8),f=e.ref(null),u=e.computed({get(){return i.currentIdx??0},set(s){c("updateIdx",s)}}),m=e.computed(()=>{var s;return((s=i.list[u.value])==null?void 0:s.name)||""});e.watch(l,()=>{b()}),e.onMounted(()=>{window.addEventListener("resize",()=>{y.value=window.innerWidth,l.value&&b()})});const d=()=>{l.value=!1},b=()=>{const s=f.value;if(!s)return;const v=V.$(s).x+s.clientWidth;v>y.value&&(a.value=a.value-v+y.value-4)},h=s=>{u.value=s,d()};return(s,v)=>e.withDirectives((e.openBlock(),e.createElementBlock("div",Y,[e.createElementVNode("button",{type:"button",class:e.normalizeClass(["select-btn",{"is-open":l.value}]),onClick:v[0]||(v[0]=n=>l.value=!l.value)},[e.createElementVNode("div",G,e.toDisplayString(m.value),1),v[1]||(v[1]=e.createElementVNode("div",{class:"select-btn__arrow"},null,-1))],2),e.createElementVNode("div",{class:e.normalizeClass(["select-block",{"is-open":l.value}]),style:e.normalizeStyle({"--left":`${a.value}px`}),ref_key:"blockRef",ref:f},[e.createElementVNode("ul",J,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.list,(n,t)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["select-item line-clamp-1",{"is-active":u.value===t}]),key:t,onClick:r=>h(t)},e.toDisplayString(n.name),11,K))),128))])],6)])),[[B,d]])}},j=V._(Q,[["__scopeId","data-v-536804a2"]]),X={class:"vr-tour__wrapper"},Z={key:0,class:"vr-tour__tabs"},ee={class:"container-content-middle"},te={key:1,class:"vr-tour__selects"},le={class:"container-content"},ne={class:"vr-tour__selects__list"},se={class:"vr-tour__scene"},re={key:2,class:"vr-tour__cats"},oe={class:"pt-2"},ce={key:3,class:"vr-tour__chooses"},ae={__name:"index",props:{modelValue:{type:Object,default:()=>({})}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(k,{emit:w}){const{proxy:x}=e.getCurrentInstance(),{$_vsWidth:y,$_vsScrollY:B,$vsScreenAddListener:i,$vsScreenDestroyListener:c}=x,l=w,a=k,f=e.ref(0),u=e.ref(0),m=e.ref(0),d=e.computed(()=>{var n;return((n=a.modelValue)==null?void 0:n.data)??null}),b=e.computed(()=>{var n,t;return(t=(n=d.value)==null?void 0:n[f.value])==null?void 0:t.categoriesList}),h=e.computed(()=>{var n,t;return(t=(n=b.value)==null?void 0:n[u.value])==null?void 0:t.facilitiesList}),s=e.computed(()=>{var n;return(n=h.value)==null?void 0:n[m.value]}),v=()=>{var t;if(a.modelValue&&a.modelValue.data)return;const n={id:((t=a.modelValue)==null?void 0:t.id)||V.r(),type:"VrTour",onlyShowPc:!1,containerWidth:"",bgColor:"",classes:"custom-class another-class",style:{},width:"",data:[{key:"secondary-school",name:"Secondary School",categoriesList:[{key:"facilities",name:"Facilities",facilitiesList:[{key:"ece-learning-communities",name:"ECE Learning Communities",url:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt/multi_floor_plans/853_floorplan.png",scene:null,embed:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt-2026/en/index.html"},{key:"primary-learning-communities",name:"Primary Learning Communities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5/tour.html"},{key:"our-libraries",name:"Our Libraries",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries/tour.html"},{key:"our-facilities",name:"Our Facilities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities2/tour.html"},{key:"honglingjin-park",name:"Honglingjin Park",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park2/tour.html"},{key:"other-public-areas",name:"Other Public Areas",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus/tour.html"}]}]},{key:"secondary-school",name:"Secondary School",categoriesList:[{key:"facilities",name:"Facilities",facilitiesList:[{key:"ece-learning-communities",name:"ECE Learning Communities",url:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt/multi_floor_plans/853_floorplan.png",scene:null,embed:"https://osswebsite.ycyw.com/ycis-qd/res/qd/vt-2026/en/index.html"},{key:"primary-learning-communities",name:"Primary Learning Communities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/y3-5/tour.html"},{key:"our-libraries",name:"Our Libraries",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/libraries/tour.html"},{key:"our-facilities",name:"Our Facilities",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/facilities2/tour.html"},{key:"honglingjin-park",name:"Honglingjin Park",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/park2/tour.html"},{key:"other-public-areas",name:"Other Public Areas",url:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus.jpg",scene:null,embed:"https://osswebsite.ycyw.com/ycis-bj/res/bj/vt/our-campus/tour.html"}]}]}]};l("update:modelValue",n),f.value=0};return e.watch(f,()=>{u.value=0}),e.watch(u,()=>{m.value=0}),v(),(n,t)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["vr-tour bg-neutral-lightest",{"pb-0":h.value&&h.value.length<=1}])},[e.createElementVNode("div",X,[d.value&&d.value.length>1&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",Z,[e.createElementVNode("div",ee,[e.createVNode(L,{list:d.value,onUpdateIdx:t[0]||(t[0]=r=>f.value=r),currentIdx:f.value},null,8,["list","currentIdx"])])])):e.createCommentVNode("",!0),e.unref(y)<768?(e.openBlock(),e.createElementBlock("div",te,[e.createElementVNode("div",le,[e.createElementVNode("div",ne,[d.value.length>1?(e.openBlock(),e.createBlock(j,{key:0,list:d.value,onUpdateIdx:t[1]||(t[1]=r=>f.value=r),currentIdx:f.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0),b.value.length>1?(e.openBlock(),e.createBlock(j,{key:1,list:b.value,onUpdateIdx:t[2]||(t[2]=r=>u.value=r),currentIdx:u.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0)])]),h.value.length>1?(e.openBlock(),e.createBlock(E,{key:0,list:h.value,onUpdateIdx:t[3]||(t[3]=r=>m.value=r),currentIdx:m.value},null,8,["list","currentIdx"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",se,[e.createVNode(U,{scene:s.value},null,8,["scene"])]),b.value&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",re,[e.withDirectives(e.createElementVNode("div",oe,null,512),[[e.vShow,b.value.length<=1&&h.value.length>1]]),e.withDirectives(e.createVNode(E,{list:b.value,onUpdateIdx:t[4]||(t[4]=r=>u.value=r),currentIdx:u.value},null,8,["list","currentIdx"]),[[e.vShow,b.value.length>1]])])):e.createCommentVNode("",!0),h.value&&h.value.length>1&&e.unref(y)>=768?(e.openBlock(),e.createElementBlock("div",ce,[e.createVNode(A,{list:h.value,onUpdateIdx:t[5]||(t[5]=r=>m.value=r),currentIdx:m.value},null,8,["list","currentIdx"])])):e.createCommentVNode("",!0)])],2))}},ie=V._(ae,[["__scopeId","data-v-f386fe24"]]);exports.default=ie;
|
|
@@ -437,7 +437,7 @@ const Q_ = { class: "button-text" }, J_ = { class: "link-text" }, Z_ = /* @__PUR
|
|
|
437
437
|
},
|
|
438
438
|
emits: ["update:show"],
|
|
439
439
|
setup(t, { emit: e }) {
|
|
440
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
440
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
441
441
|
animation: 200,
|
|
442
442
|
group: "item",
|
|
443
443
|
disabled: !1,
|
|
@@ -2862,7 +2862,7 @@ const Q_ = { class: "button-text" }, J_ = { class: "link-text" }, Z_ = /* @__PUR
|
|
|
2862
2862
|
},
|
|
2863
2863
|
emits: ["update:show"],
|
|
2864
2864
|
setup(t, { emit: e }) {
|
|
2865
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
2865
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
2866
2866
|
animation: 200,
|
|
2867
2867
|
group: "gallerys",
|
|
2868
2868
|
// 链接专用分组
|
|
@@ -4452,7 +4452,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
4452
4452
|
},
|
|
4453
4453
|
emits: ["update:show"],
|
|
4454
4454
|
setup(t, { emit: e }) {
|
|
4455
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
4455
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
4456
4456
|
animation: 200,
|
|
4457
4457
|
group: "gallerys",
|
|
4458
4458
|
// 链接专用分组
|
|
@@ -5344,7 +5344,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
5344
5344
|
},
|
|
5345
5345
|
emits: ["update:show"],
|
|
5346
5346
|
setup(t, { emit: e }) {
|
|
5347
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
5347
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
5348
5348
|
animation: 200,
|
|
5349
5349
|
group: "btns",
|
|
5350
5350
|
// 链接专用分组
|
|
@@ -6112,7 +6112,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
6112
6112
|
}
|
|
6113
6113
|
},
|
|
6114
6114
|
setup(t) {
|
|
6115
|
-
const e = ze(() => import("vuedraggable")), n = ze(() => import("./index-
|
|
6115
|
+
const e = ze(() => import("vuedraggable")), n = ze(() => import("./index-Cp-cdRqx.mjs")), s = B(!1), i = z(() => ({
|
|
6116
6116
|
animation: 200,
|
|
6117
6117
|
group: "buttons",
|
|
6118
6118
|
// 按钮专用分组
|
|
@@ -8154,7 +8154,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
8154
8154
|
},
|
|
8155
8155
|
emits: ["update:show"],
|
|
8156
8156
|
setup(t, { emit: e }) {
|
|
8157
|
-
const n = ze(() => import("./index-
|
|
8157
|
+
const n = ze(() => import("./index-Cp-cdRqx.mjs")), s = e, i = () => {
|
|
8158
8158
|
s("update:show", !1);
|
|
8159
8159
|
};
|
|
8160
8160
|
return (a, o) => {
|
|
@@ -9577,7 +9577,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
9577
9577
|
},
|
|
9578
9578
|
emits: ["update:show"],
|
|
9579
9579
|
setup(t, { emit: e }) {
|
|
9580
|
-
const n = ze(() => import("./index-
|
|
9580
|
+
const n = ze(() => import("./index-Cp-cdRqx.mjs")), s = e, i = () => {
|
|
9581
9581
|
s("update:show", !1);
|
|
9582
9582
|
};
|
|
9583
9583
|
return (a, o) => {
|
|
@@ -9759,7 +9759,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
9759
9759
|
},
|
|
9760
9760
|
emits: ["update:show"],
|
|
9761
9761
|
setup(t, { emit: e }) {
|
|
9762
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
9762
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
9763
9763
|
animation: 200,
|
|
9764
9764
|
group: "links",
|
|
9765
9765
|
// 链接专用分组
|
|
@@ -10099,7 +10099,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
10099
10099
|
},
|
|
10100
10100
|
emits: ["update:show"],
|
|
10101
10101
|
setup(t, { emit: e }) {
|
|
10102
|
-
const n = ze(() => import("./index-
|
|
10102
|
+
const n = ze(() => import("./index-Cp-cdRqx.mjs")), s = e, i = () => {
|
|
10103
10103
|
s("update:show", !1);
|
|
10104
10104
|
};
|
|
10105
10105
|
return (a, o) => {
|
|
@@ -10580,7 +10580,7 @@ const VT = { class: "gallery-timeline" }, PT = { class: "gallery-timeline__list"
|
|
|
10580
10580
|
},
|
|
10581
10581
|
emits: ["update:show"],
|
|
10582
10582
|
setup(t, { emit: e }) {
|
|
10583
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
10583
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
10584
10584
|
animation: 200,
|
|
10585
10585
|
group: "gallerys",
|
|
10586
10586
|
// 链接专用分组
|
|
@@ -12212,7 +12212,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
12212
12212
|
},
|
|
12213
12213
|
emits: ["update:show"],
|
|
12214
12214
|
setup(t, { emit: e }) {
|
|
12215
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
12215
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
12216
12216
|
animation: 200,
|
|
12217
12217
|
group: "gallerys",
|
|
12218
12218
|
// 链接专用分组
|
|
@@ -13389,7 +13389,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
13389
13389
|
},
|
|
13390
13390
|
emits: ["update:show"],
|
|
13391
13391
|
setup(t, { emit: e }) {
|
|
13392
|
-
const n = ze(() => import("./index-
|
|
13392
|
+
const n = ze(() => import("./index-Cp-cdRqx.mjs")), s = e, i = B({
|
|
13393
13393
|
title: "",
|
|
13394
13394
|
content: "",
|
|
13395
13395
|
imgSrc: "https://osswebsite.ycyw.com/media-library/ywies-bj/images/home/ywies-tx.jpg"
|
|
@@ -14796,7 +14796,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
14796
14796
|
setup(t, { emit: e }) {
|
|
14797
14797
|
var E;
|
|
14798
14798
|
const n = ze(() => import("vuedraggable")), s = ze(
|
|
14799
|
-
() => import("./index-
|
|
14799
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
14800
14800
|
), i = z(() => ({
|
|
14801
14801
|
animation: 200,
|
|
14802
14802
|
group: "links",
|
|
@@ -16870,7 +16870,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
16870
16870
|
},
|
|
16871
16871
|
emits: ["update:show"],
|
|
16872
16872
|
setup(t, { emit: e }) {
|
|
16873
|
-
const n = ze(() => import("./index-
|
|
16873
|
+
const n = ze(() => import("./index-Cp-cdRqx.mjs")), s = ze(() => import("vuedraggable")), i = t, a = B(!1), o = B(/* @__PURE__ */ new Set()), r = B(/* @__PURE__ */ new Set());
|
|
16874
16874
|
je(
|
|
16875
16875
|
() => {
|
|
16876
16876
|
var M;
|
|
@@ -20117,7 +20117,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
20117
20117
|
},
|
|
20118
20118
|
emits: ["update:show"],
|
|
20119
20119
|
setup(t, { emit: e }) {
|
|
20120
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
20120
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
20121
20121
|
animation: 200,
|
|
20122
20122
|
group: "data",
|
|
20123
20123
|
// 专用分组
|
|
@@ -20406,7 +20406,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
20406
20406
|
},
|
|
20407
20407
|
emits: ["update:show"],
|
|
20408
20408
|
setup(t, { emit: e }) {
|
|
20409
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
20409
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
20410
20410
|
animation: 200,
|
|
20411
20411
|
group: "data",
|
|
20412
20412
|
// 专用分组
|
|
@@ -23636,7 +23636,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
23636
23636
|
emits: ["update:show"],
|
|
23637
23637
|
setup(t, { emit: e }) {
|
|
23638
23638
|
const n = ze(
|
|
23639
|
-
() => import("./index-
|
|
23639
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
23640
23640
|
), s = e, i = () => {
|
|
23641
23641
|
s("update:show", !1);
|
|
23642
23642
|
};
|
|
@@ -23856,7 +23856,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
23856
23856
|
emits: ["update:show"],
|
|
23857
23857
|
setup(t, { emit: e }) {
|
|
23858
23858
|
const n = ze(
|
|
23859
|
-
() => import("./index-
|
|
23859
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
23860
23860
|
), s = e, i = () => {
|
|
23861
23861
|
s("update:show", !1);
|
|
23862
23862
|
};
|
|
@@ -24072,7 +24072,7 @@ const Tn = V0(), W3 = V0(), G3 = { class: "list-sort" }, X3 = ["onClick"], K3 =
|
|
|
24072
24072
|
emits: ["update:show"],
|
|
24073
24073
|
setup(t, { emit: e }) {
|
|
24074
24074
|
ze(
|
|
24075
|
-
() => import("./index-
|
|
24075
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
24076
24076
|
);
|
|
24077
24077
|
const n = e, s = () => {
|
|
24078
24078
|
n("update:show", !1);
|
|
@@ -27585,7 +27585,7 @@ const KN = {
|
|
|
27585
27585
|
},
|
|
27586
27586
|
emits: ["handleDelete", "handleCopy", "handlePaste", "handleClick"],
|
|
27587
27587
|
setup(t, { emit: e }) {
|
|
27588
|
-
const n = /* @__PURE__ */ Object.assign({ "/src/components/AlummiCommunityList/index.vue": () => Promise.resolve().then(() => fR), "/src/components/ArticleItem/index.vue": () => Promise.resolve().then(() => qV), "/src/components/ArticleList/index.vue": () => Promise.resolve().then(() => yw), "/src/components/ArticleListPureText/index.vue": () => Promise.resolve().then(() => lR), "/src/components/BackgroundWrapper/index.vue": () => import("./index-
|
|
27588
|
+
const n = /* @__PURE__ */ Object.assign({ "/src/components/AlummiCommunityList/index.vue": () => Promise.resolve().then(() => fR), "/src/components/ArticleItem/index.vue": () => Promise.resolve().then(() => qV), "/src/components/ArticleList/index.vue": () => Promise.resolve().then(() => yw), "/src/components/ArticleListPureText/index.vue": () => Promise.resolve().then(() => lR), "/src/components/BackgroundWrapper/index.vue": () => import("./index-CmKQGmlH.mjs"), "/src/components/BannerImage/index.vue": () => Promise.resolve().then(() => Ew), "/src/components/BannerImageWithLink/index.vue": () => Promise.resolve().then(() => a5), "/src/components/BannerPage/index.vue": () => Promise.resolve().then(() => Bw), "/src/components/BannerQuote/index.vue": () => Promise.resolve().then(() => EV), "/src/components/BasicCollapse/index.vue": () => Promise.resolve().then(() => mU), "/src/components/BlessingMessage/index.vue": () => Promise.resolve().then(() => iB), "/src/components/BlessingSlider/index.vue": () => Promise.resolve().then(() => wB), "/src/components/BtnList/index.vue": () => Promise.resolve().then(() => ix), "/src/components/CardCarousel/index.vue": () => Promise.resolve().then(() => qE), "/src/components/CardCarouselArticles/index.vue": () => Promise.resolve().then(() => e9), "/src/components/CardCarouselMultiRow/index.vue": () => Promise.resolve().then(() => hV), "/src/components/CardCarouselMultiRowArticles/index.vue": () => Promise.resolve().then(() => m9), "/src/components/CardCarouselMultiRowPublications/index.vue": () => Promise.resolve().then(() => dF), "/src/components/CardListCircle/index.vue": () => Promise.resolve().then(() => nj), "/src/components/CardListProgramme/index.vue": () => Promise.resolve().then(() => $j), "/src/components/CardListSchool/index.vue": () => Promise.resolve().then(() => rq), "/src/components/CardShowcase/index.vue": () => Promise.resolve().then(() => JB), "/src/components/CardShowcaseProfile/index.vue": () => Promise.resolve().then(() => CD), "/src/components/CarouselLogo/index.vue": () => Promise.resolve().then(() => o6), "/src/components/CollapseCustom/index.vue": () => import("./index-omKkljt7.mjs"), "/src/components/ContactUsInfo/index.vue": () => Promise.resolve().then(() => WA), "/src/components/ContactUsList/index.vue": () => Promise.resolve().then(() => b$), "/src/components/CountDown/index.vue": () => Promise.resolve().then(() => HD), "/src/components/CustomIframe/index.vue": () => Promise.resolve().then(() => ZD), "/src/components/CustomSpace/index.vue": () => Promise.resolve().then(() => BS), "/src/components/CustomText/index.vue": () => Promise.resolve().then(() => x9), "/src/components/DetailLink/index.vue": () => Promise.resolve().then(() => vq), "/src/components/Disc/index.vue": () => Promise.resolve().then(() => JO), "/src/components/DonorLinks/index.vue": () => Promise.resolve().then(() => cE), "/src/components/ExploreLinks/index.vue": () => Promise.resolve().then(() => rN), "/src/components/GalleryBlock/index.vue": () => Promise.resolve().then(() => O7), "/src/components/GalleryCaptionRound/index.vue": () => Promise.resolve().then(() => Yx), "/src/components/GalleryDefault/index.vue": () => Promise.resolve().then(() => Sx), "/src/components/GalleryList/index.vue": () => Promise.resolve().then(() => Fk), "/src/components/GalleryTimeline/index.vue": () => Promise.resolve().then(() => jT), "/src/components/GalleryTimelineCol/index.vue": () => Promise.resolve().then(() => kC), "/src/components/GridLinks/index.vue": () => import("./index-7OmxLW6F.mjs"), "/src/components/HeroSlide/index.vue": () => Promise.resolve().then(() => S8), "/src/components/InformationLink/index.vue": () => Promise.resolve().then(() => PJ), "/src/components/LinkLIst/index.vue": () => Promise.resolve().then(() => R8), "/src/components/MapStatic/index.vue": () => Promise.resolve().then(() => AL), "/src/components/MediaImageFull/index.vue": () => Promise.resolve().then(() => U9), "/src/components/MediaImageStatic/index.vue": () => Promise.resolve().then(() => X9), "/src/components/MediaLogo/index.vue": () => Promise.resolve().then(() => dM), "/src/components/MediaVideo/index.vue": () => Promise.resolve().then(() => yJ), "/src/components/NewsList/index.vue": () => Promise.resolve().then(() => z4), "/src/components/Process/index.vue": () => Promise.resolve().then(() => AS), "/src/components/Publications/index.vue": () => Promise.resolve().then(() => HI), "/src/components/QuoteText/index.vue": () => import("./index-k5A3MqeE.mjs"), "/src/components/RegisterForm/index.vue": () => Promise.resolve().then(() => p7), "/src/components/Resources/index.vue": () => Promise.resolve().then(() => sO), "/src/components/ResourcesTwo/index.vue": () => Promise.resolve().then(() => wO), "/src/components/RibbonBlock/index.vue": () => Promise.resolve().then(() => t3), "/src/components/SchoolLayout/index.vue": () => Promise.resolve().then(() => JN), "/src/components/ScrollKeyInfo/index.vue": () => Promise.resolve().then(() => tA), "/src/components/TabDefault/index.vue": () => Promise.resolve().then(() => YF), "/src/components/TabLogo/index.vue": () => import("./index-DeRtxVh8.mjs"), "/src/components/TabPage/index.vue": () => Promise.resolve().then(() => oZ), "/src/components/TabTimeLine/index.vue": () => Promise.resolve().then(() => $H), "/src/components/TableCollapse/index.vue": () => Promise.resolve().then(() => jU), "/src/components/TableTwo/index.vue": () => Promise.resolve().then(() => j$), "/src/components/TheHistoryCarousel/index.vue": () => Promise.resolve().then(() => zP), "/src/components/TimelineStory/index.vue": () => Promise.resolve().then(() => z3), "/src/components/VrTour/index.vue": () => import("./index-D1DP-U_o.mjs") }), s = {};
|
|
27589
27589
|
for (const y in n)
|
|
27590
27590
|
try {
|
|
27591
27591
|
const h = y.split("/"), d = h[h.length - 2];
|
|
@@ -28127,8 +28127,8 @@ const KN = {
|
|
|
28127
28127
|
key: 0,
|
|
28128
28128
|
class: "tab-default__container bg-neutral-light",
|
|
28129
28129
|
style: Ye({ backgroundColor: (L = t.modelValue) == null ? void 0 : L.bgColor }),
|
|
28130
|
-
onMouseover: R[
|
|
28131
|
-
onMouseout: R[
|
|
28130
|
+
onMouseover: R[5] || (R[5] = (W) => x.value = !0),
|
|
28131
|
+
onMouseout: R[6] || (R[6] = (W) => x.value = !1)
|
|
28132
28132
|
}, [
|
|
28133
28133
|
l("div", {
|
|
28134
28134
|
class: ue(["container-content-small", [(H = t.modelValue) != null && H.width ? `container-content-${(te = t.modelValue) == null ? void 0 : te.width}` : "container-content"]])
|
|
@@ -28140,7 +28140,7 @@ const KN = {
|
|
|
28140
28140
|
}, [
|
|
28141
28141
|
l("div", HF, [
|
|
28142
28142
|
l("div", jF, [
|
|
28143
|
-
R[
|
|
28143
|
+
R[7] || (R[7] = l("div", {
|
|
28144
28144
|
class: "tab-blue__nav__prev",
|
|
28145
28145
|
style: { display: "none" }
|
|
28146
28146
|
}, null, -1)),
|
|
@@ -28166,12 +28166,12 @@ const KN = {
|
|
|
28166
28166
|
style: Ye(O.value)
|
|
28167
28167
|
}, null, 4)
|
|
28168
28168
|
], 8, qF),
|
|
28169
|
-
R[
|
|
28169
|
+
R[8] || (R[8] = l("div", {
|
|
28170
28170
|
class: "tab-blue__nav__next",
|
|
28171
28171
|
style: { display: "none" }
|
|
28172
28172
|
}, null, -1))
|
|
28173
28173
|
]),
|
|
28174
|
-
R[
|
|
28174
|
+
R[9] || (R[9] = l("div", {
|
|
28175
28175
|
class: "tab-blue__filter mt-5 mt-md-3",
|
|
28176
28176
|
style: { "--width": "338px" }
|
|
28177
28177
|
}, null, -1))
|
|
@@ -28190,8 +28190,8 @@ const KN = {
|
|
|
28190
28190
|
"props-data": { modelValue: W, isPreview: !1 },
|
|
28191
28191
|
onHandleDelete: R[0] || (R[0] = (Z) => E(Z, w.value)),
|
|
28192
28192
|
onHandleCopy: R[1] || (R[1] = (Z) => I(Z)),
|
|
28193
|
-
onHandlePaste:
|
|
28194
|
-
}, null, 8, ["type", "props-data"])
|
|
28193
|
+
onHandlePaste: (Z) => A(Z, w.value)
|
|
28194
|
+
}, null, 8, ["type", "props-data", "onHandlePaste"])
|
|
28195
28195
|
])
|
|
28196
28196
|
]))), 128))
|
|
28197
28197
|
])
|
|
@@ -28199,8 +28199,8 @@ const KN = {
|
|
|
28199
28199
|
t.isPreview ? j("", !0) : (b(), ne(Xe, {
|
|
28200
28200
|
key: 0,
|
|
28201
28201
|
show: x.value,
|
|
28202
|
-
"onUpdate:show": R[
|
|
28203
|
-
onHandleEdit: R[
|
|
28202
|
+
"onUpdate:show": R[2] || (R[2] = (W) => x.value = W),
|
|
28203
|
+
onHandleEdit: R[3] || (R[3] = (W) => m.value = !0),
|
|
28204
28204
|
onHandleDelete: E,
|
|
28205
28205
|
onHandleCopy: I,
|
|
28206
28206
|
onHandlePaste: A
|
|
@@ -28209,13 +28209,13 @@ const KN = {
|
|
|
28209
28209
|
t.isPreview ? j("", !0) : (b(), ne(NF, {
|
|
28210
28210
|
key: 0,
|
|
28211
28211
|
show: m.value,
|
|
28212
|
-
"onUpdate:show": R[
|
|
28212
|
+
"onUpdate:show": R[4] || (R[4] = (W) => m.value = W),
|
|
28213
28213
|
data: t.modelValue
|
|
28214
28214
|
}, null, 8, ["show", "data"]))
|
|
28215
28215
|
], 36)) : j("", !0);
|
|
28216
28216
|
};
|
|
28217
28217
|
}
|
|
28218
|
-
}), em = /* @__PURE__ */ fe(KF, [["__scopeId", "data-v-
|
|
28218
|
+
}), em = /* @__PURE__ */ fe(KF, [["__scopeId", "data-v-ec8d19c4"]]), YF = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: em }, Symbol.toStringTag, { value: "Module" }));
|
|
28219
28219
|
/*!
|
|
28220
28220
|
* vue-router v4.5.1
|
|
28221
28221
|
* (c) 2025 Eduardo San Martin Morote
|
|
@@ -29317,7 +29317,7 @@ const ZF = { class: "tab__wrapper" }, eH = ["onClick"], tH = ["id", "onClick"],
|
|
|
29317
29317
|
},
|
|
29318
29318
|
emits: ["update:show"],
|
|
29319
29319
|
setup(t, { emit: e }) {
|
|
29320
|
-
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-
|
|
29320
|
+
const n = ze(() => import("vuedraggable")), s = ze(() => import("./index-Cp-cdRqx.mjs")), i = B(!1), a = z(() => ({
|
|
29321
29321
|
animation: 200,
|
|
29322
29322
|
group: "programmes",
|
|
29323
29323
|
// 链接专用分组
|
|
@@ -30337,7 +30337,7 @@ const ZF = { class: "tab__wrapper" }, eH = ["onClick"], tH = ["id", "onClick"],
|
|
|
30337
30337
|
emits: ["update:show"],
|
|
30338
30338
|
setup(t, { emit: e }) {
|
|
30339
30339
|
ze(
|
|
30340
|
-
() => import("./index-
|
|
30340
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
30341
30341
|
);
|
|
30342
30342
|
const n = e, s = () => {
|
|
30343
30343
|
n("update:show", !1);
|
|
@@ -30544,7 +30544,7 @@ const ZF = { class: "tab__wrapper" }, eH = ["onClick"], tH = ["id", "onClick"],
|
|
|
30544
30544
|
emits: ["update:show"],
|
|
30545
30545
|
setup(t, { emit: e }) {
|
|
30546
30546
|
ze(
|
|
30547
|
-
() => import("./index-
|
|
30547
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
30548
30548
|
);
|
|
30549
30549
|
const n = e, s = () => {
|
|
30550
30550
|
n("update:show", !1);
|
|
@@ -66649,7 +66649,7 @@ const pJ = /* @__PURE__ */ fe(uJ, [["render", mJ], ["__scopeId", "data-v-c5a2a3e
|
|
|
66649
66649
|
emits: ["update:show"],
|
|
66650
66650
|
setup(t, { emit: e }) {
|
|
66651
66651
|
ze(
|
|
66652
|
-
() => import("./index-
|
|
66652
|
+
() => import("./index-Cp-cdRqx.mjs")
|
|
66653
66653
|
);
|
|
66654
66654
|
const n = e, s = () => {
|
|
66655
66655
|
n("update:show", !1);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getCurrentInstance as ce, ref as d, computed as r, watch as I, nextTick as b, onMounted as pe, createElementBlock as k, openBlock as g, normalizeClass as O, createElementVNode as a, withDirectives as ue, vShow as de, Fragment as X, renderList as ae, createBlock as K, resolveDynamicComponent as ve, withCtx as L, normalizeStyle as me, defineComponent as fe, defineAsyncComponent as ge, resolveComponent as E, createVNode as h, createTextVNode as Y, unref as he, mergeProps as ye, toDisplayString as oe, createCommentVNode as j, Transition as be } from "vue";
|
|
2
|
-
import { _ as se, U as we, P as xe, r as A, u as ke, d as Ve, a as Ce, O as _e } from "./index-
|
|
2
|
+
import { _ as se, U as we, P as xe, r as A, u as ke, d as Ve, a as Ce, O as _e } from "./index-DcjvupYq.mjs";
|
|
3
3
|
const Te = { class: "tab-logo__btn__img flex-center" }, Se = ["src", "alt"], $e = {
|
|
4
4
|
__name: "TabLogo",
|
|
5
5
|
props: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var M=Object.create;var O=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var G=(l,v,c,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let f of j(v))!z.call(l,f)&&f!==c&&O(l,f,{get:()=>v[f],enumerable:!(w=F(v,f))||w.enumerable});return l};var J=(l,v,c)=>(c=l!=null?M(q(l)):{},G(v||!l||!l.__esModule?O(c,"default",{value:l,enumerable:!0}):c,l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-DKFNhqPK.js"),K={class:"seting-box"},Q={class:"setting-header flex items-center"},R={key:0},W={class:"setting-header items-center"},X={class:"draggable_box"},Y={class:"drag_top_box"},Z=["onClick"],ee={key:0},te={class:"draggable_link_box"},le={class:"drag_link_top_box"},ae=["onClick"],ne=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(l,{emit:v}){const c=e.defineAsyncComponent(()=>import("vuedraggable")),w=e.computed(()=>({animation:200,group:"gridLinks",disabled:!1,ghostClass:"ghost",handle:".drag-handle, .icon_drag",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1})),f=e.computed(()=>({animation:200,group:"gridLinkItems",disabled:!1,ghostClass:"ghost",handle:".drag-handle, .icon_drag",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1})),y=e.ref(!1),x=e.ref(!1),s=l,p=e.ref(new Set),V=e.ref(new Set),b=()=>{var a,t;(t=(a=s.data)==null?void 0:a.data)!=null&&t.list&&Array.isArray(s.data.data.list)&&(p.value.clear(),V.value.clear(),s.data.data.list.forEach(n=>{n.id&&p.value.add(n.id),n.links&&Array.isArray(n.links)&&n.links.length>0&&n.links.forEach(i=>{i.id&&V.value.add(i.id)})}))},_=e.ref(!1);e.watch(()=>s.show,a=>{a&&!_.value?(_.value=!0,e.nextTick(()=>{b()})):a||(_.value=!1)},{immediate:!0});const B=a=>{var t,n;p.value.has(a.id)?(p.value.clear(),(n=(t=s.data)==null?void 0:t.data)!=null&&n.list&&s.data.data.list.forEach(i=>{i.id!==a.id&&p.value.add(i.id)})):p.value.add(a.id)},m=a=>p.value.has(a.id),r=a=>{s.data.data.list=s.data.data.list.filter(t=>t.id!==a)},h=()=>{var n,i;const a=s.data.data,t=o.r();a.list.push({id:t,title:"这里是标题",links:[]}),p.value.clear(),(i=(n=s.data)==null?void 0:n.data)!=null&&i.list&&s.data.data.list.forEach(g=>{g.id!==t&&p.value.add(g.id)}),e.nextTick(()=>{if(typeof document<"u"){const g=document.querySelector(".arco-drawer-body");g&&(g.scrollTop=g.scrollHeight)}})},C=a=>{V.value.has(a.id)?V.value.delete(a.id):V.value.add(a.id)},k=a=>V.value.has(a.id),$=a=>{const t=s.data.data.list.find(n=>n.id===a);if(t){const n=o.r();t.links.push({id:n,name:"这里是名称",link:""}),t.links&&Array.isArray(t.links)&&t.links.forEach(i=>{i.id!==n?V.value.add(i.id):V.value.delete(i.id)})}},N=(a,t)=>{const n=s.data.data.list.find(i=>i.id===a);n&&n.links&&(n.links=n.links.filter(i=>i.id!==t))},S=v,L=()=>{S("update:show",!1)};return(a,t)=>{const n=e.resolveComponent("a-switch"),i=e.resolveComponent("a-option"),g=e.resolveComponent("a-select"),P=e.resolveComponent("icon-drag-dot"),D=e.resolveComponent("icon-drag-arrow"),U=e.resolveComponent("icon-delete"),T=e.resolveComponent("a-input"),I=e.resolveComponent("icon-plus"),A=e.resolveComponent("a-button"),H=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(H,{width:500,visible:l.show,footer:!1,onCancel:L,unmountOnClose:""},{title:e.withCtx(()=>{var d;return[e.createTextVNode(e.toDisplayString((d=l.data)==null?void 0:d.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[7]||(t[7]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(n,{modelValue:l.data.onlyShowPc,"onUpdate:modelValue":t[0]||(t[0]=d=>l.data.onlyShowPc=d)},null,8,["modelValue"])]),t[19]||(t[19]=e.createElementVNode("p",{class:"item-title"},"组件宽度",-1)),e.createVNode(g,{modelValue:l.data.data.width,"onUpdate:modelValue":t[1]||(t[1]=d=>l.data.data.width=d),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(i,{value:"default"},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(i,{value:"small"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(i,{value:"middle"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(i,{value:"max"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"]),t[20]||(t[20]=e.createElementVNode("div",{class:"part_title",style:{"margin-top":"20px"}},"链接列表",-1)),l.data.data.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",R,"暂无数据")),e.createElementVNode("div",W,[e.createVNode(e.unref(c),e.mergeProps({modelValue:l.data.data.list,"onUpdate:modelValue":t[4]||(t[4]=d=>l.data.data.list=d),"component-data":{tag:"div",type:"transition-group",name:y.value?null:"flip-list"}},w.value,{disabled:!1,onStart:t[5]||(t[5]=d=>y.value=!0),onEnd:t[6]||(t[6]=d=>y.value=!1),"item-key":"id"}),{item:e.withCtx(({element:d})=>[e.createElementVNode("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("div",{class:"drag-handle",onClick:u=>B(d)},[e.createVNode(P,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(d.title),1)],8,Z),e.createElementVNode("div",null,[e.createVNode(D,{class:"icon_drag"}),e.createVNode(U,{class:"btn-delete",onClick:e.withModifiers(u=>r(d.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[t[16]||(t[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(T,{modelValue:d.title,"onUpdate:modelValue":u=>d.title=u,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),t[17]||(t[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),d.links.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ee,"暂无数据")),e.createVNode(e.unref(c),e.mergeProps({modelValue:d.links,"onUpdate:modelValue":u=>d.links=u,"component-data":{tag:"div",type:"transition-group",name:x.value?null:"flip-list"}},f.value,{disabled:!1,onStart:t[2]||(t[2]=u=>x.value=!0),onEnd:t[3]||(t[3]=u=>x.value=!1),"item-key":"id"}),{item:e.withCtx(({element:u})=>[e.createElementVNode("div",te,[e.createElementVNode("div",le,[e.createElementVNode("div",{class:"drag-handle",onClick:E=>C(u)},[e.createVNode(P,{style:{"margin-right":"10px"}}),t[12]||(t[12]=e.createTextVNode("链接 ",-1))],8,ae),e.createElementVNode("div",null,[e.createVNode(D,{class:"icon_drag"}),e.createVNode(U,{class:"btn-delete",onClick:e.withModifiers(E=>N(d.id,u.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[t[13]||(t[13]=e.createElementVNode("p",{class:"link-title",style:{"margin-top":"20px"}}," 名称 ",-1)),e.createVNode(T,{modelValue:u.name,"onUpdate:modelValue":E=>u.name=E,placeholder:"请输入名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),t[14]||(t[14]=e.createElementVNode("p",{class:"link-title",style:{"margin-top":"20px"}}," 链接地址 ",-1)),e.createVNode(T,{modelValue:u.link,"onUpdate:modelValue":E=>u.link=E,placeholder:"请输入链接地址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!k(u)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),e.createVNode(A,{style:{"margin-top":"20px"},size:"mini",type:"primary",onClick:u=>$(d.id)},{icon:e.withCtx(()=>[e.createVNode(I)]),default:e.withCtx(()=>[t[15]||(t[15]=e.createTextVNode(" 链接 ",-1))]),_:1},8,["onClick"])],512),[[e.vShow,!m(d)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(A,{type:"primary",onClick:h,style:{"margin-top":"20px"}},{icon:e.withCtx(()=>[e.createVNode(I)]),default:e.withCtx(()=>[t[18]||(t[18]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),oe=o._(ne,[["__scopeId","data-v-cec126b9"]]),de=["innerHTML"],ie={key:0,class:"grid-links__sublist"},se=["onClick"],re={key:1,class:"grid-links__subitem__link"},ce=e.defineComponent({name:"GridLinks",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(l,{emit:v}){const c=l,w=v,f=m=>{w("handleClick",m)},y=e.computed(()=>{var m;return c.isPreview?!((m=c.modelValue)!=null&&m.onlyShowPc)||!o.i():!0}),x=()=>{var r;if(c.modelValue&&c.modelValue.data)return;const m={id:((r=c.modelValue)==null?void 0:r.id)||o.r(),type:"GridLinks",onlyShowPc:!1,data:{width:"default",bgColor:"white",list:[{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:""},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]}]}};w("update:modelValue",m)},s=e.ref(!1),p=e.ref(!1),V=e.computed(()=>{var h,C;const m=(C=(h=c.modelValue)==null?void 0:h.data)==null?void 0:C.width;return!m||m==="default"?"container-content":{small:"container-content-small",middle:"container-content-middle",max:"container-content-max"}[m]||"container-content"}),b=()=>{w("handleDelete",c.modelValue.id)},_=()=>{w("handleCopy",c.modelValue)},B=m=>{w("handlePaste",m)};return x(),(m,r)=>{var h,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gridLinks_wrap",onMouseenter:r[2]||(r[2]=k=>s.value=!0),onMouseleave:r[3]||(r[3]=k=>s.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(V.value)},[e.createElementVNode("div",{class:"grid-links__row",style:e.normalizeStyle({"--grid-columns-mobile":m.mobileCol,"--grid-columns-desktop":m.desktopCol})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((C=(h=l.modelValue)==null?void 0:h.data)==null?void 0:C.list,(k,$)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-links__item",key:`${k.title}-${$}`},[e.createElementVNode("h6",{class:"grid-links__item__title",innerHTML:k.title},null,8,de),k.links?(e.openBlock(),e.createElementBlock("ul",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.links,(N,S)=>(e.openBlock(),e.createElementBlock("li",{key:`${N.name}-${S}`,class:"grid-links__subitem"},[N.link?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:L=>f(N.link),class:"link_text"},[e.createTextVNode(e.toDisplayString(N.name)+" ",1),r[5]||(r[5]=e.createElementVNode("span",{class:"link_text__underline"},null,-1))],8,se)):(e.openBlock(),e.createElementBlock("div",re,e.toDisplayString(N.name),1))]))),128))])):e.createCommentVNode("",!0)]))),128))],4)],2),l.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o.O,{key:0,show:s.value,"onUpdate:show":r[0]||(r[0]=k=>s.value=k),onHandleEdit:r[1]||(r[1]=k=>p.value=!0),onHandleDelete:b,onHandleCopy:_,onHandlePaste:B},null,8,["show"]))],32)):e.createCommentVNode("",!0),l.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe,{key:1,show:p.value,"onUpdate:show":r[4]||(r[4]=k=>p.value=k),data:l.modelValue},null,8,["show","data"]))],64)}}}),me=o._(ce,[["__scopeId","data-v-ed90ae1e"]]);exports.default=me;
|
|
1
|
+
"use strict";var M=Object.create;var O=Object.defineProperty;var F=Object.getOwnPropertyDescriptor;var j=Object.getOwnPropertyNames;var q=Object.getPrototypeOf,z=Object.prototype.hasOwnProperty;var G=(l,v,c,w)=>{if(v&&typeof v=="object"||typeof v=="function")for(let f of j(v))!z.call(l,f)&&f!==c&&O(l,f,{get:()=>v[f],enumerable:!(w=F(v,f))||w.enumerable});return l};var J=(l,v,c)=>(c=l!=null?M(q(l)):{},G(v||!l||!l.__esModule?O(c,"default",{value:l,enumerable:!0}):c,l));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),o=require("./index-CU8BeqSQ.js"),K={class:"seting-box"},Q={class:"setting-header flex items-center"},R={key:0},W={class:"setting-header items-center"},X={class:"draggable_box"},Y={class:"drag_top_box"},Z=["onClick"],ee={key:0},te={class:"draggable_link_box"},le={class:"drag_link_top_box"},ae=["onClick"],ne=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(l,{emit:v}){const c=e.defineAsyncComponent(()=>import("vuedraggable")),w=e.computed(()=>({animation:200,group:"gridLinks",disabled:!1,ghostClass:"ghost",handle:".drag-handle, .icon_drag",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1})),f=e.computed(()=>({animation:200,group:"gridLinkItems",disabled:!1,ghostClass:"ghost",handle:".drag-handle, .icon_drag",filter:".arco-input, .arco-select, .arco-checkbox",preventOnFilter:!1})),y=e.ref(!1),x=e.ref(!1),s=l,p=e.ref(new Set),V=e.ref(new Set),b=()=>{var a,t;(t=(a=s.data)==null?void 0:a.data)!=null&&t.list&&Array.isArray(s.data.data.list)&&(p.value.clear(),V.value.clear(),s.data.data.list.forEach(n=>{n.id&&p.value.add(n.id),n.links&&Array.isArray(n.links)&&n.links.length>0&&n.links.forEach(i=>{i.id&&V.value.add(i.id)})}))},_=e.ref(!1);e.watch(()=>s.show,a=>{a&&!_.value?(_.value=!0,e.nextTick(()=>{b()})):a||(_.value=!1)},{immediate:!0});const B=a=>{var t,n;p.value.has(a.id)?(p.value.clear(),(n=(t=s.data)==null?void 0:t.data)!=null&&n.list&&s.data.data.list.forEach(i=>{i.id!==a.id&&p.value.add(i.id)})):p.value.add(a.id)},m=a=>p.value.has(a.id),r=a=>{s.data.data.list=s.data.data.list.filter(t=>t.id!==a)},h=()=>{var n,i;const a=s.data.data,t=o.r();a.list.push({id:t,title:"这里是标题",links:[]}),p.value.clear(),(i=(n=s.data)==null?void 0:n.data)!=null&&i.list&&s.data.data.list.forEach(g=>{g.id!==t&&p.value.add(g.id)}),e.nextTick(()=>{if(typeof document<"u"){const g=document.querySelector(".arco-drawer-body");g&&(g.scrollTop=g.scrollHeight)}})},C=a=>{V.value.has(a.id)?V.value.delete(a.id):V.value.add(a.id)},k=a=>V.value.has(a.id),$=a=>{const t=s.data.data.list.find(n=>n.id===a);if(t){const n=o.r();t.links.push({id:n,name:"这里是名称",link:""}),t.links&&Array.isArray(t.links)&&t.links.forEach(i=>{i.id!==n?V.value.add(i.id):V.value.delete(i.id)})}},N=(a,t)=>{const n=s.data.data.list.find(i=>i.id===a);n&&n.links&&(n.links=n.links.filter(i=>i.id!==t))},S=v,L=()=>{S("update:show",!1)};return(a,t)=>{const n=e.resolveComponent("a-switch"),i=e.resolveComponent("a-option"),g=e.resolveComponent("a-select"),P=e.resolveComponent("icon-drag-dot"),D=e.resolveComponent("icon-drag-arrow"),U=e.resolveComponent("icon-delete"),T=e.resolveComponent("a-input"),I=e.resolveComponent("icon-plus"),A=e.resolveComponent("a-button"),H=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(H,{width:500,visible:l.show,footer:!1,onCancel:L,unmountOnClose:""},{title:e.withCtx(()=>{var d;return[e.createTextVNode(e.toDisplayString((d=l.data)==null?void 0:d.type)+"组件编辑 ",1)]}),default:e.withCtx(()=>[e.createElementVNode("div",K,[e.createElementVNode("div",Q,[t[7]||(t[7]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(n,{modelValue:l.data.onlyShowPc,"onUpdate:modelValue":t[0]||(t[0]=d=>l.data.onlyShowPc=d)},null,8,["modelValue"])]),t[19]||(t[19]=e.createElementVNode("p",{class:"item-title"},"组件宽度",-1)),e.createVNode(g,{modelValue:l.data.data.width,"onUpdate:modelValue":t[1]||(t[1]=d=>l.data.data.width=d),placeholder:"请选择","allow-clear":""},{default:e.withCtx(()=>[e.createVNode(i,{value:"default"},{default:e.withCtx(()=>[...t[8]||(t[8]=[e.createTextVNode("默认",-1)])]),_:1}),e.createVNode(i,{value:"small"},{default:e.withCtx(()=>[...t[9]||(t[9]=[e.createTextVNode("小",-1)])]),_:1}),e.createVNode(i,{value:"middle"},{default:e.withCtx(()=>[...t[10]||(t[10]=[e.createTextVNode("中",-1)])]),_:1}),e.createVNode(i,{value:"max"},{default:e.withCtx(()=>[...t[11]||(t[11]=[e.createTextVNode("大",-1)])]),_:1})]),_:1},8,["modelValue"]),t[20]||(t[20]=e.createElementVNode("div",{class:"part_title",style:{"margin-top":"20px"}},"链接列表",-1)),l.data.data.list.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",R,"暂无数据")),e.createElementVNode("div",W,[e.createVNode(e.unref(c),e.mergeProps({modelValue:l.data.data.list,"onUpdate:modelValue":t[4]||(t[4]=d=>l.data.data.list=d),"component-data":{tag:"div",type:"transition-group",name:y.value?null:"flip-list"}},w.value,{disabled:!1,onStart:t[5]||(t[5]=d=>y.value=!0),onEnd:t[6]||(t[6]=d=>y.value=!1),"item-key":"id"}),{item:e.withCtx(({element:d})=>[e.createElementVNode("div",X,[e.createElementVNode("div",Y,[e.createElementVNode("div",{class:"drag-handle",onClick:u=>B(d)},[e.createVNode(P,{style:{"margin-right":"10px"}}),e.createTextVNode(e.toDisplayString(d.title),1)],8,Z),e.createElementVNode("div",null,[e.createVNode(D,{class:"icon_drag"}),e.createVNode(U,{class:"btn-delete",onClick:e.withModifiers(u=>r(d.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[t[16]||(t[16]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"标题",-1)),e.createVNode(T,{modelValue:d.title,"onUpdate:modelValue":u=>d.title=u,placeholder:"请输入标题","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),t[17]||(t[17]=e.createElementVNode("p",{class:"item-title",style:{"margin-top":"20px"}},"链接",-1)),d.links.length?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("div",ee,"暂无数据")),e.createVNode(e.unref(c),e.mergeProps({modelValue:d.links,"onUpdate:modelValue":u=>d.links=u,"component-data":{tag:"div",type:"transition-group",name:x.value?null:"flip-list"}},f.value,{disabled:!1,onStart:t[2]||(t[2]=u=>x.value=!0),onEnd:t[3]||(t[3]=u=>x.value=!1),"item-key":"id"}),{item:e.withCtx(({element:u})=>[e.createElementVNode("div",te,[e.createElementVNode("div",le,[e.createElementVNode("div",{class:"drag-handle",onClick:E=>C(u)},[e.createVNode(P,{style:{"margin-right":"10px"}}),t[12]||(t[12]=e.createTextVNode("链接 ",-1))],8,ae),e.createElementVNode("div",null,[e.createVNode(D,{class:"icon_drag"}),e.createVNode(U,{class:"btn-delete",onClick:e.withModifiers(E=>N(d.id,u.id),["stop"])},null,8,["onClick"])])]),e.createVNode(e.Transition,{name:"collapse"},{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",null,[t[13]||(t[13]=e.createElementVNode("p",{class:"link-title",style:{"margin-top":"20px"}}," 名称 ",-1)),e.createVNode(T,{modelValue:u.name,"onUpdate:modelValue":E=>u.name=E,placeholder:"请输入名称","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"]),t[14]||(t[14]=e.createElementVNode("p",{class:"link-title",style:{"margin-top":"20px"}}," 链接地址 ",-1)),e.createVNode(T,{modelValue:u.link,"onUpdate:modelValue":E=>u.link=E,placeholder:"请输入链接地址","allow-clear":""},null,8,["modelValue","onUpdate:modelValue"])],512),[[e.vShow,!k(u)]])]),_:2},1024)])]),_:2},1040,["modelValue","onUpdate:modelValue","component-data"]),e.createVNode(A,{style:{"margin-top":"20px"},size:"mini",type:"primary",onClick:u=>$(d.id)},{icon:e.withCtx(()=>[e.createVNode(I)]),default:e.withCtx(()=>[t[15]||(t[15]=e.createTextVNode(" 链接 ",-1))]),_:1},8,["onClick"])],512),[[e.vShow,!m(d)]])]),_:2},1024)])]),_:1},16,["modelValue","component-data"])]),e.createVNode(A,{type:"primary",onClick:h,style:{"margin-top":"20px"}},{icon:e.withCtx(()=>[e.createVNode(I)]),default:e.withCtx(()=>[t[18]||(t[18]=e.createTextVNode(" 新增 ",-1))]),_:1})])]),_:1},8,["visible"])}}}),oe=o._(ne,[["__scopeId","data-v-cec126b9"]]),de=["innerHTML"],ie={key:0,class:"grid-links__sublist"},se=["onClick"],re={key:1,class:"grid-links__subitem__link"},ce=e.defineComponent({name:"GridLinks",__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste","handleClick"],setup(l,{emit:v}){const c=l,w=v,f=m=>{w("handleClick",m)},y=e.computed(()=>{var m;return c.isPreview?!((m=c.modelValue)!=null&&m.onlyShowPc)||!o.i():!0}),x=()=>{var r;if(c.modelValue&&c.modelValue.data)return;const m={id:((r=c.modelValue)==null?void 0:r.id)||o.r(),type:"GridLinks",onlyShowPc:!1,data:{width:"default",bgColor:"white",list:[{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:""},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]},{id:o.r(),title:"这里是标题",links:[{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"},{id:o.r(),name:"这里是名称",link:"https://www.baidu.com"}]}]}};w("update:modelValue",m)},s=e.ref(!1),p=e.ref(!1),V=e.computed(()=>{var h,C;const m=(C=(h=c.modelValue)==null?void 0:h.data)==null?void 0:C.width;return!m||m==="default"?"container-content":{small:"container-content-small",middle:"container-content-middle",max:"container-content-max"}[m]||"container-content"}),b=()=>{w("handleDelete",c.modelValue.id)},_=()=>{w("handleCopy",c.modelValue)},B=m=>{w("handlePaste",m)};return x(),(m,r)=>{var h,C;return e.openBlock(),e.createElementBlock(e.Fragment,null,[y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"gridLinks_wrap",onMouseenter:r[2]||(r[2]=k=>s.value=!0),onMouseleave:r[3]||(r[3]=k=>s.value=!1)},[e.createElementVNode("div",{class:e.normalizeClass(V.value)},[e.createElementVNode("div",{class:"grid-links__row",style:e.normalizeStyle({"--grid-columns-mobile":m.mobileCol,"--grid-columns-desktop":m.desktopCol})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList((C=(h=l.modelValue)==null?void 0:h.data)==null?void 0:C.list,(k,$)=>(e.openBlock(),e.createElementBlock("div",{class:"grid-links__item",key:`${k.title}-${$}`},[e.createElementVNode("h6",{class:"grid-links__item__title",innerHTML:k.title},null,8,de),k.links?(e.openBlock(),e.createElementBlock("ul",ie,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.links,(N,S)=>(e.openBlock(),e.createElementBlock("li",{key:`${N.name}-${S}`,class:"grid-links__subitem"},[N.link?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:L=>f(N.link),class:"link_text"},[e.createTextVNode(e.toDisplayString(N.name)+" ",1),r[5]||(r[5]=e.createElementVNode("span",{class:"link_text__underline"},null,-1))],8,se)):(e.openBlock(),e.createElementBlock("div",re,e.toDisplayString(N.name),1))]))),128))])):e.createCommentVNode("",!0)]))),128))],4)],2),l.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(o.O,{key:0,show:s.value,"onUpdate:show":r[0]||(r[0]=k=>s.value=k),onHandleEdit:r[1]||(r[1]=k=>p.value=!0),onHandleDelete:b,onHandleCopy:_,onHandlePaste:B},null,8,["show"]))],32)):e.createCommentVNode("",!0),l.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(oe,{key:1,show:p.value,"onUpdate:show":r[4]||(r[4]=k=>p.value=k),data:l.modelValue},null,8,["show","data"]))],64)}}}),me=o._(ce,[["__scopeId","data-v-ed90ae1e"]]);exports.default=me;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("vue"),i=require("./index-CU8BeqSQ.js"),h={class:"setting-content"},C={class:"setting-header flex items-center"},E={class:"setting-header flex items-center"},N={class:"setting-header flex items-center"},x={class:"setting-header flex items-center"},P={class:"setting-header flex items-center"},B={class:"setting-header flex items-center"},S={class:"preview-container"},z=["src"],I={key:1,class:"no-preview"},$={class:"setting-body"},H={class:"setting-item"},U={class:"components-content"},D=e.defineComponent({__name:"setting",props:{show:{type:Boolean,default:!1},data:{type:Object,default:()=>{}}},emits:["update:show"],setup(o,{emit:g}){const n=o,u=e.ref([{id:"preset-1",name:"YCCECE Background 1",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-01.svg",size:"cover",position:"center center"},{id:"preset-2",name:"YCCECE Background 2",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-02.svg",size:"",position:""},{id:"preset-3",name:"YCCECE Background 3",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-03.svg",size:"cover",position:""},{id:"preset-4",name:"YCCECE Background 4",image:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-04.svg",size:"cover",position:""}]),c=e.ref(),r=u.value.find(s=>s.image===n.data.backgroundImage);c.value=r?r.id:"";const m=()=>{const s=u.value.find(a=>a.id===c.value);s&&(n.data.backgroundImage=`${s.image}`,n.data.backgroundSize=s.size,n.data.backgroundPosition=s.position)},v=g,k=()=>{v("update:show",!1)};return(s,a)=>{const V=e.resolveComponent("a-switch"),y=e.resolveComponent("a-option"),b=e.resolveComponent("a-select"),w=e.resolveComponent("a-button"),p=e.resolveComponent("a-input"),f=e.resolveComponent("a-drawer");return e.openBlock(),e.createBlock(f,{width:"60%",visible:o.show,footer:!1,onCancel:k,unmountOnClose:""},{title:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.data.type)+"组件编辑 ",1)]),default:e.withCtx(()=>[e.createElementVNode("div",h,[e.createElementVNode("div",C,[a[6]||(a[6]=e.createElementVNode("span",{class:"header-title"},"仅显示PC端",-1)),e.createVNode(V,{modelValue:o.data.onlyShowPc,"onUpdate:modelValue":a[0]||(a[0]=t=>o.data.onlyShowPc=t)},null,8,["modelValue"])]),e.createElementVNode("div",E,[a[8]||(a[8]=e.createElementVNode("span",{class:"header-title"},"Background Preset",-1)),e.createVNode(b,{modelValue:c.value,"onUpdate:modelValue":a[1]||(a[1]=t=>c.value=t),style:{width:"300px","margin-right":"8px"}},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(u.value,t=>(e.openBlock(),e.createBlock(y,{value:t.id,key:t.id},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(t.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"]),e.createVNode(w,{type:"primary",onClick:m},{default:e.withCtx(()=>[...a[7]||(a[7]=[e.createTextVNode("Apply",-1)])]),_:1})]),e.createElementVNode("div",N,[a[9]||(a[9]=e.createElementVNode("span",{class:"header-title"},"Image",-1)),e.createVNode(p,{modelValue:o.data.backgroundImage,"onUpdate:modelValue":a[2]||(a[2]=t=>o.data.backgroundImage=t),disabled:!0,placeholder:"图片路径",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",x,[a[10]||(a[10]=e.createElementVNode("span",{class:"header-title"},"Size",-1)),e.createVNode(p,{modelValue:o.data.backgroundSize,"onUpdate:modelValue":a[3]||(a[3]=t=>o.data.backgroundSize=t),disabled:!0,placeholder:"尺寸",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",P,[a[11]||(a[11]=e.createElementVNode("span",{class:"header-title"},"Position",-1)),e.createVNode(p,{modelValue:o.data.backgroundPosition,"onUpdate:modelValue":a[4]||(a[4]=t=>o.data.backgroundPosition=t),disabled:!0,placeholder:"位置",style:{width:"300px"}},null,8,["modelValue"])]),e.createElementVNode("div",B,[a[13]||(a[13]=e.createElementVNode("span",{class:"header-title"},"Preview",-1)),e.createElementVNode("div",S,[o.data.backgroundImage?(e.openBlock(),e.createElementBlock("img",{key:0,src:o.data.backgroundImage,style:e.normalizeStyle({"object-fit":o.data.backgroundSize||"cover","background-position":o.data.backgroundPosition||"center center",width:"100%",height:"100px",border:"1px solid #ddd"}),alt:"Background Preview"},null,12,z)):(e.openBlock(),e.createElementBlock("div",I,"No preview available")),a[12]||(a[12]=e.createElementVNode("p",{class:"preview-note"}," A light grey background has been applied for previewing and will not be reflected on website. ",-1))])]),e.createElementVNode("div",$,[a[14]||(a[14]=e.createElementVNode("div",{class:"setting-toolbar"},[e.createElementVNode("h4",null,"组件")],-1)),e.createElementVNode("div",H,[e.createElementVNode("div",U,[e.createVNode(i.P,{data:o.data.data,onUpdate:a[5]||(a[5]=t=>o.data.data=t)},null,8,["data"])])])])])]),_:1},8,["visible"])}}}),O=i._(D,[["__scopeId","data-v-f43efd7b"]]),T={class:"component-wrapper"},j={__name:"index",props:{modelValue:{type:Object,default:()=>{}},isPreview:{type:Boolean,default:!0}},emits:["update:modelValue","handleDelete","handleCopy","handlePaste"],setup(o,{emit:g}){const n=o,u=g,c=e.computed(()=>{var t,l;return!((t=n.modelValue)!=null&&t.data)||!Array.isArray(n.modelValue.data)?[]:(l=n.modelValue)==null?void 0:l.data}),r=e.ref(!1),m=e.ref(!1),v=()=>{var l,d;if(n.modelValue&&n.modelValue.data)return;const t={id:((l=n.modelValue)==null?void 0:l.id)||i.r(),type:"BackgroundWrapper",onlyShowPc:!1,backgroundImage:"https://ywies-tx.cedim.cn/images/material/ycyw-90th-bg-01.svg",backgroundSize:"cover",backgroundPosition:"center center",data:[{id:((d=n.modelValue)==null?void 0:d.id)||i.r(),type:"CustomText",onlyShowPc:!1,data:{width:1920,backgroundColor:"#ffffff",title:"这是标题",description:"这是描述"}}]};u("update:modelValue",t)},k=e.computed(()=>{var t;return n.isPreview?!((t=n.modelValue)!=null&&t.onlyShowPc)||!i.i():!0}),s=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.classes)??null}),a=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.style)??null}),V=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.width)??null}),y=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundImage)??""}),b=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundColor)??"transparent"}),w=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundSize)??"contain"}),p=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundPosition)??"center"}),f=e.computed(()=>{var t;return((t=n.modelValue)==null?void 0:t.backgroundRepeat)??"no-repeat"});return v(),(t,l)=>k.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["background-wrapper",s.value]),style:e.normalizeStyle(a.value)},[e.createElementVNode("div",{class:e.normalizeClass(V.value),style:{position:"relative"},onMouseover:l[2]||(l[2]=d=>r.value=!0),onMouseout:l[3]||(l[3]=d=>r.value=!1)},[e.createElementVNode("div",{class:"background-wrapper__bg",style:e.normalizeStyle({"background-image":`url('${y.value}')`,"background-color":`${b.value}`,"background-size":`${w.value}`,"background-position":`${p.value}`,"background-repeat":`${f.value}`})},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c.value,(d,Y)=>(e.openBlock(),e.createElementBlock("div",{key:d.id,class:"page-item"},[e.createElementVNode("div",T,[e.createVNode(i.a,{type:d.type,"props-data":{modelValue:d}},null,8,["type","props-data"])])]))),128))],4),o.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(i.O,{key:0,show:r.value,"onUpdate:show":l[0]||(l[0]=d=>r.value=d),onHandleEdit:l[1]||(l[1]=d=>m.value=!0),onHandleDelete:t.handleDelete,onHandleCopy:t.handleCopy,onHandlePaste:t.handlePaste},null,8,["show","onHandleDelete","onHandleCopy","onHandlePaste"]))],34),o.isPreview?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(O,{key:0,show:m.value,"onUpdate:show":l[4]||(l[4]=d=>m.value=d),data:o.modelValue},null,8,["show","data"]))],6)):e.createCommentVNode("",!0)}},A=i._(j,[["__scopeId","data-v-e3f5b699"]]);exports.default=A;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as G, defineAsyncComponent as J, resolveComponent as k, createBlock as U, openBlock as O, withCtx as y, createElementVNode as i, createVNode as p, createTextVNode as w, toDisplayString as X, ref as C, computed as V, onMounted as q, nextTick as K, onBeforeUnmount as Q, createElementBlock as M, createCommentVNode as B, normalizeStyle as L, normalizeClass as H, Fragment as Y, renderList as Z } from "vue";
|
|
2
|
-
import { g as ee, c as I, P as te, _ as z, i as ne, a as le, O as ae, r as oe } from "./index-
|
|
2
|
+
import { g as ee, c as I, P as te, _ as z, i as ne, a as le, O as ae, r as oe } from "./index-DcjvupYq.mjs";
|
|
3
3
|
var R = "Expected a function", A = NaN, se = "[object Symbol]", ie = /^\s+|\s+$/g, re = /^[-+]0x[0-9a-f]+$/i, de = /^0b[01]+$/i, ue = /^0o[0-7]+$/i, fe = parseInt, ce = typeof I == "object" && I && I.Object === Object && I, me = typeof self == "object" && self && self.Object === Object && self, ve = ce || me || Function("return this")(), pe = Object.prototype, ye = pe.toString, ge = Math.max, be = Math.min, N = function() {
|
|
4
4
|
return ve.Date.now();
|
|
5
5
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./index-CU8BeqSQ.js");exports.AlummiCommunityList=a.a3;exports.AlummiCommunityListPlugin=a.b3;exports.AnimationUtils=a.bp;exports.ArticleItem=a.s;exports.ArticleItemPlugin=a.aF;exports.ArticleList=a.A;exports.ArticleListPlugin=a.an;exports.ArticleListPureText=a.ad;exports.ArticleListPureTextPlugin=a.bc;exports.BannerImage=a.B;exports.BannerImagePlugin=a.ao;exports.BannerImageWithLink=a.E;exports.BannerImageWithLinkPlugin=a.aP;exports.BannerPage=a.f;exports.BannerPagePlugin=a.ap;exports.BannerQuote=a.q;exports.BannerQuotePlugin=a.aE;exports.BasicCollapse=a.X;exports.BasicCollapsePlugin=a.aZ;exports.BlessingMessage=a.a4;exports.BlessingMessagePlugin=a.b4;exports.BlessingSlider=a.a5;exports.BlessingSliderPlugin=a.b5;exports.BtnList=a.h;exports.BtnListPlugin=a.aq;exports.CardCarousel=a.o;exports.CardCarouselArticles=a.J;exports.CardCarouselArticlesPlugin=a.aU;exports.CardCarouselMultiRow=a.p;exports.CardCarouselMultiRowArticles=a.a2;exports.CardCarouselMultiRowArticlesPlugin=a.b2;exports.CardCarouselMultiRowPlugin=a.aD;exports.CardCarouselMultiRowPublications=a.a9;exports.CardCarouselMultiRowPublicationsPlugin=a.b9;exports.CardCarouselPlugin=a.aC;exports.CardListCircle=a.ah;exports.CardListCirclePlugin=a.bg;exports.CardListProgramme=a.ag;exports.CardListProgrammePlugin=a.bf;exports.CardListSchool=a.ai;exports.CardListSchoolPlugin=a.bh;exports.CardShowcase=a.a6;exports.CardShowcasePlugin=a.b6;exports.CardShowcaseProfile=a.v;exports.CardShowcaseProfilePlugin=a.aK;exports.CarouselLogo=a.K;exports.CarouselLogoPlugin=a.aV;exports.ContactUsInfo=a.F;exports.ContactUsInfoPlugin=a.aR;exports.ContactUsList=a.y;exports.ContactUsListPlugin=a.aM;exports.CountDown=a.w;exports.CountDownPlugin=a.aL;exports.CustomIframe=a.x;exports.CustomIframePlugin=a.aN;exports.CustomSpace=a.C;exports.CustomSpacePlugin=a.aw;exports.CustomText=a.aa;exports.CustomTextPlugin=a.aa;exports.DetailLink=a.ak;exports.DetailLinkPlugin=a.bj;exports.Disc=a.W;exports.DiscPlugin=a.aY;exports.DonorLinks=a.D;exports.DonorLinksPlugin=a.aB;exports.ExploreLinks=a.a7;exports.ExploreLinksPlugin=a.b7;exports.GalleryBlock=a.a1;exports.GalleryBlockPlugin=a.b1;exports.GalleryCaptionRound=a.j;exports.GalleryCaptionRoundPlugin=a.as;exports.GalleryDefault=a.G;exports.GalleryDefaultPlugin=a.ar;exports.GalleryList=a.n;exports.GalleryListPlugin=a.ax;exports.GalleryTimeline=a.k;exports.GalleryTimelineCol=a.l;exports.GalleryTimelineColPlugin=a.au;exports.GalleryTimelinePlugin=a.at;exports.HeroSlide=a.H;exports.HeroSlidePlugin=a.ay;exports.InformationLink=a.al;exports.InformationLinkPlugin=a.bk;exports.LinkList=a.L;exports.LinkListPlugin=a.az;exports.MapStatic=a.M;exports.MapStaticPlugin=a.aT;exports.MediaImageFull=a.ab;exports.MediaImageFullPlugin=a.ba;exports.MediaImageStatic=a.ac;exports.MediaImageStaticPlugin=a.bb;exports.MediaLogo=a.Z;exports.MediaLogoPlugin=a.a$;exports.MediaVideo=a.aj;exports.MediaVideoPlugin=a.bi;exports.NewsList=a.N;exports.NewsListPlugin=a.aI;exports.Process=a.m;exports.ProcessPlugin=a.av;exports.Publications=a.I;exports.PublicationsPlugin=a.aS;exports.QuoteText=a.b;exports.QuoteTextPlugin=a.aA;exports.RegisterForm=a.a0;exports.RegisterFormPlugin=a.b0;exports.Resources=a.Q;exports.ResourcesPlugin=a.aW;exports.ResourcesTwo=a.V;exports.ResourcesTwoPlugin=a.aX;exports.ResponsiveUtils=a.bo;exports.RibbonBlock=a.R;exports.RibbonBlockPlugin=a.aG;exports.SchoolLayout=a.a8;exports.SchoolLayoutPlugin=a.b8;exports.ScrollKeyInfo=a.S;exports.ScrollKeyInfoPlugin=a.aQ;exports.StorageUtils=a.bq;exports.TabDefault=a.ae;exports.TabDefaultPlugin=a.bd;exports.TabPage=a.am;exports.TabPagePlugin=a.bl;exports.TabTimeLine=a.af;exports.TabTimeLinePlugin=a.be;exports.TableCollapse=a.Y;exports.TableCollapsePlugin=a.a_;exports.TableTwo=a.z;exports.TableTwoPlugin=a.aO;exports.TheHistoryCarousel=a.t;exports.TheHistoryCarouselPlugin=a.aJ;exports.ThemeUtils=a.bn;exports.TimelineStory=a.T;exports.TimelineStoryPlugin=a.aH;exports.default=a.e;exports.useTheme=a.bm;
|