未验证 提交 ef0f6485 编写于 作者: O openharmony_ci 提交者: Gitee

!3823 适配ace子系统xts编译xts hap包error报错

Merge pull request !3823 from zj/master
...@@ -18,8 +18,8 @@ import router from '@system.router' ...@@ -18,8 +18,8 @@ import router from '@system.router'
@Entry @Entry
@Component @Component
struct dataPanel_testcase { struct dataPanel_testcase {
@State width: string= "200" @State myWidth: string= "200"
@State height: string= "100" @State myHeight: string= "100"
@State active: boolean = false @State active: boolean = false
private content: string = "DataPanel Page" private content: string = "DataPanel Page"
...@@ -36,8 +36,8 @@ struct dataPanel_testcase { ...@@ -36,8 +36,8 @@ struct dataPanel_testcase {
Text(`${this.content}`) Text(`${this.content}`)
.fontSize(50) .fontSize(50)
DataPanel({ values: [20, 40, 20], max: 100, type: DataPanelType.Line }) DataPanel({ values: [20, 40, 20], max: 100, type: DataPanelType.Line })
.width(this.width) .width(this.myWidth)
.height(this.height) .height(this.myHeight)
.key('DataPanel') .key('DataPanel')
.onClick(() => { .onClick(() => {
router.back() router.back()
...@@ -45,16 +45,16 @@ struct dataPanel_testcase { ...@@ -45,16 +45,16 @@ struct dataPanel_testcase {
.closeEffect(false) .closeEffect(false)
DataPanel({ values: [20, 40, 20], max: 100, type: DataPanelType.Circle}) DataPanel({ values: [20, 40, 20], max: 100, type: DataPanelType.Circle})
.width(this.width) .width(this.myWidth)
.height(this.height) .height(this.myHeight)
.key('DataPanel2') .key('DataPanel2')
.onClick(() => { .onClick(() => {
router.back() router.back()
}) })
.closeEffect(true) .closeEffect(true)
DataPanel({ values: [20, 40, 20], max: 100}) DataPanel({ values: [20, 40, 20], max: 100})
.width(this.width) .width(this.myWidth)
.height(this.height) .height(this.myHeight)
.key('DataPanel3') .key('DataPanel3')
.onClick(() => { .onClick(() => {
router.back() router.back()
......
...@@ -16,8 +16,8 @@ ...@@ -16,8 +16,8 @@
@Entry @Entry
@Component @Component
struct image_textcase { struct image_textcase {
@State Width: number = 0 @State myWidth: number = 0
@State height: number = 0 @State myHeight: number = 0
onPageShow() { onPageShow() {
console.info('Image page show called'); console.info('Image page show called');
...@@ -58,10 +58,10 @@ struct image_textcase { ...@@ -58,10 +58,10 @@ struct image_textcase {
width: number, width: number,
height: number height: number
}) => { }) => {
this.Width = msg.width this.myWidth = msg.width
this.height = msg.height this.myHeight = msg.height
console.info('Width ----' + this.Width) console.info('Width ----' + this.myWidth)
console.info('height ----' + this.height) console.info('height ----' + this.myHeight)
}) })
.onError(() => { .onError(() => {
console.info('load image fail') console.info('load image fail')
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
struct slider { struct slider {
@State inSetValue: number= 40 @State inSetValue: number= 40
@State outSetValue: number= 40 @State outSetValue: number= 40
@State direction: Axis= Axis.Horizontal
@State Begin: number = SliderChangeMode.Begin @State Begin: number = SliderChangeMode.Begin
onPageShow() { onPageShow() {
......
...@@ -43,7 +43,7 @@ struct SwiperExample { ...@@ -43,7 +43,7 @@ struct SwiperExample {
private swiperController: SwiperController = new SwiperController() private swiperController: SwiperController = new SwiperController()
private data: MyDataSource = new MyDataSource([]) private data: MyDataSource = new MyDataSource([])
private aboutToAppear(): void { aboutToAppear(): void {
let list = [] let list = []
for (var i = 1; i <= 10; i++) { for (var i = 1; i <= 10; i++) {
list.push(i.toString()); list.push(i.toString());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册