Purpose 9 months ago
parent
commit
4e2a6bde1a
2 changed files with 6 additions and 0 deletions
  1. 2 0
      src/assets/el-style.scss
  2. 4 0
      src/utils/BaseCurdList.js

+ 2 - 0
src/assets/el-style.scss

@@ -50,6 +50,8 @@
   }
 
   .el-table__fixed {
+    box-shadow: none !important;
+
     &:before {
       background-color: var(--table-border-color);
     }

+ 4 - 0
src/utils/BaseCurdList.js

@@ -24,11 +24,15 @@ export default (target, hasPagination = true) => ({
           .then(data => {
             this.total = data.count
             this.data = Object.freeze(bindPrototype(data.list, target))
+            setTimeout(() => {
+              this.$refs.table && this.$refs.table.doLayout()
+            }, 0)
           }).catch(console.error).finally(() => {})
       } else {
         this.$$request(target.$$api.getList, this.query).then(list => {
           this.total = list.length
           this.data = Object.freeze(bindPrototype(Object.freeze(list), target))
+          this.$refs.table && this.$refs.table.doLayout()
         }).catch(console.error).finally(() => {})
       }
     },