@fangzhongya/icons 0.0.34 → 0.0.36

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: 1767929843933,
5
+ lastModified: 1767932712133,
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: 1767929843933,
5
+ lastModified: 1767932712133,
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>'
@@ -213,11 +213,9 @@ var component = defineComponent({
213
213
  }
214
214
  return name2;
215
215
  });
216
- const arr = computed(() => {
216
+ const dom = computed(() => {
217
217
  var _a, _b, _c, _d, _e;
218
- if (Object.keys(slots).length > 0) {
219
- return slots;
220
- } else if (!outputName.value) {
218
+ if (!outputName.value) {
221
219
  return void 0;
222
220
  } else if (outputType.value === "pub") {
223
221
  const src = props.directory + "/" + outputName.value + ".svg";
@@ -307,17 +305,18 @@ var component = defineComponent({
307
305
  class: [className],
308
306
  style: transformStyle.value
309
307
  },
310
- arr.value
308
+ Object.keys(slots).length > 0 ? slots : dom.value
311
309
  );
312
310
  }
313
311
  });
314
312
  var name = "FangIcon";
315
- var install = (app) => {
313
+ component.install = (app) => {
316
314
  app.component(name, component);
317
315
  };
316
+ var icon = component;
318
317
  var icon_default = component;
319
318
 
320
319
  export {
321
- install,
320
+ icon,
322
321
  icon_default
323
322
  };
@@ -213,11 +213,9 @@ var component = _vue.defineComponent.call(void 0, {
213
213
  }
214
214
  return name2;
215
215
  });
216
- const arr = _vue.computed.call(void 0, () => {
216
+ const dom = _vue.computed.call(void 0, () => {
217
217
  var _a, _b, _c, _d, _e;
218
- if (Object.keys(slots).length > 0) {
219
- return slots;
220
- } else if (!outputName.value) {
218
+ if (!outputName.value) {
221
219
  return void 0;
222
220
  } else if (outputType.value === "pub") {
223
221
  const src = props.directory + "/" + outputName.value + ".svg";
@@ -307,17 +305,18 @@ var component = _vue.defineComponent.call(void 0, {
307
305
  class: [className],
308
306
  style: transformStyle.value
309
307
  },
310
- arr.value
308
+ Object.keys(slots).length > 0 ? slots : dom.value
311
309
  );
312
310
  }
313
311
  });
314
312
  var name = "FangIcon";
315
- var install = (app) => {
313
+ component.install = (app) => {
316
314
  app.component(name, component);
317
315
  };
316
+ var icon = component;
318
317
  var icon_default = component;
319
318
 
320
319
 
321
320
 
322
321
 
323
- exports.install = install; exports.icon_default = icon_default;
322
+ exports.icon = icon; exports.icon_default = icon_default;
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
 
4
- var _chunkVT6RFBVMcjs = require('../chunk-VT6RFBVM.cjs');
4
+ var _chunkXZEJWS7Ccjs = require('../chunk-XZEJWS7C.cjs');
5
5
  require('../chunk-IIVF4KK5.cjs');
6
6
  require('../chunk-3376ZTRC.cjs');
7
7
  require('../chunk-75ZPJI57.cjs');
8
8
 
9
9
 
10
10
 
11
- exports.default = _chunkVT6RFBVMcjs.icon_default; exports.install = _chunkVT6RFBVMcjs.install;
11
+ exports.default = _chunkXZEJWS7Ccjs.icon_default; exports.icon = _chunkXZEJWS7Ccjs.icon;
@@ -1,5 +1,4 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
3
2
 
4
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
5
4
  type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
@@ -132,6 +131,134 @@ declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
132
131
  directory: string;
133
132
  prefix: string;
134
133
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
135
- declare const install: (app: App) => void;
134
+ declare const icon: vue.DefineComponent<vue.ExtractPropTypes<{
135
+ /**
136
+ * @props { String, Object } name= ( )
137
+ * 图标名称
138
+ */
139
+ name: {
140
+ type: (StringConstructor | ObjectConstructor)[];
141
+ default: string;
142
+ };
143
+ /**
144
+ * @props { String} iconClass= ( )
145
+ * 图标样式名称
146
+ */
147
+ iconClass: {
148
+ type: StringConstructor;
149
+ };
150
+ color: {
151
+ type: StringConstructor;
152
+ };
153
+ /**
154
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
155
+ * 图标类型
156
+ */
157
+ type: {
158
+ type: () => IconType;
159
+ };
160
+ /**
161
+ * @props { String, Number } size= ( )
162
+ * 图标大小
163
+ */
164
+ size: {
165
+ type: (StringConstructor | NumberConstructor)[];
166
+ };
167
+ /**
168
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
169
+ * 图标方向
170
+ */
171
+ flip: {
172
+ type: () => Flip;
173
+ default: string;
174
+ };
175
+ /**
176
+ * @props { Number } rotate=0
177
+ * 图标旋转角度
178
+ */
179
+ rotate: {
180
+ type: NumberConstructor;
181
+ default: number;
182
+ };
183
+ default: {
184
+ type: StringConstructor;
185
+ };
186
+ directory: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ prefix: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
195
+ [key: string]: any;
196
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
197
+ /**
198
+ * @props { String, Object } name= ( )
199
+ * 图标名称
200
+ */
201
+ name: {
202
+ type: (StringConstructor | ObjectConstructor)[];
203
+ default: string;
204
+ };
205
+ /**
206
+ * @props { String} iconClass= ( )
207
+ * 图标样式名称
208
+ */
209
+ iconClass: {
210
+ type: StringConstructor;
211
+ };
212
+ color: {
213
+ type: StringConstructor;
214
+ };
215
+ /**
216
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
217
+ * 图标类型
218
+ */
219
+ type: {
220
+ type: () => IconType;
221
+ };
222
+ /**
223
+ * @props { String, Number } size= ( )
224
+ * 图标大小
225
+ */
226
+ size: {
227
+ type: (StringConstructor | NumberConstructor)[];
228
+ };
229
+ /**
230
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
231
+ * 图标方向
232
+ */
233
+ flip: {
234
+ type: () => Flip;
235
+ default: string;
236
+ };
237
+ /**
238
+ * @props { Number } rotate=0
239
+ * 图标旋转角度
240
+ */
241
+ rotate: {
242
+ type: NumberConstructor;
243
+ default: number;
244
+ };
245
+ default: {
246
+ type: StringConstructor;
247
+ };
248
+ directory: {
249
+ type: StringConstructor;
250
+ default: string;
251
+ };
252
+ prefix: {
253
+ type: StringConstructor;
254
+ default: string;
255
+ };
256
+ }>> & Readonly<{}>, {
257
+ name: string | Record<string, any>;
258
+ flip: Flip;
259
+ rotate: number;
260
+ directory: string;
261
+ prefix: string;
262
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
136
263
 
137
- export { type Flip, type IconType, component as default, install };
264
+ export { type Flip, type IconType, component as default, icon };
@@ -1,5 +1,4 @@
1
1
  import * as vue from 'vue';
2
- import { App } from 'vue';
3
2
 
4
3
  type Flip = 'horizontal' | 'vertical' | 'both' | '';
5
4
  type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
@@ -132,6 +131,134 @@ declare const component: vue.DefineComponent<vue.ExtractPropTypes<{
132
131
  directory: string;
133
132
  prefix: string;
134
133
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
135
- declare const install: (app: App) => void;
134
+ declare const icon: vue.DefineComponent<vue.ExtractPropTypes<{
135
+ /**
136
+ * @props { String, Object } name= ( )
137
+ * 图标名称
138
+ */
139
+ name: {
140
+ type: (StringConstructor | ObjectConstructor)[];
141
+ default: string;
142
+ };
143
+ /**
144
+ * @props { String} iconClass= ( )
145
+ * 图标样式名称
146
+ */
147
+ iconClass: {
148
+ type: StringConstructor;
149
+ };
150
+ color: {
151
+ type: StringConstructor;
152
+ };
153
+ /**
154
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
155
+ * 图标类型
156
+ */
157
+ type: {
158
+ type: () => IconType;
159
+ };
160
+ /**
161
+ * @props { String, Number } size= ( )
162
+ * 图标大小
163
+ */
164
+ size: {
165
+ type: (StringConstructor | NumberConstructor)[];
166
+ };
167
+ /**
168
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
169
+ * 图标方向
170
+ */
171
+ flip: {
172
+ type: () => Flip;
173
+ default: string;
174
+ };
175
+ /**
176
+ * @props { Number } rotate=0
177
+ * 图标旋转角度
178
+ */
179
+ rotate: {
180
+ type: NumberConstructor;
181
+ default: number;
182
+ };
183
+ default: {
184
+ type: StringConstructor;
185
+ };
186
+ directory: {
187
+ type: StringConstructor;
188
+ default: string;
189
+ };
190
+ prefix: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
195
+ [key: string]: any;
196
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
197
+ /**
198
+ * @props { String, Object } name= ( )
199
+ * 图标名称
200
+ */
201
+ name: {
202
+ type: (StringConstructor | ObjectConstructor)[];
203
+ default: string;
204
+ };
205
+ /**
206
+ * @props { String} iconClass= ( )
207
+ * 图标样式名称
208
+ */
209
+ iconClass: {
210
+ type: StringConstructor;
211
+ };
212
+ color: {
213
+ type: StringConstructor;
214
+ };
215
+ /**
216
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
217
+ * 图标类型
218
+ */
219
+ type: {
220
+ type: () => IconType;
221
+ };
222
+ /**
223
+ * @props { String, Number } size= ( )
224
+ * 图标大小
225
+ */
226
+ size: {
227
+ type: (StringConstructor | NumberConstructor)[];
228
+ };
229
+ /**
230
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
231
+ * 图标方向
232
+ */
233
+ flip: {
234
+ type: () => Flip;
235
+ default: string;
236
+ };
237
+ /**
238
+ * @props { Number } rotate=0
239
+ * 图标旋转角度
240
+ */
241
+ rotate: {
242
+ type: NumberConstructor;
243
+ default: number;
244
+ };
245
+ default: {
246
+ type: StringConstructor;
247
+ };
248
+ directory: {
249
+ type: StringConstructor;
250
+ default: string;
251
+ };
252
+ prefix: {
253
+ type: StringConstructor;
254
+ default: string;
255
+ };
256
+ }>> & Readonly<{}>, {
257
+ name: string | Record<string, any>;
258
+ flip: Flip;
259
+ rotate: number;
260
+ directory: string;
261
+ prefix: string;
262
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
136
263
 
137
- export { type Flip, type IconType, component as default, install };
264
+ export { type Flip, type IconType, component as default, icon };
@@ -1,11 +1,11 @@
1
1
  import {
2
- icon_default,
3
- install
4
- } from "../chunk-7RAANNNN.js";
2
+ icon,
3
+ icon_default
4
+ } from "../chunk-W2XVG6W5.js";
5
5
  import "../chunk-MOHILOKE.js";
6
6
  import "../chunk-BYXBJQAS.js";
7
7
  import "../chunk-MLKGABMK.js";
8
8
  export {
9
9
  icon_default as default,
10
- install
10
+ icon
11
11
  };
package/dist/index.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "prefix": "fang-icons",
3
3
  "info": {},
4
- "lastModified": 1767929843933,
4
+ "lastModified": 1767932712133,
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 _chunkKKEXBY5Bcjs = require('./chunk-KKEXBY5B.cjs');
3
+ var _chunk3Z7ZNWFScjs = require('./chunk-3Z7ZNWFS.cjs');
4
4
  require('./chunk-75ZPJI57.cjs');
5
5
 
6
6
 
7
- exports.default = _chunkKKEXBY5Bcjs.json_default;
7
+ exports.default = _chunk3Z7ZNWFScjs.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 = 1767929843933;
4
+ var lastModified = 1767932712133;
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 = 1767929843933;
4
+ var lastModified = 1767932712133;
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-UX5LDTMC.js";
3
+ } from "./chunk-A6OAKI5J.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 _chunkVT6RFBVMcjs = require('../chunk-VT6RFBVM.cjs');
3
+ var _chunkXZEJWS7Ccjs = require('../chunk-XZEJWS7C.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 _chunkVT6RFBVMcjs.icon_default;
87
+ return _chunkXZEJWS7Ccjs.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, _chunkVT6RFBVMcjs.icon_default, {
302
+ _vue.h.call(void 0, _chunkXZEJWS7Ccjs.icon_default, {
303
303
  style: {
304
304
  margin: "5px",
305
305
  marginBottom: 0,
@@ -103,8 +103,8 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
103
103
  }>> & Readonly<{
104
104
  "onUpdate:modelValue"?: (...args: any[]) => any;
105
105
  }>, {
106
- size: string | number;
107
106
  clearable: boolean;
107
+ size: string | number;
108
108
  icons: Icons;
109
109
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
110
110
 
@@ -103,8 +103,8 @@ declare const _default: vue.DefineComponent<vue.ExtractPropTypes<{
103
103
  }>> & Readonly<{
104
104
  "onUpdate:modelValue"?: (...args: any[]) => any;
105
105
  }>, {
106
- size: string | number;
107
106
  clearable: boolean;
107
+ size: string | number;
108
108
  icons: Icons;
109
109
  }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
110
110
 
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  icon_default
3
- } from "../chunk-7RAANNNN.js";
3
+ } from "../chunk-W2XVG6W5.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 _chunkKKEXBY5Bcjs = require('../chunk-KKEXBY5B.cjs');
6
+ var _chunk3Z7ZNWFScjs = require('../chunk-3Z7ZNWFS.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, _chunkKKEXBY5Bcjs.json_default, iconName);
1225
+ const svg = _chunkYJVFENGGcjs.getIconifySVG.call(void 0, _chunk3Z7ZNWFScjs.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 = _chunkKKEXBY5Bcjs.json_default.icons[iconName];
1251
+ let svgContent = _chunk3Z7ZNWFScjs.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-UX5LDTMC.js";
6
+ } from "../chunk-A6OAKI5J.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.34",
5
+ "version": "0.0.36",
6
6
  "description ": "个人图标库",
7
7
  "author": "fangzhongya ",
8
8
  "license": "MIT",