@hzab/edit-table 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,4 +1,8 @@
1
- # @hzab/edit-table@0.0.2
1
+ # @hzab/edit-table@0.1.1
2
+
3
+ fix: 无数据时取消聚焦框
4
+
5
+ # @hzab/edit-table@0.1.0
2
6
 
3
7
  feat: 组件优化,批量提交
4
8
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hzab/edit-table",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "",
5
5
  "main": "src",
6
6
  "scripts": {
package/src/index.tsx CHANGED
@@ -363,6 +363,7 @@ export default function CellEditTable(props: CellEditTableProps) {
363
363
  <ReactGrid
364
364
  ref={gridRef}
365
365
  rows={loading ? initRowsRef.current : rows}
366
+ key={dataSource?.length == 0 ? 0 : 1}
366
367
  columns={tableColumns}
367
368
  onCellsChanged={handleCellsChanged}
368
369
  enableFillHandle={true}