|
|
@ -172,7 +172,17 @@ const syncOptions = () => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const removeRenderedOption = (index: number) => { |
|
|
|
const removeRenderedOption = (index: number) => { |
|
|
|
renderedOptions.value[index].status = 'remove' |
|
|
|
const renderedOption = renderedOptions.value[index] |
|
|
|
|
|
|
|
const option = options.value[loadedOptionAnchor.value + index] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
renderedOption.status = 'remove' |
|
|
|
|
|
|
|
option.status = 'remove' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
renderedOption.status = 'remove' |
|
|
|
|
|
|
|
if (option) { |
|
|
|
|
|
|
|
option.status = 'remove' |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
syncOptions() |
|
|
|
syncOptions() |
|
|
|
|
|
|
|
|
|
|
|
const optionId = renderedOptions.value[index]?.id |
|
|
|
const optionId = renderedOptions.value[index]?.id |
|
|
@ -193,7 +203,12 @@ const optionChanged = (changedId: string) => { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const undoRemoveRenderedOption = (index: number) => { |
|
|
|
const undoRemoveRenderedOption = (index: number) => { |
|
|
|
renderedOptions.value[index].status = undefined |
|
|
|
const renderedOption = renderedOptions.value[index] |
|
|
|
|
|
|
|
const option = options.value[loadedOptionAnchor.value + index] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
renderedOption.status = undefined |
|
|
|
|
|
|
|
option.status = undefined |
|
|
|
|
|
|
|
|
|
|
|
syncOptions() |
|
|
|
syncOptions() |
|
|
|
|
|
|
|
|
|
|
|
const optionId = renderedOptions.value[index]?.id |
|
|
|
const optionId = renderedOptions.value[index]?.id |
|
|
|