import db from local files

This commit is contained in:
Jan Prochazka
2022-04-24 15:11:46 +02:00
parent 4d7887a379
commit 82ae8e23e0
2 changed files with 29 additions and 2 deletions

View File

@@ -10,9 +10,15 @@
function handleClick() {
if (!disabled) dispatch('click');
}
let domButton;
export function getBoundingClientRect() {
return domButton.getBoundingClientRect();
}
</script>
<input {type} {value} class:disabled {...$$restProps} on:click={handleClick} />
<input {type} {value} class:disabled {...$$restProps} on:click={handleClick} bind:this={domButton} />
<style>
input {