Skip to content

Commit 0903248

Browse files
authored
Merge pull request #80 from jinjingxuan/master
feat: 自定义title获取column数据
2 parents a178ea6 + 24872ed commit 0903248

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010

1111
---
1212

13+
## 1.0.16
14+
`2022-06-13`
15+
- Table
16+
- 🆕 列自定义 title 支持获取 column 信息
1317
## 1.0.15
1418
`2021-12-13`
1519
- Table

src/table/Th.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const prefixCls = classCreator('table')();
88

99
const titleTemplate = `
1010
<!--配置title slot-->
11-
<slot s-if="column.slots.title" name="{{column.slots.title}}" />
11+
<slot s-if="column.slots.title" name="{{column.slots.title}}" var-column="{{column}}" />
1212
<template s-else>{{column.title}}</template>
1313
`;
1414

0 commit comments

Comments
 (0)