From 039903c8c28dbd13c80dea2c4f7546bb1e64d305 Mon Sep 17 00:00:00 2001 From: JOYCEQL <1449239013@qq.com> Date: Wed, 20 Nov 2024 23:10:26 +0800 Subject: [PATCH] style: editor basicPanel --- .../components/editor/basic/BasicPanel.tsx | 56 ++++++++++--------- 1 file changed, 31 insertions(+), 25 deletions(-) diff --git a/apps/fronted/src/components/editor/basic/BasicPanel.tsx b/apps/fronted/src/components/editor/basic/BasicPanel.tsx index 0194117..21aba7f 100644 --- a/apps/fronted/src/components/editor/basic/BasicPanel.tsx +++ b/apps/fronted/src/components/editor/basic/BasicPanel.tsx @@ -34,9 +34,9 @@ interface CustomFieldProps { } const itemAnimations = { - initial: { opacity: 0, y: 20 }, + initial: { opacity: 0, y: 0 }, animate: { opacity: 1, y: 0 }, - exit: { opacity: 0, y: -20 }, + exit: { opacity: 0, y: 0 }, transition: { type: "spring", stiffness: 500, damping: 50, mass: 1 } }; @@ -226,25 +226,28 @@ const BasicPanel: React.FC = () => { -
+ {/* Drag Handle */} +
-
+ +
{ @@ -259,11 +262,9 @@ const BasicPanel: React.FC = () => { theme={theme} />
-
-
- - {field.label} - +
+
+ {field.label}
{ type={field.type} />
+ @@ -296,11 +302,11 @@ const BasicPanel: React.FC = () => { }; return ( -
+ @@ -368,7 +374,7 @@ const BasicPanel: React.FC = () => { -
+ ); };