Commit 147aa704 by 毛勇泽

修改tab

parent 13ac7a1f
......@@ -8,7 +8,7 @@ const FORMAT: string = `%{public}s, %{public}s`;
/**
* 日志工具类
*/
export class Logger {
export class Logger {
/**
* DEBUG
......
......@@ -4,7 +4,7 @@ import { BasicTable } from '../../view/BasicTable/BasicTable'
@Entry
@Component
struct AddConversionPage {
@State fontColor: string = '#182431'
@State fontColor: string = '#0FA983'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
private controller: TabsController = new TabsController()
......@@ -14,14 +14,12 @@ struct AddConversionPage {
Text(name)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.fontSize(21)
.lineHeight(22)
.margin({ top: 17, bottom: 7 })
Divider()
.strokeWidth(2)
.color('#fff')
.width(50)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
.lineHeight(36)
} .width('100%')
.height(45)
.border({ width: 2, color: 'rgb(15, 169, 131)' })
.borderRadius(3)
.backgroundColor(this.currentIndex === index ? this.fontColor : '#00000000')
}
@Builder VoucherRow() {
......@@ -270,7 +268,7 @@ struct AddConversionPage {
this.WzInfoRow()
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}.margin({left:15,right:15})
}.margin({left:15,right:15,top:15})
.onChange((index: number) => {
this.currentIndex = index
})
......
......@@ -12,7 +12,7 @@ import { BasicTable } from '../../view/BasicTable/BasicTable'
@Entry
@Component
export struct AddTemporaryInPage {
@State fontColor: string = '#182431'
@State fontColor: string = '#0FA983'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
private controller: TabsController = new TabsController()
......@@ -21,14 +21,12 @@ export struct AddTemporaryInPage {
Text(name)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.fontSize(21)
.lineHeight(22)
.margin({ bottom: 7 })
Divider()
.strokeWidth(2)
.color('#fff')
.width(50)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
.lineHeight(36)
} .width('100%')
.height(45)
.border({ width: 2, color: 'rgb(15, 169, 131)' })
.borderRadius(3)
.backgroundColor(this.currentIndex === index ? this.fontColor : '#00000000')
}
@Builder VoucherRow() {
......@@ -278,7 +276,7 @@ export struct AddTemporaryInPage {
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
.margin({left:15,right:15})
.margin({left:15,right:15,top:15})
.onChange((index: number) => {
this.currentIndex = index
})
......
......@@ -12,7 +12,7 @@ import { BasicTable } from '../../view/BasicTable/BasicTable'
@Entry
@Component
struct AddTemporaryOutPage{
@State fontColor: string = '#182431'
@State fontColor: string = '#0FA983'
@State selectedFontColor: string = '#fff'
@State currentIndex: number = 0
private controller: TabsController = new TabsController()
......@@ -21,14 +21,12 @@ struct AddTemporaryOutPage{
Text(name)
.fontColor(this.currentIndex === index ? this.selectedFontColor : this.fontColor)
.fontSize(21)
.lineHeight(22)
.margin({bottom: 7 })
Divider()
.strokeWidth(2)
.color('#fff')
.width(50)
.opacity(this.currentIndex === index ? 1 : 0)
}.width('100%')
.lineHeight(36)
} .width('100%')
.height(45)
.border({ width: 2, color: 'rgb(15, 169, 131)' })
.borderRadius(3)
.backgroundColor(this.currentIndex === index ? this.fontColor : '#00000000')
}
@Builder VoucherRow() {
......@@ -279,7 +277,7 @@ struct AddTemporaryOutPage{
}.width("100%")
}.tabBar(this.TabBuilder(1, '物资信息'))
}
.margin({left:15,right:15})
.margin({left:15,right:15,top:15})
.onChange((index: number) => {
this.currentIndex = index
})
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论