From 26c51bdd0886405c44e465540d3d3f7fc2aa5c85 Mon Sep 17 00:00:00 2001 From: bayanxing Date: Sat, 21 May 2022 16:38:51 +0800 Subject: [PATCH] modify codecheck Signed-off-by: bayanxing --- .../js/default/pages/chart/style/index.js | 53 +++------ .../main/js/default/pages/div/style/index.js | 94 ++++++--------- .../js/default/pages/gridCol/style/index.js | 58 ++++------ .../js/default/pages/gridRow/style/index.js | 79 +++++-------- .../js/default/pages/image/style/index.js | 97 ++++++---------- .../pages/imageAnimator/style/index.js | 108 +++++------------- 6 files changed, 165 insertions(+), 324 deletions(-) diff --git a/arkui/ace_standard/src/main/js/default/pages/chart/style/index.js b/arkui/ace_standard/src/main/js/default/pages/chart/style/index.js index 068c3d21c..b92602d97 100644 --- a/arkui/ace_standard/src/main/js/default/pages/chart/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/chart/style/index.js @@ -68,28 +68,19 @@ export default { }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, - styleSeventeen : this.styleSeventeen, - styleEighteen : this.styleEighteen, - styleNineteen : this.styleNineteen, - styleTwenty : this.styleTwenty, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, + styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, + styleNineteen : this.styleNineteen, styleTwenty : this.styleTwenty, styleTwentyOne : this.styleTwentyOne, styleTwentyTwo : this.styleTwentyTwo, styleTwentyThree : this.styleTwentyThree, @@ -102,18 +93,10 @@ export default { styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, + addOne : this.addOne, addTwo : this.addTwo, addThree : this.addThree, + addFour : this.addFour, addFive : this.addFive, addSix : this.addSix, + addSeven : this.addSeven, addEight : this.addEight, addNine : this.addNine, + addTen : this.addTen, addEleven : this.addEleven, addTwelve : this.addTwelve, addThirteen : this.addThirteen, addFourteen : this.addFourteen, addFifteen : this.addFifteen, @@ -123,7 +106,7 @@ export default { } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -155,7 +138,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.addOne = this.$element("addOne").getInspector() this.addTwo = this.$element("addTwo").getInspector() this.addThree = this.$element("addThree").getInspector() diff --git a/arkui/ace_standard/src/main/js/default/pages/div/style/index.js b/arkui/ace_standard/src/main/js/default/pages/div/style/index.js index 0a257c075..313eec063 100644 --- a/arkui/ace_standard/src/main/js/default/pages/div/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/div/style/index.js @@ -82,76 +82,48 @@ export default { }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, - styleSeventeen : this.styleSeventeen, - styleEighteen : this.styleEighteen, - styleNineteen : this.styleNineteen, - styleTwenty : this.styleTwenty, - styleTwentyOne : this.styleTwentyOne, - styleTwentyTwo : this.styleTwentyTwo, - styleTwentyThree : this.styleTwentyThree, - styleTwentyFour : this.styleTwentyFour, - styleTwentyFive : this.styleTwentyFive, - styleTwentySix : this.styleTwentySix, - styleTwentySeven : this.styleTwentySeven, - styleTwentyNine : this.styleTwentyNine, - styleThirty : this.styleThirty, - styleThirtyOne : this.styleThirtyOne, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, + styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, + styleNineteen : this.styleNineteen, styleTwenty : this.styleTwenty, + styleTwentyOne : this.styleTwentyOne, styleTwentyTwo : this.styleTwentyTwo, + styleTwentyThree : this.styleTwentyThree, styleTwentyFour : this.styleTwentyFour, + styleTwentyFive : this.styleTwentyFive, styleTwentySix : this.styleTwentySix, + styleTwentySeven : this.styleTwentySeven, styleTwentyNine : this.styleTwentyNine, + styleThirty : this.styleThirty, styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - specificOne : this.specificOne, - specificTwo : this.specificTwo, - specificThree : this.specificThree, - specificFour : this.specificFour, - specificFive : this.specificFive, - specificSix : this.specificSix, - specificSeven : this.specificSeven, - specificEight : this.specificEight, - specificNine : this.specificNine, - specificTen : this.specificTen, + specificOne : this.specificOne, specificTwo : this.specificTwo, + specificThree : this.specificThree, specificFour : this.specificFour, + specificFive : this.specificFive, specificSix : this.specificSix, + specificSeven : this.specificSeven, specificEight : this.specificEight, + specificNine : this.specificNine, specificTen : this.specificTen, specificEleven : this.specificEleven, specificTwelve : this.specificTwelve, specificThirteen : this.specificThirteen, - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, - addThirteen : this.addThirteen, - addFourteen : this.addFourteen, - addFifteen : this.addFifteen, - addSixteen : this.addSixteen, - addSeventeen : this.addSeventeen, - addEighteen : this.addEighteen + addOne : this.addOne, addTwo : this.addTwo, + addThree : this.addThree, addFour : this.addFour, + addFive : this.addFive, addSix : this.addSix, + addSeven : this.addSeven, addEight : this.addEight, + addNine : this.addNine, addTen : this.addTen, + addEleven : this.addEleven, addTwelve : this.addTwelve, + addThirteen : this.addThirteen, addFourteen : this.addFourteen, + addFifteen : this.addFifteen, addSixteen : this.addSixteen, + addSeventeen : this.addSeventeen, addEighteen : this.addEighteen } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -183,7 +155,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.specificOne = this.$element("styleThirtyOne").getInspector() this.specificTwo = this.$element("styleThirtyTwo").getInspector() this.specificThree = this.$element("styleThirtyOne").getInspector() diff --git a/arkui/ace_standard/src/main/js/default/pages/gridCol/style/index.js b/arkui/ace_standard/src/main/js/default/pages/gridCol/style/index.js index 068c3d21c..812c7ab3c 100644 --- a/arkui/ace_standard/src/main/js/default/pages/gridCol/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/gridCol/style/index.js @@ -68,24 +68,17 @@ export default { }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, styleNineteen : this.styleNineteen, @@ -102,28 +95,19 @@ export default { styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, - addThirteen : this.addThirteen, - addFourteen : this.addFourteen, - addFifteen : this.addFifteen, - addSixteen : this.addSixteen, - addSeventeen : this.addSeventeen, - addEighteen : this.addEighteen + addOne : this.addOne, addTwo : this.addTwo, + addThree : this.addThree, addFour : this.addFour, + addFive : this.addFive, addSix : this.addSix, + addSeven : this.addSeven, addEight : this.addEight, + addNine : this.addNine, addTen : this.addTen, + addEleven : this.addEleven, addTwelve : this.addTwelve, + addThirteen : this.addThirteen, addFourteen : this.addFourteen, + addFifteen : this.addFifteen, addSixteen : this.addSixteen, + addSeventeen : this.addSeventeen, addEighteen : this.addEighteen } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -155,7 +139,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.addOne = this.$element("addOne").getInspector() this.addTwo = this.$element("addTwo").getInspector() this.addThree = this.$element("addThree").getInspector() diff --git a/arkui/ace_standard/src/main/js/default/pages/gridRow/style/index.js b/arkui/ace_standard/src/main/js/default/pages/gridRow/style/index.js index 068c3d21c..7f002bad8 100644 --- a/arkui/ace_standard/src/main/js/default/pages/gridRow/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/gridRow/style/index.js @@ -68,62 +68,39 @@ export default { }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, - styleSeventeen : this.styleSeventeen, - styleEighteen : this.styleEighteen, - styleNineteen : this.styleNineteen, - styleTwenty : this.styleTwenty, - styleTwentyOne : this.styleTwentyOne, - styleTwentyTwo : this.styleTwentyTwo, - styleTwentyThree : this.styleTwentyThree, - styleTwentyFour : this.styleTwentyFour, - styleTwentyFive : this.styleTwentyFive, - styleTwentySix : this.styleTwentySix, - styleTwentySeven : this.styleTwentySeven, - styleTwentyNine : this.styleTwentyNine, - styleThirty : this.styleThirty, - styleThirtyOne : this.styleThirtyOne, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, + styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, + styleNineteen : this.styleNineteen, styleTwenty : this.styleTwenty, + styleTwentyOne : this.styleTwentyOne, styleTwentyTwo : this.styleTwentyTwo, + styleTwentyThree : this.styleTwentyThree, styleTwentyFour : this.styleTwentyFour, + styleTwentyFive : this.styleTwentyFive, styleTwentySix : this.styleTwentySix, + styleTwentySeven : this.styleTwentySeven, styleTwentyNine : this.styleTwentyNine, + styleThirty : this.styleThirty, styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, - addThirteen : this.addThirteen, - addFourteen : this.addFourteen, - addFifteen : this.addFifteen, - addSixteen : this.addSixteen, - addSeventeen : this.addSeventeen, - addEighteen : this.addEighteen + addOne : this.addOne, addTwo : this.addTwo, + addThree : this.addThree, addFour : this.addFour, + addFive : this.addFive, addSix : this.addSix, + addSeven : this.addSeven, addEight : this.addEight, + addNine : this.addNine, addTen : this.addTen, + addEleven : this.addEleven, addTwelve : this.addTwelve, + addThirteen : this.addThirteen, addFourteen : this.addFourteen, + addFifteen : this.addFifteen, addSixteen : this.addSixteen, + addSeventeen : this.addSeventeen, addEighteen : this.addEighteen } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -155,7 +132,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.addOne = this.$element("addOne").getInspector() this.addTwo = this.$element("addTwo").getInspector() this.addThree = this.$element("addThree").getInspector() diff --git a/arkui/ace_standard/src/main/js/default/pages/image/style/index.js b/arkui/ace_standard/src/main/js/default/pages/image/style/index.js index 0a257c075..06adecf05 100644 --- a/arkui/ace_standard/src/main/js/default/pages/image/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/image/style/index.js @@ -82,76 +82,47 @@ export default { }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, - styleSeventeen : this.styleSeventeen, - styleEighteen : this.styleEighteen, - styleNineteen : this.styleNineteen, - styleTwenty : this.styleTwenty, - styleTwentyOne : this.styleTwentyOne, - styleTwentyTwo : this.styleTwentyTwo, - styleTwentyThree : this.styleTwentyThree, - styleTwentyFour : this.styleTwentyFour, - styleTwentyFive : this.styleTwentyFive, - styleTwentySix : this.styleTwentySix, - styleTwentySeven : this.styleTwentySeven, - styleTwentyNine : this.styleTwentyNine, - styleThirty : this.styleThirty, - styleThirtyOne : this.styleThirtyOne, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, + styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, + styleNineteen : this.styleNineteen, styleTwenty : this.styleTwenty, + styleTwentyOne : this.styleTwentyOne, styleTwentyTwo : this.styleTwentyTwo, + styleTwentyThree : this.styleTwentyThree, styleTwentyFour : this.styleTwentyFour, + styleTwentyFive : this.styleTwentyFive, styleTwentySix : this.styleTwentySix, + styleTwentySeven : this.styleTwentySeven, styleTwentyNine : this.styleTwentyNine, + styleThirty : this.styleThirty, styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - specificOne : this.specificOne, - specificTwo : this.specificTwo, - specificThree : this.specificThree, - specificFour : this.specificFour, - specificFive : this.specificFive, - specificSix : this.specificSix, - specificSeven : this.specificSeven, - specificEight : this.specificEight, - specificNine : this.specificNine, - specificTen : this.specificTen, - specificEleven : this.specificEleven, - specificTwelve : this.specificTwelve, + specificOne : this.specificOne, specificTwo : this.specificTwo, + specificThree : this.specificThree, specificFour : this.specificFour, + specificFive : this.specificFive, specificSix : this.specificSix, + specificSeven : this.specificSeven, specificEight : this.specificEight, + specificNine : this.specificNine, specificTen : this.specificTen, + specificEleven : this.specificEleven, specificTwelve : this.specificTwelve, specificThirteen : this.specificThirteen, - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, - addThirteen : this.addThirteen, - addFourteen : this.addFourteen, - addFifteen : this.addFifteen, - addSixteen : this.addSixteen, - addSeventeen : this.addSeventeen, - addEighteen : this.addEighteen + addOne : this.addOne, addTwo : this.addTwo, + addThree : this.addThree, addFour : this.addFour, + addFive : this.addFive, addSix : this.addSix, + addSeven : this.addSeven, addEight : this.addEight, + addNine : this.addNine, addTen : this.addTen, + addEleven : this.addEleven, addTwelve : this.addTwelve, + addThirteen : this.addThirteen, addFourteen : this.addFourteen, + addFifteen : this.addFifteen, addSixteen : this.addSixteen, + addSeventeen : this.addSeventeen, addEighteen : this.addEighteen } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -183,7 +154,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.specificOne = this.$element("styleThirtyOne").getInspector() this.specificTwo = this.$element("styleThirtyTwo").getInspector() this.specificThree = this.$element("styleThirtyOne").getInspector() diff --git a/arkui/ace_standard/src/main/js/default/pages/imageAnimator/style/index.js b/arkui/ace_standard/src/main/js/default/pages/imageAnimator/style/index.js index 226486602..ef74ff734 100644 --- a/arkui/ace_standard/src/main/js/default/pages/imageAnimator/style/index.js +++ b/arkui/ace_standard/src/main/js/default/pages/imageAnimator/style/index.js @@ -60,98 +60,40 @@ export default { specificEleven : null, specificTwelve : null, specificThirteen : null, - - addOne : null, - addTwo : null, - addThree : null, - addFour : null, - addFive : null, - addSix : null, - addSeven : null, - addEight : null, - addNine : null, - addTen : null, - addEleven : null, - addTwelve : null, - addThirteen : null, - addFourteen : null, - addFifteen : null, - addSixteen : null, - addSeventeen : null, - addEighteen : null }, onShow(){ - this.getCommonStyleValues(); + this.getCommonStyleValuesOne(); + this.getCommonStyleValuesTwo() globalThis.value = { - styleOne : this.styleOne, - styleTwo : this.styleTwo, - styleThree : this.styleThree, - styleFour : this.styleFour, - styleFive : this.styleFive, - styleSix : this.styleSix, - styleSeven : this.styleSeven, - styleEight : this.styleEight, - styleNine : this.styleNine, - styleTen : this.styleTen, - styleEleven : this.styleEleven, - styleTwelve : this.styleTwelve, - styleThirteen : this.styleThirteen, - styleFourteen : this.styleFourteen, - styleFifteen : this.styleFifteen, - styleSixteen : this.styleSixteen, - styleSeventeen : this.styleSeventeen, - styleEighteen : this.styleEighteen, - styleNineteen : this.styleNineteen, - styleTwenty : this.styleTwenty, - styleTwentyOne : this.styleTwentyOne, - styleTwentyTwo : this.styleTwentyTwo, - styleTwentyThree : this.styleTwentyThree, - styleTwentyFour : this.styleTwentyFour, - styleTwentyFive : this.styleTwentyFive, - styleTwentySix : this.styleTwentySix, - styleTwentySeven : this.styleTwentySeven, - styleTwentyNine : this.styleTwentyNine, - styleThirty : this.styleThirty, - styleThirtyOne : this.styleThirtyOne, + styleOne : this.styleOne, styleTwo : this.styleTwo, + styleThree : this.styleThree, styleFour : this.styleFour, + styleFive : this.styleFive, styleSix : this.styleSix, + styleSeven : this.styleSeven, styleEight : this.styleEight, + styleNine : this.styleNine, styleTen : this.styleTen, + styleEleven : this.styleEleven, styleTwelve : this.styleTwelve, + styleThirteen : this.styleThirteen, styleFourteen : this.styleFourteen, + styleFifteen : this.styleFifteen, styleSixteen : this.styleSixteen, + styleSeventeen : this.styleSeventeen, styleEighteen : this.styleEighteen, + styleNineteen : this.styleNineteen, styleTwenty : this.styleTwenty, + styleTwentyOne : this.styleTwentyOne, styleTwentyTwo : this.styleTwentyTwo, + styleTwentyThree : this.styleTwentyThree, styleTwentyFour : this.styleTwentyFour, + styleTwentyFive : this.styleTwentyFive, styleTwentySix : this.styleTwentySix, + styleTwentySeven : this.styleTwentySeven, styleTwentyNine : this.styleTwentyNine, + styleThirty : this.styleThirty, styleThirtyOne : this.styleThirtyOne, styleThirtyTwo : this.styleThirtyTwo, - specificOne : this.specificOne, - specificTwo : this.specificTwo, - specificThree : this.specificThree, - specificFour : this.specificFour, - specificFive : this.specificFive, - specificSix : this.specificSix, - specificSeven : this.specificSeven, - specificEight : this.specificEight, - specificNine : this.specificNine, - specificTen : this.specificTen, - specificEleven : this.specificEleven, - specificTwelve : this.specificTwelve, + specificOne : this.specificOne, specificTwo : this.specificTwo, + specificThree : this.specificThree, specificFour : this.specificFour, + specificFive : this.specificFive, specificSix : this.specificSix, + specificSeven : this.specificSeven, specificEight : this.specificEight, + specificNine : this.specificNine, specificTen : this.specificTen, + specificEleven : this.specificEleven, specificTwelve : this.specificTwelve, specificThirteen : this.specificThirteen, - - addOne : this.addOne, - addTwo : this.addTwo, - addThree : this.addThree, - addFour : this.addFour, - addFive : this.addFive, - addSix : this.addSix, - addSeven : this.addSeven, - addEight : this.addEight, - addNine : this.addNine, - addTen : this.addTen, - addEleven : this.addEleven, - addTwelve : this.addTwelve, - addThirteen : this.addThirteen, - addFourteen : this.addFourteen, - addFifteen : this.addFifteen, - addSixteen : this.addSixteen, - addSeventeen : this.addSeventeen, - addEighteen : this.addEighteen } }, - getCommonStyleValues(){ + getCommonStyleValuesOne(){ this.styleOne = this.$element("styleOne").getInspector() this.styleTwo = this.$element("styleTwo").getInspector() this.styleThree = this.$element("styleThree").getInspector() @@ -183,7 +125,9 @@ export default { this.styleThirty = this.$element("styleThirty").getInspector() this.styleThirtyOne = this.$element("styleThirtyOne").getInspector() this.styleThirtyTwo = this.$element("styleThirtyTwo").getInspector() + }, + getCommonStyleValuesTwo(){ this.specificOne = this.$element("styleThirtyOne").getInspector() this.specificTwo = this.$element("styleThirtyTwo").getInspector() this.specificThree = this.$element("styleThirtyOne").getInspector() -- GitLab