Skip to content

Commit dc9cddf

Browse files
committed
fix table scopedSlots not work when render is exist
1 parent 7fab05b commit dc9cddf

4 files changed

Lines changed: 14 additions & 2 deletions

File tree

CHANGELOG.en-US.md

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

1111
---
1212

13+
## 0.2.6
14+
15+
`2020-5-15`
16+
17+
- 🐞 fix `Table` component `scopedSlots` not work when `render` is exist
18+
1319
## 0.2.5
1420

1521
`2020-04-30`

CHANGELOG.zh-CN.md

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

1111
---
1212

13+
## 0.2.6
14+
15+
`2020-5-15`
16+
17+
- 🐞 修复 `Table` 组件中 `scopedSlots` 在有 `render` 属性时不生效的问题
18+
1319
## 0.2.5
1420

1521
`2020-4-30`

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "santd",
3-
"version": "0.2.5",
3+
"version": "0.2.6",
44
"description": "san UI design",
55
"scripts": {
66
"start": "cross-env NODE_ENV=development node scripts/preview.js",

src/table/td.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const contentTemplate = `
2121
</template>
2222
<!--配置scoped slot-->
2323
<slot
24-
s-if="column.scopedSlots.render && !column.children"
24+
s-if="column.scopedSlots.render"
2525
name="{{column.scopedSlots.render}}"
2626
var-text="{{column.scopedSlots.render === 'render' ? item[column.dataIndex] : item[column.scopedSlots.render]}}"
2727
var-record="{{item}}"

0 commit comments

Comments
 (0)