aotds-docks/src/components/Firecons.svelte

21 lines
451 B
Svelte
Raw Normal View History

2020-07-19 20:21:28 +00:00
<ShipItem {cost} {mass}>
<Field label="firecons">
2020-07-28 18:55:08 +00:00
<input type="number" class="short" bind:value={nbr} />
2020-07-19 20:21:28 +00:00
</Field>
</ShipItem>
<script>
import { createEventDispatcher } from 'svelte';
2021-05-17 13:48:31 +00:00
import ShipItem from './ShipItem/index.svelte';
import Field from './Field/index.svelte';
2020-07-19 20:21:28 +00:00
export let nbr, cost, mass = (0,0,0);
const dispatch = createEventDispatcher();
2020-07-28 18:55:08 +00:00
$: dispatch( 'change_firecons', nbr);
2020-07-19 20:21:28 +00:00
</script>
<style>
</style>