Skip to content

Commit

Permalink
docs(abc:simple-table): Update simple table docs (#69)
Browse files Browse the repository at this point in the history
  • Loading branch information
NitronPlus authored and cipchk committed May 13, 2018
1 parent 38b3d0a commit 50fc095
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/abc/simple-table/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ noResult | 无数据时显示内容 | `string | TemplateRef<void>` | -
bordered | 是否显示边框 | `boolean` | `false`
size | table大小 | `small,middle,default` | `default`
loadingDelay | 延迟显示加载效果的时间(防止闪烁) | `number` | `0`
scroll | 固定表头,纵向支持滚动,也可用于指定滚动区域的高度:`{ y: 300 }` | `{ y: number }` | -
scroll | 固定表头,纵向支持滚动,也可用于指定滚动区域的高度:`{ y: '300px' }` | `{ y: string }` | -
showSizeChanger | 是否显示pagination中改变页数 | `boolean` | `false`
pageSizeOptions | pagination中每页显示条目数下拉框值 | `number[]` | `[10, 20, 30, 40, 50]`
showQuickJumper | 是否显示pagination中快速跳转 | `boolean` | `false`
Expand Down Expand Up @@ -75,15 +75,15 @@ filterChange | Filter回调 | `EventEmitter` | -

```ts
@Component({
template: `
<simple-table #st></simple-table>
<button (click)="st.load()"></button>
<button (click)="st.reset()">重置</button>
`
template: `
<simple-table #st></simple-table>
<button (click)="st.load()"></button>
<button (click)="st.reset()">重置</button>
`
})
class TestComponent {
@ViewChild('st') comp: SimpleTableComponent;
// this.comp.load();
@ViewChild('st') comp: SimpleTableComponent;
// this.comp.load();
}
```

Expand Down

0 comments on commit 50fc095

Please sign in to comment.