fix(types): export component types (#411)

This commit is contained in:
Eric Liu 2020-11-25 10:19:11 -08:00 committed by GitHub
commit 0d8064043f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
19 changed files with 214 additions and 175 deletions

View file

@ -26,7 +26,12 @@
*/
export let id = undefined;
import { beforeUpdate, createEventDispatcher, onMount, setContext } from "svelte";
import {
beforeUpdate,
createEventDispatcher,
onMount,
setContext,
} from "svelte";
import { writable } from "svelte/store";
const dispatch = createEventDispatcher();
@ -45,17 +50,17 @@
});
onMount(() => {
$selectedValue = selected
})
$selectedValue = selected;
});
beforeUpdate(() => {
$selectedValue = selected
})
$selectedValue = selected;
});
selectedValue.subscribe(value => {
selected = value
selectedValue.subscribe((value) => {
selected = value;
dispatch("change", value);
})
});
</script>
<div