Skip to content
Snippets Groups Projects
Commit 22021790 authored by 沈 芳's avatar 沈 芳
Browse files

dateselect

parent 421c919b
No related branches found
No related tags found
No related merge requests found
...@@ -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('10vp') .height('20vp')
.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('400vp') .height('350vp')
.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)
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment