From 4ce50704f312833fc609e555ab610b264e900653 Mon Sep 17 00:00:00 2001 From: lb Date: Wed, 1 Nov 2023 14:27:01 +0800 Subject: [PATCH] update useSlider --- src/hooks/useSlider.js | 2 +- src/pages/index.jsx | 42 +++++++++++++++++++++--------------------- 2 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/hooks/useSlider.js b/src/hooks/useSlider.js index 7accf0b..9afdd20 100644 --- a/src/hooks/useSlider.js +++ b/src/hooks/useSlider.js @@ -44,5 +44,5 @@ export default function useSlider(defaultSize) { }; }, [value]); - return { styles, setValue, Slider }; + return { styles, setValue }; } diff --git a/src/pages/index.jsx b/src/pages/index.jsx index d339699..a67393d 100644 --- a/src/pages/index.jsx +++ b/src/pages/index.jsx @@ -6,36 +6,36 @@ import BottomBar from '../components/模块组件/总览/Bottom'; import RightBar from '../components/模块组件/总览/RightSide'; import CenterTopData from '../components/模块组件/总览/CenterTop'; import { SocketContextProvider } from '../store/socket-data-provider'; -import useSlider from '../hooks/useSlider'; +import useSlider, { Slider } from '../hooks/useSlider'; import V3DBG from '../assets/V3DBG.png'; // import V3D from './V3D'; export default function index() { - const { styles, setValue, Slider } = useSlider(75); + const { styles, setValue } = useSlider(75); return ( - // - -
- -
- -
-
- -
- 图片加载错误 -
{/* */}
-
- + <> + +
+ +
+ +
+
+ +
+ 图片加载错误 +
{/* */}
+
+ +
+
-
-
- - - // + + + ); }