(chore)format code.

This commit is contained in:
wangchangqi 2022-09-29 16:25:58 +08:00
parent d5a936c779
commit b3631c7965
3 changed files with 19 additions and 14 deletions

View File

@ -125,8 +125,14 @@ export class StarClock extends LitElement {
this.style.setProperty('--rotateSecond', this.rotateSecond + 'deg')
this.style.setProperty('--rotateMinute', this.rotateMinute + 'deg')
this.style.setProperty('--rotateHour', this.rotateHour + 'deg')
this.style.setProperty('--rotateSecondAfter',this.rotateSecond + 360 + 'deg')
this.style.setProperty('--rotateMinuteAfter',this.rotateMinute + 360 + 'deg')
this.style.setProperty(
'--rotateSecondAfter',
this.rotateSecond + 360 + 'deg'
)
this.style.setProperty(
'--rotateMinuteAfter',
this.rotateMinute + 360 + 'deg'
)
this.style.setProperty('--rotateHourAfter', this.rotateHour + 360 + 'deg')
let min = Math.min(

View File

@ -14,11 +14,10 @@
```
2. `cover` --- 初始填充<br>
`cover="50"``cover="50%"` 都表示初始填充音量条的50%<br>
`cover="78.2"``cover="78.2%"` 都表示初始填充音量条的78.2%<br>
`cover="50"``cover="50%"` 都表示初始填充音量条的 50%<br>
`cover="78.2"``cover="78.2%"` 都表示初始填充音量条的 78.2%<br>
`cover="150px"``cover="113.5px"` 表示准确的填充长度<br>
```
<star-slider cover="150px"></star-slider>
<star-slider cover="50%"></star-slider>