@gm-pc/keyboard 1.14.0 → 1.15.0-alpha.3

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gm-pc/keyboard",
3
- "version": "1.14.0",
3
+ "version": "1.15.0-alpha.3",
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.14.0",
31
- "@gm-pc/table-x": "^1.14.0",
30
+ "@gm-pc/react": "^1.15.0-alpha.3",
31
+ "@gm-pc/table-x": "^1.15.0-alpha.3",
32
32
  "classnames": "^2.2.5",
33
33
  "lodash": "^4.17.19"
34
34
  },
35
- "gitHead": "df6a59ce4c2146ba8267b47a66d4048298c671e2"
35
+ "gitHead": "0d5dfb95e6eb534617aa9bc96d361f3c89cc6972"
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.length])
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.length])
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.length])
241
+ }, [dataLength, columnKeys.join('')])
242
+
242
243
  return (
243
244
  <WrapContext.Provider value={JSON.stringify({ id, fixedWidths })}>
244
245
  {children}