@fmdevui/fm-dev 1.0.14 → 1.0.15

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.
@@ -3,7 +3,13 @@ import { elSvg } from './packages/core/ui/components/svgIcon/index.mjs';
3
3
 
4
4
  const makeInstaller = (components = []) => {
5
5
  const install = (app) => {
6
- components.forEach((component) => app.component(component.name, component));
6
+ components.forEach(
7
+ (component) => {
8
+ if (!app._context.components[component.name]) {
9
+ app.component(component.name, component);
10
+ }
11
+ }
12
+ );
7
13
  if (app)
8
14
  elSvg(app);
9
15
  };
@@ -3,6 +3,9 @@ import { defineComponent, ref, reactive, onMounted, nextTick, withDirectives, op
3
3
  const _hoisted_1 = { class: "notice-bar-warp-text-box" };
4
4
  const _hoisted_2 = ["innerHTML"];
5
5
  var _sfc_main = /* @__PURE__ */ defineComponent({
6
+ ...{
7
+ name: "FmNoticeBar"
8
+ },
6
9
  __name: "index",
7
10
  props: {
8
11
  mode: { type: String, default: "" },
@@ -5,9 +5,13 @@ import _sfc_main from './svgicon.vue2.mjs';
5
5
  function elSvg(app) {
6
6
  const icons = svg;
7
7
  for (const i in icons) {
8
- app.component(`ele-${icons[i].name}`, icons[i]);
8
+ if (!app._context.components[`ele-${icons[i].name}`]) {
9
+ app.component(`ele-${icons[i].name}`, icons[i]);
10
+ }
11
+ }
12
+ if (!app._context.components[`SvgIcon`]) {
13
+ app.component("SvgIcon", _sfc_main);
9
14
  }
10
- app.component("SvgIcon", _sfc_main);
11
15
  }
12
16
 
13
17
  export { elSvg };
@@ -2,6 +2,9 @@ import { defineComponent, computed, createElementBlock, openBlock, normalizeStyl
2
2
 
3
3
  const _hoisted_1 = ["src"];
4
4
  var _sfc_main = /* @__PURE__ */ defineComponent({
5
+ ...{
6
+ name: "svgIcon"
7
+ },
5
8
  __name: "svgicon",
6
9
  props: {
7
10
  // svg 图标组件名字
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! fm-dev v1.0.14 */
1
+ /*! fm-dev v1.0.15 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
@@ -375,6 +375,9 @@
375
375
  const _hoisted_1$1 = { class: "notice-bar-warp-text-box" };
376
376
  const _hoisted_2 = ["innerHTML"];
377
377
  var _sfc_main$2 = /* @__PURE__ */ vue.defineComponent({
378
+ ...{
379
+ name: "FmNoticeBar"
380
+ },
378
381
  __name: "index",
379
382
  props: {
380
383
  mode: { type: String, default: "" },
@@ -6554,6 +6557,9 @@
6554
6557
 
6555
6558
  const _hoisted_1 = ["src"];
6556
6559
  var _sfc_main$1 = /* @__PURE__ */ vue.defineComponent({
6560
+ ...{
6561
+ name: "svgIcon"
6562
+ },
6557
6563
  __name: "svgicon",
6558
6564
  props: {
6559
6565
  // svg 图标组件名字
@@ -6639,9 +6645,13 @@
6639
6645
  function elSvg(app) {
6640
6646
  const icons = svg;
6641
6647
  for (const i in icons) {
6642
- app.component(`ele-${icons[i].name}`, icons[i]);
6648
+ if (!app._context.components[`ele-${icons[i].name}`]) {
6649
+ app.component(`ele-${icons[i].name}`, icons[i]);
6650
+ }
6651
+ }
6652
+ if (!app._context.components[`SvgIcon`]) {
6653
+ app.component("SvgIcon", _sfc_main$1);
6643
6654
  }
6644
- app.component("SvgIcon", _sfc_main$1);
6645
6655
  }
6646
6656
 
6647
6657
  const FmTransfer = _sfc_main$3;
@@ -6649,7 +6659,13 @@
6649
6659
 
6650
6660
  const makeInstaller = (components = []) => {
6651
6661
  const install = (app) => {
6652
- components.forEach((component) => app.component(component.name, component));
6662
+ components.forEach(
6663
+ (component) => {
6664
+ if (!app._context.components[component.name]) {
6665
+ app.component(component.name, component);
6666
+ }
6667
+ }
6668
+ );
6653
6669
  if (app)
6654
6670
  elSvg(app);
6655
6671
  };