Przeglądaj źródła

fix: table slots inject #102

saraka 6 lat temu
rodzic
commit
35f1ca3303
2 zmienionych plików z 366 dodań i 196 usunięć
  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>
     )
 

Plik diff jest za duży
+ 365 - 195
yarn.lock


Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików