vue-editify 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/editify.es.js +21 -19
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/components/bussiness/InsertTable.vue +17 -4
- package/src/index.js +1 -1
package/lib/editify.es.js
CHANGED
@@ -17513,7 +17513,7 @@ const _hoisted_4$6 = {
|
|
17513
17513
|
class: "editify-button-options"
|
17514
17514
|
};
|
17515
17515
|
const _hoisted_5$6 = ["onClick"];
|
17516
|
-
const _hoisted_6$
|
17516
|
+
const _hoisted_6$6 = {
|
17517
17517
|
key: 1,
|
17518
17518
|
class: "editify-button-option-flex"
|
17519
17519
|
};
|
@@ -17584,7 +17584,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17584
17584
|
_ctx.$slots.option ? renderSlot(_ctx.$slots, "option", {
|
17585
17585
|
key: 0,
|
17586
17586
|
item
|
17587
|
-
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_6$
|
17587
|
+
}, void 0, true) : (openBlock(), createElementBlock("div", _hoisted_6$6, [
|
17588
17588
|
item.icon ? (openBlock(), createBlock(_component_Icon, {
|
17589
17589
|
key: 0,
|
17590
17590
|
value: item.icon
|
@@ -18586,7 +18586,7 @@ const _hoisted_2$5 = { class: "editify-toolbar-link-label" };
|
|
18586
18586
|
const _hoisted_3$5 = ["placeholder"];
|
18587
18587
|
const _hoisted_4$5 = { class: "editify-toolbar-link-footer" };
|
18588
18588
|
const _hoisted_5$5 = { class: "editify-toolbar-link-operations" };
|
18589
|
-
const _hoisted_6$
|
18589
|
+
const _hoisted_6$5 = ["href"];
|
18590
18590
|
function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
18591
18591
|
const _component_Checkbox = resolveComponent("Checkbox");
|
18592
18592
|
const _component_Button = resolveComponent("Button");
|
@@ -18643,7 +18643,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
18643
18643
|
href: $data.linkConfig.url,
|
18644
18644
|
target: "_blank",
|
18645
18645
|
style: normalizeStyle({ color: _ctx.$parent.color })
|
18646
|
-
}, toDisplayString($options.$editTrans("viewLink")), 13, _hoisted_6$
|
18646
|
+
}, toDisplayString($options.$editTrans("viewLink")), 13, _hoisted_6$5)
|
18647
18647
|
])
|
18648
18648
|
])
|
18649
18649
|
])) : $props.type == "image" ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
@@ -19347,7 +19347,7 @@ const _hoisted_2$4 = { class: "editify-link-label" };
|
|
19347
19347
|
const _hoisted_3$4 = ["placeholder"];
|
19348
19348
|
const _hoisted_4$4 = ["placeholder"];
|
19349
19349
|
const _hoisted_5$4 = { class: "editify-link-footer" };
|
19350
|
-
const _hoisted_6$
|
19350
|
+
const _hoisted_6$4 = { class: "editify-link-operations" };
|
19351
19351
|
function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
19352
19352
|
const _component_Checkbox = resolveComponent("Checkbox");
|
19353
19353
|
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
@@ -19388,7 +19388,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19388
19388
|
color: $props.color,
|
19389
19389
|
size: 10
|
19390
19390
|
}, null, 8, ["modelValue", "label", "color"]),
|
19391
|
-
createElementVNode("div", _hoisted_6$
|
19391
|
+
createElementVNode("div", _hoisted_6$4, [
|
19392
19392
|
createElementVNode("span", {
|
19393
19393
|
style: normalizeStyle({ color: $props.color }),
|
19394
19394
|
onClick: _cache[7] || (_cache[7] = (...args) => $options.insertLink && $options.insertLink(...args))
|
@@ -19555,7 +19555,7 @@ const _hoisted_5$3 = {
|
|
19555
19555
|
key: 1,
|
19556
19556
|
class: "editify-image-upload"
|
19557
19557
|
};
|
19558
|
-
const _hoisted_6$
|
19558
|
+
const _hoisted_6$3 = ["multiple"];
|
19559
19559
|
function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
19560
19560
|
const _component_Icon = resolveComponent("Icon");
|
19561
19561
|
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
@@ -19604,7 +19604,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19604
19604
|
accept: "image/*",
|
19605
19605
|
onChange: _cache[6] || (_cache[6] = (...args) => $options.selectFile && $options.selectFile(...args)),
|
19606
19606
|
type: "file"
|
19607
|
-
}, null, 40, _hoisted_6$
|
19607
|
+
}, null, 40, _hoisted_6$3)
|
19608
19608
|
]))
|
19609
19609
|
]);
|
19610
19610
|
}
|
@@ -19766,7 +19766,7 @@ const _hoisted_5$2 = {
|
|
19766
19766
|
key: 1,
|
19767
19767
|
class: "editify-video-upload"
|
19768
19768
|
};
|
19769
|
-
const _hoisted_6$
|
19769
|
+
const _hoisted_6$2 = ["multiple"];
|
19770
19770
|
function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
19771
19771
|
const _component_Icon = resolveComponent("Icon");
|
19772
19772
|
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
@@ -19815,15 +19815,16 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19815
19815
|
accept: "video/*",
|
19816
19816
|
onChange: _cache[6] || (_cache[6] = (...args) => $options.selectFile && $options.selectFile(...args)),
|
19817
19817
|
type: "file"
|
19818
|
-
}, null, 40, _hoisted_6$
|
19818
|
+
}, null, 40, _hoisted_6$2)
|
19819
19819
|
]))
|
19820
19820
|
]);
|
19821
19821
|
}
|
19822
19822
|
const InsertVideo = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-cbc84525"]]);
|
19823
|
-
const
|
19823
|
+
const InsertTable_vue_vue_type_style_index_0_scoped_cd5ad93c_lang = "";
|
19824
19824
|
const _sfc_main$2 = {
|
19825
19825
|
name: "InsertTable",
|
19826
19826
|
emits: ["insert"],
|
19827
|
+
inject: ["$editTrans"],
|
19827
19828
|
props: {
|
19828
19829
|
//主题色
|
19829
19830
|
color: {
|
@@ -19902,17 +19903,16 @@ const _sfc_main$2 = {
|
|
19902
19903
|
}
|
19903
19904
|
}
|
19904
19905
|
};
|
19905
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
19906
|
+
const _withScopeId = (n) => (pushScopeId("data-v-cd5ad93c"), n = n(), popScopeId(), n);
|
19906
19907
|
const _hoisted_1$2 = { class: "editify-table" };
|
19907
19908
|
const _hoisted_2$1 = ["onMouseenter", "onClick"];
|
19908
19909
|
const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("span", null, null, -1));
|
19909
19910
|
const _hoisted_4$1 = [
|
19910
19911
|
_hoisted_3$1
|
19911
19912
|
];
|
19912
|
-
const _hoisted_5$1 = {
|
19913
|
-
|
19914
|
-
|
19915
|
-
};
|
19913
|
+
const _hoisted_5$1 = { class: "editify-table-footer" };
|
19914
|
+
const _hoisted_6$1 = { key: 0 };
|
19915
|
+
const _hoisted_7 = { key: 1 };
|
19916
19916
|
function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
19917
19917
|
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
19918
19918
|
createElementVNode("table", null, [
|
@@ -19928,10 +19928,12 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19928
19928
|
]);
|
19929
19929
|
}), 256))
|
19930
19930
|
]),
|
19931
|
-
|
19931
|
+
createElementVNode("div", _hoisted_5$1, [
|
19932
|
+
$options.specification ? (openBlock(), createElementBlock("span", _hoisted_6$1, toDisplayString($options.specification.x) + " x " + toDisplayString($options.specification.y), 1)) : (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString($options.$editTrans("insertTable")), 1))
|
19933
|
+
])
|
19932
19934
|
]);
|
19933
19935
|
}
|
19934
|
-
const InsertTable = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
19936
|
+
const InsertTable = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-cd5ad93c"]]);
|
19935
19937
|
const Menu_vue_vue_type_style_index_0_scoped_3fc2d533_lang = "";
|
19936
19938
|
const _sfc_main$1 = {
|
19937
19939
|
name: "Menu",
|
@@ -22927,7 +22929,7 @@ const i18n = (locale) => {
|
|
22927
22929
|
return translations[locale][key];
|
22928
22930
|
};
|
22929
22931
|
};
|
22930
|
-
const version = "0.0.
|
22932
|
+
const version = "0.0.22";
|
22931
22933
|
const install = (app, props) => {
|
22932
22934
|
const locale = (props ? props.locale : "zh_CN") || "zh_CN";
|
22933
22935
|
app.provide("$editTrans", i18n(locale));
|