vue-editify 0.0.11 → 0.0.13

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 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 Menu_vue_vue_type_style_index_0_scoped_01d538d0_lang = "";
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
- return h(
20669
- Button,
20670
- {
20671
- ...props,
20672
- ref: "btn",
20673
- type: configuration.type || "default",
20674
- title: configuration.title || "",
20675
- leftBorder: configuration.leftBorder || false,
20676
- rightBorder: configuration.rightBorder || false,
20677
- disabled: configuration.disabled || this.disabled || this.$parent.disabled,
20678
- hideScroll: configuration.hideScroll || false,
20679
- active: configuration.active || false,
20680
- selectConfig: {
20681
- width: configuration.width,
20682
- maxHeight: configuration.maxHeight,
20683
- options: configuration.options
20684
- },
20685
- displayConfig: {
20686
- width: configuration.width,
20687
- maxHeight: configuration.maxHeight,
20688
- value: configuration.value,
20689
- options: configuration.options
20690
- },
20691
- color: this.$parent.color,
20692
- onLayerShow: () => {
20693
- if (typeof configuration.onLayerShow == "function") {
20694
- configuration.onLayerShow.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
20695
- }
20696
- },
20697
- onLayerShown: () => {
20698
- if (typeof configuration.onLayerShown == "function") {
20699
- configuration.onLayerShown.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
20700
- }
20701
- },
20702
- onLayerHidden: () => {
20703
- if (typeof configuration.onLayerHidden == "function") {
20704
- configuration.onLayerHidden.apply(this.$parent.$parent, [this.name, this.$refs.btn]);
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
- onOperate: (name, val) => {
20708
- if (typeof configuration.onOperate == "function") {
20709
- configuration.onOperate.apply(this.$parent.$parent, [name, val, this.$refs.btn]);
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-01d538d0"]]);
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.11";
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));