Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
8e6a507f
X
Xts Acts
项目概览
OpenHarmony
/
Xts Acts
1 年多 前同步成功
通知
9
Star
22
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
Xts Acts
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
8e6a507f
编写于
5月 22, 2023
作者:
S
sunjiakun
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix_xts_failed
Signed-off-by:
N
sunjiakun
<
sunjiakun3@huawei.com
>
上级
7b7a3d41
变更
10
展开全部
隐藏空白更改
内联
并排
Showing
10 changed file
with
729 addition
and
937 deletion
+729
-937
arkui/ace_ets_components_ux/ace_ets_component_datepicker/src/main/ets/TestAbility/pages/Index.ets
...onent_datepicker/src/main/ets/TestAbility/pages/Index.ets
+18
-0
arkui/ace_ets_components_ux/ace_ets_component_datepicker/src/main/ets/test/DatePicker.ets
...ets_component_datepicker/src/main/ets/test/DatePicker.ets
+157
-137
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/Index.ets
...mponent_progress/src/main/ets/TestAbility/pages/Index.ets
+8
-94
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progress.ets
...ace_ets_component_progress/src/main/ets/test/progress.ets
+15
-359
arkui/ace_ets_components_ux/ace_ets_component_tabs/src/main/ets/TestAbility/pages/Index.ets
...s_component_tabs/src/main/ets/TestAbility/pages/Index.ets
+44
-0
arkui/ace_ets_components_ux/ace_ets_component_tabs/src/main/ets/test/Tabs.ets
...ents_ux/ace_ets_component_tabs/src/main/ets/test/Tabs.ets
+132
-65
arkui/ace_ets_components_ux/ace_ets_component_textpicker/src/main/ets/TestAbility/pages/Index.ets
...onent_textpicker/src/main/ets/TestAbility/pages/Index.ets
+12
-0
arkui/ace_ets_components_ux/ace_ets_component_textpicker/src/main/ets/test/TextPicker.ets
...ets_component_textpicker/src/main/ets/test/TextPicker.ets
+165
-141
arkui/ace_ets_components_ux/ace_ets_component_timepicker/src/main/ets/TestAbility/pages/Index.ets
...onent_timepicker/src/main/ets/TestAbility/pages/Index.ets
+13
-0
arkui/ace_ets_components_ux/ace_ets_component_timepicker/src/main/ets/test/TimePicker.ets
...ets_component_timepicker/src/main/ets/test/TimePicker.ets
+165
-141
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_datepicker/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
8e6a507f
...
...
@@ -27,6 +27,10 @@ struct DatePickerExample {
@State textStyle: PickerTextStyle = {color:Color.Red,font:{size:'10px',weight:FontWeight.Normal}}
@State selectedTextStyle: PickerTextStyle = {color:Color.Blue,font:{size:'20px',weight:FontWeight.Bold}}
@State disappearTextStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title3"),weight:FontWeight.Lighter}}
@State textStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title2"),weight:FontWeight.Normal}}
@State selectedTextStyleDefault: PickerTextStyle ={color:$r("sys.color.ohos_id_color_text_primary_activated"),font:{size:$r("sys.float.ohos_id_text_size_headline8"),weight:FontWeight.Bold}}
private stateChangCallBack = (eventData) => {
console.info("select page state change called:" + JSON.stringify(eventData));
if (eventData != null) {
...
...
@@ -73,6 +77,20 @@ struct DatePickerExample {
.onChange((date: DatePickerResult) => {
console.info( 'select current date is: ' + JSON.stringify(date))
})
DatePicker({
start: new Date('1970-1-1'),
end: new Date('2100-1-1'),
selected: this.selectedDate
})
.lunar(true)
.disappearTextStyle(this.disappearTextStyleDefault)
.textStyle(this.textStyleDefault)
.selectedTextStyle(this.selectedTextStyleDefault)
.key('datePickerDefault')
.onChange((date: DatePickerResult) => {
console.info( 'select current date is: ' + JSON.stringify(date))
})
}
}
}
\ No newline at end of file
arkui/ace_ets_components_ux/ace_ets_component_datepicker/src/main/ets/test/DatePicker.ets
浏览文件 @
8e6a507f
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
8e6a507f
...
...
@@ -22,6 +22,7 @@ import testsuite from '../../test/List.test'
@Component
struct progressTest {
@State progress: ProgressMask = new ProgressMask(10.0, 100.0, 0x01006CDE);
@State progress_default: ProgressMask = new ProgressMask(10.0, 100.0, $r('sys.color.ohos_id_color_mask_regular'));
aboutToAppear(){
var abilityDelegator: any
abilityDelegator = AbilityDelegatorRegistry.getAbilityDelegator()
...
...
@@ -44,6 +45,13 @@ struct progressTest {
.backgroundColor(Color.Pink)
.width('500px').height('280px')
}
ListItem() {
Image($r('app.media.icon'))
.key("ArkUX_Stage_Progress_updateColor_default")
.mask(this.progress_default)
.backgroundColor(Color.Pink)
.width('500px').height('280px')
}
ListItem() {
Button("updateColor_restore")
.key("ArkUX_Stage_Progress_updateColor_restore")
...
...
@@ -191,100 +199,6 @@ struct progressTest {
.fontSize(10)
}
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0100")
.borderColor(0x00ff00)
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0200")
.borderColor('#fffd0000')
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0300")
.borderColor("rgb(138,43,226)")
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0400")
.borderColor(Color.Pink)
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0500")
.borderColor($r("app.color.Progress_borderColor"))
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0600")
.borderColor("")
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0700")
.borderColor(null)
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0800")
.borderColor(undefined)
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_0900")
.borderColor("rgb(138,43,226)")
.borderColor("#FFFD0000")
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_1000")
.borderColor(Color.Pink)
.borderColor("")
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_1100")
.borderColor('bgr(138,43,226)')
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_1200")
.borderColor(0x00ff00)
.backgroundColor(Color.Pink)
.width('500px')
.height('50px')
}
ListItem() {
Progress({ value: 20, total: 150, type: ProgressType.Capsule })
.key("ArkUX_Stage_Progress_borderColor_1300")
.width('500px')
.height('50px')
}
}
}
.width('100%')
...
...
arkui/ace_ets_components_ux/ace_ets_component_progress/src/main/ets/test/progress.ets
浏览文件 @
8e6a507f
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_tabs/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
8e6a507f
...
...
@@ -59,6 +59,13 @@ struct TabsExample {
@State selfSubTabBorderRadiusStr: string = "20vp"
@State selfMarginTopStr: string = "10vp"
@State defaultDividerColor: Resource = $r("sys.color.ohos_id_color_list_separator")
@State defaultIndicatorColor: Resource = $r("sys.color.ohos_id_color_subtab_line_on")
@State defaultIndicatorMarginTop: Resource = $r("sys.float.ohos_id_subtab_line_gap")
@State defaultIndicatorHeight: Resource = $r("sys.float.ohos_id_subtab_line_height")
@State defaultSubTabBorderRadius: Resource = $r("sys.float.ohos_id_corner_radius_clicked")
@State defaultSubTabTextSize: Resource = $r("sys.float.ohos_id_text_size_body1")
@State selfSelectedMode: SelectedMode = SelectedMode.INDICATOR
private stateChangCallBack = (eventData) => {
...
...
@@ -358,6 +365,43 @@ struct TabsExample {
.height('200vp')
.width('90%')
.key('tabsTest5')
Tabs({ barPosition: BarPosition.Start, controller: this.controller2 }) {
TabContent() {
Column().width('100%').height('100%').backgroundColor(Color.Pink)
}
.key('defaultSubTab')
.tabBar(SubTabBarStyle.of('pink')
.indicator({
marginTop:this.defaultIndicatorMarginTop,
color: this.defaultIndicatorColor,
height: this.defaultIndicatorHeight
})
.board({
borderRadius:this.defaultSubTabBorderRadius
})
.labelStyle({
font: { size: this.defaultSubTabTextSize }
})
)
TabContent() {
Column().width('100%').height('100%').backgroundColor(Color.Yellow)
}.tabBar('yellow')
TabContent() {
Column().width('100%').height('100%').backgroundColor(Color.Blue)
}.tabBar('blue')
}
.vertical(true).scrollable(true).barMode(BarMode.Fixed)
.barWidth(70).barHeight('100%').animationDuration(400)
.onChange((index: number) => {
console.info(index.toString())
})
.divider({ strokeWidth: '1vp',
color: this.defaultDividerColor
})
.height('200vp')
.width('90%')
.key('defaultTabs')
}
}
...
...
arkui/ace_ets_components_ux/ace_ets_component_tabs/src/main/ets/test/Tabs.ets
浏览文件 @
8e6a507f
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_textpicker/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
8e6a507f
...
...
@@ -29,6 +29,9 @@ struct TextPickerExample {
@State textStyle: PickerTextStyle = {color:Color.Red,font:{size:'10px',weight:FontWeight.Normal}}
@State selectedTextStyle: PickerTextStyle = {color:Color.Blue,font:{size:'20px',weight:FontWeight.Bold}}
@State disappearTextStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title3"),weight:FontWeight.Lighter}}
@State textStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title2"),weight:FontWeight.Normal}}
@State selectedTextStyleDefault: PickerTextStyle ={color:$r("sys.color.ohos_id_color_text_primary_activated"),font:{size:$r("sys.float.ohos_id_text_size_headline8"),weight:FontWeight.Bold}}
private stateChangCallBack = (eventData) => {
console.info("select page state change called:" + JSON.stringify(eventData));
...
...
@@ -71,6 +74,15 @@ struct TextPickerExample {
.onChange((value: string, index: number) => {
console.info('Picker item changed, value: ' + value + ', index: ' + index)
})
TextPicker({range: this.multipleColumns,selected: this.select})
.disappearTextStyle(this.disappearTextStyleDefault)
.textStyle(this.textStyleDefault)
.selectedTextStyle(this.selectedTextStyleDefault)
.key('textPickerDefault')
.onChange((value: string, index: number) => {
console.info('Picker item changed, value: ' + value + ', index: ' + index)
})
}
}
}
arkui/ace_ets_components_ux/ace_ets_component_textpicker/src/main/ets/test/TextPicker.ets
浏览文件 @
8e6a507f
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_timepicker/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
8e6a507f
...
...
@@ -27,6 +27,10 @@ struct TimePickerExample {
@State textStyle: PickerTextStyle = {color:Color.Red,font:{size:'10px',weight:FontWeight.Normal}}
@State selectedTextStyle: PickerTextStyle = {color:Color.Blue,font:{size:'20px',weight:FontWeight.Bold}}
@State disappearTextStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title3"),weight:FontWeight.Lighter}}
@State textStyleDefault: PickerTextStyle = {color:$r("sys.color.ohos_id_color_text_primary"),font:{size:$r("sys.float.ohos_id_text_size_sub_title2"),weight:FontWeight.Normal}}
@State selectedTextStyleDefault: PickerTextStyle ={color:$r("sys.color.ohos_id_color_text_primary_activated"),font:{size:$r("sys.float.ohos_id_text_size_headline8"),weight:FontWeight.Bold}}
private stateChangCallBack = (eventData) => {
console.info("select page state change called:" + JSON.stringify(eventData));
if (eventData != null) {
...
...
@@ -68,6 +72,15 @@ struct TimePickerExample {
.onChange((date: TimePickerResult) => {
console.info('select current date is: ' + JSON.stringify(date))
})
TimePicker({selected: this.selectedTime})
.disappearTextStyle(this.disappearTextStyleDefault)
.textStyle(this.textStyleDefault)
.selectedTextStyle(this.selectedTextStyleDefault)
.key('timePickerDefault')
.onChange((date: TimePickerResult) => {
console.info('select current date is: ' + JSON.stringify(date))
})
}
}
}
arkui/ace_ets_components_ux/ace_ets_component_timepicker/src/main/ets/test/TimePicker.ets
浏览文件 @
8e6a507f
此差异已折叠。
点击以展开。
鸿蒙社区
@harmonycommunity
mentioned in commit
71427c2e
·
5月 27, 2023
mentioned in commit
71427c2e
mentioned in commit 71427c2e07021d6a7f47eba5049bb2f83f956bf1
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录