appstore/dist/views/detail.js

58 lines
1.1 KiB
JavaScript
Raw Normal View History

2023-12-29 15:49:55 +08:00
/**
* {}
* @author yutent<yutent.io@gmail.com>
* @date 2023/12/19 16:53:27
*/
import { html, css, Component, range } from 'wkit'
2023-12-27 18:55:01 +08:00
import { watch } from 'wkitd'
2023-12-29 15:49:55 +08:00
import '../components/titlebar.js'
2023-12-27 18:55:01 +08:00
class Detail extends Component {
static styles = [
css`
:host {
display: flex;
position: fixed;
2023-12-29 15:49:55 +08:00
left: calc(50vw - 512px);
top: calc(50vh - 380px);
2023-12-27 18:55:01 +08:00
z-index: 2;
2023-12-29 15:49:55 +08:00
width: 1024px;
height: 760px;
2023-12-27 18:55:01 +08:00
font-size: 14px;
color: var(--color-dark-1);
-webkit-user-select: none;
user-select: none;
}
.container {
display: flex;
flex-direction: column;
width: 100%;
height: 100%;
border-radius: 8px;
2023-12-29 15:49:55 +08:00
background: rgba(233, 233, 233, 0.9);
2023-12-27 18:55:01 +08:00
box-shadow: 0 0 12px rgba(0, 0, 0, 0.1);
2023-12-29 15:49:55 +08:00
--titlebar-background: #fff;
}
ul,
menu,
li {
list-style: none;
2023-12-27 18:55:01 +08:00
}
`
]
render() {
2023-12-29 15:49:55 +08:00
return html`
<div class="container">
<wc-titlebar minimize></wc-titlebar>
</div>
`
2023-12-27 18:55:01 +08:00
}
}
Detail.reg('detail')