Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ae39c5 commit e78af6fCopy full SHA for e78af6f
CHANGELOG.zh_CN.md
@@ -5,6 +5,8 @@
5
- **Table** 修复分页抖动问题
6
- **Upload** 确保携带自定义参数
7
- **Dropdown** 修复 popConfirm 的图标显示问题
8
+- **Table** 修复树形表格的编辑事件不正常的问题
9
+- **Table** 修复当表格数据为空时,getDataSource 返回的值不是表格所使用的数据源的问题
10
11
## 2.5.0(2021-06-20)
12
src/components/Table/src/hooks/useDataSource.ts
@@ -113,7 +113,7 @@ export function useDataSource(
113
const getDataSourceRef = computed(() => {
114
const dataSource = unref(dataSourceRef);
115
if (!dataSource || dataSource.length === 0) {
116
- return [];
+ return unref(dataSourceRef);
117
}
118
if (unref(getAutoCreateKey)) {
119
const firstItem = dataSource[0];
0 commit comments