浏览代码

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

Co-authored-by: linkpan <linkpan@tencent.com>
plq 5 年之前
父节点
当前提交
85f32b9c6d
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
         let tag = slot[i].tag;
         if (typeof tag == 'string') {
         if (typeof tag == 'string') {
           if (tag.indexOf('nut-col') != -1) {
           if (tag.indexOf('nut-col') != -1) {
-            var slotElm = slot[i].elm;
+            const slotElm = slot[i].elm;
             slotElm.style.paddingLeft = this.getGutter;
             slotElm.style.paddingLeft = this.getGutter;
             slotElm.style.paddingRight = this.getGutter;
             slotElm.style.paddingRight = this.getGutter;
           }
           }