vue-editify 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
package/lib/editify.es.js CHANGED
@@ -17070,7 +17070,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
17070
17070
  }, 8, ["name", "onEnter", "onAfterEnter", "onAfterLeave"]);
17071
17071
  }
17072
17072
  const Layer = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-b5a839e3"]]);
17073
- const Tooltip_vue_vue_type_style_index_0_scoped_5293a020_lang = "";
17073
+ const Tooltip_vue_vue_type_style_index_0_scoped_6456f300_lang = "";
17074
17074
  const _sfc_main$b = {
17075
17075
  name: "Tooltip",
17076
17076
  props: {
@@ -17115,24 +17115,23 @@ const _sfc_main$b = {
17115
17115
  }
17116
17116
  }
17117
17117
  };
17118
- const _hoisted_1$a = {
17119
- ref: "target",
17120
- class: "editify-tooltip-target"
17121
- };
17122
- const _hoisted_2$9 = { class: "editify-tooltip-content" };
17118
+ const _hoisted_1$a = { class: "editify-tooltip-content" };
17123
17119
  function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
17124
17120
  const _component_Layer = resolveComponent("Layer");
17125
17121
  return openBlock(), createElementBlock("div", {
17126
- class: normalizeClass(["editify-tooltip", { block: $props.block }]),
17127
- onMouseenter: _cache[1] || (_cache[1] = (...args) => $options.showContent && $options.showContent(...args)),
17128
- onMouseleave: _cache[2] || (_cache[2] = (...args) => $options.hideContent && $options.hideContent(...args))
17122
+ class: normalizeClass(["editify-tooltip", { block: $props.block }])
17129
17123
  }, [
17130
- createElementVNode("div", _hoisted_1$a, [
17124
+ createElementVNode("div", {
17125
+ ref: "target",
17126
+ class: "editify-tooltip-target",
17127
+ onMouseenter: _cache[0] || (_cache[0] = (...args) => $options.showContent && $options.showContent(...args)),
17128
+ onMouseleave: _cache[1] || (_cache[1] = (...args) => $options.hideContent && $options.hideContent(...args))
17129
+ }, [
17131
17130
  renderSlot(_ctx.$slots, "default", {}, void 0, true)
17132
- ], 512),
17131
+ ], 544),
17133
17132
  createVNode(_component_Layer, {
17134
17133
  modelValue: $data.show,
17135
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.show = $event),
17134
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.show = $event),
17136
17135
  node: $data.node,
17137
17136
  border: "",
17138
17137
  "border-color": "#000",
@@ -17143,13 +17142,13 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
17143
17142
  animation: "fade"
17144
17143
  }, {
17145
17144
  default: withCtx(() => [
17146
- createElementVNode("div", _hoisted_2$9, toDisplayString($props.content), 1)
17145
+ createElementVNode("div", _hoisted_1$a, toDisplayString($props.content), 1)
17147
17146
  ]),
17148
17147
  _: 1
17149
17148
  }, 8, ["modelValue", "node"])
17150
- ], 34);
17149
+ ], 2);
17151
17150
  }
17152
- const Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-5293a020"]]);
17151
+ const Tooltip = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-6456f300"]]);
17153
17152
  const Icon_vue_vue_type_style_index_0_scoped_5ed6cd4d_lang = "";
17154
17153
  const _sfc_main$a = {
17155
17154
  name: "Icon",
@@ -22265,7 +22264,7 @@ const i18n = (locale) => {
22265
22264
  return translations[locale][key];
22266
22265
  };
22267
22266
  };
22268
- const version = "0.1.5";
22267
+ const version = "0.1.6";
22269
22268
  const install = (app, props) => {
22270
22269
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
22271
22270
  app.provide("$editTrans", i18n(locale));