在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:man15h/vue-cryptoicon开源软件地址:https://github.com/man15h/vue-cryptoicon开源编程语言:JavaScript 92.4%开源软件介绍:vue-cryptoiconBeautiful pixel perfect 400+ cryptocurrency and 10+ Fiat currency icon, in a range of styles and sizes DemoInstallNPMInstalling with npm. npm install vue-cryptoicon // yarn add vue-cryptoicon Quick startGlobalTo use in your project, just import vue-cryptoicon and install into Vue. main.js import Vue from 'vue';
import Cryptoicon from 'vue-cryptoicon';
// For all icons
import icon from 'vue-cryptoicon/src/icons';
Cryptoicon.add(icon);
Vue.use(Cryptoicon);
// selective icons
import { Btc, Eth, Xrp, Eos, Bnb, Tron } from 'vue-cryptoicon/src/icons';
Cryptoicon.add([Btc, Eth, Xrp, Eos, Bnb, Tron]);
Vue.use(Cryptoicon);
App.vue <template>
<!-- Bitcoin color icon-->
<cryptoicon symbol="btc" size="24" />
<!-- Bitcoin blue color icon-->
<cryptoicon symbol="btc" size="24" color="blue" />
<!-- Bitcoin black (#000) icon-->
<cryptoicon symbol="btc" size="24" color="#000" />
</template> Props
AdvanceYou can change the default value of Vue.use(Cryptoicon, { size: '50', color: 'black' }); LicenseMIT license. |
2022-08-15
2022-08-17
2022-09-23
2023-10-27
2022-08-18
请发表评论