2022-03-04 21:17:57 +00:00
|
|
|
<ShipItem {...reqs}>
|
|
|
|
<Field label="cargo">
|
2022-03-20 18:42:59 +00:00
|
|
|
<input class="short" type="number" min="0" bind:value={space} />
|
2022-03-04 21:17:57 +00:00
|
|
|
</Field>
|
|
|
|
</ShipItem>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
import ShipItem from "$lib/components/ShipItem/index.svelte";
|
|
|
|
import Field from "$lib/components/Field/index.svelte";
|
|
|
|
|
|
|
|
import { getContext } from "svelte";
|
|
|
|
|
|
|
|
export let ship = getContext("ship");
|
|
|
|
|
|
|
|
export let space = 0;
|
|
|
|
export let reqs = {};
|
|
|
|
|
|
|
|
$: ship.dispatch.setCargo(space);
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style>
|
|
|
|
input {
|
|
|
|
width: 5em;
|
|
|
|
}
|
|
|
|
</style>
|