Browse Source

fix(row): fix var declare (#324)

Co-authored-by: linkpan <linkpan@tencent.com>
plq 5 years ago
parent
commit
85f32b9c6d
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/packages/row/row.vue

+ 1 - 1
src/packages/row/row.vue

@@ -43,7 +43,7 @@ export default {
         let tag = slot[i].tag;
         if (typeof tag == 'string') {
           if (tag.indexOf('nut-col') != -1) {
-            var slotElm = slot[i].elm;
+            const slotElm = slot[i].elm;
             slotElm.style.paddingLeft = this.getGutter;
             slotElm.style.paddingRight = this.getGutter;
           }