插件名称 | vue-cryptobar |
---|---|
发布时间 | 2020年5月22日 |
插件作者 | ozkanonur |
Vue-cryptobar是面向Vue开发人员的一种加密货币工具,它看起来非常现代,清晰,也可以使用配置重新设置样式。
它使用正负值显示带有颜色的当前价格,还显示进行最后转换的市场名称。
$ npm install --save vue-cryptobar
在“组件”部分的内部添加“ cryptobar”:
import cryptobar from "vue-cryptobar"
最后要做的是:
<cryptobar/>
<cryptobar
bar-radius="4px"
bar-color="rgb(192, 192, 192)"
positive-price-color="#253121"
negative-price-color="orange"
currency-symbol-color="#212121"
name-and-currency-color="rgb(255, 255, 255)"
trade-market-color="yellow"
/>