(chore)format code.
This commit is contained in:
parent
d5a936c779
commit
b3631c7965
|
@ -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(
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue