简化时间组件结构
parent
04e1c9650c
commit
4939847a4d
|
@ -79,8 +79,6 @@ class Time extends Component {
|
|||
display: inline-flex;
|
||||
font-size: 12px;
|
||||
color: var(--color-dark-1);
|
||||
}
|
||||
time {
|
||||
-webkit-user-select: none;
|
||||
user-select: none;
|
||||
cursor: default;
|
||||
|
@ -89,7 +87,7 @@ class Time extends Component {
|
|||
]
|
||||
|
||||
render() {
|
||||
return html`<time>${this.#value}</time>`
|
||||
return this.#value
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue