CN-1145 fix: 修改测试用例
This commit is contained in:
@@ -141,7 +141,10 @@ export function getUnitType (column) {
|
||||
|
||||
/* 单位转换,返回转换后的[value, unit],type=time时若value<1ms,返回<1ms,type=percent时若value<0.01%,返回<0.01% */
|
||||
export function valueToRangeValue (value, unitType) {
|
||||
const values = unitConvert(_.isString(value) ? Number(value) : value, unitType)
|
||||
const values = unitConvert(value, unitType)
|
||||
if (values[0] === '-') {
|
||||
return values
|
||||
}
|
||||
if (values[0] || values[0] === 0) {
|
||||
switch (unitType) {
|
||||
case unitTypes.time: {
|
||||
|
||||
Reference in New Issue
Block a user