officialblock 2.1.5 → 2.1.7
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-DGvRy0FG.js → index-2XnP91cX.js} +1 -1
- package/dist/{index-DuMXP10V.mjs → index-8NPUdCwO.mjs} +1 -1
- package/dist/{index-BLL7s823.mjs → index-B3tXZSRg.mjs} +1 -1
- package/dist/{index-Bf8pSKt6.js → index-BBefhQHG.js} +1 -1
- package/dist/{index-CYJDfNO2.mjs → index-BLMXunT4.mjs} +1 -1
- package/dist/{index-Byrk1Mlt.js → index-BSRuOxk5.js} +1 -1
- package/dist/{index-Bq7PruNu.mjs → index-BaRF1B0Z.mjs} +1 -1
- package/dist/index-By-W0Ito.mjs +4 -0
- package/dist/index-By5KQYOh.js +243 -0
- package/dist/{index-D_wawBrn.mjs → index-C3To7mAV.mjs} +1 -1
- package/dist/{index-ChMoNeEO.js → index-CQgB-NyR.js} +1 -1
- package/dist/{index-Dag86dDG.js → index-DFuCM6Sl.js} +1 -1
- package/dist/{index-ByHLUvb4.mjs → index-DV6KnqfT.mjs} +17111 -16866
- package/dist/{index-DLh3Q6AQ.mjs → index-Dz7lJgfd.mjs} +1 -1
- package/dist/{index-CY_5stdH.js → index-N0gGt0kx.js} +1 -1
- package/dist/{index-J8LamgdJ.js → index-QFpkZqlg.js} +1 -1
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +19 -17
- package/dist/official-block.umd.js +45 -40
- package/dist/style.css +1 -1
- package/package.json +3 -1
- package/dist/index-CdyHd9C0.mjs +0 -4
- package/dist/index-DKFNhqPK.js +0 -238
|
@@ -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-DV6KnqfT.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";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-By5KQYOh.js");exports.default=e.b;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var U=Object.defineProperty;var K=(u,r,i)=>r in u?U(u,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[r]=i;var c=(u,r,i)=>K(u,typeof r!="symbol"?r+"":r,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("@wangeditor/editor-for-vue"),w=require("@wangeditor/editor"),q=require("./index-
|
|
1
|
+
"use strict";var U=Object.defineProperty;var K=(u,r,i)=>r in u?U(u,r,{enumerable:!0,configurable:!0,writable:!0,value:i}):u[r]=i;var c=(u,r,i)=>K(u,typeof r!="symbol"?r+"":r,i);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),B=require("@wangeditor/editor-for-vue"),w=require("@wangeditor/editor"),q=require("./index-By5KQYOh.js"),E={class:"rich-text-editor"},$=t.defineComponent({__name:"index",props:{name:{default:""},modelValue:{default:""},placeholder:{default:"请输入内容..."},height:{default:"400px"},mode:{default:"default"},disabled:{type:Boolean,default:!1},maxLength:{default:1e4},excludeKeys:{default:()=>[]},includeKeys:{default:()=>[]}},emits:["update:modelValue","change","focus","blur","created","upload-image","upload-video"],setup(u,{expose:r,emit:i}){const a=u,m=i,o=t.shallowRef(),d=t.ref(""),I=t.computed(()=>typeof a.height=="number"?`${a.height}px`:a.height),p=t.inject("handleUpload",()=>{}),f=t.inject("fileUrl",null),C=t.inject("chooseName",null),h=t.ref(""),v=t.ref(null),b=e=>{if(!p){console.warn("Upload: handleUpload function not provided by ancestor");return}if(h.value=e,o.value)try{const n=o.value.selection;n&&(v.value={anchor:{path:[...n.anchor.path],offset:n.anchor.offset},focus:{path:[...n.focus.path],offset:n.focus.offset}})}catch(n){console.warn("保存光标位置失败:",n)}const l=a.name+"_"+e;p(!0,l)};t.watch(()=>a.name,()=>{f.value=null},{deep:!0,immediate:!0}),t.watch(()=>[f==null?void 0:f.value],([e])=>{const l=a.name+"_"+h.value;!e||!C.value||C.value!==l||o.value&&t.nextTick(()=>{var n,g;if(o.value){try{if(o.value.focus(),v.value)try{o.value.select(v.value)}catch(s){console.warn("恢复光标位置失败,使用默认位置:",s)}}catch(s){console.warn("聚焦编辑器失败:",s)}if(h.value==="img"){const y=`<img src="${e}" alt="图片" style="max-width: 100%;">`;(n=o.value)==null||n.dangerouslyInsertHtml(y)}else{const y=`<video src="${e}" controls style="max-width: 100%;"></video>`;(g=o.value)==null||g.dangerouslyInsertHtml(y)}v.value=null,h.value=""}})},{immediate:!1});function _(e){return class{constructor(){c(this,"title");c(this,"tag");c(this,"iconSvg");this.title="上传图片",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>'}isActive(){return!1}getValue(){return""}isDisabled(){return!1}exec(){t.nextTick(()=>{console.log("点击了自定义上传图片菜单"),e("img")})}}}function k(e){return class{constructor(){c(this,"title");c(this,"tag");c(this,"iconSvg");this.title="上传视频",this.tag="button",this.iconSvg='<svg viewBox="0 0 1024 1024"><path d="M981.184 160.096C837.568 139.456 678.848 128 512 128S186.432 139.456 42.816 160.096C15.296 267.808 0 386.848 0 512s15.264 244.16 42.816 351.904C186.464 884.544 345.152 896 512 896s325.568-11.456 469.184-32.096C1008.704 756.192 1024 637.152 1024 512s-15.264-244.16-42.816-351.904zM384 704V320l320 192-320 192z"></path></svg>'}getValue(){return""}isActive(){return!1}isDisabled(){return!1}exec(){t.nextTick(()=>{console.log("点击了自定义上传视频菜单"),e("video")})}}}const x={toolbarKeys:["headerSelect","bold","italic","through","underline","color","fontSize","lineHeight","delIndent","indent","divider","insertTable","justifyCenter","justifyJustify","justifyLeft","justifyRight","undo","redo","clearStyle","codeBlock"]},H={placeholder:a.placeholder,readOnly:a.disabled,maxLength:a.maxLength,MENU_CONF:{}},M=Math.random().toString(36).substring(2,9),V=`CustomImageMenu_${M}`,S=`CustomVideoMenu_${M}`,j=e=>{o.value=e;try{const l=_(b),n=k(b),g={key:V,factory(){return new l}},s={key:S,factory(){return new n}};w.Boot.registerMenu(g),w.Boot.registerMenu(s)}catch(l){console.warn("菜单注册失败:",l)}x.insertKeys={index:0,keys:[V,S]},m("created",e)};t.onBeforeUnmount(()=>{const e=o.value;e!=null&&e.destroy()}),t.watch(()=>a.modelValue,e=>{e!==d.value&&(d.value=e||"")},{immediate:!0});const z=e=>{m("update:modelValue",d.value),m("change",e)},N=()=>{o.value=void 0},O=e=>{m("focus",e)},T=e=>{m("blur",e)};return r({editor:o,getHtml:()=>d.value,getText:()=>{var e;return((e=o.value)==null?void 0:e.getText())||""},isEmpty:()=>{var e;return((e=o.value)==null?void 0:e.isEmpty())||!0},clear:()=>{var e;return(e=o.value)==null?void 0:e.clear()},focus:()=>{var e;return(e=o.value)==null?void 0:e.focus()},blur:()=>{var e;return(e=o.value)==null?void 0:e.blur()},disable:()=>{var e;return(e=o.value)==null?void 0:e.disable()},enable:()=>{var e;return(e=o.value)==null?void 0:e.enable()}}),(e,l)=>(t.openBlock(),t.createElementBlock("div",E,[t.createVNode(t.unref(B.Toolbar),{class:"editor-toolbar",editor:o.value,defaultConfig:x,mode:u.mode},null,8,["editor","mode"]),t.createVNode(t.unref(B.Editor),{class:"editor-content",style:t.normalizeStyle({height:I.value}),modelValue:d.value,"onUpdate:modelValue":l[0]||(l[0]=n=>d.value=n),defaultConfig:H,mode:u.mode,onOnCreated:j,onOnChange:z,onOnDestroyed:N,onOnFocus:O,onOnBlur:T},null,8,["style","modelValue","mode"])]))}}),D=q._($,[["__scopeId","data-v-e8d1a61b"]]);exports.default=D;
|
|
@@ -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-By5KQYOh.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.VueScreenPlugin=a.br;exports.default=a.e;exports.useTheme=a.bm;exports.useVueScreen=a.bs;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a3 as i, b3 as l, bp as e, s as n, aF as o, A as u, an as t, ad as r, bc as g, B as P, ao as C, E as c, aP as
|
|
1
|
+
import { a3 as i, b3 as l, bp as e, s as n, aF as o, A as u, an as t, ad as r, bc as g, B as P, ao as C, E as c, aP as b, f as m, ap as L, q as d, aE as T, X as S, aZ as y, a4 as B, b4 as w, a5 as I, b5 as M, h as f, aq as k, o as R, J as h, aU as p, p as A, a2 as D, b2 as G, aD as x, a9 as U, b9 as F, aC as H, ah as Q, bg as V, ag as E, bf as K, ai as N, bh as W, a6 as j, b6 as q, v, aK as z, K as J, aV as X, F as Y, aR as Z, y as O, aM as _, w as $, aL as aa, x as sa, aN as ia, C as la, aw as ea, aa as na, aa as oa, ak as ua, bj as ta, W as ra, aY as ga, D as Pa, aB as Ca, a7 as ca, b7 as ba, a1 as ma, b1 as La, j as da, as as Ta, G as Sa, ar as ya, n as Ba, ax as wa, k as Ia, l as Ma, au as fa, at as ka, H as Ra, ay as ha, al as pa, bk as Aa, L as Da, az as Ga, M as xa, aT as Ua, ab as Fa, ba as Ha, ac as Qa, bb as Va, Z as Ea, a$ as Ka, aj as Na, bi as Wa, N as ja, aI as qa, m as va, av as za, I as Ja, aS as Xa, b as Ya, aA as Za, a0 as Oa, b0 as _a, Q as $a, aW as as, V as ss, aX as is, bo as ls, R as es, aG as ns, a8 as os, b8 as us, S as ts, aQ as rs, bq as gs, ae as Ps, bd as Cs, am as cs, bl as bs, af as ms, be as Ls, Y as ds, a_ as Ts, z as Ss, aO as ys, t as Bs, aJ as ws, bn as Is, T as Ms, aH as fs, br as ks, e as Rs, bm as hs, bs as ps } from "./index-DV6KnqfT.mjs";
|
|
2
2
|
export {
|
|
3
3
|
i as AlummiCommunityList,
|
|
4
4
|
l as AlummiCommunityListPlugin,
|
|
@@ -12,8 +12,8 @@ export {
|
|
|
12
12
|
P as BannerImage,
|
|
13
13
|
C as BannerImagePlugin,
|
|
14
14
|
c as BannerImageWithLink,
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
b as BannerImageWithLinkPlugin,
|
|
16
|
+
m as BannerPage,
|
|
17
17
|
L as BannerPagePlugin,
|
|
18
18
|
d as BannerQuote,
|
|
19
19
|
T as BannerQuotePlugin,
|
|
@@ -36,10 +36,10 @@ export {
|
|
|
36
36
|
F as CardCarouselMultiRowPublicationsPlugin,
|
|
37
37
|
H as CardCarouselPlugin,
|
|
38
38
|
Q as CardListCircle,
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
39
|
+
V as CardListCirclePlugin,
|
|
40
|
+
E as CardListProgramme,
|
|
41
|
+
K as CardListProgrammePlugin,
|
|
42
|
+
N as CardListSchool,
|
|
43
43
|
W as CardListSchoolPlugin,
|
|
44
44
|
j as CardShowcase,
|
|
45
45
|
q as CardShowcasePlugin,
|
|
@@ -66,8 +66,8 @@ export {
|
|
|
66
66
|
Pa as DonorLinks,
|
|
67
67
|
Ca as DonorLinksPlugin,
|
|
68
68
|
ca as ExploreLinks,
|
|
69
|
-
|
|
70
|
-
|
|
69
|
+
ba as ExploreLinksPlugin,
|
|
70
|
+
ma as GalleryBlock,
|
|
71
71
|
La as GalleryBlockPlugin,
|
|
72
72
|
da as GalleryCaptionRound,
|
|
73
73
|
Ta as GalleryCaptionRoundPlugin,
|
|
@@ -90,10 +90,10 @@ export {
|
|
|
90
90
|
Fa as MediaImageFull,
|
|
91
91
|
Ha as MediaImageFullPlugin,
|
|
92
92
|
Qa as MediaImageStatic,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
93
|
+
Va as MediaImageStaticPlugin,
|
|
94
|
+
Ea as MediaLogo,
|
|
95
|
+
Ka as MediaLogoPlugin,
|
|
96
|
+
Na as MediaVideo,
|
|
97
97
|
Wa as MediaVideoPlugin,
|
|
98
98
|
ja as NewsList,
|
|
99
99
|
qa as NewsListPlugin,
|
|
@@ -120,8 +120,8 @@ export {
|
|
|
120
120
|
Ps as TabDefault,
|
|
121
121
|
Cs as TabDefaultPlugin,
|
|
122
122
|
cs as TabPage,
|
|
123
|
-
|
|
124
|
-
|
|
123
|
+
bs as TabPagePlugin,
|
|
124
|
+
ms as TabTimeLine,
|
|
125
125
|
Ls as TabTimeLinePlugin,
|
|
126
126
|
ds as TableCollapse,
|
|
127
127
|
Ts as TableCollapsePlugin,
|
|
@@ -132,6 +132,8 @@ export {
|
|
|
132
132
|
Is as ThemeUtils,
|
|
133
133
|
Ms as TimelineStory,
|
|
134
134
|
fs as TimelineStoryPlugin,
|
|
135
|
-
ks as
|
|
136
|
-
Rs as
|
|
135
|
+
ks as VueScreenPlugin,
|
|
136
|
+
Rs as default,
|
|
137
|
+
hs as useTheme,
|
|
138
|
+
ps as useVueScreen
|
|
137
139
|
};
|