mirror of
https://github.com/wassname/template.git
synced 2026-07-20 12:40:52 +08:00
v2 start
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import {Template} from "../mixins/template";
|
||||
|
||||
const T = Template("d-toc", `
|
||||
<style>
|
||||
d-toc {
|
||||
display: block;
|
||||
}
|
||||
</style>
|
||||
`, false);
|
||||
|
||||
export default class Toc extends T(HTMLElement) {
|
||||
static get is() {
|
||||
return "d-toc";
|
||||
}
|
||||
}
|
||||
|
||||
customElements.define(Toc.is, Toc);
|
||||
Reference in New Issue
Block a user