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