瀏覽代碼

fix: table slots inject #102

saraka 6 年之前
父節點
當前提交
35f1ca3303
共有 2 個文件被更改,包括 366 次插入196 次删除
  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>
     )
 

文件差異過大導致無法顯示
+ 365 - 195
yarn.lock


部分文件因文件數量過多而無法顯示