[improvement] Field: optimize label width

This commit is contained in:
陈嘉涵
2019-04-30 16:23:02 +08:00
parent 3fbd94f345
commit dd32efd5a4
4 changed files with 6 additions and 8 deletions
+1 -4
View File
@@ -67,10 +67,7 @@ export default sfc({
const { labelWidth } = this;
if (labelWidth) {
const width = isNumber(String(labelWidth)) ? `${labelWidth}px` : labelWidth;
return {
maxWidth: width,
minWidth: width
};
return { width };
}
}
},