fast-element-plus 1.0.0-alpha.10 → 1.0.0-alpha.12

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.
@@ -1,6 +1,6 @@
1
1
  (function(global2, factory) {
2
- typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@fast-china/utils"), require("vue"), require("@element-plus/icons-vue"), require("element-plus"), require("@fast-element-plus/icons-vue")) : typeof define === "function" && define.amd ? define(["exports", "@fast-china/utils", "vue", "@element-plus/icons-vue", "element-plus", "@fast-element-plus/icons-vue"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.FastElementPlus = {}, global2.FastUtils, global2.Vue, global2.ElementPlusIconsVue, global2.ElementPlus, global2.FastElementPlusIconsVue));
3
- })(this, (function(exports2, utils, vue, ElementPlusIconsVue, ElementPlus, FastElementPlusIconsVue) {
2
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("@fast-element-plus/icons-vue"), require("@fast-china/utils"), require("vue"), require("@element-plus/icons-vue"), require("element-plus")) : typeof define === "function" && define.amd ? define(["exports", "@fast-element-plus/icons-vue", "@fast-china/utils", "vue", "@element-plus/icons-vue", "element-plus"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.FastElementPlus = {}, global2.FastElementPlusIconsVue, global2.FastUtils, global2.Vue, global2.ElementPlusIconsVue, global2.ElementPlus));
3
+ })(this, (function(exports2, FastElementPlusIconsVue, utils, vue, ElementPlusIconsVue, ElementPlus) {
4
4
  "use strict";
5
5
  function _interopNamespaceDefault(e) {
6
6
  const n = Object.create(null, { [Symbol.toStringTag]: { value: "Module" } });
@@ -18,6 +18,7 @@
18
18
  n.default = e;
19
19
  return Object.freeze(n);
20
20
  }
21
+ const FastElementPlusIconsVue__namespace = /* @__PURE__ */ _interopNamespaceDefault(FastElementPlusIconsVue);
21
22
  const ElementPlusIconsVue__namespace = /* @__PURE__ */ _interopNamespaceDefault(ElementPlusIconsVue);
22
23
  const faAvatarProps = {
23
24
  ...ElementPlus.avatarProps,
@@ -29620,7 +29621,7 @@
29620
29621
  if (isNil(options?.closeOnPressEscape)) {
29621
29622
  options.closeOnPressEscape = false;
29622
29623
  }
29623
- if (isNil(options?.beforeClose)) {
29624
+ if (!isNil(options?.beforeClose)) {
29624
29625
  const localBeforeClose = options.beforeClose;
29625
29626
  const localConfirmButtonText = options?.confirmButtonText;
29626
29627
  const localShowCancelButton = options?.showCancelButton;
@@ -29699,6 +29700,9 @@
29699
29700
  if (app[INSTALLED_KEY]) return;
29700
29701
  app[INSTALLED_KEY] = true;
29701
29702
  installElementPlus(app);
29703
+ for (const [key, component] of Object.entries(FastElementPlusIconsVue__namespace)) {
29704
+ app.component(`fa-icon-${key}`, component);
29705
+ }
29702
29706
  FastElementPlusComponents.forEach((c) => app.use(c));
29703
29707
  FastElementPlusDirectives.forEach((d) => app.use(d));
29704
29708
  };