@fangzhongya/icons 0.0.30 → 0.0.31

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.
@@ -2,7 +2,7 @@
2
2
  var index_default = {
3
3
  prefix: "fang-icons",
4
4
  info: {},
5
- lastModified: 1767880789573,
5
+ lastModified: 1767921135626,
6
6
  icons: {
7
7
  bar: {
8
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
@@ -2,7 +2,7 @@
2
2
  var index_default = {
3
3
  prefix: "fang-icons",
4
4
  info: {},
5
- lastModified: 1767880789573,
5
+ lastModified: 1767921135626,
6
6
  icons: {
7
7
  bar: {
8
8
  body: '<path d="M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z"></path>'
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767880789573,
4
+ "lastModified": 1767921135626,
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>"
package/dist/json.cjs CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkAVF7TFLUcjs = require('./chunk-AVF7TFLU.cjs');
3
+ var _chunkM7ZSUG7Lcjs = require('./chunk-M7ZSUG7L.cjs');
4
4
  require('./chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkAVF7TFLUcjs.json_default;
7
+ exports.default = _chunkM7ZSUG7Lcjs.json_default;
package/dist/json.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  var prefix = "fang-icons";
2
2
  var info = {
3
3
  };
4
- var lastModified = 1767880789573;
4
+ var lastModified = 1767921135626;
5
5
  var icons = {
6
6
  bar: {
7
7
  body: "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
package/dist/json.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  var prefix = "fang-icons";
2
2
  var info = {
3
3
  };
4
- var lastModified = 1767880789573;
4
+ var lastModified = 1767921135626;
5
5
  var icons = {
6
6
  bar: {
7
7
  body: "<path d=\"M128 544h768a32 32 0 1 0 0-64H128a32 32 0 0 0 0 64z\"></path>"
package/dist/json.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  json_default
3
- } from "./chunk-T6CBSQ63.js";
3
+ } from "./chunk-ISV7EOPT.js";
4
4
  import "./chunk-MLKGABMK.js";
5
5
  export {
6
6
  json_default as default
@@ -4,7 +4,7 @@
4
4
  var _chunk6CU3NPDGcjs = require('../chunk-6CU3NPDG.cjs');
5
5
 
6
6
 
7
- var _chunkAVF7TFLUcjs = require('../chunk-AVF7TFLU.cjs');
7
+ var _chunkM7ZSUG7Lcjs = require('../chunk-M7ZSUG7L.cjs');
8
8
  require('../chunk-3376ZTRC.cjs');
9
9
  require('../chunk-IIVF4KK5.cjs');
10
10
  require('../chunk-75ZPJI57.cjs');
@@ -984,7 +984,7 @@ function simpleFangIcon(options = {}) {
984
984
  const svg = `
985
985
  import { defineComponent, h, computed} from 'vue'
986
986
  import FangIcon from '@fangzhongya/icons/icon/index'
987
- import icons from '@fangzhongya/icons/async'
987
+ import FangVueIcons from '@fangzhongya/icons/async'
988
988
  const component = defineComponent({
989
989
  name: '${name}',
990
990
  props: {
@@ -1008,10 +1008,8 @@ function simpleFangIcon(options = {}) {
1008
1008
  const name = props.name;
1009
1009
  if (typeof name === 'string' && (props.type === '${runType}' ||
1010
1010
  (!props.type && props.default === '${runType}'))) {
1011
- const icon = icons[name];
1012
- if(icon){
1013
- return icon;
1014
- }
1011
+ const icon = FangVueIcons[name];
1012
+ if(icon) return icon;
1015
1013
  }
1016
1014
  return name;
1017
1015
  });
@@ -1222,7 +1220,7 @@ function findComponents(code, name) {
1222
1220
  return components;
1223
1221
  }
1224
1222
  function getText(iconName, match) {
1225
- const svg = _chunk6CU3NPDGcjs.getIconifySVG.call(void 0, _chunkAVF7TFLUcjs.json_default, iconName, 'v-bind="scope"');
1223
+ const svg = _chunk6CU3NPDGcjs.getIconifySVG.call(void 0, _chunkM7ZSUG7Lcjs.json_default, iconName, 'v-bind="scope"');
1226
1224
  const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
1227
1225
  const text = `${s}<template #default="scope">${svg}</template></${match.componentName}>`;
1228
1226
  return { text, imptext: "" };
@@ -1248,7 +1246,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
1248
1246
  if (customReplacement) {
1249
1247
  return customReplacement(iconName, attributes);
1250
1248
  }
1251
- let svgContent = _chunkAVF7TFLUcjs.json_default.icons[iconName];
1249
+ let svgContent = _chunkM7ZSUG7Lcjs.json_default.icons[iconName];
1252
1250
  if (!svgContent) {
1253
1251
  return { text: match.fullMatch, imptext: "" };
1254
1252
  }
@@ -4,7 +4,7 @@ import {
4
4
  } from "../chunk-7QX4NRMQ.js";
5
5
  import {
6
6
  json_default
7
- } from "../chunk-T6CBSQ63.js";
7
+ } from "../chunk-ISV7EOPT.js";
8
8
  import "../chunk-BYXBJQAS.js";
9
9
  import "../chunk-MOHILOKE.js";
10
10
  import "../chunk-MLKGABMK.js";
@@ -984,7 +984,7 @@ function simpleFangIcon(options = {}) {
984
984
  const svg = `
985
985
  import { defineComponent, h, computed} from 'vue'
986
986
  import FangIcon from '@fangzhongya/icons/icon/index'
987
- import icons from '@fangzhongya/icons/async'
987
+ import FangVueIcons from '@fangzhongya/icons/async'
988
988
  const component = defineComponent({
989
989
  name: '${name}',
990
990
  props: {
@@ -1008,10 +1008,8 @@ function simpleFangIcon(options = {}) {
1008
1008
  const name = props.name;
1009
1009
  if (typeof name === 'string' && (props.type === '${runType}' ||
1010
1010
  (!props.type && props.default === '${runType}'))) {
1011
- const icon = icons[name];
1012
- if(icon){
1013
- return icon;
1014
- }
1011
+ const icon = FangVueIcons[name];
1012
+ if(icon) return icon;
1015
1013
  }
1016
1014
  return name;
1017
1015
  });
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.30",
5
+ "version": "0.0.31",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",