@fangzhongya/icons 0.0.1-1 → 0.0.2

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.
Files changed (267) hide show
  1. package/README.md +1 -14
  2. package/dist/chunk-2D4VSAJ2.js +13 -0
  3. package/dist/chunk-2TQQMTHZ.cjs +13 -0
  4. package/dist/chunk-32F77IBU.cjs +13 -0
  5. package/dist/chunk-3AMDUJDV.js +13 -0
  6. package/dist/chunk-3TRFZFYF.js +13 -0
  7. package/dist/chunk-53VWOQDN.cjs +13 -0
  8. package/dist/chunk-5PXZNWE4.js +13 -0
  9. package/dist/chunk-5QUGHNG3.cjs +13 -0
  10. package/dist/chunk-75ZPJI57.cjs +9 -0
  11. package/dist/chunk-76TLDMR4.cjs +13 -0
  12. package/dist/chunk-7IBXEWY5.js +13 -0
  13. package/dist/chunk-AQDYWFIE.cjs +13 -0
  14. package/dist/chunk-BEQYH4ZH.js +13 -0
  15. package/dist/chunk-BMEJLYYZ.js +13 -0
  16. package/dist/chunk-DOKVIYQP.cjs +13 -0
  17. package/dist/chunk-EEMF44IH.cjs +58 -0
  18. package/dist/chunk-EODYYDJS.js +13 -0
  19. package/dist/chunk-ERELSRIE.cjs +128 -0
  20. package/dist/chunk-ESPY25SV.cjs +13 -0
  21. package/dist/chunk-FEFTZ7TT.cjs +13 -0
  22. package/dist/chunk-FZTWDRFN.js +13 -0
  23. package/dist/chunk-H4PA2G3N.cjs +13 -0
  24. package/dist/chunk-HF34GB7O.js +128 -0
  25. package/dist/chunk-HOVIIPWX.js +280 -0
  26. package/dist/chunk-I3A3AEAA.cjs +13 -0
  27. package/dist/chunk-I3U5MBNO.cjs +13 -0
  28. package/dist/chunk-I5KQLZMG.js +58 -0
  29. package/dist/chunk-IBTK77R3.cjs +13 -0
  30. package/dist/chunk-IIVF4KK5.cjs +6 -0
  31. package/dist/chunk-IPHYXYU4.cjs +13 -0
  32. package/dist/chunk-JJXGNEQB.js +13 -0
  33. package/dist/chunk-JT3V6FP7.js +13 -0
  34. package/dist/chunk-KDGKC2AD.cjs +13 -0
  35. package/dist/chunk-KZJIE3RV.cjs +13 -0
  36. package/dist/chunk-L7KCN6DV.cjs +13 -0
  37. package/dist/chunk-LBBA76TA.js +13 -0
  38. package/dist/chunk-LI54LRUK.cjs +13 -0
  39. package/dist/chunk-LLVO2B4L.js +13 -0
  40. package/dist/chunk-MLKGABMK.js +9 -0
  41. package/dist/chunk-MOHILOKE.js +6 -0
  42. package/dist/chunk-NEHQ24EP.js +13 -0
  43. package/dist/chunk-NESEKAGU.cjs +13 -0
  44. package/dist/chunk-NS5Q6ZYS.js +13 -0
  45. package/dist/chunk-OIX6AEOH.js +13 -0
  46. package/dist/chunk-PM3NSGHO.js +13 -0
  47. package/dist/chunk-Q7LKAKNO.js +13 -0
  48. package/dist/chunk-RENPHZI7.cjs +13 -0
  49. package/dist/chunk-RHPG3BCQ.cjs +13 -0
  50. package/dist/chunk-S2UC3QOV.cjs +280 -0
  51. package/dist/chunk-S7LOBBW2.cjs +13 -0
  52. package/dist/chunk-T7E6HY2F.js +13 -0
  53. package/dist/chunk-TCP7WBEZ.cjs +13 -0
  54. package/dist/chunk-TT42MDI2.cjs +13 -0
  55. package/dist/chunk-VDTZORF6.cjs +13 -0
  56. package/dist/chunk-VO6GNJ4O.js +13 -0
  57. package/dist/chunk-VQ54VGY3.js +13 -0
  58. package/dist/chunk-VRWNZZCS.js +13 -0
  59. package/dist/chunk-W3IE4UWT.cjs +13 -0
  60. package/dist/chunk-WLDTS6EO.js +13 -0
  61. package/dist/chunk-WOAJW7OB.cjs +13 -0
  62. package/dist/chunk-XUPJ3XJL.js +13 -0
  63. package/dist/chunk-Y2W7MENX.cjs +13 -0
  64. package/dist/chunk-YBGWOI5B.cjs +13 -0
  65. package/dist/chunk-YJLFP6SE.js +13 -0
  66. package/dist/chunk-YSDDIRK3.js +13 -0
  67. package/dist/chunk-YUYOWQ5M.js +13 -0
  68. package/dist/chunk-YYG5XGJC.js +13 -0
  69. package/dist/chunk-Z7LHYEQW.js +13 -0
  70. package/dist/config.cjs +7 -0
  71. package/dist/config.d.cts +6 -0
  72. package/dist/config.d.ts +6 -0
  73. package/dist/config.js +7 -0
  74. package/dist/icon/index.cjs +7 -0
  75. package/dist/icon/index.d.cts +139 -0
  76. package/dist/icon/index.d.ts +139 -0
  77. package/dist/icon/index.js +7 -0
  78. package/dist/iconify.cjs +99 -0
  79. package/dist/iconify.d.cts +41 -0
  80. package/dist/iconify.d.ts +41 -0
  81. package/dist/iconify.js +99 -0
  82. package/dist/index.cjs +130 -15
  83. package/dist/index.css +230 -0
  84. package/dist/index.d.cts +35 -0
  85. package/dist/index.d.ts +34 -8
  86. package/dist/index.js +128 -13
  87. package/dist/index.json +99 -0
  88. package/dist/picker/dialog.cjs +7 -0
  89. package/dist/picker/dialog.d.cts +19 -0
  90. package/dist/picker/dialog.d.ts +19 -0
  91. package/dist/picker/dialog.js +7 -0
  92. package/dist/picker/index.cjs +280 -0
  93. package/dist/picker/index.d.cts +117 -0
  94. package/dist/picker/index.d.ts +117 -0
  95. package/dist/picker/index.js +280 -0
  96. package/dist/svg/bar.svg +1 -0
  97. package/dist/svg/below.svg +1 -0
  98. package/dist/svg/bicycle.svg +1 -0
  99. package/dist/svg/bottom-left.svg +1 -0
  100. package/dist/svg/bottom-right.svg +1 -0
  101. package/dist/svg/bottom.svg +1 -0
  102. package/dist/svg/cascader-field.svg +1 -0
  103. package/dist/svg/catalogue.svg +1 -0
  104. package/dist/svg/clear.svg +1 -0
  105. package/dist/svg/close.svg +1 -0
  106. package/dist/svg/crl.svg +1 -0
  107. package/dist/svg/delete.svg +1 -0
  108. package/dist/svg/document.svg +1 -0
  109. package/dist/svg/down.svg +1 -0
  110. package/dist/svg/download.svg +1 -0
  111. package/dist/svg/edit.svg +1 -0
  112. package/dist/svg/enter.svg +1 -0
  113. package/dist/svg/frame.svg +1 -0
  114. package/dist/svg/left.svg +1 -0
  115. package/dist/svg/mute.svg +1 -0
  116. package/dist/svg/pause.svg +1 -0
  117. package/dist/svg/play.svg +1 -0
  118. package/dist/svg/plus.svg +1 -0
  119. package/dist/svg/retreat.svg +1 -0
  120. package/dist/svg/right.svg +1 -0
  121. package/dist/svg/sound.svg +1 -0
  122. package/dist/svg/star.svg +1 -0
  123. package/dist/svg/up.svg +1 -0
  124. package/dist/svg/views.svg +1 -0
  125. package/dist/vite/index.cjs +80 -0
  126. package/dist/vite/index.d.cts +9 -0
  127. package/dist/vite/index.d.ts +9 -0
  128. package/dist/vite/index.js +80 -0
  129. package/dist/vue/bar.cjs +7 -0
  130. package/dist/vue/bar.d.cts +7 -0
  131. package/dist/vue/bar.d.ts +7 -0
  132. package/dist/vue/bar.js +7 -0
  133. package/dist/vue/below.cjs +7 -0
  134. package/dist/vue/below.d.cts +7 -0
  135. package/dist/vue/below.d.ts +7 -0
  136. package/dist/vue/below.js +7 -0
  137. package/dist/vue/bicycle.cjs +7 -0
  138. package/dist/vue/bicycle.d.cts +7 -0
  139. package/dist/vue/bicycle.d.ts +7 -3
  140. package/dist/vue/bicycle.js +7 -0
  141. package/dist/vue/bottom-left.cjs +7 -0
  142. package/dist/vue/bottom-left.d.cts +7 -0
  143. package/dist/vue/bottom-left.d.ts +7 -3
  144. package/dist/vue/bottom-left.js +7 -0
  145. package/dist/vue/bottom-right.cjs +7 -0
  146. package/dist/vue/bottom-right.d.cts +7 -0
  147. package/dist/vue/bottom-right.d.ts +7 -3
  148. package/dist/vue/bottom-right.js +7 -0
  149. package/dist/vue/bottom.cjs +7 -0
  150. package/dist/vue/bottom.d.cts +7 -0
  151. package/dist/vue/bottom.d.ts +7 -3
  152. package/dist/vue/bottom.js +7 -0
  153. package/dist/vue/cascader-field.cjs +7 -0
  154. package/dist/vue/cascader-field.d.cts +7 -0
  155. package/dist/vue/cascader-field.d.ts +7 -0
  156. package/dist/vue/cascader-field.js +7 -0
  157. package/dist/vue/catalogue.cjs +7 -0
  158. package/dist/vue/catalogue.d.cts +7 -0
  159. package/dist/vue/catalogue.d.ts +7 -0
  160. package/dist/vue/catalogue.js +7 -0
  161. package/dist/vue/clear.cjs +7 -0
  162. package/dist/vue/clear.d.cts +7 -0
  163. package/dist/vue/clear.d.ts +7 -0
  164. package/dist/vue/clear.js +7 -0
  165. package/dist/vue/close.cjs +7 -0
  166. package/dist/vue/close.d.cts +7 -0
  167. package/dist/vue/close.d.ts +7 -0
  168. package/dist/vue/close.js +7 -0
  169. package/dist/vue/crl.cjs +7 -0
  170. package/dist/vue/crl.d.cts +7 -0
  171. package/dist/vue/crl.d.ts +7 -0
  172. package/dist/vue/crl.js +7 -0
  173. package/dist/vue/delete.cjs +7 -0
  174. package/dist/vue/delete.d.cts +7 -0
  175. package/dist/vue/delete.d.ts +7 -0
  176. package/dist/vue/delete.js +7 -0
  177. package/dist/vue/document.cjs +7 -0
  178. package/dist/vue/document.d.cts +7 -0
  179. package/dist/vue/document.d.ts +7 -0
  180. package/dist/vue/document.js +7 -0
  181. package/dist/vue/down.cjs +7 -0
  182. package/dist/vue/down.d.cts +7 -0
  183. package/dist/vue/down.d.ts +7 -0
  184. package/dist/vue/down.js +7 -0
  185. package/dist/vue/download.cjs +7 -0
  186. package/dist/vue/download.d.cts +7 -0
  187. package/dist/vue/download.d.ts +7 -0
  188. package/dist/vue/download.js +7 -0
  189. package/dist/vue/edit.cjs +7 -0
  190. package/dist/vue/edit.d.cts +7 -0
  191. package/dist/vue/edit.d.ts +7 -0
  192. package/dist/vue/edit.js +7 -0
  193. package/dist/vue/enter.cjs +7 -0
  194. package/dist/vue/enter.d.cts +7 -0
  195. package/dist/vue/enter.d.ts +7 -0
  196. package/dist/vue/enter.js +7 -0
  197. package/dist/vue/frame.cjs +7 -0
  198. package/dist/vue/frame.d.cts +7 -0
  199. package/dist/vue/frame.d.ts +7 -0
  200. package/dist/vue/frame.js +7 -0
  201. package/dist/vue/index.cjs +120 -10
  202. package/dist/vue/index.d.cts +30 -0
  203. package/dist/vue/index.d.ts +30 -4
  204. package/dist/vue/index.js +118 -8
  205. package/dist/vue/left.cjs +7 -0
  206. package/dist/vue/left.d.cts +7 -0
  207. package/dist/vue/left.d.ts +7 -0
  208. package/dist/vue/left.js +7 -0
  209. package/dist/vue/mute.cjs +7 -0
  210. package/dist/vue/mute.d.cts +7 -0
  211. package/dist/vue/mute.d.ts +7 -0
  212. package/dist/vue/mute.js +7 -0
  213. package/dist/vue/pause.cjs +7 -0
  214. package/dist/vue/pause.d.cts +7 -0
  215. package/dist/vue/pause.d.ts +7 -0
  216. package/dist/vue/pause.js +7 -0
  217. package/dist/vue/play.cjs +7 -0
  218. package/dist/vue/play.d.cts +7 -0
  219. package/dist/vue/play.d.ts +7 -0
  220. package/dist/vue/play.js +7 -0
  221. package/dist/vue/plus.cjs +7 -0
  222. package/dist/vue/plus.d.cts +7 -0
  223. package/dist/vue/plus.d.ts +7 -0
  224. package/dist/vue/plus.js +7 -0
  225. package/dist/vue/retreat.cjs +7 -0
  226. package/dist/vue/retreat.d.cts +7 -0
  227. package/dist/vue/retreat.d.ts +7 -0
  228. package/dist/vue/retreat.js +7 -0
  229. package/dist/vue/right.cjs +7 -0
  230. package/dist/vue/right.d.cts +7 -0
  231. package/dist/vue/right.d.ts +7 -0
  232. package/dist/vue/right.js +7 -0
  233. package/dist/vue/sound.cjs +7 -0
  234. package/dist/vue/sound.d.cts +7 -0
  235. package/dist/vue/sound.d.ts +7 -0
  236. package/dist/vue/sound.js +7 -0
  237. package/dist/vue/star.cjs +7 -0
  238. package/dist/vue/star.d.cts +7 -0
  239. package/dist/vue/star.d.ts +7 -0
  240. package/dist/vue/star.js +7 -0
  241. package/dist/vue/up.cjs +7 -0
  242. package/dist/vue/up.d.cts +7 -0
  243. package/dist/vue/up.d.ts +7 -0
  244. package/dist/vue/up.js +7 -0
  245. package/dist/vue/views.cjs +7 -0
  246. package/dist/vue/views.d.cts +7 -0
  247. package/dist/vue/views.d.ts +7 -0
  248. package/dist/vue/views.js +7 -0
  249. package/package.json +63 -23
  250. package/dist/_virtual/_plugin-vue_export-helper.cjs +0 -9
  251. package/dist/_virtual/_plugin-vue_export-helper.js +0 -10
  252. package/dist/vue/bicycle.vue.cjs +0 -17
  253. package/dist/vue/bicycle.vue.js +0 -18
  254. package/dist/vue/bicycle.vue2.cjs +0 -5
  255. package/dist/vue/bicycle.vue2.js +0 -6
  256. package/dist/vue/bottom-left.vue.cjs +0 -25
  257. package/dist/vue/bottom-left.vue.js +0 -26
  258. package/dist/vue/bottom-left.vue2.cjs +0 -5
  259. package/dist/vue/bottom-left.vue2.js +0 -6
  260. package/dist/vue/bottom-right.vue.cjs +0 -25
  261. package/dist/vue/bottom-right.vue.js +0 -26
  262. package/dist/vue/bottom-right.vue2.cjs +0 -5
  263. package/dist/vue/bottom-right.vue2.js +0 -6
  264. package/dist/vue/bottom.vue.cjs +0 -20
  265. package/dist/vue/bottom.vue.js +0 -21
  266. package/dist/vue/bottom.vue2.cjs +0 -5
  267. package/dist/vue/bottom.vue2.js +0 -6
@@ -0,0 +1,139 @@
1
+ import * as vue from 'vue';
2
+
3
+ type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
+ type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub' | 'svg';
5
+ declare const _default: 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
+ */
40
+ runtime: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ /**
45
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
46
+ * 图标方向
47
+ */
48
+ flip: {
49
+ type: () => Flip;
50
+ default: string;
51
+ };
52
+ /**
53
+ * @props { Number } rotate=0
54
+ * 图标旋转角度
55
+ */
56
+ rotate: {
57
+ type: NumberConstructor;
58
+ default: number;
59
+ };
60
+ default: {
61
+ type: StringConstructor;
62
+ };
63
+ directory: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
68
+ [key: string]: any;
69
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
70
+ /**
71
+ * @props { String, Object } name= ( )
72
+ * 图标名称
73
+ */
74
+ name: {
75
+ type: (StringConstructor | ObjectConstructor)[];
76
+ default: string;
77
+ };
78
+ /**
79
+ * @props { String} iconClass= ( )
80
+ * 图标样式名称
81
+ */
82
+ iconClass: {
83
+ type: StringConstructor;
84
+ };
85
+ color: {
86
+ type: StringConstructor;
87
+ };
88
+ /**
89
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
90
+ * 图标类型
91
+ */
92
+ type: {
93
+ type: () => IconType;
94
+ };
95
+ /**
96
+ * @props { String, Number } size= ( )
97
+ * 图标大小
98
+ */
99
+ size: {
100
+ type: (StringConstructor | NumberConstructor)[];
101
+ };
102
+ /**
103
+ */
104
+ runtime: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ /**
109
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
110
+ * 图标方向
111
+ */
112
+ flip: {
113
+ type: () => Flip;
114
+ default: string;
115
+ };
116
+ /**
117
+ * @props { Number } rotate=0
118
+ * 图标旋转角度
119
+ */
120
+ rotate: {
121
+ type: NumberConstructor;
122
+ default: number;
123
+ };
124
+ default: {
125
+ type: StringConstructor;
126
+ };
127
+ directory: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ }>> & Readonly<{}>, {
132
+ name: string | Record<string, any>;
133
+ runtime: boolean;
134
+ flip: Flip;
135
+ rotate: number;
136
+ directory: string;
137
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
+
139
+ export { type IconType, _default as default };
@@ -0,0 +1,139 @@
1
+ import * as vue from 'vue';
2
+
3
+ type Flip = 'horizontal' | 'vertical' | 'both' | '';
4
+ type IconType = 'css' | 'id' | 'img' | 'font' | 'str' | 'com' | 'pub' | 'svg';
5
+ declare const _default: 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
+ */
40
+ runtime: {
41
+ type: BooleanConstructor;
42
+ default: boolean;
43
+ };
44
+ /**
45
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
46
+ * 图标方向
47
+ */
48
+ flip: {
49
+ type: () => Flip;
50
+ default: string;
51
+ };
52
+ /**
53
+ * @props { Number } rotate=0
54
+ * 图标旋转角度
55
+ */
56
+ rotate: {
57
+ type: NumberConstructor;
58
+ default: number;
59
+ };
60
+ default: {
61
+ type: StringConstructor;
62
+ };
63
+ directory: {
64
+ type: StringConstructor;
65
+ default: string;
66
+ };
67
+ }>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
68
+ [key: string]: any;
69
+ }>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
70
+ /**
71
+ * @props { String, Object } name= ( )
72
+ * 图标名称
73
+ */
74
+ name: {
75
+ type: (StringConstructor | ObjectConstructor)[];
76
+ default: string;
77
+ };
78
+ /**
79
+ * @props { String} iconClass= ( )
80
+ * 图标样式名称
81
+ */
82
+ iconClass: {
83
+ type: StringConstructor;
84
+ };
85
+ color: {
86
+ type: StringConstructor;
87
+ };
88
+ /**
89
+ * @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
90
+ * 图标类型
91
+ */
92
+ type: {
93
+ type: () => IconType;
94
+ };
95
+ /**
96
+ * @props { String, Number } size= ( )
97
+ * 图标大小
98
+ */
99
+ size: {
100
+ type: (StringConstructor | NumberConstructor)[];
101
+ };
102
+ /**
103
+ */
104
+ runtime: {
105
+ type: BooleanConstructor;
106
+ default: boolean;
107
+ };
108
+ /**
109
+ * @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
110
+ * 图标方向
111
+ */
112
+ flip: {
113
+ type: () => Flip;
114
+ default: string;
115
+ };
116
+ /**
117
+ * @props { Number } rotate=0
118
+ * 图标旋转角度
119
+ */
120
+ rotate: {
121
+ type: NumberConstructor;
122
+ default: number;
123
+ };
124
+ default: {
125
+ type: StringConstructor;
126
+ };
127
+ directory: {
128
+ type: StringConstructor;
129
+ default: string;
130
+ };
131
+ }>> & Readonly<{}>, {
132
+ name: string | Record<string, any>;
133
+ runtime: boolean;
134
+ flip: Flip;
135
+ rotate: number;
136
+ directory: string;
137
+ }, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
138
+
139
+ export { type IconType, _default as default };
@@ -0,0 +1,7 @@
1
+ import {
2
+ icon_default
3
+ } from "../chunk-HOVIIPWX.js";
4
+ import "../chunk-MLKGABMK.js";
5
+ export {
6
+ icon_default as default
7
+ };
@@ -0,0 +1,99 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
+
3
+ var _chunkIIVF4KK5cjs = require('./chunk-IIVF4KK5.cjs');
4
+ require('./chunk-75ZPJI57.cjs');
5
+
6
+ // packages/iconify.ts
7
+ var _vue = require('vue');
8
+
9
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
10
+ function firstUpper(str) {
11
+ return str.slice(0, 1).toUpperCase() + str.slice(1);
12
+ }
13
+
14
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
15
+ function lineToLargeHump(name) {
16
+ let arr = name.split("-");
17
+ arr = arr.map((vs) => {
18
+ return firstUpper(vs);
19
+ });
20
+ return arr.join("");
21
+ }
22
+
23
+ // packages/iconify.ts
24
+ function createSVG(obj) {
25
+ const viewBox = [
26
+ obj.left || 0,
27
+ obj.top || 0,
28
+ obj.width || 24,
29
+ obj.height || 24
30
+ ].join(" ");
31
+ const name = "icon-" + obj.name;
32
+ return _vue.defineComponent.call(void 0, {
33
+ name: lineToLargeHump(name),
34
+ props: {},
35
+ render() {
36
+ return _vue.h.call(void 0, "svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ "aria-hidden": true,
39
+ id: name,
40
+ ctype: "hcom",
41
+ role: "img",
42
+ class: "iconify iconify-" + obj.prefix,
43
+ viewBox,
44
+ innerHTML: obj.body
45
+ // 直接使用innerHTML
46
+ });
47
+ }
48
+ });
49
+ }
50
+ var iconify = (app, ify, { prefix = _chunkIIVF4KK5cjs.defaultPrefix } = {}) => {
51
+ const obj = {
52
+ prefix: ify.prefix,
53
+ width: ify.width,
54
+ height: ify.height
55
+ };
56
+ const icons = ify.icons;
57
+ for (const key of Object.keys(icons)) {
58
+ app.component(
59
+ prefix + lineToLargeHump(key),
60
+ createSVG({
61
+ ...obj,
62
+ name: key,
63
+ ...icons[key]
64
+ })
65
+ );
66
+ }
67
+ const aliases = ify.aliases;
68
+ for (const key of Object.keys(aliases)) {
69
+ const a = aliases[key];
70
+ app.component(
71
+ prefix + lineToLargeHump(key),
72
+ createSVG({
73
+ ...obj,
74
+ name: key,
75
+ ...icons[a.parent]
76
+ })
77
+ );
78
+ }
79
+ };
80
+ function iconifySVG(obj, name) {
81
+ var _a;
82
+ const icons = obj.icons;
83
+ const aliases = obj.aliases;
84
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
85
+ const n = _nullishCoalesce(icons[name], () => ( (ap ? icons[ap] : void 0)));
86
+ if (n) {
87
+ return createSVG({
88
+ prefix: obj.prefix,
89
+ name,
90
+ width: obj.width,
91
+ height: obj.height,
92
+ ...n
93
+ });
94
+ }
95
+ }
96
+
97
+
98
+
99
+ exports.iconify = iconify; exports.iconifySVG = iconifySVG;
@@ -0,0 +1,41 @@
1
+ import * as vue from 'vue';
2
+ import { App } from 'vue';
3
+ import { InstallOptions } from './config.cjs';
4
+
5
+ /**
6
+ * 将图标配置转换为Vue组件并注册到应用中
7
+ * @param app - Vue应用实例,用于注册组件
8
+ * @param ify - 图标配置对象,包含前缀、尺寸和图标数据
9
+ * @param options - 安装选项,可选参数
10
+ * @param options.prefix - 组件名称前缀,默认使用defaultPrefix
11
+ */
12
+ declare const iconify: (app: App, ify: {
13
+ [key: string]: any;
14
+ }, { prefix }?: InstallOptions) => void;
15
+ type Iconify = {
16
+ prefix: string;
17
+ icons: {
18
+ [key: string]: {
19
+ body: string;
20
+ };
21
+ };
22
+ lastModified: number;
23
+ width: number;
24
+ height: number;
25
+ info: {
26
+ [key: string]: any;
27
+ };
28
+ aliases: {
29
+ [key: string]: {
30
+ parent: string;
31
+ };
32
+ };
33
+ };
34
+ /**
35
+ * 创建SVG图标组件
36
+ * @param obj - 图标配置对象,包含图标的各项属性
37
+ * @returns 返回一个Vue组件实例,用于渲染SVG图标
38
+ */
39
+ declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
40
+
41
+ export { iconify, iconifySVG };
@@ -0,0 +1,41 @@
1
+ import * as vue from 'vue';
2
+ import { App } from 'vue';
3
+ import { InstallOptions } from './config.js';
4
+
5
+ /**
6
+ * 将图标配置转换为Vue组件并注册到应用中
7
+ * @param app - Vue应用实例,用于注册组件
8
+ * @param ify - 图标配置对象,包含前缀、尺寸和图标数据
9
+ * @param options - 安装选项,可选参数
10
+ * @param options.prefix - 组件名称前缀,默认使用defaultPrefix
11
+ */
12
+ declare const iconify: (app: App, ify: {
13
+ [key: string]: any;
14
+ }, { prefix }?: InstallOptions) => void;
15
+ type Iconify = {
16
+ prefix: string;
17
+ icons: {
18
+ [key: string]: {
19
+ body: string;
20
+ };
21
+ };
22
+ lastModified: number;
23
+ width: number;
24
+ height: number;
25
+ info: {
26
+ [key: string]: any;
27
+ };
28
+ aliases: {
29
+ [key: string]: {
30
+ parent: string;
31
+ };
32
+ };
33
+ };
34
+ /**
35
+ * 创建SVG图标组件
36
+ * @param obj - 图标配置对象,包含图标的各项属性
37
+ * @returns 返回一个Vue组件实例,用于渲染SVG图标
38
+ */
39
+ declare function iconifySVG(obj: Iconify, name: string): vue.DefineComponent<{}, {}, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
40
+
41
+ export { iconify, iconifySVG };
@@ -0,0 +1,99 @@
1
+ import {
2
+ defaultPrefix
3
+ } from "./chunk-MOHILOKE.js";
4
+ import "./chunk-MLKGABMK.js";
5
+
6
+ // packages/iconify.ts
7
+ import { defineComponent, h } from "vue";
8
+
9
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-EWJJKQIO.js
10
+ function firstUpper(str) {
11
+ return str.slice(0, 1).toUpperCase() + str.slice(1);
12
+ }
13
+
14
+ // node_modules/.pnpm/@fangzhongya+utils@0.0.72/node_modules/@fangzhongya/utils/dist/chunk-XCDKXZFR.js
15
+ function lineToLargeHump(name) {
16
+ let arr = name.split("-");
17
+ arr = arr.map((vs) => {
18
+ return firstUpper(vs);
19
+ });
20
+ return arr.join("");
21
+ }
22
+
23
+ // packages/iconify.ts
24
+ function createSVG(obj) {
25
+ const viewBox = [
26
+ obj.left || 0,
27
+ obj.top || 0,
28
+ obj.width || 24,
29
+ obj.height || 24
30
+ ].join(" ");
31
+ const name = "icon-" + obj.name;
32
+ return defineComponent({
33
+ name: lineToLargeHump(name),
34
+ props: {},
35
+ render() {
36
+ return h("svg", {
37
+ xmlns: "http://www.w3.org/2000/svg",
38
+ "aria-hidden": true,
39
+ id: name,
40
+ ctype: "hcom",
41
+ role: "img",
42
+ class: "iconify iconify-" + obj.prefix,
43
+ viewBox,
44
+ innerHTML: obj.body
45
+ // 直接使用innerHTML
46
+ });
47
+ }
48
+ });
49
+ }
50
+ var iconify = (app, ify, { prefix = defaultPrefix } = {}) => {
51
+ const obj = {
52
+ prefix: ify.prefix,
53
+ width: ify.width,
54
+ height: ify.height
55
+ };
56
+ const icons = ify.icons;
57
+ for (const key of Object.keys(icons)) {
58
+ app.component(
59
+ prefix + lineToLargeHump(key),
60
+ createSVG({
61
+ ...obj,
62
+ name: key,
63
+ ...icons[key]
64
+ })
65
+ );
66
+ }
67
+ const aliases = ify.aliases;
68
+ for (const key of Object.keys(aliases)) {
69
+ const a = aliases[key];
70
+ app.component(
71
+ prefix + lineToLargeHump(key),
72
+ createSVG({
73
+ ...obj,
74
+ name: key,
75
+ ...icons[a.parent]
76
+ })
77
+ );
78
+ }
79
+ };
80
+ function iconifySVG(obj, name) {
81
+ var _a;
82
+ const icons = obj.icons;
83
+ const aliases = obj.aliases;
84
+ const ap = (_a = aliases[name]) == null ? void 0 : _a.parent;
85
+ const n = icons[name] ?? (ap ? icons[ap] : void 0);
86
+ if (n) {
87
+ return createSVG({
88
+ prefix: obj.prefix,
89
+ name,
90
+ width: obj.width,
91
+ height: obj.height,
92
+ ...n
93
+ });
94
+ }
95
+ }
96
+ export {
97
+ iconify,
98
+ iconifySVG
99
+ };