From 64ed1aaad62ae7958dbaf3909b8b4d588a491d6b Mon Sep 17 00:00:00 2001
From: czm <2192718639@qq.com>
Date: Thu, 7 Apr 2022 11:05:20 +0800
Subject: [PATCH] 1
---
src/components/sideBar/index.module.scss | 1 +
src/pages/index/index.module.scss | 6 ++++++
src/pages/index/index.tsx | 7 ++++++-
3 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/src/components/sideBar/index.module.scss b/src/components/sideBar/index.module.scss
index ec8061b..c6bdb76 100644
--- a/src/components/sideBar/index.module.scss
+++ b/src/components/sideBar/index.module.scss
@@ -40,4 +40,5 @@
height: 100%;
}
}
+
}
\ No newline at end of file
diff --git a/src/pages/index/index.module.scss b/src/pages/index/index.module.scss
index b0dadc3..e0a6c4f 100644
--- a/src/pages/index/index.module.scss
+++ b/src/pages/index/index.module.scss
@@ -25,5 +25,11 @@
flex:1;
height: 0;
}
+ .movable{
+ position: fixed;
+ height: 100vh;
+ width: 100vh;
+ z-index: 0;
+ }
}
\ No newline at end of file
diff --git a/src/pages/index/index.tsx b/src/pages/index/index.tsx
index bfd3e07..dd95c9a 100644
--- a/src/pages/index/index.tsx
+++ b/src/pages/index/index.tsx
@@ -1,4 +1,4 @@
-import { Image, View} from '@tarojs/components'
+import { Image, MovableArea, MovableView, View} from '@tarojs/components'
import Swiper from '@/components/swiper'
import Search from '@/components/search'
import SideBar from '@/components/sideBar'
@@ -39,6 +39,11 @@ export default () => {
+
+
+ 拖动
+
+
)