Skip to content

Commit

Permalink
feat: 🎸 fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Zichun627 committed Jan 14, 2024
1 parent ba090ff commit 082415d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/common/Button.astro
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const { href, type = 'normal', size = 'medium', visibility = true } = Astro.prop
}

}
customElements.define("button", Button);
customElements.define("my-button", Button);
</script>


Expand Down
1 change: 1 addition & 0 deletions src/components/common/Navbar.astro
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ const ifactive = (toggle) => {
class Navbar extends HTMLElement {
constructor() {
super();
console.log("navbar-component")
}

}
Expand Down
2 changes: 2 additions & 0 deletions src/components/common/Toggle.astro
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,11 @@ const Component = slot;


<script>
console.log("------,toggle");
class Toggle extends HTMLElement {
constructor() {
super();
console.log("7777777")
const trigger = this.getAttribute('data-trigger');
const content = this.querySelector('.toggle-dropdown');
const updown = this.querySelector<SVGElement>("svg[data-updown]")!;
Expand Down

0 comments on commit 082415d

Please sign in to comment.