浏览代码

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


部分文件因为文件数量过多而无法显示