From 67beea14d644644279fcf53fe39b2c259a1f60f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A2=81=E7=81=8F?= Date: Fri, 23 Apr 2021 11:03:26 +0800 Subject: [PATCH] fixed Row classname bug in 4.5.0 --- src/components/grid/row.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/grid/row.vue b/src/components/grid/row.vue index 8ca9cac3..f49b6b59 100644 --- a/src/components/grid/row.vue +++ b/src/components/grid/row.vue @@ -45,8 +45,8 @@ `${prefixCls}`, { [`${prefixCls}-${this.type}`]: !!this.type, - [`${prefixCls}-${this.type}-${this.align}`]: !!this.align, - [`${prefixCls}-${this.type}-${this.justify}`]: !!this.justify, + [`${prefixCls}-${this.type}-${this.align}`]: !!this.align && this.type, + [`${prefixCls}-${this.type}-${this.justify}`]: !!this.justify && this.type, [`${prefixCls}-${this.align}`]: !!this.align, [`${prefixCls}-${this.justify}`]: !!this.justify, [`${this.className}`]: !!this.className,