vue-editify 0.0.31 → 0.0.32
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/App.vue +1 -1
- package/lib/editify.es.js +17 -17
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/src/Editify.vue +17 -4
- package/src/components/base/Button.vue +10 -0
- package/src/components/bussiness/Menu.vue +2 -2
- package/src/core/index.js +5 -5
- package/src/index.js +1 -1
- package/src/locale/en_US.js +3 -3
package/examples/App.vue
CHANGED
@@ -11,7 +11,7 @@ export default {
|
|
11
11
|
return {
|
12
12
|
value: '<p><span>这是一个基于 </span><span data-editify-code="true">Vue3 + alex-editor</span><span> 构建的一套</span><span style="font-weight: bold;">精美UI样式</span><span>的</span><span style="font-weight: bold;">开箱即用</span><span>的</span><span style="color: #ec1a0a;">富文本编辑器</span></p>',
|
13
13
|
menuConfig: {
|
14
|
-
mode:
|
14
|
+
// mode:'inner',
|
15
15
|
sequence: {
|
16
16
|
alert: 100
|
17
17
|
},
|
package/lib/editify.es.js
CHANGED
@@ -15857,7 +15857,7 @@ const getToolbarConfig = function(editTrans, editLocale) {
|
|
15857
15857
|
...languages
|
15858
15858
|
],
|
15859
15859
|
//浮层宽度
|
15860
|
-
width:
|
15860
|
+
width: 120,
|
15861
15861
|
//浮层最大高度
|
15862
15862
|
maxHeight: 180,
|
15863
15863
|
//左侧边框是否显示
|
@@ -15892,7 +15892,7 @@ const getToolbarConfig = function(editTrans, editLocale) {
|
|
15892
15892
|
//列表配置
|
15893
15893
|
options: getButtonOptionsConfig(editTrans).align,
|
15894
15894
|
//浮层宽度
|
15895
|
-
width: editLocale == "zh_CN" ?
|
15895
|
+
width: editLocale == "zh_CN" ? 110 : 130,
|
15896
15896
|
//浮层最大高度
|
15897
15897
|
maxHeight: "",
|
15898
15898
|
//左侧边框是否显示
|
@@ -15999,7 +15999,7 @@ const getToolbarConfig = function(editTrans, editLocale) {
|
|
15999
15999
|
//按钮默认显示的值
|
16000
16000
|
defaultValue: "",
|
16001
16001
|
//浮层宽度
|
16002
|
-
width:
|
16002
|
+
width: 100,
|
16003
16003
|
//浮层最大高度
|
16004
16004
|
maxHeight: 200,
|
16005
16005
|
//左侧边框是否显示
|
@@ -16186,7 +16186,7 @@ const getMenuConfig = function(editTrans, editLocale) {
|
|
16186
16186
|
//列表配置
|
16187
16187
|
options: getButtonOptionsConfig(editTrans).align,
|
16188
16188
|
//浮层宽度
|
16189
|
-
width: editLocale == "zh_CN" ?
|
16189
|
+
width: editLocale == "zh_CN" ? 110 : 130,
|
16190
16190
|
//浮层最大高度
|
16191
16191
|
maxHeight: "",
|
16192
16192
|
//左侧边框是否显示
|
@@ -16302,7 +16302,7 @@ const getMenuConfig = function(editTrans, editLocale) {
|
|
16302
16302
|
//按钮默认显示的值
|
16303
16303
|
defaultValue: "",
|
16304
16304
|
//浮层宽度
|
16305
|
-
width:
|
16305
|
+
width: 100,
|
16306
16306
|
//浮层最大高度
|
16307
16307
|
maxHeight: 200,
|
16308
16308
|
//左侧边框是否显示
|
@@ -17270,7 +17270,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17270
17270
|
}, null, 2);
|
17271
17271
|
}
|
17272
17272
|
const Icon = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-5ed6cd4d"]]);
|
17273
|
-
const
|
17273
|
+
const Button_vue_vue_type_style_index_0_scoped_ea3e1e88_lang = "";
|
17274
17274
|
const _sfc_main$9 = {
|
17275
17275
|
name: "Button",
|
17276
17276
|
emits: ["operate", "layerShow", "layerShown", "layerHidden"],
|
@@ -17634,7 +17634,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
17634
17634
|
], 2)
|
17635
17635
|
]);
|
17636
17636
|
}
|
17637
|
-
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-
|
17637
|
+
const Button = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-ea3e1e88"]]);
|
17638
17638
|
const Checkbox_vue_vue_type_style_index_0_scoped_50cd9e6c_lang = "";
|
17639
17639
|
const _sfc_main$8 = {
|
17640
17640
|
name: "Checkbox",
|
@@ -19967,7 +19967,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19967
19967
|
]);
|
19968
19968
|
}
|
19969
19969
|
const InsertTable = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-227ede65"]]);
|
19970
|
-
const
|
19970
|
+
const Menu_vue_vue_type_style_index_0_scoped_42f60b43_lang = "";
|
19971
19971
|
const _sfc_main$1 = {
|
19972
19972
|
name: "Menu",
|
19973
19973
|
props: {
|
@@ -21173,7 +21173,7 @@ const _hoisted_1$1 = ["data-editify-mode"];
|
|
21173
21173
|
function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
21174
21174
|
const _component_MenuItem = resolveComponent("MenuItem");
|
21175
21175
|
return openBlock(), createElementBlock("div", {
|
21176
|
-
class: normalizeClass(["editify-menu", { border: _ctx.$parent.border }]),
|
21176
|
+
class: normalizeClass(["editify-menu", { border: _ctx.$parent.border, source: _ctx.$parent.isSourceView }]),
|
21177
21177
|
"data-editify-mode": $props.config.mode,
|
21178
21178
|
style: normalizeStyle($props.config.style || "")
|
21179
21179
|
}, [
|
@@ -21185,8 +21185,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
21185
21185
|
}), 256))
|
21186
21186
|
], 14, _hoisted_1$1);
|
21187
21187
|
}
|
21188
|
-
const Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
21189
|
-
const
|
21188
|
+
const Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-42f60b43"]]);
|
21189
|
+
const Editify_vue_vue_type_style_index_0_scoped_0e657ae6_lang = "";
|
21190
21190
|
const _sfc_main = {
|
21191
21191
|
name: "editify",
|
21192
21192
|
props: { ...editorProps },
|
@@ -22750,7 +22750,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22750
22750
|
}, null, 8, ["config", "disabled", "color"])) : createCommentVNode("", true),
|
22751
22751
|
createElementVNode("div", {
|
22752
22752
|
ref: "body",
|
22753
|
-
class: normalizeClass(["editify-body", { border: _ctx.border, menu_inner: $options.menuConfig.use && $options.menuConfig.mode == "inner" }]),
|
22753
|
+
class: normalizeClass(["editify-body", { border: _ctx.border, menu_inner: $options.menuConfig.use && $options.menuConfig.mode == "inner", source: $data.isSourceView }]),
|
22754
22754
|
"data-editify-uid": $setup.uid
|
22755
22755
|
}, [
|
22756
22756
|
createElementVNode("div", {
|
@@ -22783,7 +22783,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
22783
22783
|
])) : createCommentVNode("", true)
|
22784
22784
|
]);
|
22785
22785
|
}
|
22786
|
-
const Editify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-
|
22786
|
+
const Editify = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-0e657ae6"]]);
|
22787
22787
|
const iconfont = "";
|
22788
22788
|
const en_US = {
|
22789
22789
|
textWrapUp: "Up feed",
|
@@ -22847,13 +22847,13 @@ const en_US = {
|
|
22847
22847
|
quote: "Quote",
|
22848
22848
|
lineHeight: "Line height",
|
22849
22849
|
indent: "Indent",
|
22850
|
-
insertLink: "Insert",
|
22851
|
-
insertImage: "Insert",
|
22850
|
+
insertLink: "Insert Link",
|
22851
|
+
insertImage: "Insert Image",
|
22852
22852
|
remoteImage: "Remote",
|
22853
22853
|
uploadImage: "Upload",
|
22854
22854
|
imageUrlPlaceholder: "Please enter the image address",
|
22855
22855
|
insert: "Insert",
|
22856
|
-
insertVideo: "Insert",
|
22856
|
+
insertVideo: "Insert Video",
|
22857
22857
|
remoteVideo: "Remote",
|
22858
22858
|
uploadVideo: "Upload",
|
22859
22859
|
videoUrlPlaceholder: "Please enter the video address",
|
@@ -22962,7 +22962,7 @@ const i18n = (locale) => {
|
|
22962
22962
|
return translations[locale][key];
|
22963
22963
|
};
|
22964
22964
|
};
|
22965
|
-
const version = "0.0.
|
22965
|
+
const version = "0.0.32";
|
22966
22966
|
const install = (app, props) => {
|
22967
22967
|
const locale = (props ? props.locale : "zh_CN") || "zh_CN";
|
22968
22968
|
app.provide("$editTrans", i18n(locale));
|