исправление ошибок компиляции

This commit is contained in:
Dmitry Borisenko
2022-08-23 15:13:50 +02:00
parent 7eff0a6a1a
commit b026df0cdb
5 changed files with 38 additions and 34 deletions

View File

@@ -10,7 +10,7 @@
export let show;
export let scenarioTxt;
export let scenarioJson;
let itemsJsonBind = 0;
let debug = true;
@@ -46,10 +46,11 @@
}
}
$: scenarioTxt, windowHeight();
$: scenarioJson, windowHeight();
let height;
function windowHeight() {
height = Math.round(scenarioTxt.split("\n").length) + 1;
let scenStr = JSON.stringify(scenarioJson);
height = scenStr.split("\\n").length;
}
</script>
@@ -125,7 +126,7 @@
</Card>
<Card title="Сценарии">
<textarea bind:value={scenarioTxt} rows={height} cols="50" class="px-2 bg-gray-50 border-2 border-gray-200 rounded text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-indigo-500 w-full" />
<textarea bind:value={scenarioJson.scen} rows={height} cols="50" class="px-2 bg-gray-50 border-2 border-gray-200 rounded text-gray-700 leading-tight focus:outline-none focus:bg-white focus:border-indigo-500 w-full" />
</Card>
</div>
<div class="grd-1col1">

View File

@@ -123,7 +123,7 @@
export let errorsJson;
export let rebootEsp = () => {};
//export let rebootEsp = () => {};
export let versionsList;
export let choosingVersion;