Skip to content

Commit 580b581

Browse files
committed
fix: 修复 Table 组件开启 expandRowByClick 后无法通过展开按钮展开的问题
1 parent d37db69 commit 580b581

2 files changed

Lines changed: 11 additions & 6 deletions

File tree

docs/changelog.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@
1010

1111
---
1212

13+
## 1.0.10
14+
`2021-07-06`
15+
- Table
16+
- 🐞 修复开启 expandRowByClick 后无法通过展开按钮展开的问题 [#60](https://github.com/ecomfe/santd/pull/60)
17+
1318
## 1.0.9
1419
`2021-07-05`
1520

1621
- PageHeader
17-
- fix: 修改pageHeader、localeProvider组件目录为中线分隔(page-header、locale-provider),解决babel-plugin-import插件引入问题[a064242](https://github.com/ecomfe/santd/commit/a064242731ccc13108d42831cd598809b736200b)
22+
- 🐞 修改 pageHeader、localeProvider 组件的目录名为短横线分隔(page-header、locale-provider),解决 babel-plugin-import 插件引入问题 [a064242](https://github.com/ecomfe/santd/commit/a064242731ccc13108d42831cd598809b736200b)
1823

1924
## 1.0.8
2025
`2021-06-16`
2126

2227
- Popconfirm
23-
- fix: 解决popconfirm组件样式丢失问题[1c2f87a](https://github.com/ecomfe/santd/commit/1c2f87a5bf3de3c415354816cd1a1dcde43e19e8)
28+
- 🐞 解决 popconfirm 组件样式丢失问题 [1c2f87a](https://github.com/ecomfe/santd/commit/1c2f87a5bf3de3c415354816cd1a1dcde43e19e8)
2429

2530
## 1.0.7
2631
`2021-06-04`

src/table/Td.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ const contentTemplate = `
1010
<!--配置展开图标-->
1111
<template s-if="isTree && columnIndex === 0">
1212
<span class="${prefixCls}-row-indent indent-level-{{item.level}}" style="padding-left: {{item.level * indentSize}}px;"></span>
13-
<span on-click="handleTreeExpand(item)" s-if="hasExpandIcon && item.collapsed !== undefined">
13+
<span on-click="stop:handleTreeExpand(item)" s-if="hasExpandIcon && item.collapsed !== undefined">
1414
<slot name="expandIcon" var-record="{{item}}"/>
1515
</span>
1616
<span
1717
s-else
1818
class="${prefixCls}-row-expand-icon ${prefixCls}-row-{{item.collapsed !== undefined ? item.collapsed ? 'collapsed' : 'expanded' : 'spaced'}}"
19-
on-click="handleTreeExpand(item)"
19+
on-click="stop:handleTreeExpand(item)"
2020
></span>
2121
</template>
2222
<!--配置scoped slot-->
@@ -60,10 +60,10 @@ export default {
6060
<template s-for="column, columnIndex in getColumns(tdColumns, item, index)">
6161
<td s-if="hasExpandedRowRender && columnIndex === 0" class="${prefixCls}-row-expand-icon-cell">
6262
<template s-if="rowExpandable(item, columnIndex)">
63-
<span on-click="handleExpandRow(item)" s-if="hasExpandIcon">
63+
<span on-click="stop:handleExpandRow(item)" s-if="hasExpandIcon">
6464
<slot name="expandIcon" var-record="{{item}}"/>
6565
</span>
66-
<span class="${prefixCls}-row-expand-icon ${prefixCls}-row-{{item.expanded ? 'expanded' : 'collapsed'}}" on-click="handleExpandRow(item)" s-else></span>
66+
<span class="${prefixCls}-row-expand-icon ${prefixCls}-row-{{item.expanded ? 'expanded' : 'collapsed'}}" on-click="stop:handleExpandRow(item)" s-else></span>
6767
</template>
6868
</td>
6969
<td s-if="column.attrs.colSpan" colspan="{{column.attrs.colSpan}}" class="{{getThClass(column)}} {{column.ellipsis ? '${prefixCls}-cell-ellipsis' : ''}}" style="{{getThStyle(column)}}">${contentTemplate}</td>

0 commit comments

Comments
 (0)