(fix) compile error

This commit is contained in:
wangchangqi 2022-09-24 17:14:55 +08:00
parent 069d00ffe0
commit d17331274f
1 changed files with 21 additions and 17 deletions

View File

@ -1,4 +1,4 @@
import {html, css} from 'lit'
import {html, css, CSSResultArray} from 'lit'
import {customElement} from 'lit/decorators.js'
import GestureDector from '../../lib/gesture/gesture-detector'
import {StarBaseElement} from '../base/star-base-element'
@ -63,22 +63,26 @@ export class HomeBarIndicator extends StarBaseElement {
return html``
}
static styles = css`
:host {
position: absolute;
bottom: 0;
width: 100vw;
height: 100vh;
background-color: yellow;
user-select: none;
}
a {
position: absolute;
width: 100%;
height: 100%;
background-color: yellow;
}
`
public static override get styles(): CSSResultArray {
return [
css`
:host {
position: absolute;
bottom: 0;
width: 100vw;
height: 100vh;
background-color: yellow;
user-select: none;
}
a {
position: absolute;
width: 100%;
height: 100%;
background-color: yellow;
}
`,
]
}
}
declare global {