@fangzhongya/icons 0.0.12 → 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.
@@ -187,10 +187,13 @@ var icon_default = _vue.defineComponent.call(void 0, {
187
187
  const arr = _vue.computed.call(void 0, () => {
188
188
  var _a, _b, _c;
189
189
  if (slots.default) {
190
- return slots.default({
191
- class: [props.iconClass],
192
- style: contStyle
193
- });
190
+ return _vue.h.call(void 0,
191
+ _vue.Fragment,
192
+ slots.default({
193
+ class: [props.iconClass],
194
+ style: contStyle
195
+ })
196
+ );
194
197
  } else if (!outputName.value) {
195
198
  return void 0;
196
199
  } else if (outputType.value === "svg") {
@@ -1,5 +1,5 @@
1
1
  // packages/icon/index.ts
2
- import { h, defineComponent, resolveComponent, computed } from "vue";
2
+ import { h, defineComponent, resolveComponent, computed, Fragment } from "vue";
3
3
  var reg = /<svg([^>]*)>((.|\n|\r|\t)*)<\/svg>/g;
4
4
  var reg1 = /<path([^>]*)>((.|\n|\r|\t)*)<\/path>/g;
5
5
  var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
@@ -187,10 +187,13 @@ var icon_default = defineComponent({
187
187
  const arr = computed(() => {
188
188
  var _a, _b, _c;
189
189
  if (slots.default) {
190
- return slots.default({
191
- class: [props.iconClass],
192
- style: contStyle
193
- });
190
+ return h(
191
+ Fragment,
192
+ slots.default({
193
+ class: [props.iconClass],
194
+ style: contStyle
195
+ })
196
+ );
194
197
  } else if (!outputName.value) {
195
198
  return void 0;
196
199
  } else if (outputType.value === "svg") {
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTKXFLY5Vcjs = require('../chunk-TKXFLY5V.cjs');
3
+ var _chunkFCWKSIH4cjs = require('../chunk-FCWKSIH4.cjs');
4
4
  require('../chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkTKXFLY5Vcjs.icon_default;
7
+ exports.default = _chunkFCWKSIH4cjs.icon_default;
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-2GZYNEO5.js";
3
+ } from "../chunk-PSUUCIWL.js";
4
4
  import "../chunk-MLKGABMK.js";
5
5
  export {
6
6
  icon_default as default
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767796433253,
4
+ "lastModified": 1767797055475,
5
5
  "icons": {
6
6
  "bar": {
7
7
  "body": "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkTKXFLY5Vcjs = require('../chunk-TKXFLY5V.cjs');
3
+ var _chunkFCWKSIH4cjs = require('../chunk-FCWKSIH4.cjs');
4
4
 
5
5
 
6
6
  var _chunkEEMF44IHcjs = require('../chunk-EEMF44IH.cjs');
@@ -107,7 +107,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
107
107
  }
108
108
  },
109
109
  [
110
- _vue.h.call(void 0, _chunkTKXFLY5Vcjs.icon_default, {
110
+ _vue.h.call(void 0, _chunkFCWKSIH4cjs.icon_default, {
111
111
  type: props.type,
112
112
  size: props.size,
113
113
  name: props.modelValue,
@@ -189,7 +189,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
189
189
  },
190
190
  name.value
191
191
  ),
192
- _vue.h.call(void 0, _chunkTKXFLY5Vcjs.icon_default, {
192
+ _vue.h.call(void 0, _chunkFCWKSIH4cjs.icon_default, {
193
193
  type: props.type,
194
194
  size: props.size,
195
195
  name: name.value,
@@ -241,7 +241,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
241
241
  }
242
242
  },
243
243
  [
244
- _vue.h.call(void 0, _chunkTKXFLY5Vcjs.icon_default, {
244
+ _vue.h.call(void 0, _chunkFCWKSIH4cjs.icon_default, {
245
245
  style: {
246
246
  margin: "5px",
247
247
  marginBottom: 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-2GZYNEO5.js";
3
+ } from "../chunk-PSUUCIWL.js";
4
4
  import {
5
5
  dialog_default
6
6
  } from "../chunk-I5KQLZMG.js";
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@fangzhongya/icons",
3
3
  "private": false,
4
4
  "type": "module",
5
- "version": "0.0.12",
5
+ "version": "0.0.13",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",