@fangzhongya/icons 0.0.33 → 0.0.35

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.
@@ -6,20 +6,20 @@ import {
6
6
  import { h, defineComponent, resolveComponent, computed } from "vue";
7
7
 
8
8
  // node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
9
- function humpToLine(name) {
9
+ function humpToLine(name2) {
10
10
  const reg3 = /(([A-Z])([^A-Z]*))/g;
11
11
  let result;
12
12
  const arr = [];
13
13
  let i = 0;
14
- while ((result = reg3.exec(name)) !== null) {
14
+ while ((result = reg3.exec(name2)) !== null) {
15
15
  if (i == 0 && result.index != 0) {
16
- arr.push(name.substring(0, result.index));
16
+ arr.push(name2.substring(0, result.index));
17
17
  }
18
18
  i++;
19
19
  arr.push(result[1].toLowerCase());
20
20
  }
21
21
  if (arr.length == 0) {
22
- return name;
22
+ return name2;
23
23
  } else {
24
24
  let a = arr.join("-");
25
25
  a = a.replace(/[-]{2,}/g, "-");
@@ -34,9 +34,9 @@ var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
34
34
  var prefix = humpToLine(defaultPrefix) + "-";
35
35
  var className = "icon";
36
36
  var directory = "/svg";
37
- var isImg = (name) => {
38
- if (name) {
39
- if (name.startsWith("data:") || name.startsWith("/") || name.startsWith("./") || name.startsWith("../") || name.includes("://")) {
37
+ var isImg = (name2) => {
38
+ if (name2) {
39
+ if (name2.startsWith("data:") || name2.startsWith("/") || name2.startsWith("./") || name2.startsWith("../") || name2.includes("://")) {
40
40
  return true;
41
41
  }
42
42
  }
@@ -65,7 +65,7 @@ var svgStyle = {
65
65
  color: "var(--color)",
66
66
  "font-size": "inherit"
67
67
  };
68
- var icon_default = defineComponent({
68
+ var component = defineComponent({
69
69
  name: "Icon",
70
70
  props: {
71
71
  /**
@@ -133,22 +133,22 @@ var icon_default = defineComponent({
133
133
  if (props.type) {
134
134
  return props.type;
135
135
  } else {
136
- const name = props.name || "";
137
- if (typeof name == "object") {
136
+ const name2 = props.name || "";
137
+ if (typeof name2 == "object") {
138
138
  return "vue";
139
- } else if (reg.test(name) || reg1.test(name) || reg2.test(name)) {
139
+ } else if (reg.test(name2) || reg1.test(name2) || reg2.test(name2)) {
140
140
  return "svg";
141
- } else if (isImg(name)) {
141
+ } else if (isImg(name2)) {
142
142
  return "img";
143
143
  }
144
144
  return props.default;
145
145
  }
146
146
  });
147
- const setPrefix = (name) => {
148
- if (name.startsWith(props.prefix)) {
149
- return name;
147
+ const setPrefix = (name2) => {
148
+ if (name2.startsWith(props.prefix)) {
149
+ return name2;
150
150
  } else {
151
- return props.prefix + name;
151
+ return props.prefix + name2;
152
152
  }
153
153
  };
154
154
  const transformStyle = computed(() => {
@@ -188,34 +188,34 @@ var icon_default = defineComponent({
188
188
  return styleObj;
189
189
  });
190
190
  const outputName = computed(() => {
191
- const name = props.name;
192
- if (typeof name == "string") {
191
+ const name2 = props.name;
192
+ if (typeof name2 == "string") {
193
193
  switch (outputType.value) {
194
194
  case "svg":
195
- const rs = reg.exec(name);
196
- const rs1 = reg1.exec(name) || reg2.exec(name);
195
+ const rs = reg.exec(name2);
196
+ const rs1 = reg1.exec(name2) || reg2.exec(name2);
197
197
  if (rs && rs.length > 0) {
198
198
  return rs[1];
199
199
  } else if (rs1 && rs1.length > 0) {
200
200
  return rs1[0];
201
201
  } else {
202
- return name;
202
+ return name2;
203
203
  }
204
204
  case "css":
205
- return setPrefix(name);
205
+ return setPrefix(name2);
206
206
  case "id":
207
- return setPrefix(name);
207
+ return setPrefix(name2);
208
208
  case "font":
209
- return setPrefix(name);
209
+ return setPrefix(name2);
210
210
  default:
211
- return name;
211
+ return name2;
212
212
  }
213
213
  }
214
- return name;
214
+ return name2;
215
215
  });
216
216
  const arr = computed(() => {
217
217
  var _a, _b, _c, _d, _e;
218
- if (slots.default) {
218
+ if (Object.keys(slots).length > 0) {
219
219
  return slots;
220
220
  } else if (!outputName.value) {
221
221
  return void 0;
@@ -311,7 +311,14 @@ var icon_default = defineComponent({
311
311
  );
312
312
  }
313
313
  });
314
+ var name = "FangIcon";
315
+ component.install = (app) => {
316
+ app.component(name, component);
317
+ };
318
+ var icon = component;
319
+ var icon_default = component;
314
320
 
315
321
  export {
322
+ icon,
316
323
  icon_default
317
324
  };
@@ -6,20 +6,20 @@ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
6
6
  var _vue = require('vue');
7
7
 
8
8
  // node_modules/.pnpm/@fangzhongya+utils@0.0.73/node_modules/@fangzhongya/utils/dist/chunk-J7CICTHH.js
9
- function humpToLine(name) {
9
+ function humpToLine(name2) {
10
10
  const reg3 = /(([A-Z])([^A-Z]*))/g;
11
11
  let result;
12
12
  const arr = [];
13
13
  let i = 0;
14
- while ((result = reg3.exec(name)) !== null) {
14
+ while ((result = reg3.exec(name2)) !== null) {
15
15
  if (i == 0 && result.index != 0) {
16
- arr.push(name.substring(0, result.index));
16
+ arr.push(name2.substring(0, result.index));
17
17
  }
18
18
  i++;
19
19
  arr.push(result[1].toLowerCase());
20
20
  }
21
21
  if (arr.length == 0) {
22
- return name;
22
+ return name2;
23
23
  } else {
24
24
  let a = arr.join("-");
25
25
  a = a.replace(/[-]{2,}/g, "-");
@@ -34,9 +34,9 @@ var reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
34
34
  var prefix = humpToLine(_chunkIIVF4KK5cjs.defaultPrefix) + "-";
35
35
  var className = "icon";
36
36
  var directory = "/svg";
37
- var isImg = (name) => {
38
- if (name) {
39
- if (name.startsWith("data:") || name.startsWith("/") || name.startsWith("./") || name.startsWith("../") || name.includes("://")) {
37
+ var isImg = (name2) => {
38
+ if (name2) {
39
+ if (name2.startsWith("data:") || name2.startsWith("/") || name2.startsWith("./") || name2.startsWith("../") || name2.includes("://")) {
40
40
  return true;
41
41
  }
42
42
  }
@@ -65,7 +65,7 @@ var svgStyle = {
65
65
  color: "var(--color)",
66
66
  "font-size": "inherit"
67
67
  };
68
- var icon_default = _vue.defineComponent.call(void 0, {
68
+ var component = _vue.defineComponent.call(void 0, {
69
69
  name: "Icon",
70
70
  props: {
71
71
  /**
@@ -133,22 +133,22 @@ var icon_default = _vue.defineComponent.call(void 0, {
133
133
  if (props.type) {
134
134
  return props.type;
135
135
  } else {
136
- const name = props.name || "";
137
- if (typeof name == "object") {
136
+ const name2 = props.name || "";
137
+ if (typeof name2 == "object") {
138
138
  return "vue";
139
- } else if (reg.test(name) || reg1.test(name) || reg2.test(name)) {
139
+ } else if (reg.test(name2) || reg1.test(name2) || reg2.test(name2)) {
140
140
  return "svg";
141
- } else if (isImg(name)) {
141
+ } else if (isImg(name2)) {
142
142
  return "img";
143
143
  }
144
144
  return props.default;
145
145
  }
146
146
  });
147
- const setPrefix = (name) => {
148
- if (name.startsWith(props.prefix)) {
149
- return name;
147
+ const setPrefix = (name2) => {
148
+ if (name2.startsWith(props.prefix)) {
149
+ return name2;
150
150
  } else {
151
- return props.prefix + name;
151
+ return props.prefix + name2;
152
152
  }
153
153
  };
154
154
  const transformStyle = _vue.computed.call(void 0, () => {
@@ -188,34 +188,34 @@ var icon_default = _vue.defineComponent.call(void 0, {
188
188
  return styleObj;
189
189
  });
190
190
  const outputName = _vue.computed.call(void 0, () => {
191
- const name = props.name;
192
- if (typeof name == "string") {
191
+ const name2 = props.name;
192
+ if (typeof name2 == "string") {
193
193
  switch (outputType.value) {
194
194
  case "svg":
195
- const rs = reg.exec(name);
196
- const rs1 = reg1.exec(name) || reg2.exec(name);
195
+ const rs = reg.exec(name2);
196
+ const rs1 = reg1.exec(name2) || reg2.exec(name2);
197
197
  if (rs && rs.length > 0) {
198
198
  return rs[1];
199
199
  } else if (rs1 && rs1.length > 0) {
200
200
  return rs1[0];
201
201
  } else {
202
- return name;
202
+ return name2;
203
203
  }
204
204
  case "css":
205
- return setPrefix(name);
205
+ return setPrefix(name2);
206
206
  case "id":
207
- return setPrefix(name);
207
+ return setPrefix(name2);
208
208
  case "font":
209
- return setPrefix(name);
209
+ return setPrefix(name2);
210
210
  default:
211
- return name;
211
+ return name2;
212
212
  }
213
213
  }
214
- return name;
214
+ return name2;
215
215
  });
216
216
  const arr = _vue.computed.call(void 0, () => {
217
217
  var _a, _b, _c, _d, _e;
218
- if (slots.default) {
218
+ if (Object.keys(slots).length > 0) {
219
219
  return slots;
220
220
  } else if (!outputName.value) {
221
221
  return void 0;
@@ -311,7 +311,14 @@ var icon_default = _vue.defineComponent.call(void 0, {
311
311
  );
312
312
  }
313
313
  });
314
+ var name = "FangIcon";
315
+ component.install = (app) => {
316
+ app.component(name, component);
317
+ };
318
+ var icon = component;
319
+ var icon_default = component;
320
+
314
321
 
315
322
 
316
323
 
317
- exports.icon_default = icon_default;
324
+ exports.icon = icon; exports.icon_default = icon_default;
@@ -2,7 +2,7 @@
2
2
  var index_default = {
3
3
  prefix: "fang-icons",
4
4
  info: {},
5
- lastModified: 1767929461419,
5
+ lastModified: 1767930827898,
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: 1767929461419,
5
+ lastModified: 1767930827898,
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>'
@@ -1,9 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPNP653XLcjs = require('../chunk-PNP653XL.cjs');
3
+
4
+ var _chunkCUZ7VVHKcjs = require('../chunk-CUZ7VVHK.cjs');
4
5
  require('../chunk-IIVF4KK5.cjs');
5
6
  require('../chunk-3376ZTRC.cjs');
6
7
  require('../chunk-75ZPJI57.cjs');
7
8
 
8
9
 
9
- exports.default = _chunkPNP653XLcjs.icon_default;
10
+
11
+ exports.default = _chunkCUZ7VVHKcjs.icon_default; exports.icon = _chunkCUZ7VVHKcjs.icon;
@@ -2,7 +2,136 @@ import * as vue from 'vue';
2
2
 
3
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
4
  type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
5
- declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
5
+ declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
6
+ /**
7
+ * @props { String, Object } name= ( )
8
+ * 图标名称
9
+ */
10
+ name: {
11
+ type: (StringConstructor | ObjectConstructor)[];
12
+ default: string;
13
+ };
14
+ /**
15
+ * @props { String} iconClass= ( )
16
+ * 图标样式名称
17
+ */
18
+ iconClass: {
19
+ type: StringConstructor;
20
+ };
21
+ color: {
22
+ type: StringConstructor;
23
+ };
24
+ /**
25
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
26
+ * 图标类型
27
+ */
28
+ type: {
29
+ type: () => IconType;
30
+ };
31
+ /**
32
+ * @props { String, Number } size= ( )
33
+ * 图标大小
34
+ */
35
+ size: {
36
+ type: (StringConstructor | NumberConstructor)[];
37
+ };
38
+ /**
39
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
40
+ * 图标方向
41
+ */
42
+ flip: {
43
+ type: () => Flip;
44
+ default: string;
45
+ };
46
+ /**
47
+ * @props { Number } rotate=0
48
+ * 图标旋转角度
49
+ */
50
+ rotate: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ default: {
55
+ type: StringConstructor;
56
+ };
57
+ directory: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ prefix: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
66
+ [key: string]: any;
67
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
68
+ /**
69
+ * @props { String, Object } name= ( )
70
+ * 图标名称
71
+ */
72
+ name: {
73
+ type: (StringConstructor | ObjectConstructor)[];
74
+ default: string;
75
+ };
76
+ /**
77
+ * @props { String} iconClass= ( )
78
+ * 图标样式名称
79
+ */
80
+ iconClass: {
81
+ type: StringConstructor;
82
+ };
83
+ color: {
84
+ type: StringConstructor;
85
+ };
86
+ /**
87
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
88
+ * 图标类型
89
+ */
90
+ type: {
91
+ type: () => IconType;
92
+ };
93
+ /**
94
+ * @props { String, Number } size= ( )
95
+ * 图标大小
96
+ */
97
+ size: {
98
+ type: (StringConstructor | NumberConstructor)[];
99
+ };
100
+ /**
101
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
102
+ * 图标方向
103
+ */
104
+ flip: {
105
+ type: () => Flip;
106
+ default: string;
107
+ };
108
+ /**
109
+ * @props { Number } rotate=0
110
+ * 图标旋转角度
111
+ */
112
+ rotate: {
113
+ type: NumberConstructor;
114
+ default: number;
115
+ };
116
+ default: {
117
+ type: StringConstructor;
118
+ };
119
+ directory: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ prefix: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ }>> & Readonly<{}>, {
128
+ name: string | Record<string, any>;
129
+ flip: Flip;
130
+ rotate: number;
131
+ directory: string;
132
+ prefix: string;
133
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
134
+ declare const icon: vue.DefineComponent<vue.ExtractPropTypes<{
6
135
  /**
7
136
  * @props { String, Object } name= ( )
8
137
  * 图标名称
@@ -132,4 +261,4 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
132
261
  prefix: string;
133
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
134
263
 
135
- export { type Flip, type IconType, _default as default };
264
+ export { type Flip, type IconType, component as default, icon };
@@ -2,7 +2,136 @@ import * as vue from 'vue';
2
2
 
3
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
4
  type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
5
- declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
5
+ declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
6
+ /**
7
+ * @props { String, Object } name= ( )
8
+ * 图标名称
9
+ */
10
+ name: {
11
+ type: (StringConstructor | ObjectConstructor)[];
12
+ default: string;
13
+ };
14
+ /**
15
+ * @props { String} iconClass= ( )
16
+ * 图标样式名称
17
+ */
18
+ iconClass: {
19
+ type: StringConstructor;
20
+ };
21
+ color: {
22
+ type: StringConstructor;
23
+ };
24
+ /**
25
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
26
+ * 图标类型
27
+ */
28
+ type: {
29
+ type: () => IconType;
30
+ };
31
+ /**
32
+ * @props { String, Number } size= ( )
33
+ * 图标大小
34
+ */
35
+ size: {
36
+ type: (StringConstructor | NumberConstructor)[];
37
+ };
38
+ /**
39
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
40
+ * 图标方向
41
+ */
42
+ flip: {
43
+ type: () => Flip;
44
+ default: string;
45
+ };
46
+ /**
47
+ * @props { Number } rotate=0
48
+ * 图标旋转角度
49
+ */
50
+ rotate: {
51
+ type: NumberConstructor;
52
+ default: number;
53
+ };
54
+ default: {
55
+ type: StringConstructor;
56
+ };
57
+ directory: {
58
+ type: StringConstructor;
59
+ default: string;
60
+ };
61
+ prefix: {
62
+ type: StringConstructor;
63
+ default: string;
64
+ };
65
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
66
+ [key: string]: any;
67
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
68
+ /**
69
+ * @props { String, Object } name= ( )
70
+ * 图标名称
71
+ */
72
+ name: {
73
+ type: (StringConstructor | ObjectConstructor)[];
74
+ default: string;
75
+ };
76
+ /**
77
+ * @props { String} iconClass= ( )
78
+ * 图标样式名称
79
+ */
80
+ iconClass: {
81
+ type: StringConstructor;
82
+ };
83
+ color: {
84
+ type: StringConstructor;
85
+ };
86
+ /**
87
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
88
+ * 图标类型
89
+ */
90
+ type: {
91
+ type: () => IconType;
92
+ };
93
+ /**
94
+ * @props { String, Number } size= ( )
95
+ * 图标大小
96
+ */
97
+ size: {
98
+ type: (StringConstructor | NumberConstructor)[];
99
+ };
100
+ /**
101
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
102
+ * 图标方向
103
+ */
104
+ flip: {
105
+ type: () => Flip;
106
+ default: string;
107
+ };
108
+ /**
109
+ * @props { Number } rotate=0
110
+ * 图标旋转角度
111
+ */
112
+ rotate: {
113
+ type: NumberConstructor;
114
+ default: number;
115
+ };
116
+ default: {
117
+ type: StringConstructor;
118
+ };
119
+ directory: {
120
+ type: StringConstructor;
121
+ default: string;
122
+ };
123
+ prefix: {
124
+ type: StringConstructor;
125
+ default: string;
126
+ };
127
+ }>> & Readonly<{}>, {
128
+ name: string | Record<string, any>;
129
+ flip: Flip;
130
+ rotate: number;
131
+ directory: string;
132
+ prefix: string;
133
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
134
+ declare const icon: vue.DefineComponent<vue.ExtractPropTypes<{
6
135
  /**
7
136
  * @props { String, Object } name= ( )
8
137
  * 图标名称
@@ -132,4 +261,4 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
132
261
  prefix: string;
133
262
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
134
263
 
135
- export { type Flip, type IconType, _default as default };
264
+ export { type Flip, type IconType, component as default, icon };
@@ -1,9 +1,11 @@
1
1
  import {
2
+ icon,
2
3
  icon_default
3
- } from "../chunk-BIHY7VRJ.js";
4
+ } from "../chunk-A4MW3XQT.js";
4
5
  import "../chunk-MOHILOKE.js";
5
6
  import "../chunk-BYXBJQAS.js";
6
7
  import "../chunk-MLKGABMK.js";
7
8
  export {
8
- icon_default as default
9
+ icon_default as default,
10
+ icon
9
11
  };
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767929461419,
4
+ "lastModified": 1767930827898,
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 _chunkUJQHP4RPcjs = require('./chunk-UJQHP4RP.cjs');
3
+ var _chunkIQ37TPSIcjs = require('./chunk-IQ37TPSI.cjs');
4
4
  require('./chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkUJQHP4RPcjs.json_default;
7
+ exports.default = _chunkIQ37TPSIcjs.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 = 1767929461419;
4
+ var lastModified = 1767930827898;
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 = 1767929461419;
4
+ var lastModified = 1767930827898;
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-RPGIK7SZ.js";
3
+ } from "./chunk-RIAWQLUX.js";
4
4
  import "./chunk-MLKGABMK.js";
5
5
  export {
6
6
  json_default as default
@@ -1,6 +1,6 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkPNP653XLcjs = require('../chunk-PNP653XL.cjs');
3
+ var _chunkCUZ7VVHKcjs = require('../chunk-CUZ7VVHK.cjs');
4
4
  require('../chunk-IIVF4KK5.cjs');
5
5
  require('../chunk-3376ZTRC.cjs');
6
6
 
@@ -84,7 +84,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
84
84
  return props.icon;
85
85
  }
86
86
  } else {
87
- return _chunkPNP653XLcjs.icon_default;
87
+ return _chunkCUZ7VVHKcjs.icon_default;
88
88
  }
89
89
  });
90
90
  const dialogVue = _vue.computed.call(void 0, () => {
@@ -299,7 +299,7 @@ var picker_default = _vue.defineComponent.call(void 0, {
299
299
  }
300
300
  },
301
301
  [
302
- _vue.h.call(void 0, _chunkPNP653XLcjs.icon_default, {
302
+ _vue.h.call(void 0, _chunkCUZ7VVHKcjs.icon_default, {
303
303
  style: {
304
304
  margin: "5px",
305
305
  marginBottom: 0,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-BIHY7VRJ.js";
3
+ } from "../chunk-A4MW3XQT.js";
4
4
  import "../chunk-MOHILOKE.js";
5
5
  import "../chunk-BYXBJQAS.js";
6
6
  import {
@@ -3,7 +3,7 @@
3
3
  var _chunkYJVFENGGcjs = require('../chunk-YJVFENGG.cjs');
4
4
 
5
5
 
6
- var _chunkUJQHP4RPcjs = require('../chunk-UJQHP4RP.cjs');
6
+ var _chunkIQ37TPSIcjs = require('../chunk-IQ37TPSI.cjs');
7
7
 
8
8
 
9
9
  var _chunkBXEIRESQcjs = require('../chunk-BXEIRESQ.cjs');
@@ -978,10 +978,10 @@ function simpleFangIcon(options = {}) {
978
978
  }
979
979
  });
980
980
  // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
981
- export const install = (app) => {
981
+ component.install = (app) => {
982
982
  app.component('${name}', component)
983
983
  };
984
-
984
+ export const '${name}' = component;
985
985
  export default component;`;
986
986
  const svg = `
987
987
  import { defineComponent, h, computed} from 'vue'
@@ -1026,11 +1026,11 @@ function simpleFangIcon(options = {}) {
1026
1026
  };
1027
1027
  }
1028
1028
  });
1029
- // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
1030
- export const install = (app) => {
1029
+ // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
1030
+ component.install = (app) => {
1031
1031
  app.component('${name}', component)
1032
1032
  };
1033
-
1033
+ export const '${name}' = component;
1034
1034
  export default component;`;
1035
1035
  const text = type === runType ? svg : pub;
1036
1036
  plugin.resolveId = function(id) {
@@ -1222,7 +1222,7 @@ function findComponents(code, name) {
1222
1222
  return components;
1223
1223
  }
1224
1224
  function getText(iconName, match) {
1225
- const svg = _chunkYJVFENGGcjs.getIconifySVG.call(void 0, _chunkUJQHP4RPcjs.json_default, iconName);
1225
+ const svg = _chunkYJVFENGGcjs.getIconifySVG.call(void 0, _chunkIQ37TPSIcjs.json_default, iconName);
1226
1226
  const s = match.fullMatch.replace(`name="${iconName}"`, "").replace(`</${match.componentName}>`, "");
1227
1227
  const text = `${s}${svg}</${match.componentName}>`;
1228
1228
  return { text, imptext: "" };
@@ -1248,7 +1248,7 @@ function replaceComponent(match, type, dynamic, customReplacement) {
1248
1248
  if (customReplacement) {
1249
1249
  return customReplacement(iconName, attributes);
1250
1250
  }
1251
- let svgContent = _chunkUJQHP4RPcjs.json_default.icons[iconName];
1251
+ let svgContent = _chunkIQ37TPSIcjs.json_default.icons[iconName];
1252
1252
  if (!svgContent) {
1253
1253
  return { text: match.fullMatch, imptext: "" };
1254
1254
  }
@@ -3,7 +3,7 @@ import {
3
3
  } from "../chunk-YGLV5TML.js";
4
4
  import {
5
5
  json_default
6
- } from "../chunk-RPGIK7SZ.js";
6
+ } from "../chunk-RIAWQLUX.js";
7
7
  import {
8
8
  lineToLargeHump
9
9
  } from "../chunk-J4G2OFZ4.js";
@@ -978,10 +978,10 @@ function simpleFangIcon(options = {}) {
978
978
  }
979
979
  });
980
980
  // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
981
- export const install = (app) => {
981
+ component.install = (app) => {
982
982
  app.component('${name}', component)
983
983
  };
984
-
984
+ export const '${name}' = component;
985
985
  export default component;`;
986
986
  const svg = `
987
987
  import { defineComponent, h, computed} from 'vue'
@@ -1026,11 +1026,11 @@ function simpleFangIcon(options = {}) {
1026
1026
  };
1027
1027
  }
1028
1028
  });
1029
- // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
1030
- export const install = (app) => {
1029
+ // \u5BFC\u51FA\u5B89\u88C5\u51FD\u6570
1030
+ component.install = (app) => {
1031
1031
  app.component('${name}', component)
1032
1032
  };
1033
-
1033
+ export const '${name}' = component;
1034
1034
  export default component;`;
1035
1035
  const text = type === runType ? svg : pub;
1036
1036
  plugin.resolveId = function(id) {
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.33",
5
+ "version": "0.0.35",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",