Parcourir la source

fix: table slots inject #102

saraka il y a 6 ans
Parent
commit
35f1ca3303
2 fichiers modifiés avec 366 ajouts et 196 suppressions
  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 = (
       <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>
     )
 

Fichier diff supprimé car celui-ci est trop grand
+ 365 - 195
yarn.lock


Certains fichiers n'ont pas été affichés car il y a eu trop de fichiers modifiés dans ce diff