Skip to content

Commit

Permalink
Merge pull request #727 from QingWei-Li/feat/table-doc
Browse files Browse the repository at this point in the history
Table(doc): update inline-template, #726
  • Loading branch information
Leopoldthecoder committed Oct 30, 2016
2 parents ce71cde + 9254ab9 commit 01a6bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/docs/zh-cn/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@
| type | 对应列的类型。如果设置了 `selection` 则显示多选框,如果设置了 `index` 则显示该行的索引(从 1 开始计算) | string | selection/index ||
| formatter | 用来格式化内容 | Function(row, column) |||
| show-tooltip-when-overflow | 当过长被隐藏时显示 tooltip | Boolean || false |
| inline-template | 指定该属性后可以自定义 column 模板,参考多选的时间列,通过 row 获取行信息,JSX 里通过 _self 获取当前上下文。此时不需要配置 prop 属性 |||
| inline-template | 指定该属性后可以自定义 column 模板,参考多选的时间列,通过 row 获取行信息,JSX 里通过 _self 获取当前上下文。此时不需要配置 prop 属性。总共可以获取到 `{ row(当前行), column(当前列), $index(行数), _self(当前上下文), store(table store) }` 的信息。 |||
| align | 对齐方式 | String | left, center, right | left |
| selectable | 仅对 type=selection 的列有效,类型为 Function,Function 的返回值用来决定这一行的 CheckBox 是否可以勾选 | Function(row, index) | - | - |
| reserve-selection | 仅对 type=selection 的列有效,类型为 Boolean,为 true 则代表会保留之前数据的选项,需要配合 Table 的 clearSelection 方法使用。 | Boolean | - | false |
Expand Down

0 comments on commit 01a6bd6

Please sign in to comment.