Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MakeITXIAGreatagain_front
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to JiHu GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
NJU-ITXIA
MakeITXIAGreatagain_front
Merge requests
!42
fix: 除预约界面外校区选择不展示提示文字.
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
fix: 除预约界面外校区选择不展示提示文字.
campus-fix
into
master
Overview
0
Commits
1
Pipelines
1
Changes
2
Merged
王锦朋
requested to merge
campus-fix
into
master
5 months ago
Overview
0
Commits
1
Pipelines
1
Changes
2
Expand
0
0
Merge request reports
Compare
master
master (base)
and
latest version
latest version
3233f3a9
1 commit,
5 months ago
2 files
+
6
−
4
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
src/components/form/CampusFormItem.tsx
+
3
−
1
Options
@@ -5,11 +5,13 @@ import { CampusEnum } from "@/util/enum";
interface
CampusFormItemProps
{
hasFeedback
?:
boolean
;
required
?:
boolean
;
showHint
?:
boolean
;
}
export
const
CampusFormItem
:
React
.
FC
<
CampusFormItemProps
>
=
({
hasFeedback
=
true
,
required
=
true
,
showHint
=
false
,
})
=>
{
const
[
campusInfo
,
setCampusInfo
]
=
useState
<
React
.
ReactNode
>
(
<>
@@ -73,7 +75,7 @@ export const CampusFormItem: React.FC<CampusFormItemProps> = ({
required
=
{
required
}
rules
=
{
[{
required
:
true
,
message
:
"
请选择你的校区
"
}]
}
extra
=
{
<
Alert
showHint
&&
<
Alert
type
=
"warning"
message
=
{
campusInfo
}
/>
Loading