Browse Source

fix: table slots inject #102

saraka 6 years ago
parent
commit
35f1ca3303
2 changed files with 366 additions and 196 deletions
  1. 1 1
      src/components/table/index.js
  2. 365 195
      yarn.lock

+ 1 - 1
src/components/table/index.js

@@ -274,7 +274,7 @@ export default {
     })
     })
     const table = (
     const table = (
       <a-table {...{ props, scopedSlots: { ...this.$scopedSlots } }} onChange={this.loadData}>
       <a-table {...{ props, scopedSlots: { ...this.$scopedSlots } }} onChange={this.loadData}>
-        {this.$slots.default}
+        { Object.keys(this.$slots).map(name => (<template slot={name}>{this.$slots[name]}</template>)) }
       </a-table>
       </a-table>
     )
     )
 
 

File diff suppressed because it is too large
+ 365 - 195
yarn.lock


Some files were not shown because too many files changed in this diff