@fangzhongya/icons 0.0.51 → 0.0.53
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.
- package/dist/async.cjs +56 -105
- package/dist/async.d.cts +137 -138
- package/dist/async.d.ts +137 -138
- package/dist/async.js +50 -104
- package/dist/bar-Bdt8mHeX.d.cts +6 -0
- package/dist/bar-Bdt8mHeX.d.ts +6 -0
- package/dist/below-wz4oeZsn.d.cts +6 -0
- package/dist/below-wz4oeZsn.d.ts +6 -0
- package/dist/bicycle-CN0_HvvC.d.cts +6 -0
- package/dist/bicycle-CN0_HvvC.d.ts +6 -0
- package/dist/bottom-B1ZV5b3V.d.cts +6 -0
- package/dist/bottom-B1ZV5b3V.d.ts +6 -0
- package/dist/bottom-left-BJK1wKOY.d.cts +6 -0
- package/dist/bottom-left-BJK1wKOY.d.ts +6 -0
- package/dist/bottom-right-BIdY9kfC.d.cts +6 -0
- package/dist/bottom-right-BIdY9kfC.d.ts +6 -0
- package/dist/cascader-field-CsBrpWaF.d.cts +6 -0
- package/dist/cascader-field-CsBrpWaF.d.ts +6 -0
- package/dist/catalogue-BCzpsdvU.d.cts +6 -0
- package/dist/catalogue-BCzpsdvU.d.ts +6 -0
- package/dist/clear-oUzG_17m.d.cts +6 -0
- package/dist/clear-oUzG_17m.d.ts +6 -0
- package/dist/close-DacH-Yom.d.cts +6 -0
- package/dist/close-DacH-Yom.d.ts +6 -0
- package/dist/components.cjs +42 -60
- package/dist/components.d.cts +9 -8
- package/dist/components.d.ts +9 -8
- package/dist/components.js +42 -61
- package/dist/config.cjs +5 -7
- package/dist/config.d.cts +4 -3
- package/dist/config.d.ts +4 -3
- package/dist/config.js +4 -7
- package/dist/crl-D829G0Kg.d.cts +6 -0
- package/dist/crl-D829G0Kg.d.ts +6 -0
- package/dist/delete-DCpOpoIQ.d.cts +6 -0
- package/dist/delete-DCpOpoIQ.d.ts +6 -0
- package/dist/document-zA-gYr3_.d.cts +6 -0
- package/dist/document-zA-gYr3_.d.ts +6 -0
- package/dist/down-DvZPmg2j.d.cts +6 -0
- package/dist/down-DvZPmg2j.d.ts +6 -0
- package/dist/download-BexHrQaN.d.cts +6 -0
- package/dist/download-BexHrQaN.d.ts +6 -0
- package/dist/edit-BH1qI1T0.d.cts +6 -0
- package/dist/edit-BH1qI1T0.d.ts +6 -0
- package/dist/enter-CIcilzWB.d.cts +6 -0
- package/dist/enter-CIcilzWB.d.ts +6 -0
- package/dist/folder-C3uzsLbr.d.cts +6 -0
- package/dist/folder-C3uzsLbr.d.ts +6 -0
- package/dist/frame-Bes_-5hL.d.cts +6 -0
- package/dist/frame-Bes_-5hL.d.ts +6 -0
- package/dist/grid-CnMS6YGI.d.cts +6 -0
- package/dist/grid-CnMS6YGI.d.ts +6 -0
- package/dist/hidd-wcrKjFhA.d.cts +6 -0
- package/dist/hidd-wcrKjFhA.d.ts +6 -0
- package/dist/home-BVQRBHRU.d.cts +6 -0
- package/dist/home-BVQRBHRU.d.ts +6 -0
- package/dist/humpToLine-Czhat99x.js +25 -0
- package/dist/humpToLine-gLzuzWOm.cjs +30 -0
- package/dist/icon/index.cjs +229 -13
- package/dist/icon/index.d.cts +132 -132
- package/dist/icon/index.d.ts +132 -132
- package/dist/icon/index.js +222 -12
- package/dist/iconify.cjs +102 -16
- package/dist/iconify.d.cts +34 -32
- package/dist/iconify.d.ts +34 -32
- package/dist/iconify.js +97 -15
- package/dist/index.cjs +100 -194
- package/dist/index.d.cts +50 -49
- package/dist/index.d.ts +50 -49
- package/dist/index.js +52 -194
- package/dist/index.json +1 -1
- package/dist/json-BKPP5Mlr.js +62 -0
- package/dist/json-IGrD8_vM.cjs +67 -0
- package/dist/json.cjs +2 -7
- package/dist/json.d.cts +3 -155
- package/dist/json.d.ts +4 -155
- package/dist/json.js +2 -7
- package/dist/left-B3721MJJ.d.cts +6 -0
- package/dist/left-B3721MJJ.d.ts +6 -0
- package/dist/lineToLargeHump-BajF216g.cjs +30 -0
- package/dist/lineToLargeHump-CHL4-tNE.js +25 -0
- package/dist/lock-mgSuNhGG.d.cts +6 -0
- package/dist/lock-mgSuNhGG.d.ts +6 -0
- package/dist/login-mcwpzqMp.d.cts +6 -0
- package/dist/login-mcwpzqMp.d.ts +6 -0
- package/dist/logink-DWeD4iVq.d.cts +6 -0
- package/dist/logink-DWeD4iVq.d.ts +6 -0
- package/dist/more-DlwRPOL-.d.cts +6 -0
- package/dist/more-DlwRPOL-.d.ts +6 -0
- package/dist/mr-CFIvZkwU.d.cts +6 -0
- package/dist/mr-CFIvZkwU.d.ts +6 -0
- package/dist/mute-T1_LFQM9.d.cts +6 -0
- package/dist/mute-T1_LFQM9.d.ts +6 -0
- package/dist/name.cjs +68 -15
- package/dist/name.d.cts +11 -10
- package/dist/name.d.ts +11 -10
- package/dist/name.js +65 -15
- package/dist/node-tree-0GAabW8w.d.cts +6 -0
- package/dist/node-tree-0GAabW8w.d.ts +6 -0
- package/dist/page-xROWQBtB.d.cts +6 -0
- package/dist/page-xROWQBtB.d.ts +6 -0
- package/dist/pause-cLPubYio.d.cts +6 -0
- package/dist/pause-cLPubYio.d.ts +6 -0
- package/dist/picker/dialog.cjs +42 -7
- package/dist/picker/dialog.d.cts +15 -17
- package/dist/picker/dialog.d.ts +16 -17
- package/dist/picker/dialog.js +42 -7
- package/dist/picker/index.cjs +200 -324
- package/dist/picker/index.d.cts +112 -116
- package/dist/picker/index.d.ts +112 -116
- package/dist/picker/index.js +194 -325
- package/dist/play-CDhVCRhH.d.cts +6 -0
- package/dist/play-CDhVCRhH.d.ts +6 -0
- package/dist/plus-zzG8Eoct.d.cts +6 -0
- package/dist/plus-zzG8Eoct.d.ts +6 -0
- package/dist/qx-Dasb5PIo.d.cts +6 -0
- package/dist/qx-Dasb5PIo.d.ts +6 -0
- package/dist/retreat-DaQj66uq.d.cts +6 -0
- package/dist/retreat-DaQj66uq.d.ts +6 -0
- package/dist/right-Cq_Ie_pK.d.cts +6 -0
- package/dist/right-Cq_Ie_pK.d.ts +6 -0
- package/dist/set-BAt1SOIT.d.cts +6 -0
- package/dist/set-BAt1SOIT.d.ts +6 -0
- package/dist/sound-C9qtuv2l.d.cts +6 -0
- package/dist/sound-C9qtuv2l.d.ts +6 -0
- package/dist/star-C0cNKyLP.d.cts +6 -0
- package/dist/star-C0cNKyLP.d.ts +6 -0
- package/dist/sub-form-Do-YgMUe.d.cts +6 -0
- package/dist/sub-form-Do-YgMUe.d.ts +6 -0
- package/dist/tab-5cOn6QJy.d.cts +6 -0
- package/dist/tab-5cOn6QJy.d.ts +6 -0
- package/dist/up-TMH4QSNk.d.cts +6 -0
- package/dist/up-TMH4QSNk.d.ts +6 -0
- package/dist/util.cjs +13 -7
- package/dist/util.d.cts +4 -3
- package/dist/util.d.ts +4 -3
- package/dist/util.js +12 -7
- package/dist/views-DoiacMc0.d.cts +6 -0
- package/dist/views-DoiacMc0.d.ts +6 -0
- package/dist/vite/index.cjs +848 -1143
- package/dist/vite/index.d.cts +47 -46
- package/dist/vite/index.d.ts +47 -46
- package/dist/vite/index.js +848 -1144
- package/dist/vue/bar.cjs +16 -7
- package/dist/vue/bar.d.cts +2 -7
- package/dist/vue/bar.d.ts +2 -7
- package/dist/vue/bar.js +16 -7
- package/dist/vue/below.cjs +16 -7
- package/dist/vue/below.d.cts +2 -7
- package/dist/vue/below.d.ts +2 -7
- package/dist/vue/below.js +16 -7
- package/dist/vue/bicycle.cjs +16 -7
- package/dist/vue/bicycle.d.cts +2 -7
- package/dist/vue/bicycle.d.ts +2 -7
- package/dist/vue/bicycle.js +16 -7
- package/dist/vue/bottom-left.cjs +16 -7
- package/dist/vue/bottom-left.d.cts +2 -7
- package/dist/vue/bottom-left.d.ts +2 -7
- package/dist/vue/bottom-left.js +16 -7
- package/dist/vue/bottom-right.cjs +16 -7
- package/dist/vue/bottom-right.d.cts +2 -7
- package/dist/vue/bottom-right.d.ts +2 -7
- package/dist/vue/bottom-right.js +16 -7
- package/dist/vue/bottom.cjs +16 -7
- package/dist/vue/bottom.d.cts +2 -7
- package/dist/vue/bottom.d.ts +2 -7
- package/dist/vue/bottom.js +16 -7
- package/dist/vue/cascader-field.cjs +16 -7
- package/dist/vue/cascader-field.d.cts +2 -7
- package/dist/vue/cascader-field.d.ts +2 -7
- package/dist/vue/cascader-field.js +16 -7
- package/dist/vue/catalogue.cjs +16 -7
- package/dist/vue/catalogue.d.cts +2 -7
- package/dist/vue/catalogue.d.ts +2 -7
- package/dist/vue/catalogue.js +16 -7
- package/dist/vue/clear.cjs +16 -7
- package/dist/vue/clear.d.cts +2 -7
- package/dist/vue/clear.d.ts +2 -7
- package/dist/vue/clear.js +16 -7
- package/dist/vue/close.cjs +16 -7
- package/dist/vue/close.d.cts +2 -7
- package/dist/vue/close.d.ts +2 -7
- package/dist/vue/close.js +16 -7
- package/dist/vue/crl.cjs +16 -7
- package/dist/vue/crl.d.cts +2 -7
- package/dist/vue/crl.d.ts +2 -7
- package/dist/vue/crl.js +16 -7
- package/dist/vue/delete.cjs +16 -7
- package/dist/vue/delete.d.cts +2 -7
- package/dist/vue/delete.d.ts +2 -7
- package/dist/vue/delete.js +16 -7
- package/dist/vue/document.cjs +16 -7
- package/dist/vue/document.d.cts +2 -7
- package/dist/vue/document.d.ts +2 -7
- package/dist/vue/document.js +16 -7
- package/dist/vue/down.cjs +16 -7
- package/dist/vue/down.d.cts +2 -7
- package/dist/vue/down.d.ts +2 -7
- package/dist/vue/down.js +16 -7
- package/dist/vue/download.cjs +16 -7
- package/dist/vue/download.d.cts +2 -7
- package/dist/vue/download.d.ts +2 -7
- package/dist/vue/download.js +16 -7
- package/dist/vue/edit.cjs +16 -7
- package/dist/vue/edit.d.cts +2 -7
- package/dist/vue/edit.d.ts +2 -7
- package/dist/vue/edit.js +16 -7
- package/dist/vue/enter.cjs +16 -7
- package/dist/vue/enter.d.cts +2 -7
- package/dist/vue/enter.d.ts +2 -7
- package/dist/vue/enter.js +16 -7
- package/dist/vue/folder.cjs +16 -7
- package/dist/vue/folder.d.cts +2 -7
- package/dist/vue/folder.d.ts +2 -7
- package/dist/vue/folder.js +16 -7
- package/dist/vue/frame.cjs +16 -7
- package/dist/vue/frame.d.cts +2 -7
- package/dist/vue/frame.d.ts +2 -7
- package/dist/vue/frame.js +16 -7
- package/dist/vue/grid.cjs +16 -7
- package/dist/vue/grid.d.cts +2 -7
- package/dist/vue/grid.d.ts +2 -7
- package/dist/vue/grid.js +16 -7
- package/dist/vue/hidd.cjs +16 -7
- package/dist/vue/hidd.d.cts +2 -7
- package/dist/vue/hidd.d.ts +2 -7
- package/dist/vue/hidd.js +16 -7
- package/dist/vue/home.cjs +16 -7
- package/dist/vue/home.d.cts +2 -7
- package/dist/vue/home.d.ts +2 -7
- package/dist/vue/home.js +16 -7
- package/dist/vue/index.cjs +90 -180
- package/dist/vue/index.d.cts +45 -45
- package/dist/vue/index.d.ts +45 -45
- package/dist/vue/index.js +46 -180
- package/dist/vue/left.cjs +16 -7
- package/dist/vue/left.d.cts +2 -7
- package/dist/vue/left.d.ts +2 -7
- package/dist/vue/left.js +16 -7
- package/dist/vue/lock.cjs +16 -7
- package/dist/vue/lock.d.cts +2 -7
- package/dist/vue/lock.d.ts +2 -7
- package/dist/vue/lock.js +16 -7
- package/dist/vue/login.cjs +16 -7
- package/dist/vue/login.d.cts +2 -7
- package/dist/vue/login.d.ts +2 -7
- package/dist/vue/login.js +16 -7
- package/dist/vue/logink.cjs +16 -7
- package/dist/vue/logink.d.cts +2 -7
- package/dist/vue/logink.d.ts +2 -7
- package/dist/vue/logink.js +16 -7
- package/dist/vue/more.cjs +16 -7
- package/dist/vue/more.d.cts +2 -7
- package/dist/vue/more.d.ts +2 -7
- package/dist/vue/more.js +16 -7
- package/dist/vue/mr.cjs +16 -7
- package/dist/vue/mr.d.cts +2 -7
- package/dist/vue/mr.d.ts +2 -7
- package/dist/vue/mr.js +16 -7
- package/dist/vue/mute.cjs +16 -7
- package/dist/vue/mute.d.cts +2 -7
- package/dist/vue/mute.d.ts +2 -7
- package/dist/vue/mute.js +16 -7
- package/dist/vue/node-tree.cjs +16 -7
- package/dist/vue/node-tree.d.cts +2 -7
- package/dist/vue/node-tree.d.ts +2 -7
- package/dist/vue/node-tree.js +16 -7
- package/dist/vue/page.cjs +16 -7
- package/dist/vue/page.d.cts +2 -7
- package/dist/vue/page.d.ts +2 -7
- package/dist/vue/page.js +16 -7
- package/dist/vue/pause.cjs +16 -7
- package/dist/vue/pause.d.cts +2 -7
- package/dist/vue/pause.d.ts +2 -7
- package/dist/vue/pause.js +16 -7
- package/dist/vue/play.cjs +16 -7
- package/dist/vue/play.d.cts +2 -7
- package/dist/vue/play.d.ts +2 -7
- package/dist/vue/play.js +16 -7
- package/dist/vue/plus.cjs +16 -7
- package/dist/vue/plus.d.cts +2 -7
- package/dist/vue/plus.d.ts +2 -7
- package/dist/vue/plus.js +16 -7
- package/dist/vue/qx.cjs +16 -7
- package/dist/vue/qx.d.cts +2 -7
- package/dist/vue/qx.d.ts +2 -7
- package/dist/vue/qx.js +16 -7
- package/dist/vue/retreat.cjs +16 -7
- package/dist/vue/retreat.d.cts +2 -7
- package/dist/vue/retreat.d.ts +2 -7
- package/dist/vue/retreat.js +16 -7
- package/dist/vue/right.cjs +16 -7
- package/dist/vue/right.d.cts +2 -7
- package/dist/vue/right.d.ts +2 -7
- package/dist/vue/right.js +16 -7
- package/dist/vue/set.cjs +16 -7
- package/dist/vue/set.d.cts +2 -7
- package/dist/vue/set.d.ts +2 -7
- package/dist/vue/set.js +16 -7
- package/dist/vue/sound.cjs +16 -7
- package/dist/vue/sound.d.cts +2 -7
- package/dist/vue/sound.d.ts +2 -7
- package/dist/vue/sound.js +16 -7
- package/dist/vue/star.cjs +16 -7
- package/dist/vue/star.d.cts +2 -7
- package/dist/vue/star.d.ts +2 -7
- package/dist/vue/star.js +16 -7
- package/dist/vue/sub-form.cjs +16 -7
- package/dist/vue/sub-form.d.cts +2 -7
- package/dist/vue/sub-form.d.ts +2 -7
- package/dist/vue/sub-form.js +16 -7
- package/dist/vue/tab.cjs +16 -7
- package/dist/vue/tab.d.cts +2 -7
- package/dist/vue/tab.d.ts +2 -7
- package/dist/vue/tab.js +16 -7
- package/dist/vue/up.cjs +16 -7
- package/dist/vue/up.d.cts +2 -7
- package/dist/vue/up.d.ts +2 -7
- package/dist/vue/up.js +16 -7
- package/dist/vue/views.cjs +16 -7
- package/dist/vue/views.d.cts +2 -7
- package/dist/vue/views.d.ts +2 -7
- package/dist/vue/views.js +16 -7
- package/dist/vue-CR8K2hMZ.js +105 -0
- package/dist/vue-XcWpjtqA.cjs +110 -0
- package/package.json +28 -27
- package/dist/chunk-2D4VSAJ2.js +0 -13
- package/dist/chunk-2IK6ZEWL.js +0 -13
- package/dist/chunk-2TQQMTHZ.cjs +0 -13
- package/dist/chunk-32F77IBU.cjs +0 -13
- package/dist/chunk-3376ZTRC.cjs +0 -1
- package/dist/chunk-37UZO7UL.cjs +0 -31
- package/dist/chunk-3AMDUJDV.js +0 -13
- package/dist/chunk-3AMS6SAI.js +0 -13
- package/dist/chunk-3TRFZFYF.js +0 -13
- package/dist/chunk-3YCLWMP7.cjs +0 -13
- package/dist/chunk-53VWOQDN.cjs +0 -13
- package/dist/chunk-5MQTT7S7.cjs +0 -188
- package/dist/chunk-5PXZNWE4.js +0 -13
- package/dist/chunk-5QUGHNG3.cjs +0 -13
- package/dist/chunk-5XDPKNBI.js +0 -13
- package/dist/chunk-66OLJGLO.js +0 -302
- package/dist/chunk-6BDDZBAQ.js +0 -13
- package/dist/chunk-75ZPJI57.cjs +0 -9
- package/dist/chunk-76TLDMR4.cjs +0 -13
- package/dist/chunk-7IBXEWY5.js +0 -13
- package/dist/chunk-7URGGQWA.js +0 -13
- package/dist/chunk-7ZWO2XCS.cjs +0 -13
- package/dist/chunk-AQDYWFIE.cjs +0 -13
- package/dist/chunk-AUEQIRLO.cjs +0 -13
- package/dist/chunk-BEQYH4ZH.js +0 -13
- package/dist/chunk-BMEJLYYZ.js +0 -13
- package/dist/chunk-BXEIRESQ.cjs +0 -17
- package/dist/chunk-BYXBJQAS.js +0 -0
- package/dist/chunk-CMFLQOET.js +0 -152
- package/dist/chunk-D4YPZVLI.js +0 -13
- package/dist/chunk-DMNL42QX.cjs +0 -13
- package/dist/chunk-DOKVIYQP.cjs +0 -13
- package/dist/chunk-DSTHXXIG.js +0 -14
- package/dist/chunk-E3I6537N.js +0 -25
- package/dist/chunk-EEMF44IH.cjs +0 -58
- package/dist/chunk-EODYYDJS.js +0 -13
- package/dist/chunk-ERY3BNIM.js +0 -13
- package/dist/chunk-ESPY25SV.cjs +0 -13
- package/dist/chunk-EZJQO3RD.cjs +0 -13
- package/dist/chunk-FEFTZ7TT.cjs +0 -13
- package/dist/chunk-FZTWDRFN.js +0 -13
- package/dist/chunk-H4PA2G3N.cjs +0 -13
- package/dist/chunk-H7QPKI66.cjs +0 -13
- package/dist/chunk-HLATHB47.js +0 -13
- package/dist/chunk-I3A3AEAA.cjs +0 -13
- package/dist/chunk-I3U5MBNO.cjs +0 -13
- package/dist/chunk-I5KQLZMG.js +0 -58
- package/dist/chunk-IBTK77R3.cjs +0 -13
- package/dist/chunk-IEFCX4Q4.cjs +0 -13
- package/dist/chunk-IIVF4KK5.cjs +0 -6
- package/dist/chunk-ILE746VV.js +0 -13
- package/dist/chunk-IPHYXYU4.cjs +0 -13
- package/dist/chunk-J4G2OFZ4.js +0 -17
- package/dist/chunk-JJXGNEQB.js +0 -13
- package/dist/chunk-JT3V6FP7.js +0 -13
- package/dist/chunk-K5OMXRSR.js +0 -13
- package/dist/chunk-KDGKC2AD.cjs +0 -13
- package/dist/chunk-KZJIE3RV.cjs +0 -13
- package/dist/chunk-L7KCN6DV.cjs +0 -13
- package/dist/chunk-LBBA76TA.js +0 -13
- package/dist/chunk-LI54LRUK.cjs +0 -13
- package/dist/chunk-LLVO2B4L.js +0 -13
- package/dist/chunk-LZ5V6B6A.cjs +0 -13
- package/dist/chunk-MI2HCYC4.js +0 -13
- package/dist/chunk-MLKGABMK.js +0 -9
- package/dist/chunk-MOHILOKE.js +0 -6
- package/dist/chunk-NEHQ24EP.js +0 -13
- package/dist/chunk-NESEKAGU.cjs +0 -13
- package/dist/chunk-NS5Q6ZYS.js +0 -13
- package/dist/chunk-OIX6AEOH.js +0 -13
- package/dist/chunk-OPZJWWQC.cjs +0 -13
- package/dist/chunk-PM3NSGHO.js +0 -13
- package/dist/chunk-Q7LKAKNO.js +0 -13
- package/dist/chunk-QTMLVSMQ.js +0 -188
- package/dist/chunk-RENPHZI7.cjs +0 -13
- package/dist/chunk-RHPG3BCQ.cjs +0 -13
- package/dist/chunk-S2QMZA7X.js +0 -13
- package/dist/chunk-S7LOBBW2.cjs +0 -13
- package/dist/chunk-T7E6HY2F.js +0 -13
- package/dist/chunk-TCAPRSWP.cjs +0 -13
- package/dist/chunk-TCP7WBEZ.cjs +0 -13
- package/dist/chunk-TMPQ7LLO.cjs +0 -152
- package/dist/chunk-TT42MDI2.cjs +0 -13
- package/dist/chunk-TZWDBH6E.js +0 -13
- package/dist/chunk-U4CNUH3A.cjs +0 -302
- package/dist/chunk-UMRBYGCW.cjs +0 -13
- package/dist/chunk-UTRCC2RP.js +0 -13
- package/dist/chunk-UVMBRQNS.cjs +0 -13
- package/dist/chunk-UZWXBTQL.js +0 -31
- package/dist/chunk-VDTZORF6.cjs +0 -13
- package/dist/chunk-VO6GNJ4O.js +0 -13
- package/dist/chunk-VQ54VGY3.js +0 -13
- package/dist/chunk-VRWNZZCS.js +0 -13
- package/dist/chunk-W3IE4UWT.cjs +0 -13
- package/dist/chunk-WE4BXFRS.js +0 -13
- package/dist/chunk-WLDTS6EO.js +0 -13
- package/dist/chunk-WOAJW7OB.cjs +0 -13
- package/dist/chunk-WZX5LXRH.cjs +0 -13
- package/dist/chunk-XHXN5JNR.cjs +0 -14
- package/dist/chunk-XUPJ3XJL.js +0 -13
- package/dist/chunk-XYIWDMXZ.cjs +0 -13
- package/dist/chunk-Y2W7MENX.cjs +0 -13
- package/dist/chunk-YBGWOI5B.cjs +0 -13
- package/dist/chunk-YGLV5TML.js +0 -111
- package/dist/chunk-YJLFP6SE.js +0 -13
- package/dist/chunk-YJVFENGG.cjs +0 -111
- package/dist/chunk-YSDDIRK3.js +0 -13
- package/dist/chunk-YUYOWQ5M.js +0 -13
- package/dist/chunk-YW7CKAOG.cjs +0 -25
- package/dist/chunk-YYG5XGJC.js +0 -13
- package/dist/chunk-Z7LHYEQW.js +0 -13
- package/dist/chunk-ZWJ4O3II.cjs +0 -13
package/dist/icon/index.d.ts
CHANGED
|
@@ -1,136 +1,136 @@
|
|
|
1
|
-
import { SFCWithInstall } from
|
|
2
|
-
import * as vue from 'vue';
|
|
1
|
+
import { SFCWithInstall } from "../util.js";
|
|
3
2
|
|
|
3
|
+
//#region packages/icon/index.d.ts
|
|
4
4
|
type Flip = 'horizontal' | 'vertical' | 'both' | '';
|
|
5
5
|
type IconType = 'css' | 'id' | 'img' | 'font' | 'svg' | 'vue' | 'pub';
|
|
6
|
-
declare const Icon: SFCWithInstall<vue.DefineComponent<
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
}>, () =>
|
|
67
|
-
|
|
68
|
-
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
6
|
+
declare const Icon: SFCWithInstall<import("vue").DefineComponent<globalThis.ExtractPropTypes<{
|
|
7
|
+
/**
|
|
8
|
+
* @props { String, Object } name= ( )
|
|
9
|
+
* 图标名称
|
|
10
|
+
*/
|
|
11
|
+
name: {
|
|
12
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
/**
|
|
16
|
+
* @props { String} iconClass= ( )
|
|
17
|
+
* 图标样式名称
|
|
18
|
+
*/
|
|
19
|
+
iconClass: {
|
|
20
|
+
type: StringConstructor;
|
|
21
|
+
};
|
|
22
|
+
color: {
|
|
23
|
+
type: StringConstructor;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
27
|
+
* 图标类型
|
|
28
|
+
*/
|
|
29
|
+
type: {
|
|
30
|
+
type: () => IconType;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @props { String, Number } size= ( )
|
|
34
|
+
* 图标大小
|
|
35
|
+
*/
|
|
36
|
+
size: {
|
|
37
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
41
|
+
* 图标方向
|
|
42
|
+
*/
|
|
43
|
+
flip: {
|
|
44
|
+
type: () => Flip;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* @props { Number } rotate=0
|
|
49
|
+
* 图标旋转角度
|
|
50
|
+
*/
|
|
51
|
+
rotate: {
|
|
52
|
+
type: NumberConstructor;
|
|
53
|
+
default: number;
|
|
54
|
+
};
|
|
55
|
+
default: {
|
|
56
|
+
type: StringConstructor;
|
|
57
|
+
};
|
|
58
|
+
directory: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: string;
|
|
61
|
+
};
|
|
62
|
+
prefix: {
|
|
63
|
+
type: StringConstructor;
|
|
64
|
+
default: string;
|
|
65
|
+
};
|
|
66
|
+
}>, () => globalThis.VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
67
|
+
[key: string]: any;
|
|
68
|
+
}>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
69
|
+
/**
|
|
70
|
+
* @props { String, Object } name= ( )
|
|
71
|
+
* 图标名称
|
|
72
|
+
*/
|
|
73
|
+
name: {
|
|
74
|
+
type: (ObjectConstructor | StringConstructor)[];
|
|
75
|
+
default: string;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* @props { String} iconClass= ( )
|
|
79
|
+
* 图标样式名称
|
|
80
|
+
*/
|
|
81
|
+
iconClass: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
};
|
|
84
|
+
color: {
|
|
85
|
+
type: StringConstructor;
|
|
86
|
+
};
|
|
87
|
+
/**
|
|
88
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
89
|
+
* 图标类型
|
|
90
|
+
*/
|
|
91
|
+
type: {
|
|
92
|
+
type: () => IconType;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @props { String, Number } size= ( )
|
|
96
|
+
* 图标大小
|
|
97
|
+
*/
|
|
98
|
+
size: {
|
|
99
|
+
type: (StringConstructor | NumberConstructor)[];
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
103
|
+
* 图标方向
|
|
104
|
+
*/
|
|
105
|
+
flip: {
|
|
106
|
+
type: () => Flip;
|
|
107
|
+
default: string;
|
|
108
|
+
};
|
|
109
|
+
/**
|
|
110
|
+
* @props { Number } rotate=0
|
|
111
|
+
* 图标旋转角度
|
|
112
|
+
*/
|
|
113
|
+
rotate: {
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
default: number;
|
|
116
|
+
};
|
|
117
|
+
default: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
};
|
|
120
|
+
directory: {
|
|
121
|
+
type: StringConstructor;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
prefix: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
128
|
}>> & Readonly<{}>, {
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>>;
|
|
135
|
-
|
|
136
|
-
export {
|
|
129
|
+
name: string | Record<string, any>;
|
|
130
|
+
prefix: string;
|
|
131
|
+
flip: Flip;
|
|
132
|
+
rotate: number;
|
|
133
|
+
directory: string;
|
|
134
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
135
|
+
//#endregion
|
|
136
|
+
export { Flip, Icon, Icon as default, IconType };
|
package/dist/icon/index.js
CHANGED
|
@@ -1,13 +1,223 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
} from "
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
1
|
+
import { defaultPrefix } from "../config.js";
|
|
2
|
+
import { t as humpToLine } from "../humpToLine-Czhat99x.js";
|
|
3
|
+
import { withInstall } from "../util.js";
|
|
4
|
+
import { computed, defineComponent, h, resolveComponent } from "vue";
|
|
5
|
+
//#region packages/icon/index.ts
|
|
6
|
+
const reg = /<svg([^>]*)>((.|\n|\r|\t)*)<\/svg>/g;
|
|
7
|
+
const reg1 = /<path([^>]*)>((.|\n|\r|\t)*)<\/path>/g;
|
|
8
|
+
const reg2 = /<g([^>]*)>((.|\n|\r|\t)*)<\/g>/g;
|
|
9
|
+
const prefix = humpToLine(defaultPrefix) + "-";
|
|
10
|
+
const className = "icon";
|
|
11
|
+
const directory = "/svg";
|
|
12
|
+
const isImg = (name) => {
|
|
13
|
+
if (name) {
|
|
14
|
+
if (name.startsWith("data:") || name.startsWith("/") || name.startsWith("./") || name.startsWith("../") || name.includes("://")) return true;
|
|
15
|
+
}
|
|
16
|
+
return false;
|
|
13
17
|
};
|
|
18
|
+
const contStyle = {
|
|
19
|
+
border: 0,
|
|
20
|
+
display: "inline-flex",
|
|
21
|
+
"align-items": "center",
|
|
22
|
+
"object-fit": "contain",
|
|
23
|
+
"justify-content": "center",
|
|
24
|
+
"font-size": "inherit",
|
|
25
|
+
width: "inherit",
|
|
26
|
+
height: "inherit"
|
|
27
|
+
};
|
|
28
|
+
const svgStyle = {
|
|
29
|
+
"--color": "inherit",
|
|
30
|
+
height: "1em",
|
|
31
|
+
width: "1em",
|
|
32
|
+
"line-height": "1em",
|
|
33
|
+
display: "inline-flex",
|
|
34
|
+
"justify-content": "center",
|
|
35
|
+
"align-items": "center",
|
|
36
|
+
position: "relative",
|
|
37
|
+
fill: "currentColor",
|
|
38
|
+
color: "var(--color)",
|
|
39
|
+
"font-size": "inherit"
|
|
40
|
+
};
|
|
41
|
+
const Icon = withInstall(defineComponent({
|
|
42
|
+
name: "Icon",
|
|
43
|
+
props: {
|
|
44
|
+
/**
|
|
45
|
+
* @props { String, Object } name= ( )
|
|
46
|
+
* 图标名称
|
|
47
|
+
*/
|
|
48
|
+
name: {
|
|
49
|
+
type: [String, Object],
|
|
50
|
+
default: ""
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* @props { String} iconClass= ( )
|
|
54
|
+
* 图标样式名称
|
|
55
|
+
*/
|
|
56
|
+
iconClass: { type: String },
|
|
57
|
+
color: { type: String },
|
|
58
|
+
/**
|
|
59
|
+
* @props { String} type= ( 'css' | 'id' | 'img' | 'font' | 'str' | 'com' )
|
|
60
|
+
* 图标类型
|
|
61
|
+
*/
|
|
62
|
+
type: { type: String },
|
|
63
|
+
/**
|
|
64
|
+
* @props { String, Number } size= ( )
|
|
65
|
+
* 图标大小
|
|
66
|
+
*/
|
|
67
|
+
size: { type: [String, Number] },
|
|
68
|
+
/**
|
|
69
|
+
* @props { String } flip='' ( 'horizontal' | 'vertical' | 'both' | '' )
|
|
70
|
+
* 图标方向
|
|
71
|
+
*/
|
|
72
|
+
flip: {
|
|
73
|
+
type: String,
|
|
74
|
+
default: ""
|
|
75
|
+
},
|
|
76
|
+
/**
|
|
77
|
+
* @props { Number } rotate=0
|
|
78
|
+
* 图标旋转角度
|
|
79
|
+
*/
|
|
80
|
+
rotate: {
|
|
81
|
+
type: Number,
|
|
82
|
+
default: 0
|
|
83
|
+
},
|
|
84
|
+
default: { type: String },
|
|
85
|
+
directory: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: directory
|
|
88
|
+
},
|
|
89
|
+
prefix: {
|
|
90
|
+
type: String,
|
|
91
|
+
default: prefix
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
setup(props, { slots }) {
|
|
95
|
+
const outputType = computed(() => {
|
|
96
|
+
if (props.type) return props.type;
|
|
97
|
+
else {
|
|
98
|
+
const name = props.name || "";
|
|
99
|
+
if (typeof name == "object") return "vue";
|
|
100
|
+
else if (reg.test(name) || reg1.test(name) || reg2.test(name)) return "svg";
|
|
101
|
+
else if (isImg(name)) return "img";
|
|
102
|
+
return props.default;
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
const setPrefix = (name) => {
|
|
106
|
+
name = humpToLine(name);
|
|
107
|
+
if (name.startsWith(props.prefix)) return name;
|
|
108
|
+
else return props.prefix + name;
|
|
109
|
+
};
|
|
110
|
+
const transformStyle = computed(() => {
|
|
111
|
+
const style = [];
|
|
112
|
+
if (props.flip !== "") switch (props.flip) {
|
|
113
|
+
case "horizontal":
|
|
114
|
+
style.push("rotateY(180deg)");
|
|
115
|
+
break;
|
|
116
|
+
case "vertical":
|
|
117
|
+
style.push("rotateX(180deg)");
|
|
118
|
+
break;
|
|
119
|
+
case "both":
|
|
120
|
+
style.push("rotateX(180deg)", "rotateY(180deg)");
|
|
121
|
+
break;
|
|
122
|
+
}
|
|
123
|
+
if (props.rotate !== 0) style.push(`rotate(${props.rotate % 360}deg)`);
|
|
124
|
+
const styleObj = { ...svgStyle };
|
|
125
|
+
styleObj.transform = style.join(" ");
|
|
126
|
+
if (props.color) styleObj.color = props.color;
|
|
127
|
+
if (props.size) {
|
|
128
|
+
let s = props.size;
|
|
129
|
+
if (typeof s == "number") s = s + "px";
|
|
130
|
+
styleObj.width = s;
|
|
131
|
+
styleObj.height = s;
|
|
132
|
+
styleObj["font-size"] = s;
|
|
133
|
+
}
|
|
134
|
+
return styleObj;
|
|
135
|
+
});
|
|
136
|
+
const outputName = computed(() => {
|
|
137
|
+
const name = props.name;
|
|
138
|
+
if (typeof name == "string") switch (outputType.value) {
|
|
139
|
+
case "svg":
|
|
140
|
+
const rs = reg.exec(name);
|
|
141
|
+
const rs1 = reg1.exec(name) || reg2.exec(name);
|
|
142
|
+
if (rs && rs.length > 0) return rs[1];
|
|
143
|
+
else if (rs1 && rs1.length > 0) return rs1[0];
|
|
144
|
+
else return name;
|
|
145
|
+
case "css": return setPrefix(name);
|
|
146
|
+
case "id": return setPrefix(name);
|
|
147
|
+
case "font": return setPrefix(name);
|
|
148
|
+
default: return name;
|
|
149
|
+
}
|
|
150
|
+
return name;
|
|
151
|
+
});
|
|
152
|
+
const dom = computed(() => {
|
|
153
|
+
if (!outputName.value) return;
|
|
154
|
+
else if (outputType.value === "pub") {
|
|
155
|
+
const src = props.directory + "/" + outputName.value + ".svg";
|
|
156
|
+
return h("img", {
|
|
157
|
+
class: [props.iconClass],
|
|
158
|
+
style: contStyle,
|
|
159
|
+
src
|
|
160
|
+
});
|
|
161
|
+
} else if (outputType.value === "css" || outputType.value === "font") return h("i", {
|
|
162
|
+
class: [props.iconClass, outputName.value],
|
|
163
|
+
style: contStyle
|
|
164
|
+
});
|
|
165
|
+
else if (outputType.value === "img") return h("img", {
|
|
166
|
+
class: [props.iconClass],
|
|
167
|
+
style: contStyle,
|
|
168
|
+
src: outputName.value
|
|
169
|
+
});
|
|
170
|
+
else if (outputType.value === "svg") {
|
|
171
|
+
let v;
|
|
172
|
+
let viewBox;
|
|
173
|
+
if (typeof outputName.value === "string") {
|
|
174
|
+
v = outputName.value;
|
|
175
|
+
viewBox = "0 0 1024 1024";
|
|
176
|
+
} else {
|
|
177
|
+
v = outputName.value?.body;
|
|
178
|
+
viewBox = `${outputName.value?.left || 0} ${outputName.value?.top || 0} ${outputName.value?.width || 1024} ${outputName.value?.height || 1024}`;
|
|
179
|
+
}
|
|
180
|
+
return h("svg", {
|
|
181
|
+
class: [props.iconClass],
|
|
182
|
+
style: contStyle,
|
|
183
|
+
viewBox,
|
|
184
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
185
|
+
innerHTML: v
|
|
186
|
+
});
|
|
187
|
+
} else if (outputType.value === "id") return h("svg", {
|
|
188
|
+
class: [props.iconClass],
|
|
189
|
+
style: contStyle,
|
|
190
|
+
"aria-hidden": true
|
|
191
|
+
}, h("use", { "xlink:href": "#" + outputName.value }));
|
|
192
|
+
else if (outputType.value === "vue") if (typeof outputName.value == "string") return h(resolveComponent(outputName.value), {
|
|
193
|
+
class: [props.iconClass],
|
|
194
|
+
style: contStyle
|
|
195
|
+
});
|
|
196
|
+
else return h(outputName.value, {
|
|
197
|
+
class: [props.iconClass],
|
|
198
|
+
style: contStyle
|
|
199
|
+
});
|
|
200
|
+
else if (typeof outputName.value == "string") {
|
|
201
|
+
const m = setPrefix(outputName.value);
|
|
202
|
+
const v = resolveComponent(m);
|
|
203
|
+
if (typeof v == "string") return h("i", {
|
|
204
|
+
class: [props.iconClass, m],
|
|
205
|
+
style: contStyle
|
|
206
|
+
});
|
|
207
|
+
else return h(v, {
|
|
208
|
+
class: [props.iconClass],
|
|
209
|
+
style: contStyle
|
|
210
|
+
});
|
|
211
|
+
} else return h(outputName.value, {
|
|
212
|
+
class: [props.iconClass],
|
|
213
|
+
style: contStyle
|
|
214
|
+
});
|
|
215
|
+
});
|
|
216
|
+
return () => h("span", {
|
|
217
|
+
class: [className],
|
|
218
|
+
style: transformStyle.value
|
|
219
|
+
}, Object.keys(slots).length > 0 ? slots : dom.value);
|
|
220
|
+
}
|
|
221
|
+
}), "FangIcon");
|
|
222
|
+
//#endregion
|
|
223
|
+
export { Icon, Icon as default };
|
package/dist/iconify.cjs
CHANGED
|
@@ -1,16 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
|
+
const require_config = require("./config.cjs");
|
|
3
|
+
const require_lineToLargeHump = require("./lineToLargeHump-BajF216g.cjs");
|
|
4
|
+
let vue = require("vue");
|
|
5
|
+
//#region packages/iconify.ts
|
|
6
|
+
const xmlns = "http://www.w3.org/2000/svg";
|
|
7
|
+
function getViewBox(obj) {
|
|
8
|
+
return [
|
|
9
|
+
obj.left || 0,
|
|
10
|
+
obj.top || 0,
|
|
11
|
+
obj.width || 1024,
|
|
12
|
+
obj.height || 1024
|
|
13
|
+
].join(" ");
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* 创建SVG图标组件
|
|
17
|
+
* @param obj - 图标配置对象,包含图标的各项属性
|
|
18
|
+
* @returns 返回一个Vue组件实例,用于渲染SVG图标
|
|
19
|
+
*/
|
|
20
|
+
function createSVG(obj) {
|
|
21
|
+
const viewBox = getViewBox(obj);
|
|
22
|
+
const name = "icon-" + obj.name;
|
|
23
|
+
return (0, vue.defineComponent)({
|
|
24
|
+
name: require_lineToLargeHump.lineToLargeHump(name),
|
|
25
|
+
props: {},
|
|
26
|
+
render() {
|
|
27
|
+
return (0, vue.h)("svg", {
|
|
28
|
+
xmlns,
|
|
29
|
+
"aria-hidden": true,
|
|
30
|
+
id: name,
|
|
31
|
+
ctype: "hcom",
|
|
32
|
+
role: "img",
|
|
33
|
+
class: "iconify iconify-" + obj.prefix,
|
|
34
|
+
viewBox,
|
|
35
|
+
innerHTML: obj.body
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 将图标配置转换为Vue组件并注册到应用中
|
|
42
|
+
* @param app - Vue应用实例,用于注册组件
|
|
43
|
+
* @param ify - 图标配置对象,包含前缀、尺寸和图标数据
|
|
44
|
+
* @param options - 安装选项,可选参数
|
|
45
|
+
* @param options.prefix - 组件名称前缀,默认使用defaultPrefix
|
|
46
|
+
*/
|
|
47
|
+
const iconify = (app, ify, { prefix = require_config.defaultPrefix } = {}) => {
|
|
48
|
+
const obj = {
|
|
49
|
+
prefix: ify.prefix,
|
|
50
|
+
width: ify.width,
|
|
51
|
+
height: ify.height
|
|
52
|
+
};
|
|
53
|
+
const icons = ify.icons;
|
|
54
|
+
for (const key of Object.keys(icons)) app.component(prefix + require_lineToLargeHump.lineToLargeHump(key), createSVG({
|
|
55
|
+
...obj,
|
|
56
|
+
name: key,
|
|
57
|
+
...icons[key]
|
|
58
|
+
}));
|
|
59
|
+
const aliases = ify.aliases;
|
|
60
|
+
for (const key of Object.keys(aliases)) {
|
|
61
|
+
const a = aliases[key];
|
|
62
|
+
app.component(prefix + require_lineToLargeHump.lineToLargeHump(key), createSVG({
|
|
63
|
+
...obj,
|
|
64
|
+
name: key,
|
|
65
|
+
...icons[a.parent]
|
|
66
|
+
}));
|
|
67
|
+
}
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* 创建SVG图标组件
|
|
71
|
+
* @param obj - 图标配置对象,包含图标的各项属性
|
|
72
|
+
* @returns 返回一个Vue组件实例,用于渲染SVG图标
|
|
73
|
+
*/
|
|
74
|
+
function iconifySVG(obj, name) {
|
|
75
|
+
const icons = obj.icons;
|
|
76
|
+
const ap = obj.aliases[name]?.parent;
|
|
77
|
+
const n = icons[name] ?? (ap ? icons[ap] : void 0);
|
|
78
|
+
if (n) return createSVG({
|
|
79
|
+
prefix: obj.prefix,
|
|
80
|
+
name,
|
|
81
|
+
width: obj.width,
|
|
82
|
+
height: obj.height,
|
|
83
|
+
...n
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function getIconifySVG(obj, name, str = "") {
|
|
87
|
+
const icons = obj.icons;
|
|
88
|
+
const ap = obj.aliases[name]?.parent;
|
|
89
|
+
const n = icons[name] ?? (ap ? icons[ap] : void 0);
|
|
90
|
+
if (n) return `<svg ${str} xmlns="${xmlns}" viewBox="${getViewBox({
|
|
91
|
+
prefix: obj.prefix,
|
|
92
|
+
name,
|
|
93
|
+
width: obj.width,
|
|
94
|
+
height: obj.height,
|
|
95
|
+
...n
|
|
96
|
+
})}">${n.body}</svg>`;
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
exports.getIconifySVG = getIconifySVG;
|
|
100
|
+
exports.getViewBox = getViewBox;
|
|
101
|
+
exports.iconify = iconify;
|
|
102
|
+
exports.iconifySVG = iconifySVG;
|