mirror of
https://github.com/dataease/dataease.git
synced 2026-05-14 21:12:33 +08:00
fix(图表): 修复仪表盘、水波图的条件样式中,阈值区间只能输入整数的问题 #17927
This commit is contained in:
committed by
jianneng-fit2cloud
parent
d1b381674d
commit
8888675f55
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user