js插件 球形走马灯_使用此插件创建漂亮的球形标签

js插件 球形走马灯

VueTags球 (VueTagsBall)

Create a beautiful and spherical tag with this plugin.

使用此插件创建一个漂亮的球形标签。

create a 3d tags ball for vue2.

为vue2创建一个3D标签球。

安装 (Install)

npm install --save vue-tags-ball

用法 (Usage)

//Gobal method
import TagsBall from 'vue-tags-ball'
Vue.use(TagsBall)

//Component method
import TagsBall from 'vue-tags-ball'
//...
components: {
    "tags-ball":TagsBall
  },

(Example)

<tags-ball v-bind:style='{"border":"2px solid black"}' :width='200' :tags='tags'/>

tags is a String[],like {"tag1","tag2","tag3"}.and you can bind your own style.

tags是一个String [],例如{"tag1","tag2","tag3"} ,您可以绑定自己的样式。

Warning: just watching the tags and stop,other props only init.

警告:仅观看tagsstop ,其他道具只能初始化。

道具 (Props)

PropertyTypeDescriptionDefault
tagsArrayall the tag[]
stopBooleanstop the animationfalse
widthNumberinit the canvas widht200
heightNumberinit the canvas height200
radiusNumberinit the ball radius100
fontStringinit the tag's label font"24px monaco"
fontMaxNumberinit the tag's label max width60
colorStringinit the label's color"#fc8457"
属性 类型 描述 默认
标签 数组 所有标签 []
布尔型 停止动画
宽度 初始化画布宽度 200
高度 初始化画布高度 200
半径 初始化球半径 100
字形 初始化标签的标签字体 “ 24px摩纳哥”
fontMax 初始化标签的标签最大宽度 60
颜色 初始化标签的颜色 “#fc8457”

翻译自: https://vuejsexamples.com/create-a-beautiful-and-spherical-tag-with-this-plugin/

js插件 球形走马灯

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值