@gm-pc/keyboard 1.15.0-alpha.0 → 1.15.0
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/package.json +4 -4
- package/src/core/wrap.tsx +4 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gm-pc/keyboard",
|
|
3
|
-
"version": "1.15.0
|
|
3
|
+
"version": "1.15.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"author": "liyatang <liyatang@qq.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/gm-pc#readme",
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@gm-common/tool": "^2.10.0",
|
|
30
|
-
"@gm-pc/react": "^1.15.0
|
|
31
|
-
"@gm-pc/table-x": "^1.15.0
|
|
30
|
+
"@gm-pc/react": "^1.15.0",
|
|
31
|
+
"@gm-pc/table-x": "^1.15.0",
|
|
32
32
|
"classnames": "^2.2.5",
|
|
33
33
|
"lodash": "^4.17.19"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "d167b49b1573d4bb6cef18d2d414b13c15bd9977"
|
|
36
36
|
}
|
package/src/core/wrap.tsx
CHANGED
|
@@ -138,7 +138,7 @@ const Wrap: FC<WrapProps> = ({
|
|
|
138
138
|
(handleDirection as any) as EventListener
|
|
139
139
|
)
|
|
140
140
|
}
|
|
141
|
-
}, [dataLength, columnKeys.
|
|
141
|
+
}, [dataLength, columnKeys.join('')])
|
|
142
142
|
|
|
143
143
|
// 处理 Enter,依赖 dataLength 的变动
|
|
144
144
|
useEffect(() => {
|
|
@@ -195,7 +195,7 @@ const Wrap: FC<WrapProps> = ({
|
|
|
195
195
|
(handleEnter as any) as EventListener
|
|
196
196
|
)
|
|
197
197
|
}
|
|
198
|
-
}, [dataLength, columnKeys.
|
|
198
|
+
}, [dataLength, columnKeys.join('')])
|
|
199
199
|
|
|
200
200
|
// 处理 Tab 键
|
|
201
201
|
useEffect(() => {
|
|
@@ -238,7 +238,8 @@ const Wrap: FC<WrapProps> = ({
|
|
|
238
238
|
(handleTab as any) as EventListener
|
|
239
239
|
)
|
|
240
240
|
}
|
|
241
|
-
}, [dataLength, columnKeys.
|
|
241
|
+
}, [dataLength, columnKeys.join('')])
|
|
242
|
+
|
|
242
243
|
return (
|
|
243
244
|
<WrapContext.Provider value={JSON.stringify({ id, fixedWidths })}>
|
|
244
245
|
{children}
|