@gm-pc/react 1.10.4 → 1.10.9
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/react",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"description": "观麦前端基础组件库",
|
|
5
5
|
"author": "liyatang <liyatang@qq.com>",
|
|
6
6
|
"homepage": "https://github.com/gmfe/gm-pc#readme",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"dependencies": {
|
|
25
25
|
"@gm-common/hooks": "^2.10.0",
|
|
26
26
|
"@gm-common/tool": "^2.10.0",
|
|
27
|
-
"@gm-pc/locales": "^1.10.
|
|
27
|
+
"@gm-pc/locales": "^1.10.9",
|
|
28
28
|
"big.js": "^6.0.1",
|
|
29
29
|
"classnames": "^2.2.5",
|
|
30
30
|
"lodash": "^4.17.19",
|
|
@@ -48,5 +48,5 @@
|
|
|
48
48
|
"react-router-dom": "^5.2.0",
|
|
49
49
|
"react-window": "^1.8.5"
|
|
50
50
|
},
|
|
51
|
-
"gitHead": "
|
|
51
|
+
"gitHead": "9ebae12dfdc811a2c4f973c40cd38501cb109b3c"
|
|
52
52
|
}
|
|
@@ -55,7 +55,6 @@ const VBrowserContainer: FC<{ className?: string }> = observer(
|
|
|
55
55
|
if (!wrapper) return
|
|
56
56
|
wrapper.scrollTo({
|
|
57
57
|
left: clamp(wrapper.scrollLeft + offset, 0, wrapper.scrollWidth),
|
|
58
|
-
behavior: 'smooth',
|
|
59
58
|
})
|
|
60
59
|
}
|
|
61
60
|
// #endregion
|
|
@@ -94,7 +93,7 @@ const VBrowserContainer: FC<{ className?: string }> = observer(
|
|
|
94
93
|
// }}
|
|
95
94
|
onMouseEnter={() => {
|
|
96
95
|
leftInterval.current = setInterval(() => {
|
|
97
|
-
_handleScroll(-
|
|
96
|
+
_handleScroll(-1)
|
|
98
97
|
}, 0) as any
|
|
99
98
|
}}
|
|
100
99
|
onMouseLeave={() => {
|
|
@@ -171,7 +170,7 @@ const VBrowserContainer: FC<{ className?: string }> = observer(
|
|
|
171
170
|
// }}
|
|
172
171
|
onMouseEnter={() => {
|
|
173
172
|
rightInterval.current = setInterval(() => {
|
|
174
|
-
_handleScroll(+
|
|
173
|
+
_handleScroll(+1)
|
|
175
174
|
}, 0) as any
|
|
176
175
|
}}
|
|
177
176
|
onMouseLeave={() => {
|