Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
064b2ce6
authored
Mar 25, 2026
by
Archer
Committed by
GitHub
Mar 25, 2026
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: ui (#6642)
parent
0ce410d7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
52 additions
and
7 deletions
+52
-7
packages/web/components/common/DateRangePicker/index.tsx
+27
-4
packages/web/components/common/DateTimePicker/index.tsx
+25
-3
No files found.
packages/web/components/common/DateRangePicker/index.tsx
View file @
064b2ce6
...
@@ -89,20 +89,42 @@ const DateRangePicker = ({
...
@@ -89,20 +89,42 @@ const DateRangePicker = ({
<
Card
<
Card
position=
{
'absolute'
}
position=
{
'absolute'
}
zIndex=
{
1
}
zIndex=
{
1
}
css=
{
{
p=
{
3
}
'--rdp-background-color'
:
'#d6e8ff'
,
'--rdp-accent-color'
:
'#0000ff'
}
}
{
...
(
popPosition
===
'
top
'
{
...
(
popPosition
===
'
top
'
?
{
?
{
bottom
:
'40
px
'
bottom
:
'40
px
'
}
}
:
{})}
:
{})}
>
>
<
Box
sx=
{
{
'.rdp-day_button:hover:not(:disabled)'
:
{
backgroundColor
:
'#E1EAFF'
},
'.rdp-range_start .rdp-day_button, .rdp-range_end .rdp-day_button'
:
{
backgroundColor
:
'#3370FF'
,
color
:
'white'
,
border
:
'none'
},
'.rdp-range_start .rdp-day_button:hover, .rdp-range_end .rdp-day_button:hover'
:
{
backgroundColor
:
'#2860E0'
},
'.rdp-button_previous:hover, .rdp-button_next:hover'
:
{
backgroundColor
:
'#F0F4FF'
,
borderRadius
:
'6px'
}
}
}
>
<
DayPicker
<
DayPicker
locale=
{
zhCN
}
locale=
{
zhCN
}
id=
"test"
id=
"test"
mode=
"range"
mode=
"range"
style=
{
{
'--rdp-accent-color'
:
'#3370FF'
,
'--rdp-accent-background-color'
:
'#E1EAFF'
}
as
React
.
CSSProperties
}
defaultMonth=
{
defaultDate
.
to
}
defaultMonth=
{
defaultDate
.
to
}
selected=
{
range
}
selected=
{
range
}
disabled=
{
[
disabled=
{
[
...
@@ -153,6 +175,7 @@ const DateRangePicker = ({
...
@@ -153,6 +175,7 @@ const DateRangePicker = ({
</
Flex
>
</
Flex
>
}
}
/>
/>
</
Box
>
</
Card
>
</
Card
>
)
}
)
}
</
Box
>
</
Box
>
...
...
packages/web/components/common/DateTimePicker/index.tsx
View file @
064b2ce6
...
@@ -136,14 +136,35 @@ const DateTimePicker = ({
...
@@ -136,14 +136,35 @@ const DateTimePicker = ({
top=
{
`${position.top}px`
}
top=
{
`${position.top}px`
}
left=
{
`${position.left}px`
}
left=
{
`${position.left}px`
}
zIndex=
{
1500
}
zIndex=
{
1500
}
css=
{
{
p=
{
3
}
'--rdp-background-color'
:
'#d6e8ff'
,
>
'--rdp-accent-color'
:
'#0000ff'
<
Box
sx=
{
{
'.rdp-day_button:hover:not(:disabled)'
:
{
backgroundColor
:
'#E1EAFF'
},
'.rdp-selected .rdp-day_button'
:
{
backgroundColor
:
'#3370FF'
,
color
:
'white'
,
border
:
'none'
},
'.rdp-selected .rdp-day_button:hover'
:
{
backgroundColor
:
'#2860E0'
},
'.rdp-button_previous:hover, .rdp-button_next:hover'
:
{
backgroundColor
:
'#F0F4FF'
,
borderRadius
:
'6px'
}
}
}
}
}
>
>
<
DayPicker
<
DayPicker
locale=
{
zhCN
}
locale=
{
zhCN
}
mode=
"single"
mode=
"single"
style=
{
{
'--rdp-accent-color'
:
'#3370FF'
}
as
React
.
CSSProperties
}
defaultMonth=
{
selectedDate
}
defaultMonth=
{
selectedDate
}
selected=
{
selectedDate
}
selected=
{
selectedDate
}
disabled=
{
disabled
}
disabled=
{
disabled
}
...
@@ -153,6 +174,7 @@ const DateTimePicker = ({
...
@@ -153,6 +174,7 @@ const DateTimePicker = ({
setShowSelected
(
false
);
setShowSelected
(
false
);
}
}
}
}
/>
/>
</
Box
>
</
Card
>
</
Card
>
</
Portal
>
</
Portal
>
)
}
)
}
...
...
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