Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
M
MobileInternet Client
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
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
Code review analytics
Issue analytics
Insights
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
mobileInternetProject
MobileInternet Client
Commits
22021790
Commit
22021790
authored
2 months ago
by
沈 芳
Browse files
Options
Downloads
Patches
Plain Diff
dateselect
parent
421c919b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
entry/src/main/ets/view/AddItem.ets
+6
-6
6 additions, 6 deletions
entry/src/main/ets/view/AddItem.ets
with
6 additions
and
6 deletions
entry/src/main/ets/view/AddItem.ets
+
6
−
6
View file @
22021790
...
@@ -10,10 +10,10 @@ interface SysTimeResponse {
...
@@ -10,10 +10,10 @@ interface SysTimeResponse {
}
}
@Component
@Component
export default struct AddItem {
export default struct AddItem {
@Consume('localPageStack') LocalPageStack: NavPathStack
@Consume('localPageStack') LocalPageStack: NavPathStack
private selectedTime: Date = new Date('2022-07-22T08:00:00')
selectedDate: Date = new Date("2025-1-18")
selectedDate: Date = new Date("2010-1-1")
@State itemName: string = ''
@State itemName: string = ''
@State itemDisc: string = ''
@State itemDisc: string = ''
@State isMilitaryTime: boolean = false
@State isMilitaryTime: boolean = false
...
@@ -121,14 +121,14 @@ export default struct AddItem {
...
@@ -121,14 +121,14 @@ export default struct AddItem {
}
}
.margin({ top: CommonConstants.list_margin_top })
.margin({ top: CommonConstants.list_margin_top })
.width(CommonConstants.list_width)
.width(CommonConstants.list_width)
.height('
1
0vp')
.height('
2
0vp')
.borderRadius(CommonConstants.border_radius)
.borderRadius(CommonConstants.border_radius)
.justifyContent(FlexAlign.Start)
.justifyContent(FlexAlign.Start)
Row() {
Row() {
TextArea({ placeholder: '请输入事项描述' })
TextArea({ placeholder: '请输入事项描述' })
.width('90%')
.width('90%')
.height(
CommonConstants.input_disc_height
)
.height(
'100%'
)
.margin({ left: CommonConstants.input_margin_left })
.margin({ left: CommonConstants.input_margin_left })
.backgroundColor('#EDEDED') // 设置背景透明
.backgroundColor('#EDEDED') // 设置背景透明
.caretColor(Color.Blue) // 光标颜色
.caretColor(Color.Blue) // 光标颜色
...
@@ -141,7 +141,7 @@ export default struct AddItem {
...
@@ -141,7 +141,7 @@ export default struct AddItem {
}
}
.margin({ top: CommonConstants.list_margin_top })
.margin({ top: CommonConstants.list_margin_top })
.width(CommonConstants.list_width)
.width(CommonConstants.list_width)
.height('
40
0vp')
.height('
35
0vp')
.borderRadius(CommonConstants.border_radius)
.borderRadius(CommonConstants.border_radius)
.justifyContent(FlexAlign.Center)
.justifyContent(FlexAlign.Center)
.alignItems(VerticalAlign.Top)
.alignItems(VerticalAlign.Top)
...
@@ -176,7 +176,7 @@ export default struct AddItem {
...
@@ -176,7 +176,7 @@ export default struct AddItem {
.width(CommonConstants.list_width)
.width(CommonConstants.list_width)
.height('80vp')
.height('80vp')
.borderRadius(CommonConstants.border_radius)
.borderRadius(CommonConstants.border_radius)
.justifyContent(FlexAlign.
Start
)
.justifyContent(FlexAlign.
End
)
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment