实现控制弹框位置,格式化代码

This commit is contained in:
lvxiangcong 2022-11-10 15:28:06 +08:00
parent 261256c4f3
commit c2e3fe6b0a
2 changed files with 5 additions and 6 deletions

View File

@ -1,15 +1,15 @@
import {css} from 'lit'
export default css`
* {
/* * {
border: none;
background: transparent;
}
} */
dialog::backdrop {
background: green;
border:2px solid yellow;
}
.star-confirm-background {
top:0;
position: fixed;
width: 100vw;
height: 100vh;

View File

@ -72,10 +72,9 @@ export default class StarBaseDialog extends StarBaseElement {
*/
private renderDialog() {
return html`
<!-- <dialog>
<dialog>
<main>${this.renderMockDialog()}</main>
</dialog> -->
${this.renderMockDialog()}
</dialog>
`
}