Browse Source

Table: Change debounce invoke atBegin.

Liril 8 năm trước cách đây
mục cha
commit
5f5ae1408e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      packages/table/src/table.vue

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

@@ -244,7 +244,7 @@
 
     created() {
       this.tableId = 'el-table_' + tableIdSeed + '_';
-      this.debouncedLayout = debounce(50, () => this.doLayout());
+      this.debouncedLayout = debounce(50, true, () => this.doLayout());
     },
 
     computed: {