fix(dropdown): strongly type translateWithId

This commit is contained in:
Eric Liu 2022-05-04 07:48:10 -07:00
commit 0fbb49b252
5 changed files with 38 additions and 30 deletions

View file

@ -14,6 +14,10 @@
on:select="{(e) => {
console.log(e.detail.selectedId);
}}"
translateWithId="{(id) => {
console.log(id); // "open" | "close"
return id;
}}"
let:item
let:index
>