@fangzhongya/icons 0.0.23 → 0.0.24

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.
@@ -48,20 +48,11 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
48
48
  default(): {};
49
49
  };
50
50
  /**
51
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
52
51
  * 图标类型
53
52
  */
54
53
  type: {
55
54
  type: () => IconType;
56
55
  };
57
- /**
58
- * @props { String } separator=':' ( )
59
- * 拼接值
60
- */
61
- separator: {
62
- type: StringConstructor;
63
- default: string;
64
- };
65
56
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
66
57
  [key: string]: any;
67
58
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -92,26 +83,16 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
92
83
  default(): {};
93
84
  };
94
85
  /**
95
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
96
86
  * 图标类型
97
87
  */
98
88
  type: {
99
89
  type: () => IconType;
100
90
  };
101
- /**
102
- * @props { String } separator=':' ( )
103
- * 拼接值
104
- */
105
- separator: {
106
- type: StringConstructor;
107
- default: string;
108
- };
109
91
  }>> & Readonly<{
110
92
  "onUpdate:modelValue"?: (...args: any[]) => any;
111
93
  }>, {
112
94
  size: string | number;
113
95
  icons: Icons;
114
- separator: string;
115
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
116
97
 
117
98
  export { type Icons, type IconsValue, type IconsValueObj, _default as default };
@@ -48,20 +48,11 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
48
48
  default(): {};
49
49
  };
50
50
  /**
51
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
52
51
  * 图标类型
53
52
  */
54
53
  type: {
55
54
  type: () => IconType;
56
55
  };
57
- /**
58
- * @props { String } separator=':' ( )
59
- * 拼接值
60
- */
61
- separator: {
62
- type: StringConstructor;
63
- default: string;
64
- };
65
56
  }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
66
57
  [key: string]: any;
67
58
  }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", vue.PublicProps, Readonly<vue.ExtractPropTypes<{
@@ -92,26 +83,16 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
92
83
  default(): {};
93
84
  };
94
85
  /**
95
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
96
86
  * 图标类型
97
87
  */
98
88
  type: {
99
89
  type: () => IconType;
100
90
  };
101
- /**
102
- * @props { String } separator=':' ( )
103
- * 拼接值
104
- */
105
- separator: {
106
- type: StringConstructor;
107
- default: string;
108
- };
109
91
  }>> & Readonly<{
110
92
  "onUpdate:modelValue"?: (...args: any[]) => any;
111
93
  }>, {
112
94
  size: string | number;
113
95
  icons: Icons;
114
- separator: string;
115
96
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
116
97
 
117
98
  export { type Icons, type IconsValue, type IconsValueObj, _default as default };
@@ -1,6 +1,8 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-TOMRI4OW.js";
3
+ } from "../chunk-5JGXNE36.js";
4
+ import "../chunk-BYXBJQAS.js";
5
+ import "../chunk-MOHILOKE.js";
4
6
  import {
5
7
  dialog_default
6
8
  } from "../chunk-I5KQLZMG.js";
@@ -42,19 +44,10 @@ var picker_default = defineComponent({
42
44
  }
43
45
  },
44
46
  /**
45
- * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
46
47
  * 图标类型
47
48
  */
48
49
  type: {
49
50
  type: String
50
- },
51
- /**
52
- * @props { String } separator=':' ( )
53
- * 拼接值
54
- */
55
- separator: {
56
- type: String,
57
- default: ":"
58
51
  }
59
52
  },
60
53
  emits: ["update:modelValue"],
@@ -110,8 +103,7 @@ var picker_default = defineComponent({
110
103
  h(icon_default, {
111
104
  type: props.type,
112
105
  size: props.size,
113
- name: props.modelValue,
114
- default: "pub"
106
+ name: props.modelValue
115
107
  })
116
108
  ]
117
109
  ),
@@ -192,8 +184,7 @@ var picker_default = defineComponent({
192
184
  h(icon_default, {
193
185
  type: props.type,
194
186
  size: props.size,
195
- name: name.value,
196
- default: "pub"
187
+ name: name.value
197
188
  })
198
189
  ]
199
190
  )
@@ -247,7 +238,7 @@ var picker_default = defineComponent({
247
238
  marginBottom: 0,
248
239
  backgroundColor: key === name.value ? "#e0edff" : ""
249
240
  },
250
- type: "str",
241
+ type: "svg",
251
242
  size: props.size,
252
243
  name: v
253
244
  }),
@@ -1,11 +1,12 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkOSHAEKZLcjs = require('../chunk-OSHAEKZL.cjs');
5
- require('../chunk-IIVF4KK5.cjs');
4
+ var _chunkTKPAHR5Gcjs = require('../chunk-TKPAHR5G.cjs');
6
5
 
7
6
 
8
- var _chunkWOUQJUZGcjs = require('../chunk-WOUQJUZG.cjs');
7
+ var _chunkMPD6UWMUcjs = require('../chunk-MPD6UWMU.cjs');
8
+ require('../chunk-3376ZTRC.cjs');
9
+ require('../chunk-IIVF4KK5.cjs');
9
10
  require('../chunk-75ZPJI57.cjs');
10
11
 
11
12
  // node_modules/.pnpm/@fangzhongya+create@0.2.49/node_modules/@fangzhongya/create/dist/chunk-4CBOJSDB.js
@@ -916,7 +917,7 @@ function runDev(config, configCallback, callback) {
916
917
 
917
918
  // packages/vite/index.ts
918
919
 
919
- var runType = "svg";
920
+ var runType = "vue";
920
921
  var virtualModuleId = "virtual:fang-icon";
921
922
  function simpleFangIcon(options = {}) {
922
923
  const {
@@ -1221,13 +1222,13 @@ function findComponents(code, name) {
1221
1222
  return components;
1222
1223
  }
1223
1224
  function getText(iconName, match) {
1224
- const svg = _chunkOSHAEKZLcjs.getIconifySVG.call(void 0, _chunkWOUQJUZGcjs.json_default, iconName, 'v-bind="scope"');
1225
+ const svg = _chunkTKPAHR5Gcjs.getIconifySVG.call(void 0, _chunkMPD6UWMUcjs.json_default, iconName, 'v-bind="scope"');
1225
1226
  const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
1226
1227
  const text = `${s}<template #default="scope">${svg}</template></${match.componentName}>`;
1227
1228
  return { text, imptext: "" };
1228
1229
  }
1229
1230
  function getImportName(iconName) {
1230
- return _chunkOSHAEKZLcjs.lineToLargeHump.call(void 0, "fang-icon-" + iconName);
1231
+ return _chunkTKPAHR5Gcjs.lineToLargeHump.call(void 0, "fang-icon-" + iconName);
1231
1232
  }
1232
1233
  function getVue(iconName, match) {
1233
1234
  const text = match.fullMatch.replace(
@@ -1247,7 +1248,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
1247
1248
  if (customReplacement) {
1248
1249
  return customReplacement(iconName, attributes);
1249
1250
  }
1250
- let svgContent = _chunkWOUQJUZGcjs.json_default.icons[iconName];
1251
+ let svgContent = _chunkMPD6UWMUcjs.json_default.icons[iconName];
1251
1252
  if (!svgContent) {
1252
1253
  return { text: match.fullMatch, imptext: "" };
1253
1254
  }
@@ -1,11 +1,12 @@
1
1
  import {
2
2
  getIconifySVG,
3
3
  lineToLargeHump
4
- } from "../chunk-HSJ3RNOH.js";
5
- import "../chunk-MOHILOKE.js";
4
+ } from "../chunk-SDYAFYDS.js";
6
5
  import {
7
6
  json_default
8
- } from "../chunk-GNA6VBQ3.js";
7
+ } from "../chunk-KI2ZVBGS.js";
8
+ import "../chunk-BYXBJQAS.js";
9
+ import "../chunk-MOHILOKE.js";
9
10
  import "../chunk-MLKGABMK.js";
10
11
 
11
12
  // node_modules/.pnpm/@fangzhongya+create@0.2.49/node_modules/@fangzhongya/create/dist/chunk-4CBOJSDB.js
@@ -916,7 +917,7 @@ function runDev(config, configCallback, callback) {
916
917
 
917
918
  // packages/vite/index.ts
918
919
  import { join as join5 } from "path";
919
- var runType = "svg";
920
+ var runType = "vue";
920
921
  var virtualModuleId = "virtual:fang-icon";
921
922
  function simpleFangIcon(options = {}) {
922
923
  const {
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.23",
5
+ "version": "0.0.24",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",