progress-circle组件中为什么precent的变化不用watch监控
来源:7-15 播放器progress-circle 圆形进度条组件实现

慕码人4364028
2017-07-01
progress-circle组件中为什么precent的变化不用watch监控,而progress-bar的进度precent需要用watch监控
写回答
1回答
-
ustbhuangyi
2017-07-02
因为 progress-circle 组件直接通过 props 修改 percent,对应到模板就会变化;而 progress-bar 的对样式的修改是通过 js,所以要 watch,并且执行一段 js 逻辑。
10
相似问题