Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Xts Acts
提交
00ca7574
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看板
提交
00ca7574
编写于
8月 04, 2023
作者:
S
sunjiakun
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
delete list
Signed-off-by:
N
sunjiakun
<
sunjiakun3@huawei.com
>
上级
062e5903
变更
8
展开全部
显示空白变更内容
内联
并排
Showing
8 changed file
with
362 addition
and
911 deletion
+362
-911
arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets
..._component_badge/src/main/ets/TestAbility/pages/Index.ets
+39
-84
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets
...nent_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets
+51
-104
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets
...checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets
+57
-116
arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets
...ponent_datapanel/src/main/ets/TestAbility/pages/Index.ets
+73
-148
arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets
..._component_radio/src/main/ets/TestAbility/pages/Index.ets
+38
-78
arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets
...component_slider/src/main/ets/TestAbility/pages/Index.ets
+102
-206
arkui/ace_ets_components_ux/ace_ets_component_text/src/main/ets/TestAbility/pages/Index.ets
...s_component_text/src/main/ets/TestAbility/pages/Index.ets
+2
-95
arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets
...ponent_textinput/src/main/ets/TestAbility/pages/Index.ets
+0
-80
未找到文件。
arkui/ace_ets_components_ux/ace_ets_component_badge/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
...
...
@@ -35,8 +35,6 @@ struct badgeTest {
build() {
Row() {
Column() {
List({space: 0, initialIndex: 0 }){
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -50,8 +48,7 @@ struct badgeTest {
}
.width(100).height(50)
.key("ArkUX_Stage_Badge_FontWeight_0100")
}
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -63,8 +60,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0200")
.width(100).height(50)
}
ListItem(){
Badge({
value: 'new',
style: { badgeSize: 6, badgeColor: '#FA2A2D', fontWeight: 100 }
...
...
@@ -75,8 +71,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0300")
.width(100).height(50)
}
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -90,8 +85,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0400")
.width(100).height(50)
}
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -105,8 +99,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0500")
.width(100).height(50)
}
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -120,8 +113,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0600")
.width(100).height(50)
}
ListItem(){
Badge({
count: 1,
maxCount: 99,
...
...
@@ -136,8 +128,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0700")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -151,8 +142,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0800")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -166,8 +156,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_0900")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -181,8 +170,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1000")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -196,8 +184,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1100")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -211,8 +198,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1200")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -226,8 +212,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1300")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -242,8 +227,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1400")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -258,8 +242,7 @@ struct badgeTest {
}
.key("ArkUX_Stage_Badge_FontWeight_1500")
.width(100).height(50)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -274,8 +257,7 @@ struct badgeTest {
.key("ArkUX_Stage_Badge_FontWeight_1600")
.width(100).height(50)
.layoutWeight(null)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -288,8 +270,7 @@ struct badgeTest {
.width(200).height(50).backgroundColor(0x317aff)
}
.key("ArkUX_Stage_Badge_BorderColor_0100").height(20)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -303,8 +284,7 @@ struct badgeTest {
.width(200).height(50).backgroundColor(0x317aff)
}
.key("ArkUX_Stage_Badge_BorderColor_0200").height(20)
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -321,8 +301,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -338,8 +317,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -356,8 +334,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -374,8 +351,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -392,8 +368,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -410,8 +385,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -428,8 +402,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -447,8 +420,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -466,8 +438,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -486,8 +457,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -503,8 +473,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -520,8 +489,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -538,8 +506,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -555,8 +522,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -572,8 +538,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -589,8 +554,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -607,8 +571,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -625,8 +588,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -642,8 +604,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -661,8 +622,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -678,8 +638,7 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -696,8 +655,6 @@ struct badgeTest {
.margin({
top: 10
})
}
ListItem() {
Badge({
count: 1,
maxCount: 99,
...
...
@@ -715,8 +672,6 @@ struct badgeTest {
top: 10
})
}
}
}
.width('100%')
}
.height('100%')
...
...
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBox.ets
浏览文件 @
00ca7574
...
...
@@ -28,8 +28,7 @@ struct checkBoxTest {
build() {
Row() {
Column() {
List({space: 0, initialIndex: 0 }){
ListItem(){
Checkbox({name: 'checkbox1', group: 'checkboxGroup1'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0100")
.select(false)
...
...
@@ -38,8 +37,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox2', group: 'checkboxGroup1'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0200")
.select(false)
...
...
@@ -48,8 +46,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox3', group: 'checkboxGroup1'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0300")
.select(false)
...
...
@@ -58,8 +55,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox4', group: 'checkboxGroup2'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0400")
.select(false)
...
...
@@ -68,8 +64,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox5', group: 'checkboxGroup2'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0500")
.select(false)
...
...
@@ -78,8 +73,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox6', group: 'checkboxGroup2'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0600")
.backgroundColor($r("sys.color.ohos_id_color_switch_outline_off"))
...
...
@@ -89,8 +83,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox7', group: 'checkboxGroup3'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0700")
.backgroundColor($r("sys.color.ohos_id_color_switch_outline_off"))
...
...
@@ -100,8 +93,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox8', group: 'checkboxGroup3'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0800")
.backgroundColor($r("sys.color.ohos_id_color_switch_outline_off"))
...
...
@@ -111,8 +103,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox9', group: 'checkboxGroup3'})
.key("ArkUX_Stage_Checkbox_unselectedColor_0900")
.select(false)
...
...
@@ -122,8 +113,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox10', group: 'checkboxGroup13'})
.key("ArkUX_Stage_Checkbox_unselectedColor_1000")
.backgroundColor($r("sys.color.ohos_id_color_switch_outline_off"))
...
...
@@ -134,8 +124,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox11', group: 'checkboxGroup13'})
.key("ArkUX_Stage_Checkbox_unselectedColor_1100")
.backgroundColor($r("sys.color.ohos_id_color_switch_outline_off"))
...
...
@@ -145,8 +134,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox12', group: 'checkboxGroup13'})
.key("ArkUX_Stage_Checkbox_unselectedColor_1200")
.select(false)
...
...
@@ -156,8 +144,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox13', group: 'checkboxGroup14'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0100")
.select(true)
...
...
@@ -166,8 +153,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox14', group: 'checkboxGroup14'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0200")
.select(true)
...
...
@@ -176,8 +162,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox15', group: 'checkboxGroup14'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0300")
.select(true)
...
...
@@ -186,8 +171,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox16', group: 'checkboxGroup15'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0400")
.select(true)
...
...
@@ -196,8 +180,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox17', group: 'checkboxGroup15'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0500")
.select(true)
...
...
@@ -206,8 +189,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox18', group: 'checkboxGroup15'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0600")
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"))
...
...
@@ -217,8 +199,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox19', group: 'checkboxGroup25'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0700")
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"))
...
...
@@ -228,8 +209,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox20', group: 'checkboxGroup25'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0800")
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"))
...
...
@@ -239,8 +219,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox21', group: 'checkboxGroup25'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_0900")
.select(true)
...
...
@@ -250,8 +229,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox22', group: 'checkboxGroup26'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_1000")
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"))
...
...
@@ -262,8 +240,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox23', group: 'checkboxGroup26'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_1100")
.backgroundColor($r("sys.color.ohos_id_color_foreground_contrary"))
...
...
@@ -273,8 +250,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox24', group: 'checkboxGroup26'})
.key("ArkUX_Stage_Checkbox_CheckMarkColor_1200")
.select(true)
...
...
@@ -284,8 +260,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox25', group: 'checkboxGroup27'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0100")
.select(true)
...
...
@@ -294,8 +269,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox26', group: 'checkboxGroup27'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0200")
.select(true)
...
...
@@ -304,8 +278,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox27', group: 'checkboxGroup27'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0300")
.select(true)
...
...
@@ -314,8 +287,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox28', group: 'checkboxGroup38'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0400")
.select(true)
...
...
@@ -324,8 +296,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox29', group: 'checkboxGroup38'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0500")
.select(true)
...
...
@@ -334,8 +305,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox30', group: 'checkboxGroup38'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0600")
.select(true)
...
...
@@ -344,8 +314,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox31', group: 'checkboxGroup39'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0700")
.select(true)
...
...
@@ -354,8 +323,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox32', group: 'checkboxGroup39'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0800")
.select(true)
...
...
@@ -364,8 +332,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox33', group: 'checkboxGroup39'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_0900")
.select(true)
...
...
@@ -375,8 +342,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox34', group: 'checkboxGroup40'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_1000")
.select(true)
...
...
@@ -386,8 +352,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox35', group: 'checkboxGroup40'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_1100")
.select(true)
...
...
@@ -396,8 +361,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox36', group: 'checkboxGroup40'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_1200")
.select(true)
...
...
@@ -407,8 +371,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox36', group: 'checkboxGroup40'})
.key("ArkUX_Stage_Checkbox_CheckMarkSize_1300")
.select(true)
...
...
@@ -418,8 +381,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox37', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0100")
.select(true)
...
...
@@ -428,8 +390,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox38', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0200")
.select(true)
...
...
@@ -438,8 +399,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox39', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0300")
.select(true)
...
...
@@ -448,8 +408,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox40', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0400")
.select(true)
...
...
@@ -458,8 +417,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox41', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0500")
.select(true)
...
...
@@ -468,8 +426,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox42', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0600")
.select(true)
...
...
@@ -478,8 +435,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox43', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0700")
.select(true)
...
...
@@ -488,8 +444,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox44', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0800")
.select(true)
...
...
@@ -498,8 +453,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox45', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_0900")
.select(true)
...
...
@@ -509,8 +463,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox46', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_1000")
.select(true)
...
...
@@ -520,8 +473,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox47', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_1100")
.select(true)
...
...
@@ -530,8 +482,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox48', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_1200")
.select(true)
...
...
@@ -541,8 +492,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox49', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_1300")
.select(true)
...
...
@@ -552,8 +502,7 @@ struct checkBoxTest {
.onChange((value: boolean) => {
console.info('Checkbox1 change is'+ value)
})
}
ListItem(){
Checkbox({name: 'checkbox49', group: 'checkboxGroup'})
.key("ArkUX_Stage_Checkbox_CheckMarkWidth_1400")
.select(true)
...
...
@@ -564,8 +513,6 @@ struct checkBoxTest {
console.info('Checkbox1 change is'+ value)
})
}
}
}
.width('100%')
}
.height('100%')
...
...
arkui/ace_ets_components_ux/ace_ets_component_checkbox/src/main/ets/TestAbility/pages/CheckBoxGroup.ets
浏览文件 @
00ca7574
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_datapanel/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_radio/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
...
...
@@ -35,8 +35,7 @@ struct RadioTest {
build() {
Row() {
Column() {
List({ space: 0, initialIndex: 0 }) {
ListItem() {
Radio({ value: 'Radio1', group: 'radioGroup' })
.checked(true)
.width(50)
...
...
@@ -46,8 +45,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio1 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio2', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -57,8 +55,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio2 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio3', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -68,8 +65,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio3 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio4', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -79,8 +75,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio4 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio5', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -90,8 +85,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio5 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio6', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -102,8 +96,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio6 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio7', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -114,8 +107,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio7 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio8', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -126,8 +118,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio8 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio9', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -138,8 +129,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio9 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio10', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -150,8 +140,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio10 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio11', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -163,8 +152,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio11 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio12', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -175,8 +163,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio12 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio13', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -186,8 +173,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio13 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio14', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -197,8 +183,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio14 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio15', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -208,8 +193,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio15 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio16', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -219,8 +203,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio16 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio17', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -230,8 +213,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio17 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio18', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -242,8 +224,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio18 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio19', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -254,8 +235,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio19 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio20', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -266,8 +246,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio20 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio21', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -278,8 +257,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio21 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio22', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -290,8 +268,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio22 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio23', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -303,8 +280,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio23 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio24', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -315,8 +291,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio24 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio25', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -326,8 +301,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio25 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio26', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -337,8 +311,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio26 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio27', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -348,8 +321,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio27 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio28', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -359,8 +331,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio28 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio29', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -370,8 +341,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio29 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio30', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -382,8 +352,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio30 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio31', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -394,8 +363,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio31 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio32', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -406,8 +374,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio32 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio33', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -418,8 +385,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio33 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio34', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -430,8 +396,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio34 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio35', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -443,8 +408,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio35 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio36', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -455,8 +419,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio36 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio37', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -470,8 +433,7 @@ struct RadioTest {
.onChange((isChecked: boolean) => {
console.log('Radio37 status is' + isChecked)
})
}
ListItem() {
Radio({ value: 'Radio38', group: 'radioGroup' })
.checked(false)
.width(50)
...
...
@@ -484,8 +446,6 @@ struct RadioTest {
console.log('Radio38 status is' + isChecked)
})
}
}
}
.width('100%')
}
.height('100%')
...
...
arkui/ace_ets_components_ux/ace_ets_component_slider/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
此差异已折叠。
点击以展开。
arkui/ace_ets_components_ux/ace_ets_component_text/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
...
...
@@ -38,155 +38,112 @@ struct textTest {
build() {
Column() {
List({ space: 0, initialIndex: 0 }) {
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0100')
.height(20)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0200')
.height(20)
.textShadow({ radius: 1 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0300')
.height(20)
.textShadow({ radius: 0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0400')
.height(20)
.textShadow({ radius: 20 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0500')
.height(20)
.textShadow({ radius: $r("app.float.textShadowRadius") })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0600')
.height(20)
.textShadow({ radius: -1 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0700')
.height(20)
.textShadow({ radius: 1, color: "#0000FF" })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0800')
.height(20)
.textShadow({ radius: 1, color: 0xff0000 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_0900')
.height(20)
.textShadow({ radius: 1, color: Color.Red })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1000')
.height(20)
.textShadow({ radius: 1, color: $r("app.color.textShadow_Color") })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1100')
.height(20)
.textShadow({ radius: 1, color: null })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1200')
.height(20)
.textShadow({ radius: 1, offsetX: 5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1300')
.height(20)
.textShadow({ radius: 1, offsetX: -5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1400')
.height(20)
.textShadow({ radius: 1, offsetY: 5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1500')
.height(20)
.textShadow({ radius: 1, offsetY: -5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1600')
.height(20)
.textShadow({ radius: 1, offsetX: 5.0, offsetY: 5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1700')
.height(20)
.textShadow({ radius: 1, offsetX: 5.0, offsetY: -5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1800')
.height(20)
.textShadow({ radius: 1, offsetX: -5.0, offsetY: 5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_1900')
.height(20)
.textShadow({ radius: 1, offsetX: -5.0, offsetY: -5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_2000')
.height(20)
.textShadow({ radius: 1, color: "#0000FF", offsetX: 5.0, offsetY: -5.0 })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_2100')
.height(20)
.textShadow(null)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_2200')
.height(20)
...
...
@@ -194,87 +151,65 @@ struct textTest {
radius: 1, color: Color.Red, offsetX: $r("app.float.textShadowOffset"),
offsetY: $r("app.float.textShadowOffset")
})
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_2300')
.height(20)
.textShadow({ radius: 1, color: Color.Red, offsetX: " ", offsetY: " " })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextShadow_2400')
.height(20)
.textShadow({ radius: 1, color: Color.Red, offsetX: 1.0, offsetY: 1.0 })
.textShadow({ radius: 1, color: null, offsetX: null, offsetY: null })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0100')
.height(20)
.maxLines(1)
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0200')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Clip })
}
ListItem() {
Text('a b v c c a ad')
.key('ArkUX_Stage_Text_TextOverflow_0300')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Clip })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0400')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
ListItem() {
Text('gao is a bbb')
.key('ArkUX_Stage_Text_TextOverflow_0500')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Ellipsis })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0600')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.None })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0700')
.height(20)
.maxLines(1)
.textOverflow({ overflow: TextOverflow.Marquee })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0800')
.height(20)
.maxLines(1)
.textOverflow(null)
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_TextOverflow_0900')
.height(20)
...
...
@@ -282,59 +217,44 @@ struct textTest {
.textOverflow({ overflow: TextOverflow.Clip })
.textAlign(TextAlign.JUSTIFY)
.fontSize(15)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0100')
.height(20)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0200')
.height(20)
.textAlign(TextAlign.Start)
.textOverflow({ overflow: TextOverflow.MARQUEE })
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0300')
.height(20)
.textAlign(TextAlign.Center)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0400')
.height(20)
.textAlign(TextAlign.End)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0500')
.height(20)
.textAlign(TextAlign.Justify)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0600')
.height(20)
.textAlign(null)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_TextAlign_0700')
.height(20)
.maxLines(1)
.textAlign(TextAlign.End)
.textOverflow({ overflow: TextOverflow.Clip })
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_heightAdaptivePolicy_0100')
.height(20)
...
...
@@ -343,9 +263,6 @@ struct textTest {
.maxLines(1)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST)
}
ListItem() {
Text(this.overMessage)
.key('ArkUX_Stage_Text_heightAdaptivePolicy_0200')
.height(20)
...
...
@@ -353,9 +270,7 @@ struct textTest {
.maxFontSize(20)
.maxLines(1)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.MAX_LINES_FIRST)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_heightAdaptivePolicy_0300')
.height(20)
...
...
@@ -363,9 +278,7 @@ struct textTest {
.maxFontSize(20)
.maxLines(1)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_heightAdaptivePolicy_0400')
.height(20)
...
...
@@ -374,9 +287,7 @@ struct textTest {
.maxLines(1)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST)
.heightAdaptivePolicy(null)
}
ListItem() {
Text(this.message)
.key('ArkUX_Stage_Text_heightAdaptivePolicy_0500')
.height(20)
...
...
@@ -385,9 +296,7 @@ struct textTest {
.maxLines(1)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.LAYOUT_CONSTRAINT_FIRST)
.heightAdaptivePolicy(TextHeightAdaptivePolicy.MIN_FONT_SIZE_FIRST)
}
ListItem() {
Text(this.message)
.height(20)
.bindPopup(this.handlePopup, {
...
...
@@ -405,6 +314,4 @@ struct textTest {
})
}
}
}
}
}
arkui/ace_ets_components_ux/ace_ets_component_textinput/src/main/ets/TestAbility/pages/Index.ets
浏览文件 @
00ca7574
...
...
@@ -34,8 +34,6 @@ struct textInputTest {
build() {
Row() {
Column() {
List({space: 0, initialIndex: 0 }){
ListItem(){
TextInput({ placeholder: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0100")
.placeholderColor(Color.Grey)
...
...
@@ -48,8 +46,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0200")
.placeholderColor(Color.Grey)
...
...
@@ -62,8 +58,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0300")
.placeholderColor(Color.Grey)
...
...
@@ -76,8 +70,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0400")
.placeholderColor(Color.Grey)
...
...
@@ -90,8 +82,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0500")
.placeholderColor(Color.Grey)
...
...
@@ -104,8 +94,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0600")
.placeholderColor(Color.Grey)
...
...
@@ -118,8 +106,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0700")
.placeholderColor(Color.Grey)
...
...
@@ -132,8 +118,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0800")
.placeholderColor(Color.Grey)
...
...
@@ -146,8 +130,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_0900")
.placeholderColor(Color.Grey)
...
...
@@ -160,8 +142,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_1000")
.placeholderColor(Color.Grey)
...
...
@@ -174,8 +154,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_1100")
.placeholderColor(Color.Grey)
...
...
@@ -189,8 +167,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_1200")
.placeholderColor(Color.Grey)
...
...
@@ -204,8 +180,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_1300")
.placeholderColor(Color.Grey)
...
...
@@ -219,8 +193,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "To display string text for extra long To display string text for extra long ",
controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretPosition_1400")
...
...
@@ -235,8 +207,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0100")
.placeholderColor(Color.Grey)
...
...
@@ -249,8 +219,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0200")
.placeholderColor(Color.Grey)
...
...
@@ -263,8 +231,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0300")
.placeholderColor(Color.Grey)
...
...
@@ -277,8 +243,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0400")
.placeholderColor(Color.Grey)
...
...
@@ -291,8 +255,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0500")
.placeholderColor(Color.Grey)
...
...
@@ -305,8 +267,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0600")
.placeholderColor(Color.Grey)
...
...
@@ -319,8 +279,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0700")
.placeholderColor(Color.Grey)
...
...
@@ -333,8 +291,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0800")
.placeholderColor(Color.Grey)
...
...
@@ -347,8 +303,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_0900")
.placeholderColor(Color.Grey)
...
...
@@ -361,8 +315,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_1000")
.placeholderColor(Color.Grey)
...
...
@@ -376,8 +328,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_1100")
.placeholderColor(Color.Grey)
...
...
@@ -391,8 +341,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_CaretWidth_1200")
.placeholderColor(Color.Grey)
...
...
@@ -406,8 +354,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0100")
.placeholderColor(Color.Grey)
...
...
@@ -420,8 +366,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0200")
.placeholderColor(Color.Grey)
...
...
@@ -434,8 +378,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0300")
.placeholderColor(Color.Grey)
...
...
@@ -448,8 +390,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0400")
.placeholderColor(Color.Grey)
...
...
@@ -462,8 +402,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0500")
.placeholderColor(Color.Grey)
...
...
@@ -476,8 +414,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0600")
.placeholderColor(Color.Grey)
...
...
@@ -491,8 +427,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0700")
.placeholderColor(Color.Grey)
...
...
@@ -506,8 +440,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0800")
.placeholderColor(Color.Grey)
...
...
@@ -521,8 +453,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_0900")
.placeholderColor(Color.Grey)
...
...
@@ -536,8 +466,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_1000")
.placeholderColor(Color.Grey)
...
...
@@ -552,8 +480,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_1100")
.placeholderColor(Color.Grey)
...
...
@@ -567,8 +493,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_1200")
.placeholderColor(Color.Grey)
...
...
@@ -583,8 +507,6 @@ struct textInputTest {
.onChange((value: string) => {
this.text = value;
})
}
ListItem(){
TextInput({ text: "input your word...", controller: this.controller })
.key("ArkUX_Stage_TextInput_selectedColor_1300")
.placeholderColor(Color.Grey)
...
...
@@ -598,8 +520,6 @@ struct textInputTest {
this.text = value;
})
}
}
}
.width('100%')
}
.height('100%')
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录