Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sdream-ai-fe
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
侯明涛
sdream-ai-fe
Commits
dcbf2627
Commit
dcbf2627
authored
Oct 20, 2025
by
Liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:左侧推荐问部分倒入效果
parent
01ff539a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
15 deletions
+16
-15
src/pages/Home/HomeNew.tsx
+6
-6
src/pages/Home/components/QuestionList/QuestionList.tsx
+10
-9
No files found.
src/pages/Home/HomeNew.tsx
View file @
dcbf2627
...
...
@@ -186,10 +186,10 @@ export const Home: React.FC = () => {
<
div
className=
"w-full"
>
<
div
className=
"flex justify-center gap-[20px]"
>
{
/* 左侧区域 - 产品问答和您可以试着问我 */
}
<
div
className=
"flex flex-col gap-[20px] items-center overflow-y-auto scrollbar-hide"
style=
{
{
height
:
'calc(100vh - 64px)'
,
background
:
'linear-gradient(180deg, #DBF1
FF 0%, #FFFFFF 50%, #FFFFFF 100%)'
,
borderRadius
:
'24px'
}
}
>
<
div
className=
"flex flex-col gap-[20px] items-center overflow-y-auto scrollbar-hide"
style=
{
{
height
:
'calc(100vh - 64px)'
,
background
:
'linear-gradient(180deg, #F0F8
FF 0%, #FFFFFF 50%, #FFFFFF 100%)'
,
borderRadius
:
'24px'
}
}
>
{
/* <motion.div className="w-full sm:w-auto" {...getAnimationProps(2)}>
<QuestionList
questions={productQuestions.content}
...
...
@@ -203,7 +203,7 @@ export const Home: React.FC = () => {
<
QuestionList
questions=
{
otherQuestions
.
content
}
dotColor=
"#CBECFF"
background=
"linear-gradient(180deg, #
DBF1
FF 0%, #FFFFFF 50%, #FFFFFF 100%)"
background=
"linear-gradient(180deg, #
F0F8
FF 0%, #FFFFFF 50%, #FFFFFF 100%)"
height=
"388px"
title=
{
otherQuestions
.
configName
}
iconImg=
{
HomeIcon2
}
...
...
@@ -212,7 +212,7 @@ export const Home: React.FC = () => {
<
div
>
<
img
src=
{
SmartIce
}
alt=
"Smart Ice"
className=
"w-[260px] h-[330px] object-contain"
/>
</
div
>
</
div
>
</
div
>
{
/* 右侧区域 */
}
<
div
className=
"hidden sm:flex flex-1 h-full"
>
<
div
...
...
src/pages/Home/components/QuestionList/QuestionList.tsx
View file @
dcbf2627
...
...
@@ -23,23 +23,24 @@ const containerVariants = {
visible
:
{},
}
const
itemVariants
=
{
hidden
:
{
opacity
:
0
,
y
:
20
,
scale
:
0.8
},
hidden
:
{
opacity
:
0
,
x
:
60
,
scale
:
0.9
},
visible
:
(
i
:
number
)
=>
({
opacity
:
1
,
y
:
0
,
x
:
0
,
scale
:
1
,
transition
:
{
delay
:
i
*
0.
08
,
delay
:
i
*
0.
1
,
type
:
'spring'
,
stiffness
:
20
0
,
damping
:
2
0
,
mass
:
0.
8
,
stiffness
:
18
0
,
damping
:
2
5
,
mass
:
0.
9
,
},
}),
exit
:
{
opacity
:
0
,
scale
:
0.8
,
transition
:
{
duration
:
0.2
},
x
:
30
,
scale
:
0.9
,
transition
:
{
duration
:
0.15
},
},
}
...
...
@@ -150,7 +151,7 @@ const QuestionListBase: React.FC<QuestionListProps & WithAuthProps> = ({
onPress=
{
()
=>
handleClick
(
item
)
}
color=
"primary"
variant=
"light"
className=
"text-left bg-[#F
7FCFF] w-full text-[#333] rounded-[23px] data-[hover=true]:bg-[#E5F6
FF] data-[hover=true]:text-primary h-8"
className=
"text-left bg-[#F
8FBFF] w-full text-[#333] rounded-[23px] data-[hover=true]:bg-[#F0F8
FF] data-[hover=true]:text-primary h-8"
>
<
div
className=
"w-full text-nowrap text-ellipsis overflow-hidden"
>
<
span
className=
"w-[6px] h-[6px] rounded-full inline-block mr-[6px]"
style=
{
{
backgroundColor
:
dotColor
}
}
></
span
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment