feat(Form): add label-width prop

This commit is contained in:
陈嘉涵
2020-02-13 16:28:58 +08:00
parent 7a9d1d7ab6
commit 55fa975141
4 changed files with 7 additions and 3 deletions
+2 -1
View File
@@ -109,7 +109,8 @@ export default createComponent({
},
labelStyle() {
const { labelWidth } = this;
const labelWidth = this.getProp('labelWidth');
if (labelWidth) {
return { width: addUnit(labelWidth) };
}