vue-editify 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- package/lib/editify.es.js +53 -51
- package/lib/editify.umd.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -2
- package/src/components/bussiness/Menu.vue +51 -49
- package/src/index.js +1 -1
package/lib/editify.es.js
CHANGED
@@ -19746,7 +19746,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
19746
19746
|
]);
|
19747
19747
|
}
|
19748
19748
|
const InsertTable = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-0277a84c"]]);
|
19749
|
-
const
|
19749
|
+
const Menu_vue_vue_type_style_index_0_scoped_4c7850ff_lang = "";
|
19750
19750
|
const _sfc_main$1 = {
|
19751
19751
|
name: "Menu",
|
19752
19752
|
props: {
|
@@ -20665,57 +20665,59 @@ const _sfc_main$1 = {
|
|
20665
20665
|
}
|
20666
20666
|
if (obj.common.isObject(this.$parent.config.extends)) {
|
20667
20667
|
const configuration = this.$parent.config.extends[this.name];
|
20668
|
-
|
20669
|
-
|
20670
|
-
|
20671
|
-
|
20672
|
-
|
20673
|
-
|
20674
|
-
|
20675
|
-
|
20676
|
-
|
20677
|
-
|
20678
|
-
|
20679
|
-
|
20680
|
-
|
20681
|
-
|
20682
|
-
|
20683
|
-
|
20684
|
-
|
20685
|
-
|
20686
|
-
|
20687
|
-
|
20688
|
-
|
20689
|
-
|
20690
|
-
|
20691
|
-
|
20692
|
-
|
20693
|
-
|
20694
|
-
configuration.onLayerShow
|
20695
|
-
|
20696
|
-
|
20697
|
-
|
20698
|
-
|
20699
|
-
configuration.onLayerShown
|
20700
|
-
|
20701
|
-
|
20702
|
-
|
20703
|
-
|
20704
|
-
configuration.onLayerHidden
|
20668
|
+
if (configuration) {
|
20669
|
+
return h(
|
20670
|
+
Button,
|
20671
|
+
{
|
20672
|
+
...props,
|
20673
|
+
ref: "btn",
|
20674
|
+
type: configuration.type || "default",
|
20675
|
+
title: configuration.title || "",
|
20676
|
+
leftBorder: configuration.leftBorder || false,
|
20677
|
+
rightBorder: configuration.rightBorder || false,
|
20678
|
+
disabled: configuration.disabled || this.disabled || this.$parent.disabled,
|
20679
|
+
hideScroll: configuration.hideScroll || false,
|
20680
|
+
active: configuration.active || false,
|
20681
|
+
selectConfig: {
|
20682
|
+
width: configuration.width,
|
20683
|
+
maxHeight: configuration.maxHeight,
|
20684
|
+
options: configuration.options
|
20685
|
+
},
|
20686
|
+
displayConfig: {
|
20687
|
+
width: configuration.width,
|
20688
|
+
maxHeight: configuration.maxHeight,
|
20689
|
+
value: configuration.value,
|
20690
|
+
options: configuration.options
|
20691
|
+
},
|
20692
|
+
color: this.$parent.color,
|
20693
|
+
onLayerShow: () => {
|
20694
|
+
if (typeof configuration.onLayerShow == "function") {
|
20695
|
+
configuration.onLayerShow.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
|
20696
|
+
}
|
20697
|
+
},
|
20698
|
+
onLayerShown: () => {
|
20699
|
+
if (typeof configuration.onLayerShown == "function") {
|
20700
|
+
configuration.onLayerShown.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
|
20701
|
+
}
|
20702
|
+
},
|
20703
|
+
onLayerHidden: () => {
|
20704
|
+
if (typeof configuration.onLayerHidden == "function") {
|
20705
|
+
configuration.onLayerHidden.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
|
20706
|
+
}
|
20707
|
+
},
|
20708
|
+
onOperate: (name, val) => {
|
20709
|
+
if (typeof configuration.onOperate == "function") {
|
20710
|
+
configuration.onOperate.apply(this.$parent.$parent, [name, val, this.$refs.btn]);
|
20711
|
+
}
|
20705
20712
|
}
|
20706
20713
|
},
|
20707
|
-
|
20708
|
-
|
20709
|
-
|
20710
|
-
|
20714
|
+
{
|
20715
|
+
default: configuration.default || null,
|
20716
|
+
layer: configuration.layer || null,
|
20717
|
+
option: configuration.option || null
|
20711
20718
|
}
|
20712
|
-
|
20713
|
-
|
20714
|
-
default: configuration.default || null,
|
20715
|
-
layer: configuration.layer || null,
|
20716
|
-
option: configuration.option || null
|
20717
|
-
}
|
20718
|
-
);
|
20719
|
+
);
|
20720
|
+
}
|
20719
20721
|
}
|
20720
20722
|
return null;
|
20721
20723
|
}
|
@@ -20964,7 +20966,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
20964
20966
|
}), 256))
|
20965
20967
|
], 14, _hoisted_1$1);
|
20966
20968
|
}
|
20967
|
-
const Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-
|
20969
|
+
const Menu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-4c7850ff"]]);
|
20968
20970
|
const Editify_vue_vue_type_style_index_0_scoped_be97ae51_lang = "";
|
20969
20971
|
const _sfc_main = {
|
20970
20972
|
name: "editify",
|
@@ -22623,7 +22625,7 @@ const i18n = (locale) => {
|
|
22623
22625
|
return translations[locale][key];
|
22624
22626
|
};
|
22625
22627
|
};
|
22626
|
-
const version = "0.0.
|
22628
|
+
const version = "0.0.13";
|
22627
22629
|
const install = (app, props) => {
|
22628
22630
|
const locale = (props ? props.locale : "zh_CN") || "zh_CN";
|
22629
22631
|
app.provide("$editTrans", i18n(locale));
|