Skip to content

Commit

Permalink
补充添加Collapse相关组件到HTMLElementTagNameMap (#284)
Browse files Browse the repository at this point in the history
  • Loading branch information
KermanX authored Nov 21, 2023
1 parent 1d3c220 commit bcb7b3c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/mdui/src/components/collapse/collapse-item.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,3 +147,9 @@ export class CollapseItem extends LitElement {
);
}
}

declare global {
interface HTMLElementTagNameMap {
'mdui-collapse-item': CollapseItem;
}
}
6 changes: 6 additions & 0 deletions packages/mdui/src/components/collapse/collapse.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,3 +233,9 @@ export class Collapse extends LitElement {
});
}
}

declare global {
interface HTMLElementTagNameMap {
'mdui-collapse': Collapse;
}
}

0 comments on commit bcb7b3c

Please sign in to comment.