-
Notifications
You must be signed in to change notification settings - Fork 495
Date picker fixed #912
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Date picker fixed #912
Changes from 52 commits
ca1c613
e4459ad
9a16248
7ce76f5
0d74040
60e568a
f8d9f87
09cef9c
fda112b
b2c7387
ac1d780
ef7ee7b
270b317
bc069c4
9e9d597
edea8bd
9ade165
79d2b62
25329ed
ec2f95f
1462024
10a84ad
b6f9646
a1565d5
7b2b8e6
a3e5ade
8a8c61f
0627814
a26aa3a
49e5606
170da48
c0643fb
c6b8e99
caf7540
90c0a84
c298053
a1d40ae
bd295da
3104a71
f573335
6281a29
9650d96
1fbc075
dc85a50
4320e20
42c6bca
cf40ead
302684f
7e56370
02b5412
aec3142
5ad60a5
0a67351
22d15b6
64eea29
a26175e
177f071
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
position: relative; | ||
outline: none; | ||
font-family: Arial, "Hiragino Sans GB", "Microsoft Yahei", "Microsoft Sans Serif", "WenQuanYi Micro Hei", sans-serif; | ||
width: 253px; | ||
width: fit-content; | ||
border: 1px solid #ccc; | ||
list-style: none; | ||
font-size: 12px; | ||
|
@@ -14,9 +14,15 @@ | |
border: 1px solid #ccc; | ||
line-height: 1.5; | ||
|
||
|
||
&-date-panel, &-date-panel-container { | ||
display: flex; | ||
} | ||
|
||
&-date-panel, &-panel { | ||
position: relative; | ||
outline: none; | ||
display: block; | ||
} | ||
|
||
&-week-number { | ||
|
@@ -46,7 +52,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 修复颜色值中的语法错误 颜色值 修复颜色值语法错误: - color: #f09f4g;
+ color: #f09f4f; 请在所有出现 Also applies to: 88-88, 111-111, 347-347 🤖 Prompt for AI Agents
|
||
} | ||
} | ||
|
||
|
@@ -79,7 +85,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
} | ||
&.@{prefixClass}-time-status:hover{ | ||
cursor: pointer; | ||
|
@@ -102,7 +108,7 @@ | |
line-height: 34px; | ||
|
||
&:hover { | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
} | ||
} | ||
|
||
|
@@ -127,6 +133,66 @@ | |
height: 217px; | ||
} | ||
|
||
&-right-panel { | ||
width: 68px; | ||
height: inherit; | ||
} | ||
|
||
&-right-panel-header { | ||
height: 34px; | ||
line-height: 34px; | ||
span { | ||
transform: rotate(-90deg); | ||
} | ||
} | ||
|
||
&-right-panel-body { | ||
height: 217px; | ||
border-left: 1px solid #ccc; | ||
overflow-y: scroll; | ||
ul { | ||
list-style: none; | ||
box-sizing: border-box; | ||
margin: 0; | ||
padding: 0; | ||
width: 100%; | ||
} | ||
ul li { | ||
text-align: center; | ||
padding: 8px 0; | ||
cursor: pointer; | ||
} | ||
ul li:hover { | ||
color: #e8bf6a; | ||
} | ||
.@{prefixClass}-selected-time { | ||
color: #f09f3f; | ||
} | ||
&::-webkit-scrollbar { | ||
width: 0; | ||
} | ||
} | ||
|
||
&-right-panel-footer { | ||
height: 39px; | ||
line-height: 34px; | ||
border-left: 1px solid #ccc; | ||
span { | ||
transform: rotate(90deg); | ||
} | ||
} | ||
|
||
&-right-panel-header, &-right-panel-footer { | ||
display: flex; | ||
justify-content: center; | ||
cursor: pointer; | ||
color: #999; | ||
font-size: 16px; | ||
span:after { | ||
content: '›'; | ||
} | ||
} | ||
|
||
table { | ||
border-collapse: collapse; | ||
max-width: 100%; | ||
|
@@ -177,25 +243,25 @@ | |
text-align: center; | ||
|
||
&:hover { | ||
background: #ebfaff; | ||
background: #fcecd9; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
&-selected-day &-date { | ||
background: tint(#3fc7fa, 80%); | ||
background: tint(#f09f3f, 80%); | ||
} | ||
|
||
&-selected-date &-date { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
&:hover { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
} | ||
} | ||
|
||
&-today &-date { | ||
border: 1px solid #3fc7fa; | ||
border: 1px solid #f09f3f; | ||
} | ||
|
||
&-disabled-cell &-date { | ||
|
@@ -278,7 +344,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
} | ||
|
||
&-disabled { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
} | ||
Comment on lines
35
to
38
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 无效的十六进制颜色值 🤖 Prompt for AI Agents
|
||
} | ||
} | ||
|
@@ -96,17 +96,17 @@ | |
text-align: center; | ||
|
||
&:hover { | ||
background: #ebfaff; | ||
background: #fcecd9; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.@{prefixClass}-decade-panel-selected-cell .@{prefixClass}-decade-panel-decade { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
|
||
&:hover { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -12,11 +12,11 @@ | |||||||||||||||||||||||||||||||||||
transform: border 0.3s cubic-bezier(0.35, 0, 0.25, 1), background 0.3s cubic-bezier(0.35, 0, 0.25, 1), box-shadow 0.3s cubic-bezier(0.35, 0, 0.25, 1); | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
&:hover { | ||||||||||||||||||||||||||||||||||||
border-color: #23c0fa; | ||||||||||||||||||||||||||||||||||||
border-color: #f09f4g; | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||
&:focus { | ||||||||||||||||||||||||||||||||||||
border-color: #23c0fa; | ||||||||||||||||||||||||||||||||||||
box-shadow: 0 0 3px #23c0fa; | ||||||||||||||||||||||||||||||||||||
border-color: #f09f4g; | ||||||||||||||||||||||||||||||||||||
box-shadow: 0 0 3px #f09f4g; | ||||||||||||||||||||||||||||||||||||
} | ||||||||||||||||||||||||||||||||||||
Comment on lines
+15
to
21
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 无效的十六进制颜色值 -&:hover {
- border-color: #f09f4g;
-}
+&:hover {
+ border-color: #f09f4f; /* 示例:将最后一位 g 改为合法的 0–F */
+}
-&:focus {
- border-color: #f09f4g;
- box-shadow: 0 0 3px #f09f4g;
-}
+&:focus {
+ border-color: #f09f4f;
+ box-shadow: 0 0 3px #f09f4f;
+} 📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents
|
||||||||||||||||||||||||||||||||||||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 修复无效的十六进制颜色代码 颜色值 应用此修复: - color: #f09f4g;
+ color: #f09f3f; 🤖 Prompt for AI Agents
|
||
} | ||
} | ||
} | ||
|
@@ -111,7 +111,7 @@ | |
text-align: center; | ||
|
||
&:hover { | ||
background: #ebfaff; | ||
background: #fcecd9; | ||
cursor: pointer; | ||
} | ||
} | ||
|
@@ -129,11 +129,11 @@ | |
} | ||
|
||
.@{prefixClass}-month-panel-selected-cell .@{prefixClass}-month-panel-month { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
|
||
&:hover { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
} | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
|
||
&:hover { | ||
cursor: pointer; | ||
color: #23c0fa; | ||
color: #f09f4g; | ||
} | ||
Comment on lines
39
to
42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 无效的十六进制颜色值 🤖 Prompt for AI Agents
|
||
} | ||
} | ||
|
@@ -110,25 +110,17 @@ | |
text-align: center; | ||
|
||
&:hover { | ||
background: #ebfaff; | ||
background: #fcecd9; | ||
cursor: pointer; | ||
} | ||
} | ||
|
||
.@{prefixClass}-year-panel-selected-cell .@{prefixClass}-year-panel-year { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
|
||
&:hover { | ||
background: #3fc7fa; | ||
background: #f09f3f; | ||
color: #fff; | ||
} | ||
} | ||
|
||
.@{prefixClass}-year-panel-last-decade-cell, .@{prefixClass}-year-panel-next-decade-cell { | ||
.@{prefixClass}-year-panel-year{ | ||
user-select: none; | ||
-webkit-user-select: none; | ||
color: rgba(0, 0, 0, 0.25); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
修复无效的十六进制颜色值
颜色值
#f09f4g
包含无效字符 'g',这会导致 CSS 解析错误。十六进制颜色值只能包含 0-9 和 A-F 字符。建议修复为有效的十六进制颜色值:
📝 Committable suggestion
🤖 Prompt for AI Agents