officialblock 3.2.6 → 3.2.8
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-ByBQyogm.mjs → index-DTVGLcVO.mjs} +5091 -5081
- package/dist/index-DqkRcbuS.js +1 -0
- package/dist/{index-txXn_T7G.js → index-DuM_83fz.js} +92 -92
- package/dist/{index-kOpQbb-y.mjs → index-bszz-Wsq.mjs} +19 -17
- package/dist/official-block.cjs.js +1 -1
- package/dist/official-block.es.js +5 -5
- package/dist/official-block.umd.js +6 -6
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/index-CPpAEaw-.js +0 -1
- package/dist/index-CkHxLhkM.js +0 -1
- package/dist/index-HSXbIqi6.mjs +0 -4
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
var j = Object.defineProperty;
|
|
2
2
|
var T = (a, u, c) => u in a ? j(a, u, { enumerable: !0, configurable: !0, writable: !0, value: c }) : a[u] = c;
|
|
3
3
|
var r = (a, u, c) => T(a, typeof u != "symbol" ? u + "" : u, c);
|
|
4
|
-
import { defineComponent as $, shallowRef as R, ref as g, computed as q, inject as C, watch as p, nextTick as y, onBeforeUnmount as J, createElementBlock as P, openBlock as G, createVNode as S, unref as
|
|
5
|
-
import { Toolbar as
|
|
6
|
-
import { Boot as
|
|
7
|
-
import {
|
|
8
|
-
const
|
|
4
|
+
import { defineComponent as $, shallowRef as R, ref as g, computed as q, inject as C, watch as p, nextTick as y, onBeforeUnmount as J, createElementBlock as P, openBlock as G, normalizeClass as Q, createVNode as S, unref as w, normalizeStyle as W } from "vue";
|
|
5
|
+
import { Toolbar as X, Editor as Y } from "@wangeditor/editor-for-vue";
|
|
6
|
+
import { Boot as I } from "@wangeditor/editor";
|
|
7
|
+
import { _ as Z } from "./index-DTVGLcVO.mjs";
|
|
8
|
+
const ee = /* @__PURE__ */ $({
|
|
9
9
|
__name: "index",
|
|
10
10
|
props: {
|
|
11
11
|
name: { default: "" },
|
|
@@ -20,7 +20,7 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
20
20
|
},
|
|
21
21
|
emits: ["update:modelValue", "change", "focus", "blur", "created", "upload-image", "upload-video"],
|
|
22
22
|
setup(a, { expose: u, emit: c }) {
|
|
23
|
-
const n = a, d = c, t = R(), i = g(""),
|
|
23
|
+
const n = a, d = c, t = R(), i = g(""), z = q(() => typeof n.height == "number" ? `${n.height}px` : n.height), D = C("handleUpload", () => {
|
|
24
24
|
}), m = C("fileUrl", null), E = C("chooseName", null), F = g(""), f = g(null), b = (e) => {
|
|
25
25
|
if (!D) {
|
|
26
26
|
console.warn("Upload: handleUpload function not provided by ancestor");
|
|
@@ -101,7 +101,7 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function _(e) {
|
|
105
105
|
return class {
|
|
106
106
|
constructor() {
|
|
107
107
|
r(this, "title");
|
|
@@ -248,7 +248,7 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
248
248
|
"#061178",
|
|
249
249
|
"#22075E",
|
|
250
250
|
"#780650"
|
|
251
|
-
],
|
|
251
|
+
], k = {
|
|
252
252
|
placeholder: n.placeholder,
|
|
253
253
|
readOnly: n.disabled,
|
|
254
254
|
maxLength: n.maxLength,
|
|
@@ -282,7 +282,7 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
282
282
|
}, M = Math.random().toString(36).substring(2, 9), A = `CustomImageMenu_${M}`, V = `CustomVideoMenu_${M}`, K = (e) => {
|
|
283
283
|
t.value = e;
|
|
284
284
|
try {
|
|
285
|
-
const l = H(b), o =
|
|
285
|
+
const l = H(b), o = _(b), h = {
|
|
286
286
|
key: A,
|
|
287
287
|
// 使用唯一的 key
|
|
288
288
|
factory() {
|
|
@@ -295,7 +295,7 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
295
295
|
return new o();
|
|
296
296
|
}
|
|
297
297
|
};
|
|
298
|
-
|
|
298
|
+
I.registerMenu(h), I.registerMenu(s);
|
|
299
299
|
} catch (l) {
|
|
300
300
|
console.warn("菜单注册失败:", l);
|
|
301
301
|
}
|
|
@@ -354,19 +354,21 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
354
354
|
var e;
|
|
355
355
|
return (e = t.value) == null ? void 0 : e.enable();
|
|
356
356
|
}
|
|
357
|
-
}), (e, l) => (G(), P("div",
|
|
358
|
-
|
|
357
|
+
}), (e, l) => (G(), P("div", {
|
|
358
|
+
class: Q(["rich-text-editor", e.class])
|
|
359
|
+
}, [
|
|
360
|
+
S(w(X), {
|
|
359
361
|
class: "editor-toolbar",
|
|
360
362
|
editor: t.value,
|
|
361
363
|
defaultConfig: B,
|
|
362
364
|
mode: a.mode
|
|
363
365
|
}, null, 8, ["editor", "mode"]),
|
|
364
|
-
S(
|
|
366
|
+
S(w(Y), {
|
|
365
367
|
class: "editor-content",
|
|
366
|
-
style:
|
|
368
|
+
style: W({ height: z.value }),
|
|
367
369
|
modelValue: i.value,
|
|
368
370
|
"onUpdate:modelValue": l[0] || (l[0] = (o) => i.value = o),
|
|
369
|
-
defaultConfig:
|
|
371
|
+
defaultConfig: k,
|
|
370
372
|
mode: a.mode,
|
|
371
373
|
onOnCreated: K,
|
|
372
374
|
onOnChange: L,
|
|
@@ -374,9 +376,9 @@ const Z = { class: "rich-text-editor" }, ee = /* @__PURE__ */ $({
|
|
|
374
376
|
onOnFocus: O,
|
|
375
377
|
onOnBlur: U
|
|
376
378
|
}, null, 8, ["style", "modelValue", "mode"])
|
|
377
|
-
]));
|
|
379
|
+
], 2));
|
|
378
380
|
}
|
|
379
|
-
}), re = /* @__PURE__ */
|
|
381
|
+
}), re = /* @__PURE__ */ Z(ee, [["__scopeId", "data-v-c243ccd3"]]);
|
|
380
382
|
export {
|
|
381
383
|
re as default
|
|
382
384
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./index-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const i=require("./index-DuM_83fz.js");exports.AccordionText=i.ah;exports.AccordionTextPlugin=i.bn;exports.AlummiCommunityList=i.K;exports.AlummiCommunityListPlugin=i.a$;exports.AnimationUtils=i.bs;exports.ArticleItem=i.j;exports.ArticleItemPlugin=i.aB;exports.ArticleList=i.A;exports.ArticleListPlugin=i.aj;exports.ArticleListPureText=i.a2;exports.ArticleListPureTextPlugin=i.b9;exports.BackgroundWrapper=i.ad;exports.BackgroundWrapperPlugin=i.bk;exports.BannerImage=i.B;exports.BannerImagePlugin=i.ak;exports.BannerImageWithLink=i.q;exports.BannerImageWithLinkPlugin=i.aL;exports.BannerPage=i.a;exports.BannerPagePlugin=i.al;exports.BannerQuote=i.i;exports.BannerQuotePlugin=i.aA;exports.BasicCollapse=i.y;exports.BasicCollapsePlugin=i.aV;exports.BlessingMessage=i.U;exports.BlessingMessagePlugin=i.b0;exports.BlessingSlider=i.V;exports.BlessingSliderPlugin=i.b1;exports.BtnList=i.b;exports.BtnListPlugin=i.am;exports.CardCarousel=i.g;exports.CardCarouselArticles=i.t;exports.CardCarouselArticlesPlugin=i.aQ;exports.CardCarouselMultiRow=i.h;exports.CardCarouselMultiRowArticles=i.J;exports.CardCarouselMultiRowArticlesPlugin=i.a_;exports.CardCarouselMultiRowPlugin=i.az;exports.CardCarouselMultiRowPublications=i.Z;exports.CardCarouselMultiRowPublicationsPlugin=i.b5;exports.CardCarouselPlugin=i.ay;exports.CardListCircle=i.a6;exports.CardListCirclePlugin=i.bd;exports.CardListProgramme=i.a5;exports.CardListProgrammePlugin=i.bc;exports.CardListSchool=i.a7;exports.CardListSchoolPlugin=i.be;exports.CardShowcase=i.W;exports.CardShowcasePlugin=i.b2;exports.CardShowcaseProfile=i.l;exports.CardShowcaseProfilePlugin=i.aG;exports.CarouselLogo=i.u;exports.CarouselLogoPlugin=i.aR;exports.CollapseCustom=i.ae;exports.CollapseCustomPlugin=i.bl;exports.ContactUsInfo=i.r;exports.ContactUsInfoPlugin=i.aN;exports.ContactUsList=i.o;exports.ContactUsListPlugin=i.aI;exports.CountDown=i.m;exports.CountDownPlugin=i.aH;exports.CustomIframe=i.n;exports.CustomIframePlugin=i.aJ;exports.CustomSpace=i.C;exports.CustomSpacePlugin=i.as;exports.CustomText=i.$;exports.CustomTextPlugin=i.b6;exports.DetailLink=i.a9;exports.DetailLinkPlugin=i.bg;exports.Disc=i.x;exports.DiscPlugin=i.aU;exports.DonorLinks=i.D;exports.DonorLinksPlugin=i.ax;exports.ExploreLinks=i.X;exports.ExploreLinksPlugin=i.b3;exports.GalleryBlock=i.I;exports.GalleryBlockPlugin=i.aZ;exports.GalleryCaptionRound=i.c;exports.GalleryCaptionRoundPlugin=i.ao;exports.GalleryDefault=i.G;exports.GalleryDefaultPlugin=i.an;exports.GalleryList=i.f;exports.GalleryListPlugin=i.at;exports.GalleryTimeline=i.d;exports.GalleryTimelineCol=i.e;exports.GalleryTimelineColPlugin=i.aq;exports.GalleryTimelinePlugin=i.ap;exports.GridLinks=i.ag;exports.HeroSlide=i.H;exports.HeroSlidePlugin=i.au;exports.HtmlItem=i.ai;exports.HtmlItemPlugin=i.bo;exports.InformationLink=i.aa;exports.InformationLinkPlugin=i.bh;exports.LinkList=i.L;exports.LinkListPlugin=i.av;exports.MapStatic=i.M;exports.MapStaticPlugin=i.aP;exports.MediaImageFull=i.a0;exports.MediaImageFullPlugin=i.b7;exports.MediaImageStatic=i.a1;exports.MediaImageStaticPlugin=i.b8;exports.MediaLogo=i.E;exports.MediaLogoPlugin=i.aX;exports.MediaVideo=i.a8;exports.MediaVideoPlugin=i.bf;exports.NewsList=i.N;exports.NewsListPlugin=i.aE;exports.Process=i.P;exports.ProcessPlugin=i.ar;exports.Publications=i.s;exports.PublicationsPlugin=i.aO;exports.QuoteText=i.Q;exports.QuoteTextPlugin=i.aw;exports.RegisterForm=i.F;exports.RegisterFormPlugin=i.aY;exports.Resources=i.v;exports.ResourcesPlugin=i.aS;exports.ResourcesTwo=i.w;exports.ResourcesTwoPlugin=i.aT;exports.ResponsiveUtils=i.br;exports.RibbonBlock=i.R;exports.RibbonBlockPlugin=i.aC;exports.SchoolLayout=i.Y;exports.SchoolLayoutPlugin=i.b4;exports.ScrollKeyInfo=i.S;exports.ScrollKeyInfoPlugin=i.aM;exports.StorageUtils=i.bt;exports.TabDefault=i.a3;exports.TabDefaultPlugin=i.ba;exports.TabLogo=i.ac;exports.TabLogoPlugin=i.bj;exports.TabPage=i.ab;exports.TabPagePlugin=i.bi;exports.TabTimeLine=i.a4;exports.TabTimeLinePlugin=i.bb;exports.TableCollapse=i.z;exports.TableCollapsePlugin=i.aW;exports.TableTwo=i.p;exports.TableTwoPlugin=i.aK;exports.TheHistoryCarousel=i.k;exports.TheHistoryCarouselPlugin=i.aF;exports.ThemeUtils=i.bq;exports.TimelineStory=i.T;exports.TimelineStoryPlugin=i.aD;exports.VrTour=i.af;exports.VrTourPlugin=i.bm;exports.VueScreenPlugin=i.bu;exports.default=i.O;exports.useTheme=i.bp;exports.useVueScreen=i.bv;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ah as i, bn as l,
|
|
1
|
+
import { ah as i, bn as l, K as e, a$ as n, bs as o, j as u, aB as r, A as t, aj as g, a2 as P, b9 as C, ad as c, bk as b, B as m, ak as L, q as d, aL as T, a as S, al as y, i as B, aA as p, y as k, aV as I, U as w, b0 as M, V as f, b1 as R, b as h, am as A, g as G, t as D, aQ as x, h as U, J as H, a_ as V, az as F, Z as Q, b5 as W, ay as v, a6 as E, bd as K, a5 as N, bc as j, a7 as q, be as z, W as J, b2 as O, l as X, aG as Y, u as Z, aR as $, ae as _, bl as aa, r as sa, aN as ia, o as la, aI as ea, m as na, aH as oa, n as ua, aJ as ra, C as ta, as as ga, $ as Pa, b6 as Ca, a9 as ca, bg as ba, x as ma, aU as La, D as da, ax as Ta, X as Sa, b3 as ya, I as Ba, aZ as pa, c as ka, ao as Ia, G as wa, an as Ma, f as fa, at as Ra, d as ha, e as Aa, aq as Ga, ap as Da, ag as xa, H as Ua, au as Ha, ai as Va, bo as Fa, aa as Qa, bh as Wa, L as va, av as Ea, M as Ka, aP as Na, a0 as ja, b7 as qa, a1 as za, b8 as Ja, E as Oa, aX as Xa, a8 as Ya, bf as Za, N as $a, aE as _a, P as as, ar as ss, s as is, aO as ls, Q as es, aw as ns, F as os, aY as us, v as rs, aS as ts, w as gs, aT as Ps, br as Cs, R as cs, aC as bs, Y as ms, b4 as Ls, S as ds, aM as Ts, bt as Ss, a3 as ys, ba as Bs, ac as ps, bj as ks, ab as Is, bi as ws, a4 as Ms, bb as fs, z as Rs, aW as hs, p as As, aK as Gs, k as Ds, aF as xs, bq as Us, T as Hs, aD as Vs, af as Fs, bm as Qs, bu as Ws, O as vs, bp as Es, bv as Ks } from "./index-DTVGLcVO.mjs";
|
|
2
2
|
export {
|
|
3
3
|
i as AccordionText,
|
|
4
4
|
l as AccordionTextPlugin,
|
|
@@ -50,8 +50,8 @@ export {
|
|
|
50
50
|
X as CardShowcaseProfile,
|
|
51
51
|
Y as CardShowcaseProfilePlugin,
|
|
52
52
|
Z as CarouselLogo,
|
|
53
|
-
|
|
54
|
-
|
|
53
|
+
$ as CarouselLogoPlugin,
|
|
54
|
+
_ as CollapseCustom,
|
|
55
55
|
aa as CollapseCustomPlugin,
|
|
56
56
|
sa as ContactUsInfo,
|
|
57
57
|
ia as ContactUsInfoPlugin,
|
|
@@ -104,8 +104,8 @@ export {
|
|
|
104
104
|
Xa as MediaLogoPlugin,
|
|
105
105
|
Ya as MediaVideo,
|
|
106
106
|
Za as MediaVideoPlugin,
|
|
107
|
-
|
|
108
|
-
|
|
107
|
+
$a as NewsList,
|
|
108
|
+
_a as NewsListPlugin,
|
|
109
109
|
as as Process,
|
|
110
110
|
ss as ProcessPlugin,
|
|
111
111
|
is as Publications,
|