generated from VLADIMIR/template_frontend
up
This commit is contained in:
@@ -248,6 +248,13 @@ function markScreenPlanDirty() {
|
||||
screenPlanDirty.value = true
|
||||
}
|
||||
|
||||
function updateScreenPlanText(index: number, value: string | null) {
|
||||
const step = screenPlanDraft.value[index]
|
||||
if (!step) return
|
||||
step.text = value || ''
|
||||
screenPlanDirty.value = true
|
||||
}
|
||||
|
||||
async function saveScreenPlan() {
|
||||
if (screenPlanSaving.value) return
|
||||
screenPlanSaving.value = true
|
||||
@@ -1093,11 +1100,11 @@ useSimplePolling(() => {
|
||||
/>
|
||||
<n-input
|
||||
v-if="step.mode === 'SCREEN_MODE_TEXT'"
|
||||
v-model:value="step.text"
|
||||
:value="step.text"
|
||||
size="small"
|
||||
placeholder="Текст экрана"
|
||||
style="min-width: 240px"
|
||||
@update:value="markScreenPlanDirty"
|
||||
@update:value="(value) => updateScreenPlanText(index, value)"
|
||||
/>
|
||||
<template v-if="step.mode === 'SCREEN_MODE_TIMER'">
|
||||
<n-input
|
||||
|
||||
Reference in New Issue
Block a user