提交 b695444e 编写于 作者: S sunjiakun

Modify the xts test fail item of the textPick component

Signed-off-by: Nsunjiakun <sunjiakun3@huawei.com>
上级 c3ab12d3
...@@ -41,40 +41,30 @@ struct TextPickerMultiTest { ...@@ -41,40 +41,30 @@ struct TextPickerMultiTest {
build() { build() {
Row() { Row() {
Column() { Column() {
List({ space: 0, initialIndex: 0 }) {
ListItem() {
TextPicker({ range: this.multi }) TextPicker({ range: this.multi })
.key('textpicker_1') .key('textpicker_1')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade }) TextPicker({ range: this.cascade })
.key('textpicker_2') .key('textpicker_2')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade, selected: [1, 1, 2] }) TextPicker({ range: this.cascade, selected: [1, 1, 2] })
.key('textpicker_3') .key('textpicker_3')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade, value: ["辽宁省", "大连市", "中山区"] }) TextPicker({ range: this.cascade, value: ["辽宁省", "大连市", "中山区"] })
.key('textpicker_4') .key('textpicker_4')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade }) TextPicker({ range: this.cascade })
.key('textpicker_5') .key('textpicker_5')
.selectedIndex([2, 1, 2]) .selectedIndex([2, 1, 2])
...@@ -82,8 +72,6 @@ struct TextPickerMultiTest { ...@@ -82,8 +72,6 @@ struct TextPickerMultiTest {
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade, value: ["辽宁省", "大连市", "中山区"], selected: [1, 1, 1] }) TextPicker({ range: this.cascade, value: ["辽宁省", "大连市", "中山区"], selected: [1, 1, 1] })
.key('textpicker_6') .key('textpicker_6')
.selectedIndex([0, 1, 2]) .selectedIndex([0, 1, 2])
...@@ -91,8 +79,6 @@ struct TextPickerMultiTest { ...@@ -91,8 +79,6 @@ struct TextPickerMultiTest {
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade }) TextPicker({ range: this.cascade })
.key('textpicker_7') .key('textpicker_7')
.selectedIndex([null, 1, 1]) .selectedIndex([null, 1, 1])
...@@ -100,8 +86,6 @@ struct TextPickerMultiTest { ...@@ -100,8 +86,6 @@ struct TextPickerMultiTest {
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade }) TextPicker({ range: this.cascade })
.key('textpicker_8') .key('textpicker_8')
.selectedIndex([1, undefined, 1]) .selectedIndex([1, undefined, 1])
...@@ -109,8 +93,6 @@ struct TextPickerMultiTest { ...@@ -109,8 +93,6 @@ struct TextPickerMultiTest {
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade }) TextPicker({ range: this.cascade })
.key('textpicker_9') .key('textpicker_9')
.selectedIndex([1, 1, '']) .selectedIndex([1, 1, ''])
...@@ -118,25 +100,18 @@ struct TextPickerMultiTest { ...@@ -118,25 +100,18 @@ struct TextPickerMultiTest {
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade, selected: [1, 0, ] }) TextPicker({ range: this.cascade, selected: [1, 0, ] })
.key('textpicker_10') .key('textpicker_10')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
ListItem() {
TextPicker({ range: this.cascade, value: ['辽宁省', '大连市', ] }) TextPicker({ range: this.cascade, value: ['辽宁省', '大连市', ] })
.key('textpicker_11') .key('textpicker_11')
.width('300') .width('300')
.onChange((value: string | string[], index: number | number[]) => { .onChange((value: string | string[], index: number | number[]) => {
console.info('Picker item changed1, value: ' + JSON.stringify(value)) console.info('Picker item changed1, value: ' + JSON.stringify(value))
}) })
}
}
.alignListItem(ListItemAlign.Center)
} }
.width('100%') .width('100%')
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册