Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
J
jump_hm_warehouse
概览
Overview
Details
Activity
Cycle Analytics
版本库
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
问题
0
Issues
0
列表
Board
标记
里程碑
合并请求
0
Merge Requests
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
Snippets
成员
Members
Collapse sidebar
Close sidebar
活动
图像
聊天
创建新问题
作业
提交
Issue Boards
Open sidebar
毛勇泽
jump_hm_warehouse
Commits
3fbda34e
Commit
3fbda34e
authored
Jan 15, 2024
by
陈桂东
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
b7c3c872
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
34 行增加
和
28 行删除
+34
-28
DirectConnect.ets
features/DirectConnect/src/main/ets/components/DirectConnect.ets
+34
-28
empty.gif
features/DirectConnect/src/main/resources/base/media/empty.gif
+0
-0
没有找到文件。
features/DirectConnect/src/main/ets/components/DirectConnect.ets
View file @
3fbda34e
@Extend(Button) function CommonButtonStyle() {
.borderWidth(2)
.borderColor('#0fa983')
...
...
@@ -7,42 +6,43 @@
.borderRadius(10)
.type(ButtonType.Normal)
.height(30)
.margin({ left: 10,right: 10 })
.margin({ left: 10,
right: 10 })
.stateEffect(true)
}
@Entry
@Component
export struct DirectConnect {
@State message: string = 'DirectConnect'
@Builder renderTop() {
Column() {
Row() {
Divider()
.vertical(true)
.height(14)
.strokeWidth(3)
.color('#19ac88')
.opacity(0.6)
.margin({ left: 8, right: 8 })
Text("扫描信息")
.fontWeight(FontWeight.Medium)
.fontSize(14)
}
Flex({ alignItems: ItemAlign.Start, direction: FlexDirection.Column }) {
Row() {
Divider()
.vertical(true)
.height(14)
.strokeWidth(3)
.color('#19ac88')
.opacity(0.6)
.margin({ left: 8, right: 8 })
Text("扫描信息")
.fontWeight(FontWeight.Medium)
.fontSize(14)
}.padding({ top: 8, bottom: 8 })
Row() {
Text("连接状态:").fontSize(20
)
Text("未连接").fontColor("#22b08d").fontSize(21
)
}.padding({ top: 8, bottom: 8
})
Row() {
Text("连接状态:").fontSize(18
)
Text("未连接").fontColor("#22b08d").fontSize(19
)
}.padding({ top: 8, bottom: 8 }).margin({ left: 20
})
Row() {
Text("扫描信息:").fontSize(18)
Text("请扫描二维码").fontSize(19)
}.padding({ top: 8, bottom: 8 })
Row() {
Text("扫描信息:").fontSize(16)
Text("请扫描二维码").fontSize(18)
}.padding({ top: 8, bottom: 8 }).margin({ left: 20 })
}
}
.backgroundColor("#fff")
.height("20%")
.alignItems(HorizontalAlign.Start)
.height("15%")
.width("100%")
.margin({ top: 25 })
.borderRadius(15)
...
...
@@ -73,8 +73,13 @@ export struct DirectConnect {
}
}
}.margin({ top: 12 })
Column(){
Image($r("app.media.empty")).width('50%')
Text("暂无历史扫描信息").fontSize(20)
}.margin({top:100})
}
.height("7
0
%")
.height("7
5
%")
.width("100%")
.backgroundColor("#fff")
.margin({ top: 25 })
...
...
@@ -84,10 +89,11 @@ export struct DirectConnect {
build() {
Column() {
this.renderTop()
this.renderBottom()
// BasicTable()
}.padding({ left: 20, right: 20 }).width("100%").height("100%").linearGradient({
}.padding({ left: 20, right: 20 }).height("100%").linearGradient({
direction: GradientDirection.RightBottom,
repeating: true,
colors: [[0x36a3c0, 0.0], [0x97c6a6, 1.0], [0xc7d799, 2.0]]
...
...
features/DirectConnect/src/main/resources/base/media/empty.gif
0 → 100644
View file @
3fbda34e
差异被折叠。
点击展开。
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论