vue组件嵌套组件不显示_Vue组件,将计数器显示为圆弧

vue组件嵌套组件不显示

VUE ARC柜台 (VUE ARC COUNTER)

This Vue component generates counter in a circular arc. The angles, colors, strokewidth, spacing between dashes and direction can all be controlled through properties.

该Vue组件在圆弧中生成计数器。 角度,颜色,笔划宽度,虚线之间的间距以及方向都可以通过属性进行控制。

项目设置 (Project setup)

With a package manager

与包裹经理

# npm
$ npm install vue-arc-counter

#yarn
$ yarn add vue-arc-counter

For the browser

对于浏览器

<script src="unpkg.com/[email protected]/dist/arcCounter.umd.min.js"></script>

这个怎么运作 (How it works)

The component generates an SVG element with default width and height of 100% (outer diameter of the counter). Two dashed strokes are overlayed: the bottom one controlled by stroke and dashCount and the top one by activeStroke and activeCount. A start angle smaller than the end angle will make for clockwise counting, vice versa.

该组件将生成一个SVG元素,其默认宽度和高度为100%(计数器的外径)。 两个虚线笔划被覆盖:最下面的一个由strokedashCount控制,最上面的一个由activeStrokeactiveCountstart角度小于end角度将用于顺时针计数,反之亦然。

The absolute difference between end and start angles should always be less than 360 degrees.

end角度和start角度之间的绝对差应始终小于360度。

物产 (Properties)

propdescriptiondefaultoptions
dashCountTotal number of dashes21Natural number
activeCountNumber of dashes on top5Natural number
strokeWidthStroke as a percentage of the radius200 to 100
strokeStroke color of the bottom dasheslightgreycolor
activeStrokeStroke color of the top dashesdodgerbluecolor
dashSpacingFraction of width taken up by space between dashes1/40 to 1
startStart angle from top-120-360 to 360
endEnd angle from top120-360 to 360
Struts 描述 默认 选项
dashCount 破折号总数 21 自然数
activeCount 顶部破折号 5 自然数
strokeWidth 行程占半径的百分比 20 0100
stroke 底部虚线的笔触颜色 lightgrey color
activeStroke 顶部虚线的笔触颜色 dodgerblue color
dashSpacing 破折号之间的空格所占的宽度分数 1/4 01
start 从顶部开始的角度 -120 -360360
end 顶角 120 -360360

翻译自: https://vuejsexamples.com/functional-vue-component-that-displays-a-counter-as-a-circular-arc/

vue组件嵌套组件不显示

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值