• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1/*
2 * Copyright (c) 2021 Huawei Device 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{
17  "@app-component/forDirective": {
18    "_descriptor": {},
19    "data": {},
20    "template": {
21      "type": "div",
22      "attr": {
23        "debugLine": "pages/forDirective/forDirective:1"
24      },
25      "children": [
26        {
27          "type": "div",
28          "attr": {
29            "debugLine": "pages/forDirective/forDirective:3"
30          },
31          "repeat": "function () {return this.list}",
32          "events": {
33            "click": "function (evt) {this.test(this.$item,evt)}"
34          },
35          "children": [
36            {
37              "type": "text",
38              "attr": {
39                "debugLine": "pages/forDirective/forDirective:4",
40                "value": "function () {return (this.$idx)+ decodeURI('') +decodeURI('.')+ decodeURI('') +(this.$item.name)}"
41              }
42            }
43          ]
44        },
45        {
46          "type": "div",
47          "attr": {
48            "debugLine": "pages/forDirective/forDirective:8"
49          },
50          "children": [
51            {
52              "type": "div",
53              "attr": {
54                "debugLine": "pages/forDirective/forDirective:9"
55              },
56              "repeat": {
57                "exp": "function () {return this.list}",
58                "value": "personItem"
59              },
60              "events": {
61                "click": "function (evt) {this.test(this.$idx,evt)}"
62              },
63              "children": [
64                {
65                  "type": "text",
66                  "attr": {
67                    "debugLine": "pages/forDirective/forDirective:10",
68                    "value": "function () {return (this.$idx)+ decodeURI('') +decodeURI('-')+ decodeURI('') +(this.personItem.name)+ decodeURI('') +decodeURI('--')+ decodeURI('') +(this.personItem.age)}"
69                  }
70                }
71              ]
72            },
73            {
74              "type": "image",
75              "attr": {
76                "debugLine": "pages/forDirective/forDirective:12",
77                "src": "function () {return this.personItem}"
78              }
79            }
80          ]
81        },
82        {
83          "type": "div",
84          "attr": {
85            "debugLine": "pages/forDirective/forDirective:16"
86          },
87          "children": [
88            {
89              "type": "div",
90              "attr": {
91                "debugLine": "pages/forDirective/forDirective:17"
92              },
93              "repeat": {
94                "exp": "function () {return this.flexShrinkClass}",
95                "value": "shrinkClass",
96                "exp": "function () {return this.list}",
97                "key": "personIndex",
98                "value": "personItem"
99              },
100              "events": {
101                "click": "function (evt) {this.test(this.personItem,evt)}"
102              },
103              "children": [
104                {
105                  "type": "text",
106                  "attr": {
107                    "debugLine": "pages/forDirective/forDirective:18",
108                    "value": "function () {return (this.personIndex)+ decodeURI('') +decodeURI('.')+ decodeURI('') +(this.personItem.name)}"
109                  }
110                }
111              ]
112            },
113            {
114              "type": "swiper",
115              "attr": {
116                "debugLine": "pages/forDirective/forDirective:20",
117                "index": "function () {return this.personIndex}",
118                "loop": "function () {return this.personItem}"
119              }
120            }
121          ]
122        },
123        {
124          "attr": {
125            "debugLine": "pages/forDirective/forDirective:24"
126          },
127          "children": [
128            {
129              "attr": {
130                "debugLine": "pages/forDirective/forDirective:25"
131              },
132              "children": [
133                {
134                  "attr": {
135                    "debugLine": "pages/forDirective/forDirective:26",
136                    "value": "function () {return (this.personItem.id)+ decodeURI('') +decodeURI('--')+ decodeURI('') +(this.item.name)}"
137                  },
138                  "type": "text"
139                }
140              ],
141              "repeat": {
142                "exp": "function () {return this.menu}",
143                "key": "index",
144                "value": "item"
145              },
146              "type": "div"
147            }
148          ],
149          "events": {
150            "click": "function (evt) {this.test(this.personItem,evt)}"
151          },
152          "repeat": {
153            "exp": "function () {return this.list}",
154            "key": "personIndex",
155            "value": "personItem"
156          },
157          "type": "div"
158        },
159        {
160          "attr": {
161            "debugLine": "pages/forDirective/forDirective:31"
162          },
163          "children": [
164            {
165              "attr": {
166                "debugLine": "pages/forDirective/forDirective:32"
167              },
168              "children": [
169                {
170                  "attr": {
171                    "debugLine": "pages/forDirective/forDirective:33",
172                    "value": "function () {return (this.index)+ decodeURI('') +decodeURI('--')+ decodeURI('') +(this.item.name)}"
173                  },
174                  "type": "text"
175                }
176              ],
177              "repeat": {
178                "exp": "function () {return this.personItem}",
179                "key": "index",
180                "value": "item"
181              },
182              "type": "div"
183            }
184          ],
185          "events": {
186            "click": "function (evt) {this.test(this.personItem,evt)}"
187          },
188          "repeat": {
189            "exp": "function () {return this.list}",
190            "key": "personIndex",
191            "value": "personItem"
192          },
193          "type": "div"
194        },
195        {
196          "attr": {
197            "debugLine": "pages/forDirective/forDirective:39"
198          },
199          "children": [
200            {
201              "attr": {
202                "debugLine": "pages/forDirective/forDirective:40",
203                "value": "function () {return (this.personIndex)+ decodeURI('') +decodeURI('.')+ decodeURI('') +(this.personItem.name)}"
204              },
205              "events": {
206                "click": "personItem.click"
207              },
208              "type": "div"
209            }
210          ],
211          "events": {
212            "click": "function (evt) {this.test(this.personItem,evt)}"
213          },
214          "repeat": {
215            "exp": "function () {return this.list}",
216            "key": "personIndex",
217            "value": "personItem"
218          },
219          "type": "div"
220        },
221        {
222          "attr": {
223            "debugLine": "pages/forDirective/forDirective:46"
224          },
225          "children": [
226            {
227              "attr": {
228                "debugLine": "pages/forDirective/forDirective:47",
229                "value": "function () {return this.value.info}"
230              },
231              "events": {
232                "click": "value.click"
233              },
234              "type": "div"
235            }
236          ],
237          "events": {
238            "click": "function (evt) {this.test(this.value,evt)}"
239          },
240          "repeat": {
241            "exp": "function () {return this.value.list}",
242            "key": "value",
243            "value": "index"
244          },
245          "type": "div"
246        },
247        {
248          "attr": {
249            "debugLine": "pages/forDirective/forDirective:51"
250          },
251          "children": [
252            {
253              "attr": {
254                "debugLine": "pages/forDirective/forDirective:52",
255                "value": "function () {return this.value.info}"
256              },
257              "events": {
258                "click": "value.click"
259              },
260              "type": "div"
261            }
262          ],
263          "events": {
264            "click": "function (evt) {this.test(this.value,evt)}"
265          },
266          "repeat": {
267            "exp": "function () {return this.flexShrinkClass}",
268            "value": "shrinkClass"
269          },
270          "type": "div"
271        }
272      ]
273    }
274  }
275}
276