This commit is contained in:
Fine 2024-10-18 13:18:34 +08:00
parent 6580e8abc0
commit 431122c139

View File

@ -15,7 +15,7 @@ limitations under the License. -->
<template>
<div>
<span class="label">{{ t("valueMappings") }}</span>
<span class="label red">{{ t("mappingTip") }} ^-?(0|[1-9][0-9]*|2)(\\.0+)?$</span>
<span class="label red">{{ t("mappingTip") }} ^-?(0(\.[0-9]+)?|1(\.0+)?)$</span>
</div>
<div v-for="(key, index) in keys" :key="index" class="mb-10 flex-h">
<div class="content-decoration" contenteditable="true" @blur="changeKeys($event, index)">
@ -55,7 +55,7 @@ limitations under the License. -->
valueMappings.value[params] = valueMappings.value[list[index]];
}
delete valueMappings.value[list[index]];
keys.value = valueMappings.value.length ? Object.keys(valueMappings.value) : [""];
keys.value = Object.keys(valueMappings.value);
updateConfig();
}