Commit 8518b48c authored by zhangwenshuai's avatar zhangwenshuai

update input detail format

parent 453e65d5
......@@ -14,7 +14,7 @@ const initValue = (val) => {
export const GetFormatter = {
INPUT: (val) => {
const newValue = initValue(val);
return newValue ? newValue[0].value : undefined;
return newValue ? newValue[0].text || newValue[0].value : undefined;
},
SEARCH: (val) => {
const newValue = initValue(val);
......@@ -101,7 +101,7 @@ export const GetFormatter = {
if (unit && unit.code === 'wan') {
let formateVal = Number((newValue[0] || {}).value);
formateVal = formateVal ? formateVal / 10000 : formateVal;
newValue = [{ value: formateVal, text: formateVal }]
newValue = [{ value: formateVal, text: formateVal }];
}
if (precision >= 0 && isNumber(newValue[0].value)) {
return Number(newValue[0].value).toFixed(precision);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment