vue-editify 0.0.41 → 0.0.43
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/editify.es.js +47 -21
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/bussiness/Toolbar.vue +9 -1
- package/src/icon/iconfont.css +4 -0
- package/src/icon/iconfont.ttf +0 -0
- package/src/icon/iconfont.woff +0 -0
- package/src/index.js +1 -1
- package/src/locale/en_US.js +2 -1
- package/src/locale/zh_CN.js +2 -1
package/lib/editify.es.js
CHANGED
@@ -17869,7 +17869,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17869
17869
|
]);
|
17870
17870
|
}
|
17871
17871
|
const Colors = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7], ["__scopeId", "data-v-dc6d3d68"]]);
|
17872
|
-
const
|
17872
|
+
const Toolbar_vue_vue_type_style_index_0_scoped_43553c16_lang = "";
|
17873
17873
|
const _sfc_main$6 = {
|
17874
17874
|
name: "Toolbar",
|
17875
17875
|
emits: ["update:modelValue"],
|
@@ -18649,7 +18649,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18649
18649
|
const _component_Layer = resolveComponent("Layer");
|
18650
18650
|
return openBlock(), createBlock(_component_Layer, {
|
18651
18651
|
modelValue: $options.show,
|
18652
|
-
"onUpdate:modelValue": _cache[
|
18652
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = ($event) => $options.show = $event),
|
18653
18653
|
ref: "layer",
|
18654
18654
|
node: $props.node,
|
18655
18655
|
border: "",
|
@@ -18739,7 +18739,19 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18739
18739
|
_: 1
|
18740
18740
|
}, 8, ["title", "tooltip", "color"]),
|
18741
18741
|
createVNode(_component_Button, {
|
18742
|
-
onOperate: _cache[9] || (_cache[9] = ($event) =>
|
18742
|
+
onOperate: _cache[9] || (_cache[9] = ($event) => $options.setWidth("auto")),
|
18743
|
+
name: "setAutoWidth",
|
18744
|
+
title: $options.$editTrans("auto"),
|
18745
|
+
tooltip: $props.config.tooltip,
|
18746
|
+
color: _ctx.$parent.color
|
18747
|
+
}, {
|
18748
|
+
default: withCtx(() => [
|
18749
|
+
createVNode(_component_Icon, { value: "auto-width" })
|
18750
|
+
]),
|
18751
|
+
_: 1
|
18752
|
+
}, 8, ["title", "tooltip", "color"]),
|
18753
|
+
createVNode(_component_Button, {
|
18754
|
+
onOperate: _cache[10] || (_cache[10] = ($event) => _ctx.$parent.deleteByParsedom("img")),
|
18743
18755
|
name: "deleteImage",
|
18744
18756
|
title: $options.$editTrans("deleteImage"),
|
18745
18757
|
tooltip: $props.config.tooltip,
|
@@ -18752,7 +18764,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18752
18764
|
}, 8, ["title", "tooltip", "color"])
|
18753
18765
|
], 64)) : $props.type == "video" ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
18754
18766
|
createVNode(_component_Button, {
|
18755
|
-
onOperate: _cache[
|
18767
|
+
onOperate: _cache[11] || (_cache[11] = ($event) => $options.setWidth("30%")),
|
18756
18768
|
name: "set30Width",
|
18757
18769
|
title: $options.$editTrans("width30"),
|
18758
18770
|
tooltip: $props.config.tooltip,
|
@@ -18764,7 +18776,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18764
18776
|
_: 1
|
18765
18777
|
}, 8, ["title", "tooltip", "color"]),
|
18766
18778
|
createVNode(_component_Button, {
|
18767
|
-
onOperate: _cache[
|
18779
|
+
onOperate: _cache[12] || (_cache[12] = ($event) => $options.setWidth("50%")),
|
18768
18780
|
name: "set50Width",
|
18769
18781
|
title: $options.$editTrans("width50"),
|
18770
18782
|
tooltip: $props.config.tooltip,
|
@@ -18776,8 +18788,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18776
18788
|
_: 1
|
18777
18789
|
}, 8, ["title", "tooltip", "color"]),
|
18778
18790
|
createVNode(_component_Button, {
|
18779
|
-
|
18780
|
-
onOperate: _cache[12] || (_cache[12] = ($event) => $options.setWidth("100%")),
|
18791
|
+
onOperate: _cache[13] || (_cache[13] = ($event) => $options.setWidth("100%")),
|
18781
18792
|
name: "set100Width",
|
18782
18793
|
title: $options.$editTrans("width100"),
|
18783
18794
|
tooltip: $props.config.tooltip,
|
@@ -18788,6 +18799,19 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18788
18799
|
]),
|
18789
18800
|
_: 1
|
18790
18801
|
}, 8, ["title", "tooltip", "color"]),
|
18802
|
+
createVNode(_component_Button, {
|
18803
|
+
rightBorder: "",
|
18804
|
+
onOperate: _cache[14] || (_cache[14] = ($event) => $options.setWidth("auto")),
|
18805
|
+
name: "setAutoWidth",
|
18806
|
+
title: $options.$editTrans("auto"),
|
18807
|
+
tooltip: $props.config.tooltip,
|
18808
|
+
color: _ctx.$parent.color
|
18809
|
+
}, {
|
18810
|
+
default: withCtx(() => [
|
18811
|
+
createVNode(_component_Icon, { value: "auto-width" })
|
18812
|
+
]),
|
18813
|
+
_: 1
|
18814
|
+
}, 8, ["title", "tooltip", "color"]),
|
18791
18815
|
createVNode(_component_Button, {
|
18792
18816
|
onOperate: $options.setVideo,
|
18793
18817
|
name: "autoplay",
|
@@ -18844,7 +18868,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18844
18868
|
_: 1
|
18845
18869
|
}, 8, ["onOperate", "title", "tooltip", "color"]),
|
18846
18870
|
createVNode(_component_Button, {
|
18847
|
-
onOperate: _cache[
|
18871
|
+
onOperate: _cache[15] || (_cache[15] = ($event) => _ctx.$parent.deleteByParsedom("video")),
|
18848
18872
|
name: "deleteVideo",
|
18849
18873
|
title: $options.$editTrans("deleteVideo"),
|
18850
18874
|
tooltip: $props.config.tooltip,
|
@@ -18857,7 +18881,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18857
18881
|
}, 8, ["title", "tooltip", "color"])
|
18858
18882
|
], 64)) : $props.type == "table" ? (openBlock(), createElementBlock(Fragment, { key: 3 }, [
|
18859
18883
|
createVNode(_component_Button, {
|
18860
|
-
onOperate: _cache[
|
18884
|
+
onOperate: _cache[16] || (_cache[16] = ($event) => $options.insertParagraphWithTable("up")),
|
18861
18885
|
name: "textWrapUp",
|
18862
18886
|
title: $options.$editTrans("textWrapUp"),
|
18863
18887
|
tooltip: $props.config.tooltip,
|
@@ -18872,7 +18896,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18872
18896
|
_: 1
|
18873
18897
|
}, 8, ["title", "tooltip", "color"]),
|
18874
18898
|
createVNode(_component_Button, {
|
18875
|
-
onOperate: _cache[
|
18899
|
+
onOperate: _cache[17] || (_cache[17] = ($event) => $options.insertParagraphWithTable("down")),
|
18876
18900
|
rightBorder: "",
|
18877
18901
|
name: "textWrapDown",
|
18878
18902
|
title: $options.$editTrans("textWrapDown"),
|
@@ -18885,7 +18909,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18885
18909
|
_: 1
|
18886
18910
|
}, 8, ["title", "tooltip", "color"]),
|
18887
18911
|
createVNode(_component_Button, {
|
18888
|
-
onOperate: _cache[
|
18912
|
+
onOperate: _cache[18] || (_cache[18] = ($event) => $options.insertTableRow("up")),
|
18889
18913
|
name: "insertRowTop",
|
18890
18914
|
title: $options.$editTrans("insertRowTop"),
|
18891
18915
|
tooltip: $props.config.tooltip,
|
@@ -18897,7 +18921,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18897
18921
|
_: 1
|
18898
18922
|
}, 8, ["title", "tooltip", "color"]),
|
18899
18923
|
createVNode(_component_Button, {
|
18900
|
-
onOperate: _cache[
|
18924
|
+
onOperate: _cache[19] || (_cache[19] = ($event) => $options.insertTableRow("down")),
|
18901
18925
|
name: "insertRowBottom",
|
18902
18926
|
title: $options.$editTrans("insertRowBottom"),
|
18903
18927
|
tooltip: $props.config.tooltip,
|
@@ -18922,7 +18946,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18922
18946
|
_: 1
|
18923
18947
|
}, 8, ["onOperate", "title", "tooltip", "color"]),
|
18924
18948
|
createVNode(_component_Button, {
|
18925
|
-
onOperate: _cache[
|
18949
|
+
onOperate: _cache[20] || (_cache[20] = ($event) => $options.insertTableColumn("left")),
|
18926
18950
|
name: "insertColumnLeft",
|
18927
18951
|
title: $options.$editTrans("insertColumnLeft"),
|
18928
18952
|
tooltip: $props.config.tooltip,
|
@@ -18934,7 +18958,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18934
18958
|
_: 1
|
18935
18959
|
}, 8, ["title", "tooltip", "color"]),
|
18936
18960
|
createVNode(_component_Button, {
|
18937
|
-
onOperate: _cache[
|
18961
|
+
onOperate: _cache[21] || (_cache[21] = ($event) => $options.insertTableColumn("right")),
|
18938
18962
|
name: "insertColumnRight",
|
18939
18963
|
title: $options.$editTrans("insertColumnRight"),
|
18940
18964
|
tooltip: $props.config.tooltip,
|
@@ -18959,7 +18983,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18959
18983
|
_: 1
|
18960
18984
|
}, 8, ["onOperate", "title", "tooltip", "color"]),
|
18961
18985
|
createVNode(_component_Button, {
|
18962
|
-
onOperate: _cache[
|
18986
|
+
onOperate: _cache[22] || (_cache[22] = ($event) => _ctx.$parent.deleteByParsedom("table")),
|
18963
18987
|
name: "deleteTable",
|
18964
18988
|
title: $options.$editTrans("deleteTable"),
|
18965
18989
|
tooltip: $props.config.tooltip,
|
@@ -18973,7 +18997,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18973
18997
|
], 64)) : createCommentVNode("", true),
|
18974
18998
|
$props.type == "codeBlock" ? (openBlock(), createElementBlock(Fragment, { key: 4 }, [
|
18975
18999
|
createVNode(_component_Button, {
|
18976
|
-
onOperate: _cache[
|
19000
|
+
onOperate: _cache[23] || (_cache[23] = ($event) => $options.insertParagraphWithPre("up")),
|
18977
19001
|
name: "textWrapUp",
|
18978
19002
|
title: $options.$editTrans("textWrapUp"),
|
18979
19003
|
tooltip: $props.config.tooltip,
|
@@ -18988,7 +19012,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18988
19012
|
_: 1
|
18989
19013
|
}, 8, ["title", "tooltip", "color"]),
|
18990
19014
|
createVNode(_component_Button, {
|
18991
|
-
onOperate: _cache[
|
19015
|
+
onOperate: _cache[24] || (_cache[24] = ($event) => $options.insertParagraphWithPre("down")),
|
18992
19016
|
name: "textWrapDown",
|
18993
19017
|
title: $options.$editTrans("textWrapDown"),
|
18994
19018
|
tooltip: $props.config.tooltip,
|
@@ -19340,7 +19364,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19340
19364
|
_: 1
|
19341
19365
|
}, 8, ["modelValue", "node", "onShow", "useRange"]);
|
19342
19366
|
}
|
19343
|
-
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-
|
19367
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-43553c16"]]);
|
19344
19368
|
const InsertLink_vue_vue_type_style_index_0_scoped_e6c3c2ee_lang = "";
|
19345
19369
|
const _sfc_main$5 = {
|
19346
19370
|
name: "InsertLink",
|
@@ -22943,7 +22967,8 @@ const en_US = {
|
|
22943
22967
|
alignCenter: "Align center",
|
22944
22968
|
alignRight: "Align right",
|
22945
22969
|
alignJustify: "Align justify",
|
22946
|
-
defaultLineHeight: "Default"
|
22970
|
+
defaultLineHeight: "Default",
|
22971
|
+
auto: "auto"
|
22947
22972
|
};
|
22948
22973
|
const zh_CN = {
|
22949
22974
|
textWrapUp: "向上换行",
|
@@ -23027,7 +23052,8 @@ const zh_CN = {
|
|
23027
23052
|
alignCenter: "居中对齐",
|
23028
23053
|
alignRight: "右对齐",
|
23029
23054
|
alignJustify: "两端对齐",
|
23030
|
-
defaultLineHeight: "默认行高"
|
23055
|
+
defaultLineHeight: "默认行高",
|
23056
|
+
auto: "自适应"
|
23031
23057
|
};
|
23032
23058
|
const translations = {
|
23033
23059
|
zh_CN,
|
@@ -23038,7 +23064,7 @@ const i18n = (locale) => {
|
|
23038
23064
|
return translations[locale][key];
|
23039
23065
|
};
|
23040
23066
|
};
|
23041
|
-
const version = "0.0.
|
23067
|
+
const version = "0.0.43";
|
23042
23068
|
const install = (app, props) => {
|
23043
23069
|
const locale = (props ? props.locale : "zh_CN") || "zh_CN";
|
23044
23070
|
app.provide("$editTrans", i18n(locale));
|