• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/**
2 * Copyright (c) 2022 Shenzhen Kaihong Digital Industry Development Co., Ltd.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16 import prompt from '@system.prompt';
17
18 export default {
19     data:{
20         listOne:[{}],
21         listThree:[{},{},{}],
22         idProp : null,
23         classProp : null,
24         classPropNone : null,
25         styleProp : null,
26         refProp : null,
27         refPropNone : null,
28         disabledPropTrue : null,
29         disabledPropFalse : null,
30         disabledPropNone : null,
31         focusablePropTrue : null,
32         focusablePropFalse : null,
33         focusablePropNone : null,
34         dataProp : null,
35         dataPropNone : null,
36         clickEffectPropSmall : null,
37         clickEffectPropMedium : null,
38         clickEffectPropLarge : null,
39         clickEffectPropNone : null,
40         dirPropRtl : null,
41         dirPropAuto : null,
42         dirPropLtr : null,
43         dirPropNone : null,
44         forPropNull : null,
45         forPropOne : null,
46         forPropThree : null,
47         ifPropTrue : null,
48         ifPropFalse : null,
49         ifPropNone : null,
50         showPropTrue : null,
51         showPropFalse : null,
52         showPropNone : null,
53         Type:null,
54         TypeNone:null,
55         primaryFalse:null,
56         primaryTrue:null,
57         primaryNone:null,
58         section:null,
59         sectionNone:null,
60         stickyNone:null,
61         stickyNormal:null,
62         stickyOpacity:null,
63         stickyNo:null,
64         clickeffectTrue:null,
65         clickeffectFalse:null,
66         clickeffectNone:null,
67     },
68
69     onShow(){
70         this.getCommonPropValues();
71         this.getSpecificPropValues()
72         globalThis.value = {
73             idProp : this.idProp,
74             classProp : this.classProp,
75             classPropNone : this.classPropNone,
76             styleProp : this.styleProp,
77             refProp : this.refProp,
78             refPropNone : this.refPropNone,
79             disabledPropTrue : this.disabledPropTrue,
80             disabledPropFalse : this.disabledPropFalse,
81             disabledPropNone : this.disabledPropNone,
82             focusablePropTrue : this.focusablePropTrue,
83             focusablePropFalse : this.focusablePropFalse,
84             focusablePropNone : this.focusablePropNone,
85             dataProp : this.dataProp,
86             dataPropNone : this.dataPropNone,
87             clickEffectPropSmall : this.clickEffectPropSmall,
88             clickEffectPropMedium : this.clickEffectPropMedium,
89             clickEffectPropLarge : this.clickEffectPropLarge,
90             clickEffectPropNone : this.clickEffectPropNone,
91             dirPropRtl : this.dirPropRtl,
92             dirPropAuto : this.dirPropAuto,
93             dirPropLtr : this.dirPropLtr,
94             dirPropNone : this.dirPropNone,
95             forPropNull : this.forPropNull,
96             forPropOne : this.forPropOne,
97             forPropThree : this.forPropThree,
98             ifPropTrue : this.ifPropTrue,
99             showPropTrue : this.showPropTrue,
100             showPropFalse : this.showPropFalse,
101             showPropNone : this.showPropNone,
102             Type:this.Type,
103             TypeNone:this.TypeNone,
104             primaryFalse:this.primaryFalse,
105             primaryTrue:this.primaryTrue,
106             primaryNone:this.primaryNone,
107             section:this.section,
108             sectionNone:this.sectionNone,
109             stickyNone:this.stickyNone,
110             stickyNormal:this.stickyNormal,
111             stickyOpacity:this.stickyOpacity,
112             stickyNo:this.stickyNo,
113             clickeffectTrue:this.clickeffectTrue,
114             clickeffectFalse:this.clickeffectFalse,
115             clickeffectNone:this.clickeffectNone,
116         }
117     },
118
119     getCommonPropValues(){
120         this.idProp = this.$element("idProp").getInspector()
121         this.classProp = this.$element("classProp").getInspector()
122         this.classPropNone = this.$element("classPropNone").getInspector()
123         this.styleProp = this.$element("styleProp").getInspector()
124         this.refProp = this.$element("refProp").getInspector()
125         this.refPropNone = this.$element("refPropNone").getInspector()
126         this.disabledPropTrue = this.$element("disabledPropTrue").getInspector()
127         this.disabledPropFalse = this.$element("disabledPropFalse").getInspector()
128         this.disabledPropNone = this.$element("disabledPropNone").getInspector()
129         this.focusablePropTrue = this.$element("focusablePropTrue").getInspector()
130         this.focusablePropFalse = this.$element("focusablePropFalse").getInspector()
131         this.focusablePropNone = this.$element("focusablePropNone").getInspector()
132         this.dataProp = this.$element("dataProp").getInspector()
133         this.dataPropNone = this.$element("dataPropNone").getInspector()
134         this.clickEffectPropSmall = this.$element("clickEffectPropSmall").getInspector()
135         this.clickEffectPropMedium = this.$element("clickEffectPropMedium").getInspector()
136         this.clickEffectPropLarge = this.$element("clickEffectPropLarge").getInspector()
137         this.clickEffectPropNone = this.$element("clickEffectPropNone").getInspector()
138         this.dirPropRtl = this.$element("dirPropRtl").getInspector()
139         this.dirPropAuto = this.$element("dirPropAuto").getInspector()
140         this.dirPropLtr = this.$element("dirPropLtr").getInspector()
141         this.dirPropNone = this.$element("dirPropNone").getInspector()
142         this.forPropNull = this.$element("forPropNull").getInspector()
143         this.forPropOne = this.$element("forPropOne").getInspector()
144         this.forPropThree = this.$element("forPropThree").getInspector()
145         this.ifPropTrue = this.$element("ifPropTrue").getInspector()
146         this.showPropTrue = this.$element("showPropTrue").getInspector()
147         this.showPropFalse = this.$element("showPropFalse").getInspector()
148         this.showPropNone = this.$element("showPropNone").getInspector()
149     },
150     getSpecificPropValues(){
151         this.Type = this.$element("Type").getInspector()
152         this.TypeNone = this.$element("TypeNone").getInspector()
153         this.primaryTrue = this.$element("primaryTrue").getInspector()
154         this.primaryFalse = this.$element("primaryFalse").getInspector()
155         this.primaryNone = this.$element("primaryNone").getInspector()
156         this.section = this.$element("section").getInspector()
157         this.sectionNone = this.$element("sectionNone").getInspector()
158         this.stickyNone = this.$element("stickyNone").getInspector()
159         this.stickyNormal = this.$element("stickyNormal").getInspector()
160         this.stickyOpacity = this.$element("stickyOpacity").getInspector()
161         this.stickyNo = this.$element("stickyNo").getInspector()
162         this.clickeffectTrue = this.$element("clickeffectTrue").getInspector()
163         this.clickeffectFalse = this.$element("clickeffectFalse").getInspector()
164         this.clickeffectNone = this.$element("clickeffectNone").getInspector()
165     },
166 }
167