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';
|
|
|
|
import ShipItem from '~C/ShipItem';
|
|
|
|
import Field from '~C/Field';
|
|
|
|
|
|
|
|
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>
|