소스 검색

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


이 변경점에서 너무 많은 파일들이 변경되어 몇몇 파일들은 표시되지 않았습니다.