fix(图表): 修复仪表盘、水波图的条件样式中,阈值区间只能输入整数的问题 #17927

This commit is contained in:
jianneng-fit2cloud
2026-02-05 12:21:39 +08:00
committed by jianneng-fit2cloud
parent d1b381674d
commit 8888675f55

View File

@@ -75,7 +75,7 @@ const changeThreshold = () => {
const changeSplitThreshold = (threshold: string) => {
// check input
if (threshold) {
const regex = /^(\d+)(,\d+)*$/
const regex = /^(\d+(?:\.\d+)?)(,\d+(?:\.\d+)?)*$/
if (!regex.test(threshold)) {
ElMessage.error(t('chart.gauge_threshold_format_error'))
return