aotds-docks/src/components/Firecons.svelte

21 lines
410 B
Svelte
Raw Normal View History

2020-07-19 20:21:28 +00:00
<ShipItem {cost} {mass}>
<Field label="firecons">
<input type="number" bind:value={nbr} />
</Field>
</ShipItem>
<script>
import { createEventDispatcher } from 'svelte';
import ShipItem from '~C/ShipItem';
import Field from '~C/Field';
export let nbr, cost, mass = (0,0,0);
const dispatch = createEventDispatcher();
$: dispatch( 'change_firecons', nbr);
</script>
<style>
</style>