前阵子经常看到有只猫在门口的平台缝里跳进跳出,这两天发现多了两只小猫。
正好家里有鱼干。
原来明天是父亲节。
如果是母亲节,那至少一个星期前就会知道。
与其说是爱,不如说是无奈。
今天折腾这玩意,从复杂到简单,最后发现只要这几行就能解决,效果还十分优雅。
css
.progress-circle {
width: 100px;
height: 100px;
border-radius: 50%;
}
html
const progressStyle = `background: conic-gradient(#fff ${progress}%, rgba(0, 0, 0, 0.3) 0%)`
<View className=”progress-circle” style={progressStyle} />
${progress} 是变量,0 到 100。