vue-editify 0.1.45 → 0.1.47
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/lib/editify.es.js +14 -5
- package/lib/editify.umd.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +2 -2
- package/src/editify/editify.less +2 -6
- package/src/editify/editify.vue +14 -2
- package/src/index.ts +1 -1
package/lib/editify.es.js
CHANGED
@@ -4558,7 +4558,7 @@ class AlexEditor {
|
|
4558
4558
|
event$1.off(this.$el, "beforeinput.alex_editor compositionstart.alex_editor compositionupdate.alex_editor compositionend.alex_editor keydown.alex_editor cut.alex_editor paste.alex_editor copy.alex_editor dragstart.alex_editor drop.alex_editor focus.alex_editor blur.alex_editor");
|
4559
4559
|
}
|
4560
4560
|
}
|
4561
|
-
const version$2 = "1.4.
|
4561
|
+
const version$2 = "1.4.9";
|
4562
4562
|
console.log(`%c alex-editor %c v${version$2} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
|
4563
4563
|
const number = {
|
4564
4564
|
/**
|
@@ -26235,7 +26235,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
26235
26235
|
}
|
26236
26236
|
} else if (["img", "video"].includes(element$12.parsedom)) {
|
26237
26237
|
const rect = element.getElementBounding(elm);
|
26238
|
-
if (event2.pageX >= Math.abs(rect.left + elm.offsetWidth - 10) && event2.pageX <= Math.abs(rect.left + elm.offsetWidth)
|
26238
|
+
if (event2.pageX >= Math.abs(rect.left + elm.offsetWidth - 10) && event2.pageX <= Math.abs(rect.left + elm.offsetWidth)) {
|
26239
26239
|
resizeParams.value.element = element$12;
|
26240
26240
|
resizeParams.value.start = event2.pageX;
|
26241
26241
|
}
|
@@ -26251,10 +26251,19 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
26251
26251
|
if (props.disabled) {
|
26252
26252
|
return;
|
26253
26253
|
}
|
26254
|
+
const event2 = e;
|
26255
|
+
const elm = e.target;
|
26256
|
+
if (element.isContains(contentRef.value, elm) && ["img", "video"].includes(elm.tagName.toLocaleLowerCase())) {
|
26257
|
+
const rect = element.getElementBounding(elm);
|
26258
|
+
if (event2.pageX >= Math.abs(rect.left + elm.offsetWidth - 10) && event2.pageX <= Math.abs(rect.left + elm.offsetWidth)) {
|
26259
|
+
elm.style.cursor = "col-resize";
|
26260
|
+
} else {
|
26261
|
+
elm.style.cursor = "";
|
26262
|
+
}
|
26263
|
+
}
|
26254
26264
|
if (!resizeParams.value.element) {
|
26255
26265
|
return;
|
26256
26266
|
}
|
26257
|
-
const event2 = e;
|
26258
26267
|
if (resizeParams.value.element.parsedom == "td") {
|
26259
26268
|
const tables = getMatchElementsByRange(editor.value, dataRangeCaches.value, { parsedom: "table" });
|
26260
26269
|
if (tables.length != 1) {
|
@@ -26819,7 +26828,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
26819
26828
|
};
|
26820
26829
|
}
|
26821
26830
|
});
|
26822
|
-
const Editify = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-
|
26831
|
+
const Editify = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-b4790a4c"]]);
|
26823
26832
|
const InsertAttachmentProps = {
|
26824
26833
|
//主题色
|
26825
26834
|
color: {
|
@@ -41943,7 +41952,7 @@ const attachment = (options) => {
|
|
41943
41952
|
const install = (app) => {
|
41944
41953
|
app.component(Editify.name, Editify);
|
41945
41954
|
};
|
41946
|
-
const version = "0.1.
|
41955
|
+
const version = "0.1.47";
|
41947
41956
|
console.log(`%c vue-editify %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
|
41948
41957
|
export {
|
41949
41958
|
AlexElement,
|