xref: /third_party/weex-loader/test/expect/o.js (revision 88c88e8e)
188c88e8eSopenharmony_ci{
288c88e8eSopenharmony_ci  "@weex-component/wxc-button": {
388c88e8eSopenharmony_ci    "data": "function () {return {\n\t    type: 'default',\n\t    size: 'large',\n\t    value: ''\n\t  }}",
488c88e8eSopenharmony_ci    "methods": {},
588c88e8eSopenharmony_ci    "template": {
688c88e8eSopenharmony_ci      "type": "div",
788c88e8eSopenharmony_ci      "classList": "function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}",
888c88e8eSopenharmony_ci      "children": [
988c88e8eSopenharmony_ci        {
1088c88e8eSopenharmony_ci          "type": "text",
1188c88e8eSopenharmony_ci          "classList": "function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}",
1288c88e8eSopenharmony_ci          "attr": {
1388c88e8eSopenharmony_ci            "value": "function () {return this.value}"
1488c88e8eSopenharmony_ci          }
1588c88e8eSopenharmony_ci        }
1688c88e8eSopenharmony_ci      ]
1788c88e8eSopenharmony_ci    },
1888c88e8eSopenharmony_ci    "style": {
1988c88e8eSopenharmony_ci      "btn": {
2088c88e8eSopenharmony_ci        "marginBottom": 0,
2188c88e8eSopenharmony_ci        "alignItems": "center",
2288c88e8eSopenharmony_ci        "justifyContent": "center",
2388c88e8eSopenharmony_ci        "borderWidth": 1,
2488c88e8eSopenharmony_ci        "borderStyle": "solid",
2588c88e8eSopenharmony_ci        "borderColor": "#333333"
2688c88e8eSopenharmony_ci      },
2788c88e8eSopenharmony_ci      "btn-default": {
2888c88e8eSopenharmony_ci        "color": "rgb(51,51,51)"
2988c88e8eSopenharmony_ci      },
3088c88e8eSopenharmony_ci      "btn-primary": {
3188c88e8eSopenharmony_ci        "backgroundColor": "rgb(40,96,144)",
3288c88e8eSopenharmony_ci        "borderColor": "rgb(40,96,144)"
3388c88e8eSopenharmony_ci      },
3488c88e8eSopenharmony_ci      "btn-success": {
3588c88e8eSopenharmony_ci        "backgroundColor": "rgb(92,184,92)",
3688c88e8eSopenharmony_ci        "borderColor": "rgb(76,174,76)"
3788c88e8eSopenharmony_ci      },
3888c88e8eSopenharmony_ci      "btn-info": {
3988c88e8eSopenharmony_ci        "backgroundColor": "rgb(91,192,222)",
4088c88e8eSopenharmony_ci        "borderColor": "rgb(70,184,218)"
4188c88e8eSopenharmony_ci      },
4288c88e8eSopenharmony_ci      "btn-warning": {
4388c88e8eSopenharmony_ci        "backgroundColor": "rgb(240,173,78)",
4488c88e8eSopenharmony_ci        "borderColor": "rgb(238,162,54)"
4588c88e8eSopenharmony_ci      },
4688c88e8eSopenharmony_ci      "btn-danger": {
4788c88e8eSopenharmony_ci        "backgroundColor": "rgb(217,83,79)",
4888c88e8eSopenharmony_ci        "borderColor": "rgb(212,63,58)"
4988c88e8eSopenharmony_ci      },
5088c88e8eSopenharmony_ci      "btn-link": {
5188c88e8eSopenharmony_ci        "borderColor": "rgba(0,0,0,0)",
5288c88e8eSopenharmony_ci        "borderRadius": 0
5388c88e8eSopenharmony_ci      },
5488c88e8eSopenharmony_ci      "btn-txt-default": {
5588c88e8eSopenharmony_ci        "color": "rgb(51,51,51)"
5688c88e8eSopenharmony_ci      },
5788c88e8eSopenharmony_ci      "btn-txt-primary": {
5888c88e8eSopenharmony_ci        "color": "rgb(255,255,255)"
5988c88e8eSopenharmony_ci      },
6088c88e8eSopenharmony_ci      "btn-txt-success": {
6188c88e8eSopenharmony_ci        "color": "rgb(255,255,255)"
6288c88e8eSopenharmony_ci      },
6388c88e8eSopenharmony_ci      "btn-txt-info": {
6488c88e8eSopenharmony_ci        "color": "rgb(255,255,255)"
6588c88e8eSopenharmony_ci      },
6688c88e8eSopenharmony_ci      "btn-txt-warning": {
6788c88e8eSopenharmony_ci        "color": "rgb(255,255,255)"
6888c88e8eSopenharmony_ci      },
6988c88e8eSopenharmony_ci      "btn-txt-danger": {
7088c88e8eSopenharmony_ci        "color": "rgb(255,255,255)"
7188c88e8eSopenharmony_ci      },
7288c88e8eSopenharmony_ci      "btn-txt-link": {
7388c88e8eSopenharmony_ci        "color": "rgb(51,122,183)"
7488c88e8eSopenharmony_ci      },
7588c88e8eSopenharmony_ci      "btn-sz-large": {
7688c88e8eSopenharmony_ci        "width": 300,
7788c88e8eSopenharmony_ci        "height": 100,
7888c88e8eSopenharmony_ci        "paddingTop": 25,
7988c88e8eSopenharmony_ci        "paddingBottom": 25,
8088c88e8eSopenharmony_ci        "paddingLeft": 40,
8188c88e8eSopenharmony_ci        "paddingRight": 40,
8288c88e8eSopenharmony_ci        "borderRadius": 15
8388c88e8eSopenharmony_ci      },
8488c88e8eSopenharmony_ci      "btn-sz-middle": {
8588c88e8eSopenharmony_ci        "width": 240,
8688c88e8eSopenharmony_ci        "height": 80,
8788c88e8eSopenharmony_ci        "paddingTop": 15,
8888c88e8eSopenharmony_ci        "paddingBottom": 15,
8988c88e8eSopenharmony_ci        "paddingLeft": 30,
9088c88e8eSopenharmony_ci        "paddingRight": 30,
9188c88e8eSopenharmony_ci        "borderRadius": 10
9288c88e8eSopenharmony_ci      },
9388c88e8eSopenharmony_ci      "btn-sz-small": {
9488c88e8eSopenharmony_ci        "width": 170,
9588c88e8eSopenharmony_ci        "height": 60,
9688c88e8eSopenharmony_ci        "paddingTop": 12,
9788c88e8eSopenharmony_ci        "paddingBottom": 12,
9888c88e8eSopenharmony_ci        "paddingLeft": 25,
9988c88e8eSopenharmony_ci        "paddingRight": 25,
10088c88e8eSopenharmony_ci        "borderRadius": 7
10188c88e8eSopenharmony_ci      },
10288c88e8eSopenharmony_ci      "btn-txt-sz-large": {
10388c88e8eSopenharmony_ci        "fontSize": 45
10488c88e8eSopenharmony_ci      },
10588c88e8eSopenharmony_ci      "btn-txt-sz-middle": {
10688c88e8eSopenharmony_ci        "fontSize": 35
10788c88e8eSopenharmony_ci      },
10888c88e8eSopenharmony_ci      "btn-txt-sz-small": {
10988c88e8eSopenharmony_ci        "fontSize": 30
11088c88e8eSopenharmony_ci      }
11188c88e8eSopenharmony_ci    }
11288c88e8eSopenharmony_ci  },
11388c88e8eSopenharmony_ci  "@weex-component/wxc-hn": {
11488c88e8eSopenharmony_ci    "data": "function () {return {\n\t    level: 1,\n\t    value: ''\n\t  }}",
11588c88e8eSopenharmony_ci    "methods": {},
11688c88e8eSopenharmony_ci    "template": {
11788c88e8eSopenharmony_ci      "type": "div",
11888c88e8eSopenharmony_ci      "classList": "function () {return ['h' + (this.level)]}",
11988c88e8eSopenharmony_ci      "style": {
12088c88e8eSopenharmony_ci        "justifyContent": "center"
12188c88e8eSopenharmony_ci      },
12288c88e8eSopenharmony_ci      "children": [
12388c88e8eSopenharmony_ci        {
12488c88e8eSopenharmony_ci          "type": "text",
12588c88e8eSopenharmony_ci          "classList": "function () {return ['txt-h' + (this.level)]}",
12688c88e8eSopenharmony_ci          "attr": {
12788c88e8eSopenharmony_ci            "value": "function () {return this.value}"
12888c88e8eSopenharmony_ci          }
12988c88e8eSopenharmony_ci        }
13088c88e8eSopenharmony_ci      ]
13188c88e8eSopenharmony_ci    },
13288c88e8eSopenharmony_ci    "style": {
13388c88e8eSopenharmony_ci      "h1": {
13488c88e8eSopenharmony_ci        "height": 110,
13588c88e8eSopenharmony_ci        "paddingTop": 20,
13688c88e8eSopenharmony_ci        "paddingBottom": 20
13788c88e8eSopenharmony_ci      },
13888c88e8eSopenharmony_ci      "h2": {
13988c88e8eSopenharmony_ci        "height": 110,
14088c88e8eSopenharmony_ci        "paddingTop": 20,
14188c88e8eSopenharmony_ci        "paddingBottom": 20
14288c88e8eSopenharmony_ci      },
14388c88e8eSopenharmony_ci      "h3": {
14488c88e8eSopenharmony_ci        "height": 110,
14588c88e8eSopenharmony_ci        "paddingTop": 20,
14688c88e8eSopenharmony_ci        "paddingBottom": 20
14788c88e8eSopenharmony_ci      },
14888c88e8eSopenharmony_ci      "txt-h1": {
14988c88e8eSopenharmony_ci        "fontSize": 70
15088c88e8eSopenharmony_ci      },
15188c88e8eSopenharmony_ci      "txt-h2": {
15288c88e8eSopenharmony_ci        "fontSize": 52
15388c88e8eSopenharmony_ci      },
15488c88e8eSopenharmony_ci      "txt-h3": {
15588c88e8eSopenharmony_ci        "fontSize": 42
15688c88e8eSopenharmony_ci      }
15788c88e8eSopenharmony_ci    }
15888c88e8eSopenharmony_ci  },
15988c88e8eSopenharmony_ci  "@weex-component/wxc-list-item": {
16088c88e8eSopenharmony_ci    "data": "function () {return {\n\t    bgColor: '#ffffff'\n\t  }}",
16188c88e8eSopenharmony_ci    "methods": {
16288c88e8eSopenharmony_ci      "touchstart": "function touchstart() {}",
16388c88e8eSopenharmony_ci      "touchend": "function touchend() {}"
16488c88e8eSopenharmony_ci    },
16588c88e8eSopenharmony_ci    "template": {
16688c88e8eSopenharmony_ci      "type": "div",
16788c88e8eSopenharmony_ci      "classList": [
16888c88e8eSopenharmony_ci        "item"
16988c88e8eSopenharmony_ci      ],
17088c88e8eSopenharmony_ci      "events": {
17188c88e8eSopenharmony_ci        "touchstart": "touchstart",
17288c88e8eSopenharmony_ci        "touchend": "touchend"
17388c88e8eSopenharmony_ci      },
17488c88e8eSopenharmony_ci      "style": {
17588c88e8eSopenharmony_ci        "backgroundColor": "function () {return this.bgColor}"
17688c88e8eSopenharmony_ci      },
17788c88e8eSopenharmony_ci      "children": [
17888c88e8eSopenharmony_ci        {
17988c88e8eSopenharmony_ci          "type": "content"
18088c88e8eSopenharmony_ci        }
18188c88e8eSopenharmony_ci      ]
18288c88e8eSopenharmony_ci    },
18388c88e8eSopenharmony_ci    "style": {
18488c88e8eSopenharmony_ci      "item": {
18588c88e8eSopenharmony_ci        "paddingTop": 25,
18688c88e8eSopenharmony_ci        "paddingBottom": 25,
18788c88e8eSopenharmony_ci        "paddingLeft": 35,
18888c88e8eSopenharmony_ci        "paddingRight": 35,
18988c88e8eSopenharmony_ci        "height": 160,
19088c88e8eSopenharmony_ci        "justifyContent": "center",
19188c88e8eSopenharmony_ci        "borderBottomWidth": 1,
19288c88e8eSopenharmony_ci        "borderColor": "#dddddd"
19388c88e8eSopenharmony_ci      }
19488c88e8eSopenharmony_ci    }
19588c88e8eSopenharmony_ci  },
19688c88e8eSopenharmony_ci  "@weex-component/wxc-panel": {
19788c88e8eSopenharmony_ci    "data": "function () {return {\n\t    type: 'default',\n\t    title: '',\n\t    paddingBody: 20,\n\t    paddingHead: 20,\n\t    dataClass: '',\n\t    border: 0\n\t  }}",
19888c88e8eSopenharmony_ci    "ready": "function ready() {}",
19988c88e8eSopenharmony_ci    "template": {
20088c88e8eSopenharmony_ci      "type": "div",
20188c88e8eSopenharmony_ci      "classList": "function () {return ['panel', 'panel-' + (this.type)]}",
20288c88e8eSopenharmony_ci      "style": {
20388c88e8eSopenharmony_ci        "borderWidth": "function () {return this.border}"
20488c88e8eSopenharmony_ci      },
20588c88e8eSopenharmony_ci      "children": [
20688c88e8eSopenharmony_ci        {
20788c88e8eSopenharmony_ci          "type": "text",
20888c88e8eSopenharmony_ci          "classList": "function () {return ['panel-header', 'panel-header-' + (this.type)]}",
20988c88e8eSopenharmony_ci          "style": {
21088c88e8eSopenharmony_ci            "paddingTop": "function () {return this.paddingHead}",
21188c88e8eSopenharmony_ci            "paddingBottom": "function () {return this.paddingHead}",
21288c88e8eSopenharmony_ci            "paddingLeft": "function () {return this.paddingHead*1.5}",
21388c88e8eSopenharmony_ci            "paddingRight": "function () {return this.paddingHead*1.5}"
21488c88e8eSopenharmony_ci          },
21588c88e8eSopenharmony_ci          "attr": {
21688c88e8eSopenharmony_ci            "value": "function () {return this.title}"
21788c88e8eSopenharmony_ci          }
21888c88e8eSopenharmony_ci        },
21988c88e8eSopenharmony_ci        {
22088c88e8eSopenharmony_ci          "type": "div",
22188c88e8eSopenharmony_ci          "classList": "function () {return ['panel-body', 'panel-body-' + (this.type)]}",
22288c88e8eSopenharmony_ci          "style": {
22388c88e8eSopenharmony_ci            "paddingTop": "function () {return this.paddingBody}",
22488c88e8eSopenharmony_ci            "paddingBottom": "function () {return this.paddingBody}",
22588c88e8eSopenharmony_ci            "paddingLeft": "function () {return this.paddingBody*1.5}",
22688c88e8eSopenharmony_ci            "paddingRight": "function () {return this.paddingBody*1.5}"
22788c88e8eSopenharmony_ci          },
22888c88e8eSopenharmony_ci          "children": [
22988c88e8eSopenharmony_ci            {
23088c88e8eSopenharmony_ci              "type": "content"
23188c88e8eSopenharmony_ci            }
23288c88e8eSopenharmony_ci          ]
23388c88e8eSopenharmony_ci        }
23488c88e8eSopenharmony_ci      ]
23588c88e8eSopenharmony_ci    },
23688c88e8eSopenharmony_ci    "style": {
23788c88e8eSopenharmony_ci      "panel": {
23888c88e8eSopenharmony_ci        "marginBottom": 20,
23988c88e8eSopenharmony_ci        "backgroundColor": "#ffffff",
24088c88e8eSopenharmony_ci        "borderColor": "#dddddd",
24188c88e8eSopenharmony_ci        "borderWidth": 1
24288c88e8eSopenharmony_ci      },
24388c88e8eSopenharmony_ci      "panel-primary": {
24488c88e8eSopenharmony_ci        "borderColor": "rgb(40,96,144)"
24588c88e8eSopenharmony_ci      },
24688c88e8eSopenharmony_ci      "panel-success": {
24788c88e8eSopenharmony_ci        "borderColor": "rgb(76,174,76)"
24888c88e8eSopenharmony_ci      },
24988c88e8eSopenharmony_ci      "panel-info": {
25088c88e8eSopenharmony_ci        "borderColor": "rgb(70,184,218)"
25188c88e8eSopenharmony_ci      },
25288c88e8eSopenharmony_ci      "panel-warning": {
25388c88e8eSopenharmony_ci        "borderColor": "rgb(238,162,54)"
25488c88e8eSopenharmony_ci      },
25588c88e8eSopenharmony_ci      "panel-danger": {
25688c88e8eSopenharmony_ci        "borderColor": "rgb(212,63,58)"
25788c88e8eSopenharmony_ci      },
25888c88e8eSopenharmony_ci      "panel-header": {
25988c88e8eSopenharmony_ci        "backgroundColor": "#f5f5f5",
26088c88e8eSopenharmony_ci        "fontSize": 40,
26188c88e8eSopenharmony_ci        "color": "#333333"
26288c88e8eSopenharmony_ci      },
26388c88e8eSopenharmony_ci      "panel-header-primary": {
26488c88e8eSopenharmony_ci        "backgroundColor": "rgb(40,96,144)",
26588c88e8eSopenharmony_ci        "color": "#ffffff"
26688c88e8eSopenharmony_ci      },
26788c88e8eSopenharmony_ci      "panel-header-success": {
26888c88e8eSopenharmony_ci        "backgroundColor": "rgb(92,184,92)",
26988c88e8eSopenharmony_ci        "color": "#ffffff"
27088c88e8eSopenharmony_ci      },
27188c88e8eSopenharmony_ci      "panel-header-info": {
27288c88e8eSopenharmony_ci        "backgroundColor": "rgb(91,192,222)",
27388c88e8eSopenharmony_ci        "color": "#ffffff"
27488c88e8eSopenharmony_ci      },
27588c88e8eSopenharmony_ci      "panel-header-warning": {
27688c88e8eSopenharmony_ci        "backgroundColor": "rgb(240,173,78)",
27788c88e8eSopenharmony_ci        "color": "#ffffff"
27888c88e8eSopenharmony_ci      },
27988c88e8eSopenharmony_ci      "panel-header-danger": {
28088c88e8eSopenharmony_ci        "backgroundColor": "rgb(217,83,79)",
28188c88e8eSopenharmony_ci        "color": "#ffffff"
28288c88e8eSopenharmony_ci      },
28388c88e8eSopenharmony_ci      "panel-body": {}
28488c88e8eSopenharmony_ci    }
28588c88e8eSopenharmony_ci  },
28688c88e8eSopenharmony_ci  "@weex-component/wxc-tip": {
28788c88e8eSopenharmony_ci    "data": "function () {return {\n\t    type: 'success',\n\t    value: ''\n\t  }}",
28888c88e8eSopenharmony_ci    "template": {
28988c88e8eSopenharmony_ci      "type": "div",
29088c88e8eSopenharmony_ci      "classList": "function () {return ['tip', 'tip-' + (this.type)]}",
29188c88e8eSopenharmony_ci      "children": [
29288c88e8eSopenharmony_ci        {
29388c88e8eSopenharmony_ci          "type": "text",
29488c88e8eSopenharmony_ci          "classList": "function () {return ['tip-txt', 'tip-txt-' + (this.type)]}",
29588c88e8eSopenharmony_ci          "attr": {
29688c88e8eSopenharmony_ci            "value": "function () {return this.value}"
29788c88e8eSopenharmony_ci          }
29888c88e8eSopenharmony_ci        }
29988c88e8eSopenharmony_ci      ]
30088c88e8eSopenharmony_ci    },
30188c88e8eSopenharmony_ci    "style": {
30288c88e8eSopenharmony_ci      "tip": {
30388c88e8eSopenharmony_ci        "paddingLeft": 36,
30488c88e8eSopenharmony_ci        "paddingRight": 36,
30588c88e8eSopenharmony_ci        "paddingTop": 36,
30688c88e8eSopenharmony_ci        "paddingBottom": 36,
30788c88e8eSopenharmony_ci        "borderRadius": 10
30888c88e8eSopenharmony_ci      },
30988c88e8eSopenharmony_ci      "tip-txt": {
31088c88e8eSopenharmony_ci        "fontSize": 28
31188c88e8eSopenharmony_ci      },
31288c88e8eSopenharmony_ci      "tip-success": {
31388c88e8eSopenharmony_ci        "backgroundColor": "#dff0d8",
31488c88e8eSopenharmony_ci        "borderColor": "#d6e9c6"
31588c88e8eSopenharmony_ci      },
31688c88e8eSopenharmony_ci      "tip-txt-success": {
31788c88e8eSopenharmony_ci        "color": "#3c763d"
31888c88e8eSopenharmony_ci      },
31988c88e8eSopenharmony_ci      "tip-info": {
32088c88e8eSopenharmony_ci        "backgroundColor": "#d9edf7",
32188c88e8eSopenharmony_ci        "borderColor": "#bce8f1"
32288c88e8eSopenharmony_ci      },
32388c88e8eSopenharmony_ci      "tip-txt-info": {
32488c88e8eSopenharmony_ci        "color": "#31708f"
32588c88e8eSopenharmony_ci      },
32688c88e8eSopenharmony_ci      "tip-warning": {
32788c88e8eSopenharmony_ci        "backgroundColor": "#fcf8e3",
32888c88e8eSopenharmony_ci        "borderColor": "#faebcc"
32988c88e8eSopenharmony_ci      },
33088c88e8eSopenharmony_ci      "tip-txt-warning": {
33188c88e8eSopenharmony_ci        "color": "#8a6d3b"
33288c88e8eSopenharmony_ci      },
33388c88e8eSopenharmony_ci      "tip-danger": {
33488c88e8eSopenharmony_ci        "backgroundColor": "#f2dede",
33588c88e8eSopenharmony_ci        "borderColor": "#ebccd1"
33688c88e8eSopenharmony_ci      },
33788c88e8eSopenharmony_ci      "tip-txt-danger": {
33888c88e8eSopenharmony_ci        "color": "#a94442"
33988c88e8eSopenharmony_ci      }
34088c88e8eSopenharmony_ci    }
34188c88e8eSopenharmony_ci  },
34288c88e8eSopenharmony_ci  "@weex-component/wxc-countdown": {
34388c88e8eSopenharmony_ci    "data": "function () {return {\n\t        now: 0,\n\t        remain: 0,\n\t        time: {\n\t            elapse: 0,\n\t            D: '0',\n\t            DD: '0',\n\t            h: '0',\n\t            hh: '00',\n\t            H: '0',\n\t            HH: '0',\n\t            m: '0',\n\t            mm: '00',\n\t            M: '0',\n\t            MM: '0',\n\t            s: '0',\n\t            ss: '00',\n\t            S: '0',\n\t            SS: '0'\n\t        },\n\t        outofview: false\n\t    }}",
34488c88e8eSopenharmony_ci    "ready": "function ready() {\n\t        if (this.remain <= 0) {\n\t            return;\n\t        }\n\t\n\t        this.now = Date.now();\n\t        this.nextTick();\n\t    }",
34588c88e8eSopenharmony_ci    "methods": {
34688c88e8eSopenharmony_ci      "nextTick": "function nextTick() {\n\t            if (this.outofview) {\n\t                setTimeout(this.nextTick.bind(this), 1000);\n\t            } else {\n\t                this.time.elapse = parseInt((Date.now() - this.now) / 1000);\n\t\n\t                if (this.calc()) {\n\t                    this.$emit('tick', (0, _assign2.default)({}, this.time));\n\t                    setTimeout(this.nextTick.bind(this), 1000);\n\t                } else {\n\t                    this.$emit('alarm', (0, _assign2.default)({}, this.time));\n\t                }\n\t                this._app.updateActions();\n\t            }\n\t        }",
34788c88e8eSopenharmony_ci      "format": "function format(str) {\n\t            if (str.length >= 2) {\n\t                return str;\n\t            } else {\n\t                return '0' + str;\n\t            }\n\t        }",
34888c88e8eSopenharmony_ci      "calc": "function calc() {\n\t            var remain = this.remain - this.time.elapse;\n\t            if (remain < 0) {\n\t                remain = 0;\n\t            }\n\t            this.time.D = String(parseInt(remain / 86400));\n\t            this.time.DD = this.format(this.time.D);\n\t            this.time.h = String(parseInt((remain - parseInt(this.time.D) * 86400) / 3600));\n\t            this.time.hh = this.format(this.time.h);\n\t            this.time.H = String(parseInt(remain / 3600));\n\t            this.time.HH = this.format(this.time.H);\n\t            this.time.m = String(parseInt((remain - parseInt(this.time.H) * 3600) / 60));\n\t            this.time.mm = this.format(this.time.m);\n\t            this.time.M = String(parseInt(remain / 60));\n\t            this.time.MM = this.format(this.time.M);\n\t            this.time.s = String(remain - parseInt(this.time.M) * 60);\n\t            this.time.ss = this.format(this.time.s);\n\t            this.time.S = String(remain);\n\t            this.time.SS = this.format(this.time.S);\n\t\n\t            return remain > 0;\n\t        }",
34988c88e8eSopenharmony_ci      "appeared": "function appeared() {\n\t            this.outofview = false;\n\t        }",
35088c88e8eSopenharmony_ci      "disappeared": "function disappeared() {\n\t            this.outofview = true;\n\t        }"
35188c88e8eSopenharmony_ci    },
35288c88e8eSopenharmony_ci    "template": {
35388c88e8eSopenharmony_ci      "type": "div",
35488c88e8eSopenharmony_ci      "style": {
35588c88e8eSopenharmony_ci        "overflow": "hidden",
35688c88e8eSopenharmony_ci        "flexDirection": "row"
35788c88e8eSopenharmony_ci      },
35888c88e8eSopenharmony_ci      "events": {
35988c88e8eSopenharmony_ci        "appear": "appeared",
36088c88e8eSopenharmony_ci        "disappear": "disappeared"
36188c88e8eSopenharmony_ci      },
36288c88e8eSopenharmony_ci      "children": [
36388c88e8eSopenharmony_ci        {
36488c88e8eSopenharmony_ci          "type": "content"
36588c88e8eSopenharmony_ci        }
36688c88e8eSopenharmony_ci      ]
36788c88e8eSopenharmony_ci    },
36888c88e8eSopenharmony_ci    "style": {
36988c88e8eSopenharmony_ci      "wrap": {
37088c88e8eSopenharmony_ci        "overflow": "hidden"
37188c88e8eSopenharmony_ci      }
37288c88e8eSopenharmony_ci    }
37388c88e8eSopenharmony_ci  },
37488c88e8eSopenharmony_ci  "@weex-component/wxc-marquee": {
37588c88e8eSopenharmony_ci    "data": "function () {return {\n\t        step: 0,\n\t        count: 0,\n\t        index: 1,\n\t        duration: 0,\n\t        interval: 0,\n\t        outofview: false\n\t    }}",
37688c88e8eSopenharmony_ci    "ready": "function ready() {\n\t        if (this.interval > 0 && this.step > 0 && this.duration > 0) {\n\t            this.nextTick();\n\t        }\n\t    }",
37788c88e8eSopenharmony_ci    "methods": {
37888c88e8eSopenharmony_ci      "nextTick": "function nextTick() {\n\t            var self = this;\n\t            if (this.outofview) {\n\t                setTimeout(self.nextTick.bind(self), self.interval);\n\t            } else {\n\t                setTimeout(function () {\n\t                    self.animation(self.nextTick.bind(self));\n\t                }, self.interval);\n\t            }\n\t        }",
37988c88e8eSopenharmony_ci      "animation": "function animation(cb) {\n\t            var self = this;\n\t            var offset = -self.step * self.index;\n\t            var $animation = __weex_require__('@weex-module/animation');\n\t            $animation.transition(this.$el('anim'), {\n\t                styles: {\n\t                    transform: 'translateY(' + String(offset) + 'px) translateZ(0)'\n\t                },\n\t                timingFunction: 'ease',\n\t                duration: self.duration\n\t            }, function () {\n\t                self.index = (self.index + 1) % self.count;\n\t                self.$emit('change', {\n\t                    index: self.index,\n\t                    count: self.count\n\t                });\n\t                cb && cb();\n\t            });\n\t        }",
38088c88e8eSopenharmony_ci      "appeared": "function appeared() {\n\t            this.outofview = false;\n\t        }",
38188c88e8eSopenharmony_ci      "disappeared": "function disappeared() {\n\t            this.outofview = true;\n\t        }"
38288c88e8eSopenharmony_ci    },
38388c88e8eSopenharmony_ci    "template": {
38488c88e8eSopenharmony_ci      "type": "div",
38588c88e8eSopenharmony_ci      "classList": [
38688c88e8eSopenharmony_ci        "wrap"
38788c88e8eSopenharmony_ci      ],
38888c88e8eSopenharmony_ci      "events": {
38988c88e8eSopenharmony_ci        "appear": "appeared",
39088c88e8eSopenharmony_ci        "disappear": "disappeared"
39188c88e8eSopenharmony_ci      },
39288c88e8eSopenharmony_ci      "children": [
39388c88e8eSopenharmony_ci        {
39488c88e8eSopenharmony_ci          "type": "div",
39588c88e8eSopenharmony_ci          "id": "anim",
39688c88e8eSopenharmony_ci          "classList": [
39788c88e8eSopenharmony_ci            "anim"
39888c88e8eSopenharmony_ci          ],
39988c88e8eSopenharmony_ci          "children": [
40088c88e8eSopenharmony_ci            {
40188c88e8eSopenharmony_ci              "type": "content"
40288c88e8eSopenharmony_ci            }
40388c88e8eSopenharmony_ci          ]
40488c88e8eSopenharmony_ci        }
40588c88e8eSopenharmony_ci      ]
40688c88e8eSopenharmony_ci    },
40788c88e8eSopenharmony_ci    "style": {
40888c88e8eSopenharmony_ci      "wrap": {
40988c88e8eSopenharmony_ci        "overflow": "hidden",
41088c88e8eSopenharmony_ci        "position": "relative"
41188c88e8eSopenharmony_ci      },
41288c88e8eSopenharmony_ci      "anim": {
41388c88e8eSopenharmony_ci        "flexDirection": "column",
41488c88e8eSopenharmony_ci        "position": "absolute",
41588c88e8eSopenharmony_ci        "transform": "translateY(0) translateZ(0)"
41688c88e8eSopenharmony_ci      }
41788c88e8eSopenharmony_ci    }
41888c88e8eSopenharmony_ci  },
41988c88e8eSopenharmony_ci  "@weex-component/wxc-navbar": {
42088c88e8eSopenharmony_ci    "data": "function () {return {\n\t    dataRole: 'navbar',\n\t\n\t    backgroundColor: 'black',\n\t\n\t    height: 88,\n\t\n\t    title: \"\",\n\t\n\t    titleColor: 'black',\n\t\n\t    rightItemSrc: '',\n\t\n\t    rightItemTitle: '',\n\t\n\t    rightItemColor: 'black',\n\t\n\t    leftItemSrc: '',\n\t\n\t    leftItemTitle: '',\n\t\n\t    leftItemColor: 'black'\n\t  }}",
42188c88e8eSopenharmony_ci    "methods": {
42288c88e8eSopenharmony_ci      "onclickrightitem": "function onclickrightitem(e) {\n\t      this.$dispatch('naviBar.rightItem.click', {});\n\t    }",
42388c88e8eSopenharmony_ci      "onclickleftitem": "function onclickleftitem(e) {\n\t      this.$dispatch('naviBar.leftItem.click', {});\n\t    }"
42488c88e8eSopenharmony_ci    },
42588c88e8eSopenharmony_ci    "template": {
42688c88e8eSopenharmony_ci      "type": "div",
42788c88e8eSopenharmony_ci      "classList": [
42888c88e8eSopenharmony_ci        "container"
42988c88e8eSopenharmony_ci      ],
43088c88e8eSopenharmony_ci      "style": {
43188c88e8eSopenharmony_ci        "height": "function () {return this.height}",
43288c88e8eSopenharmony_ci        "backgroundColor": "function () {return this.backgroundColor}"
43388c88e8eSopenharmony_ci      },
43488c88e8eSopenharmony_ci      "attr": {
43588c88e8eSopenharmony_ci        "dataRole": "function () {return this.dataRole}"
43688c88e8eSopenharmony_ci      },
43788c88e8eSopenharmony_ci      "children": [
43888c88e8eSopenharmony_ci        {
43988c88e8eSopenharmony_ci          "type": "text",
44088c88e8eSopenharmony_ci          "classList": [
44188c88e8eSopenharmony_ci            "right-text"
44288c88e8eSopenharmony_ci          ],
44388c88e8eSopenharmony_ci          "style": {
44488c88e8eSopenharmony_ci            "color": "function () {return this.rightItemColor}"
44588c88e8eSopenharmony_ci          },
44688c88e8eSopenharmony_ci          "attr": {
44788c88e8eSopenharmony_ci            "naviItemPosition": "right",
44888c88e8eSopenharmony_ci            "value": "function () {return this.rightItemTitle}"
44988c88e8eSopenharmony_ci          },
45088c88e8eSopenharmony_ci          "shown": "function () {return !this.rightItemSrc}",
45188c88e8eSopenharmony_ci          "events": {
45288c88e8eSopenharmony_ci            "click": "onclickrightitem"
45388c88e8eSopenharmony_ci          }
45488c88e8eSopenharmony_ci        },
45588c88e8eSopenharmony_ci        {
45688c88e8eSopenharmony_ci          "type": "image",
45788c88e8eSopenharmony_ci          "classList": [
45888c88e8eSopenharmony_ci            "right-image"
45988c88e8eSopenharmony_ci          ],
46088c88e8eSopenharmony_ci          "attr": {
46188c88e8eSopenharmony_ci            "naviItemPosition": "right",
46288c88e8eSopenharmony_ci            "src": "function () {return this.rightItemSrc}"
46388c88e8eSopenharmony_ci          },
46488c88e8eSopenharmony_ci          "shown": "function () {return this.rightItemSrc}",
46588c88e8eSopenharmony_ci          "events": {
46688c88e8eSopenharmony_ci            "click": "onclickrightitem"
46788c88e8eSopenharmony_ci          }
46888c88e8eSopenharmony_ci        },
46988c88e8eSopenharmony_ci        {
47088c88e8eSopenharmony_ci          "type": "text",
47188c88e8eSopenharmony_ci          "classList": [
47288c88e8eSopenharmony_ci            "left-text"
47388c88e8eSopenharmony_ci          ],
47488c88e8eSopenharmony_ci          "style": {
47588c88e8eSopenharmony_ci            "color": "function () {return this.leftItemColor}"
47688c88e8eSopenharmony_ci          },
47788c88e8eSopenharmony_ci          "attr": {
47888c88e8eSopenharmony_ci            "naviItemPosition": "left",
47988c88e8eSopenharmony_ci            "value": "function () {return this.leftItemTitle}"
48088c88e8eSopenharmony_ci          },
48188c88e8eSopenharmony_ci          "shown": "function () {return !this.leftItemSrc}",
48288c88e8eSopenharmony_ci          "events": {
48388c88e8eSopenharmony_ci            "click": "onclickleftitem"
48488c88e8eSopenharmony_ci          }
48588c88e8eSopenharmony_ci        },
48688c88e8eSopenharmony_ci        {
48788c88e8eSopenharmony_ci          "type": "image",
48888c88e8eSopenharmony_ci          "classList": [
48988c88e8eSopenharmony_ci            "left-image"
49088c88e8eSopenharmony_ci          ],
49188c88e8eSopenharmony_ci          "attr": {
49288c88e8eSopenharmony_ci            "naviItemPosition": "left",
49388c88e8eSopenharmony_ci            "src": "function () {return this.leftItemSrc}"
49488c88e8eSopenharmony_ci          },
49588c88e8eSopenharmony_ci          "shown": "function () {return this.leftItemSrc}",
49688c88e8eSopenharmony_ci          "events": {
49788c88e8eSopenharmony_ci            "click": "onclickleftitem"
49888c88e8eSopenharmony_ci          }
49988c88e8eSopenharmony_ci        },
50088c88e8eSopenharmony_ci        {
50188c88e8eSopenharmony_ci          "type": "text",
50288c88e8eSopenharmony_ci          "classList": [
50388c88e8eSopenharmony_ci            "center-text"
50488c88e8eSopenharmony_ci          ],
50588c88e8eSopenharmony_ci          "style": {
50688c88e8eSopenharmony_ci            "color": "function () {return this.titleColor}"
50788c88e8eSopenharmony_ci          },
50888c88e8eSopenharmony_ci          "attr": {
50988c88e8eSopenharmony_ci            "naviItemPosition": "center",
51088c88e8eSopenharmony_ci            "value": "function () {return this.title}"
51188c88e8eSopenharmony_ci          }
51288c88e8eSopenharmony_ci        }
51388c88e8eSopenharmony_ci      ]
51488c88e8eSopenharmony_ci    },
51588c88e8eSopenharmony_ci    "style": {
51688c88e8eSopenharmony_ci      "container": {
51788c88e8eSopenharmony_ci        "flexDirection": "row",
51888c88e8eSopenharmony_ci        "position": "fixed",
51988c88e8eSopenharmony_ci        "top": 0,
52088c88e8eSopenharmony_ci        "left": 0,
52188c88e8eSopenharmony_ci        "right": 0,
52288c88e8eSopenharmony_ci        "width": 750
52388c88e8eSopenharmony_ci      },
52488c88e8eSopenharmony_ci      "right-text": {
52588c88e8eSopenharmony_ci        "position": "absolute",
52688c88e8eSopenharmony_ci        "bottom": 28,
52788c88e8eSopenharmony_ci        "right": 32,
52888c88e8eSopenharmony_ci        "textAlign": "right",
52988c88e8eSopenharmony_ci        "fontSize": 32,
53088c88e8eSopenharmony_ci        "fontFamily": "'Open Sans', sans-serif"
53188c88e8eSopenharmony_ci      },
53288c88e8eSopenharmony_ci      "left-text": {
53388c88e8eSopenharmony_ci        "position": "absolute",
53488c88e8eSopenharmony_ci        "bottom": 28,
53588c88e8eSopenharmony_ci        "left": 32,
53688c88e8eSopenharmony_ci        "textAlign": "left",
53788c88e8eSopenharmony_ci        "fontSize": 32,
53888c88e8eSopenharmony_ci        "fontFamily": "'Open Sans', sans-serif"
53988c88e8eSopenharmony_ci      },
54088c88e8eSopenharmony_ci      "center-text": {
54188c88e8eSopenharmony_ci        "position": "absolute",
54288c88e8eSopenharmony_ci        "bottom": 25,
54388c88e8eSopenharmony_ci        "left": 172,
54488c88e8eSopenharmony_ci        "right": 172,
54588c88e8eSopenharmony_ci        "textAlign": "center",
54688c88e8eSopenharmony_ci        "fontSize": 36,
54788c88e8eSopenharmony_ci        "fontWeight": "bold"
54888c88e8eSopenharmony_ci      },
54988c88e8eSopenharmony_ci      "left-image": {
55088c88e8eSopenharmony_ci        "position": "absolute",
55188c88e8eSopenharmony_ci        "bottom": 20,
55288c88e8eSopenharmony_ci        "left": 28,
55388c88e8eSopenharmony_ci        "width": 50,
55488c88e8eSopenharmony_ci        "height": 50
55588c88e8eSopenharmony_ci      },
55688c88e8eSopenharmony_ci      "right-image": {
55788c88e8eSopenharmony_ci        "position": "absolute",
55888c88e8eSopenharmony_ci        "bottom": 20,
55988c88e8eSopenharmony_ci        "right": 28,
56088c88e8eSopenharmony_ci        "width": 50,
56188c88e8eSopenharmony_ci        "height": 50
56288c88e8eSopenharmony_ci      }
56388c88e8eSopenharmony_ci    }
56488c88e8eSopenharmony_ci  },
56588c88e8eSopenharmony_ci  "@weex-component/wxc-navpage": {
56688c88e8eSopenharmony_ci    "data": "function () {return {\n\t    dataRole: 'navbar',\n\t    backgroundColor: 'black',\n\t    height: 88,\n\t    title: \"\",\n\t    titleColor: 'black',\n\t    rightItemSrc: '',\n\t    rightItemTitle: '',\n\t    rightItemColor: 'black',\n\t    leftItemSrc: '',\n\t    leftItemTitle: '',\n\t    leftItemColor: 'black'\n\t  }}",
56788c88e8eSopenharmony_ci    "template": {
56888c88e8eSopenharmony_ci      "type": "div",
56988c88e8eSopenharmony_ci      "classList": [
57088c88e8eSopenharmony_ci        "wrapper"
57188c88e8eSopenharmony_ci      ],
57288c88e8eSopenharmony_ci      "children": [
57388c88e8eSopenharmony_ci        {
57488c88e8eSopenharmony_ci          "type": "wxc-navbar",
57588c88e8eSopenharmony_ci          "attr": {
57688c88e8eSopenharmony_ci            "dataRole": "function () {return this.dataRole}",
57788c88e8eSopenharmony_ci            "height": "function () {return this.height}",
57888c88e8eSopenharmony_ci            "backgroundColor": "function () {return this.backgroundColor}",
57988c88e8eSopenharmony_ci            "title": "function () {return this.title}",
58088c88e8eSopenharmony_ci            "titleColor": "function () {return this.titleColor}",
58188c88e8eSopenharmony_ci            "leftItemSrc": "function () {return this.leftItemSrc}",
58288c88e8eSopenharmony_ci            "leftItemTitle": "function () {return this.leftItemTitle}",
58388c88e8eSopenharmony_ci            "leftItemColor": "function () {return this.leftItemColor}",
58488c88e8eSopenharmony_ci            "rightItemSrc": "function () {return this.rightItemSrc}",
58588c88e8eSopenharmony_ci            "rightItemTitle": "function () {return this.rightItemTitle}",
58688c88e8eSopenharmony_ci            "rightItemColor": "function () {return this.rightItemColor}"
58788c88e8eSopenharmony_ci          }
58888c88e8eSopenharmony_ci        },
58988c88e8eSopenharmony_ci        {
59088c88e8eSopenharmony_ci          "type": "div",
59188c88e8eSopenharmony_ci          "classList": [
59288c88e8eSopenharmony_ci            "wrapper"
59388c88e8eSopenharmony_ci          ],
59488c88e8eSopenharmony_ci          "style": {
59588c88e8eSopenharmony_ci            "marginTop": "function () {return this.height}"
59688c88e8eSopenharmony_ci          },
59788c88e8eSopenharmony_ci          "children": [
59888c88e8eSopenharmony_ci            {
59988c88e8eSopenharmony_ci              "type": "content"
60088c88e8eSopenharmony_ci            }
60188c88e8eSopenharmony_ci          ]
60288c88e8eSopenharmony_ci        }
60388c88e8eSopenharmony_ci      ]
60488c88e8eSopenharmony_ci    },
60588c88e8eSopenharmony_ci    "style": {
60688c88e8eSopenharmony_ci      "wrapper": {
60788c88e8eSopenharmony_ci        "position": "absolute",
60888c88e8eSopenharmony_ci        "top": 0,
60988c88e8eSopenharmony_ci        "left": 0,
61088c88e8eSopenharmony_ci        "right": 0,
61188c88e8eSopenharmony_ci        "bottom": 0,
61288c88e8eSopenharmony_ci        "width": 750
61388c88e8eSopenharmony_ci      }
61488c88e8eSopenharmony_ci    }
61588c88e8eSopenharmony_ci  },
61688c88e8eSopenharmony_ci  "@weex-component/wxc-tabitem": {
61788c88e8eSopenharmony_ci    "data": "function () {return {\n\t    index: 0,\n\t    title: '',\n\t    titleColor: '#000000',\n\t    icon: '',\n\t    backgroundColor: '#ffffff'\n\t  }}",
61888c88e8eSopenharmony_ci    "methods": {
61988c88e8eSopenharmony_ci      "onclickitem": "function onclickitem(e) {\n\t      var vm = this;\n\t      var params = {\n\t        index: vm.index\n\t      };\n\t      vm.$dispatch('tabItem.onClick', params);\n\t    }"
62088c88e8eSopenharmony_ci    },
62188c88e8eSopenharmony_ci    "template": {
62288c88e8eSopenharmony_ci      "type": "div",
62388c88e8eSopenharmony_ci      "classList": [
62488c88e8eSopenharmony_ci        "container"
62588c88e8eSopenharmony_ci      ],
62688c88e8eSopenharmony_ci      "style": {
62788c88e8eSopenharmony_ci        "backgroundColor": "function () {return this.backgroundColor}"
62888c88e8eSopenharmony_ci      },
62988c88e8eSopenharmony_ci      "events": {
63088c88e8eSopenharmony_ci        "click": "onclickitem"
63188c88e8eSopenharmony_ci      },
63288c88e8eSopenharmony_ci      "children": [
63388c88e8eSopenharmony_ci        {
63488c88e8eSopenharmony_ci          "type": "image",
63588c88e8eSopenharmony_ci          "classList": [
63688c88e8eSopenharmony_ci            "top-line"
63788c88e8eSopenharmony_ci          ],
63888c88e8eSopenharmony_ci          "attr": {
63988c88e8eSopenharmony_ci            "src": "http://gtms03.alicdn.com/tps/i3/TB1mdsiMpXXXXXpXXXXNw4JIXXX-640-4.png"
64088c88e8eSopenharmony_ci          }
64188c88e8eSopenharmony_ci        },
64288c88e8eSopenharmony_ci        {
64388c88e8eSopenharmony_ci          "type": "image",
64488c88e8eSopenharmony_ci          "classList": [
64588c88e8eSopenharmony_ci            "tab-icon"
64688c88e8eSopenharmony_ci          ],
64788c88e8eSopenharmony_ci          "attr": {
64888c88e8eSopenharmony_ci            "src": "function () {return this.icon}"
64988c88e8eSopenharmony_ci          }
65088c88e8eSopenharmony_ci        },
65188c88e8eSopenharmony_ci        {
65288c88e8eSopenharmony_ci          "type": "text",
65388c88e8eSopenharmony_ci          "classList": [
65488c88e8eSopenharmony_ci            "tab-text"
65588c88e8eSopenharmony_ci          ],
65688c88e8eSopenharmony_ci          "style": {
65788c88e8eSopenharmony_ci            "color": "function () {return this.titleColor}"
65888c88e8eSopenharmony_ci          },
65988c88e8eSopenharmony_ci          "attr": {
66088c88e8eSopenharmony_ci            "value": "function () {return this.title}"
66188c88e8eSopenharmony_ci          }
66288c88e8eSopenharmony_ci        }
66388c88e8eSopenharmony_ci      ]
66488c88e8eSopenharmony_ci    },
66588c88e8eSopenharmony_ci    "style": {
66688c88e8eSopenharmony_ci      "container": {
66788c88e8eSopenharmony_ci        "flex": 1,
66888c88e8eSopenharmony_ci        "flexDirection": "column",
66988c88e8eSopenharmony_ci        "alignItems": "center",
67088c88e8eSopenharmony_ci        "justifyContent": "center",
67188c88e8eSopenharmony_ci        "height": 88
67288c88e8eSopenharmony_ci      },
67388c88e8eSopenharmony_ci      "top-line": {
67488c88e8eSopenharmony_ci        "position": "absolute",
67588c88e8eSopenharmony_ci        "top": 0,
67688c88e8eSopenharmony_ci        "left": 0,
67788c88e8eSopenharmony_ci        "right": 0,
67888c88e8eSopenharmony_ci        "height": 2
67988c88e8eSopenharmony_ci      },
68088c88e8eSopenharmony_ci      "tab-icon": {
68188c88e8eSopenharmony_ci        "marginTop": 5,
68288c88e8eSopenharmony_ci        "width": 40,
68388c88e8eSopenharmony_ci        "height": 40
68488c88e8eSopenharmony_ci      },
68588c88e8eSopenharmony_ci      "tab-text": {
68688c88e8eSopenharmony_ci        "marginTop": 5,
68788c88e8eSopenharmony_ci        "textAlign": "center",
68888c88e8eSopenharmony_ci        "fontSize": 20
68988c88e8eSopenharmony_ci      }
69088c88e8eSopenharmony_ci    }
69188c88e8eSopenharmony_ci  },
69288c88e8eSopenharmony_ci  "@weex-component/wxc-tabbar": {
69388c88e8eSopenharmony_ci    "data": "function () {return {\n\t    tabItems: [],\n\t    selectedIndex: 0,\n\t    selectedColor: '#ff0000',\n\t    unselectedColor: '#000000'\n\t  }}",
69488c88e8eSopenharmony_ci    "created": "function created() {\n\t    this.selected(this.selectedIndex);\n\t\n\t    this.$on('tabItem.onClick', function (e) {\n\t      var detail = e.detail;\n\t      this.selectedIndex = detail.index;\n\t      this.selected(detail.index);\n\t\n\t      var params = {\n\t        index: detail.index\n\t      };\n\t      this.$dispatch('tabBar.onClick', params);\n\t    });\n\t  }",
69588c88e8eSopenharmony_ci    "methods": {
69688c88e8eSopenharmony_ci      "selected": "function selected(index) {\n\t      for (var i = 0; i < this.tabItems.length; i++) {\n\t        var tabItem = this.tabItems[i];\n\t        if (i == index) {\n\t          tabItem.icon = tabItem.selectedImage;\n\t          tabItem.titleColor = this.selectedColor;\n\t          tabItem.visibility = 'visible';\n\t        } else {\n\t          tabItem.icon = tabItem.image;\n\t          tabItem.titleColor = this.unselectedColor;\n\t          tabItem.visibility = 'hidden';\n\t        }\n\t      }\n\t    }"
69788c88e8eSopenharmony_ci    },
69888c88e8eSopenharmony_ci    "template": {
69988c88e8eSopenharmony_ci      "type": "div",
70088c88e8eSopenharmony_ci      "classList": [
70188c88e8eSopenharmony_ci        "wrapper"
70288c88e8eSopenharmony_ci      ],
70388c88e8eSopenharmony_ci      "children": [
70488c88e8eSopenharmony_ci        {
70588c88e8eSopenharmony_ci          "type": "embed",
70688c88e8eSopenharmony_ci          "classList": [
70788c88e8eSopenharmony_ci            "content"
70888c88e8eSopenharmony_ci          ],
70988c88e8eSopenharmony_ci          "style": {
71088c88e8eSopenharmony_ci            "visibility": "function () {return this.visibility}"
71188c88e8eSopenharmony_ci          },
71288c88e8eSopenharmony_ci          "repeat": "function () {return this.tabItems}",
71388c88e8eSopenharmony_ci          "attr": {
71488c88e8eSopenharmony_ci            "src": "function () {return this.src}",
71588c88e8eSopenharmony_ci            "type": "weex"
71688c88e8eSopenharmony_ci          }
71788c88e8eSopenharmony_ci        },
71888c88e8eSopenharmony_ci        {
71988c88e8eSopenharmony_ci          "type": "div",
72088c88e8eSopenharmony_ci          "classList": [
72188c88e8eSopenharmony_ci            "tabbar"
72288c88e8eSopenharmony_ci          ],
72388c88e8eSopenharmony_ci          "append": "tree",
72488c88e8eSopenharmony_ci          "children": [
72588c88e8eSopenharmony_ci            {
72688c88e8eSopenharmony_ci              "type": "wxc-tabitem",
72788c88e8eSopenharmony_ci              "repeat": "function () {return this.tabItems}",
72888c88e8eSopenharmony_ci              "attr": {
72988c88e8eSopenharmony_ci                "index": "function () {return this.index}",
73088c88e8eSopenharmony_ci                "icon": "function () {return this.icon}",
73188c88e8eSopenharmony_ci                "title": "function () {return this.title}",
73288c88e8eSopenharmony_ci                "titleColor": "function () {return this.titleColor}"
73388c88e8eSopenharmony_ci              }
73488c88e8eSopenharmony_ci            }
73588c88e8eSopenharmony_ci          ]
73688c88e8eSopenharmony_ci        }
73788c88e8eSopenharmony_ci      ]
73888c88e8eSopenharmony_ci    },
73988c88e8eSopenharmony_ci    "style": {
74088c88e8eSopenharmony_ci      "wrapper": {
74188c88e8eSopenharmony_ci        "width": 750,
74288c88e8eSopenharmony_ci        "position": "absolute",
74388c88e8eSopenharmony_ci        "top": 0,
74488c88e8eSopenharmony_ci        "left": 0,
74588c88e8eSopenharmony_ci        "right": 0,
74688c88e8eSopenharmony_ci        "bottom": 0
74788c88e8eSopenharmony_ci      },
74888c88e8eSopenharmony_ci      "content": {
74988c88e8eSopenharmony_ci        "position": "absolute",
75088c88e8eSopenharmony_ci        "top": 0,
75188c88e8eSopenharmony_ci        "left": 0,
75288c88e8eSopenharmony_ci        "right": 0,
75388c88e8eSopenharmony_ci        "bottom": 0,
75488c88e8eSopenharmony_ci        "marginTop": 0,
75588c88e8eSopenharmony_ci        "marginBottom": 88
75688c88e8eSopenharmony_ci      },
75788c88e8eSopenharmony_ci      "tabbar": {
75888c88e8eSopenharmony_ci        "flexDirection": "row",
75988c88e8eSopenharmony_ci        "position": "fixed",
76088c88e8eSopenharmony_ci        "bottom": 0,
76188c88e8eSopenharmony_ci        "left": 0,
76288c88e8eSopenharmony_ci        "right": 0,
76388c88e8eSopenharmony_ci        "height": 88
76488c88e8eSopenharmony_ci      }
76588c88e8eSopenharmony_ci    }
76688c88e8eSopenharmony_ci  },
76788c88e8eSopenharmony_ci  "@weex-component/example-list-item": {
76888c88e8eSopenharmony_ci    "data": "function () {return {\n\t    title: '',\n\t    url: ''\n\t  }}",
76988c88e8eSopenharmony_ci    "methods": {
77088c88e8eSopenharmony_ci      "redirect": "function redirect() {\n\t      this.$openURL(this.url);\n\t    }"
77188c88e8eSopenharmony_ci    },
77288c88e8eSopenharmony_ci    "template": {
77388c88e8eSopenharmony_ci      "type": "wxc-list-item",
77488c88e8eSopenharmony_ci      "events": {
77588c88e8eSopenharmony_ci        "click": "redirect"
77688c88e8eSopenharmony_ci      },
77788c88e8eSopenharmony_ci      "children": [
77888c88e8eSopenharmony_ci        {
77988c88e8eSopenharmony_ci          "type": "text",
78088c88e8eSopenharmony_ci          "classList": [
78188c88e8eSopenharmony_ci            "item-txt"
78288c88e8eSopenharmony_ci          ],
78388c88e8eSopenharmony_ci          "attr": {
78488c88e8eSopenharmony_ci            "value": "function () {return this.title}"
78588c88e8eSopenharmony_ci          }
78688c88e8eSopenharmony_ci        }
78788c88e8eSopenharmony_ci      ]
78888c88e8eSopenharmony_ci    },
78988c88e8eSopenharmony_ci    "style": {
79088c88e8eSopenharmony_ci      "item-txt": {
79188c88e8eSopenharmony_ci        "fontSize": 48,
79288c88e8eSopenharmony_ci        "color": "#555555"
79388c88e8eSopenharmony_ci      }
79488c88e8eSopenharmony_ci    }
79588c88e8eSopenharmony_ci  },
79688c88e8eSopenharmony_ci  "@weex-component/example-list": {
79788c88e8eSopenharmony_ci    "data": "function () {return {\n\t    root: '',\n\t    items: [{ name: 'hello', title: 'Hello World', url: '' }]\n\t  }}",
79888c88e8eSopenharmony_ci    "created": "function created() {\n\t    var bundleUrl = this.$getConfig().bundleUrl;\n\t    console.log('hit', bundleUrl);\n\t    var dirs = this.root.split('/');\n\t    dirs.forEach(function (dir, index) {\n\t      if (!dir) dirs.splice(index, 1);\n\t    });\n\t    var root = dirs.length > 0 ? dirs[0] : '';\n\t    var subRoot = dirs.length > 1 ? dirs.slice(1).join('/') + '/' : '';\n\t\n\t    var nativeBase;\n\t    var isAndroidAssets = bundleUrl.indexOf('your_current_IP') >= 0 || bundleUrl.indexOf('file://assets/') >= 0;\n\t    var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0;\n\t    if (isAndroidAssets) {\n\t      nativeBase = 'file://assets/';\n\t    } else if (isiOSAssets) {\n\t      nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1);\n\t    } else {\n\t      var host = 'localhost:12580';\n\t      var matches = /\\/\\/([^\\/]+?)\\//.exec(this.$getConfig().bundleUrl);\n\t      if (matches && matches.length >= 2) {\n\t        host = matches[1];\n\t      }\n\t      nativeBase = '//' + host + '/' + root + '/build/' + subRoot;\n\t    }\n\t    var h5Base = './index.html?page=./' + root + '/build/' + subRoot;\n\t\n\t    var base = nativeBase;\n\t    if ((typeof window === 'undefined' ? 'undefined' : (0, _typeof3.default)(window)) === 'object') {\n\t      base = h5Base;\n\t    }\n\t\n\t    for (var i in this.items) {\n\t      var item = this.items[i];\n\t      if (!item.url) {\n\t        item.url = base + item.name + '.js';\n\t      }\n\t    }\n\t\n\t    if (this.items.length) console.log('hit', this.items[0].url);\n\t  }",
79988c88e8eSopenharmony_ci    "template": {
80088c88e8eSopenharmony_ci      "type": "list",
80188c88e8eSopenharmony_ci      "children": [
80288c88e8eSopenharmony_ci        {
80388c88e8eSopenharmony_ci          "type": "cell",
80488c88e8eSopenharmony_ci          "append": "tree",
80588c88e8eSopenharmony_ci          "repeat": "function () {return this.items}",
80688c88e8eSopenharmony_ci          "children": [
80788c88e8eSopenharmony_ci            {
80888c88e8eSopenharmony_ci              "type": "example-list-item",
80988c88e8eSopenharmony_ci              "attr": {
81088c88e8eSopenharmony_ci                "title": "function () {return this.title}",
81188c88e8eSopenharmony_ci                "url": "function () {return this.url}"
81288c88e8eSopenharmony_ci              }
81388c88e8eSopenharmony_ci            }
81488c88e8eSopenharmony_ci          ]
81588c88e8eSopenharmony_ci        }
81688c88e8eSopenharmony_ci      ]
81788c88e8eSopenharmony_ci    },
81888c88e8eSopenharmony_ci    "style": {}
81988c88e8eSopenharmony_ci  },
82088c88e8eSopenharmony_ci  "@weex-component/ff1b948d57ece2a9e61ad75680c9e80e": {
82188c88e8eSopenharmony_ci    "data": "function () {return {\n\t    root: 'examples',\n\t    items: [{ name: 'hello', title: 'Hello World' }, { name: 'syntax/index', title: 'More Syntax' }, { name: 'style/index', title: 'Common Style' }, { name: 'animation', title: 'Animation' }, { name: 'component/text-demo', title: 'Text' }, { name: 'component/image-demo', title: 'Image' }, { name: 'component/input-demo', title: 'Input' }, { name: 'component/scroller-demo', title: 'Scroller' }, { name: 'component/list/list-basic', title: 'List (Basic)' }, { name: 'component/list/list-demo', title: 'List (Advanced)' }, { name: 'component/slider/index', title: 'Slider' }, { name: 'component/a-demo', title: 'A' }, { name: 'component/video-demo', title: 'Video' }, { name: 'component/countdown-demo', title: 'Countdown' }, { name: 'component/marquee-demo', title: 'Marquee' }, { name: 'component/web-demo', title: 'Web' }, { name: 'component/navigator-demo', title: 'Navigator' }, { name: 'component/tabbar/tabbar-demo', title: 'Tabbar' }, { name: 'component/process-bar-demo', title: 'ProcessBar' }, { name: 'module/instance-api', title: 'Instance API' }, { name: 'module/modal', title: 'Modal' }, { name: 'module/stream-demo', title: 'Stream' }, { name: 'module/storage-demo', title: 'Storage' }, { name: 'showcase/new-fashion/index', title: 'Activity' }, { name: 'showcase/calculator', title: 'Calculator' }, { name: 'showcase/minesweeper', title: 'Minesweeper' }, { name: 'showcase/ui', title: 'UI Gallery' }, { name: 'showcase/dropdown/dropdown-demo', title: 'Dropdown' }]\n\t  }}",
82288c88e8eSopenharmony_ci    "template": {
82388c88e8eSopenharmony_ci      "type": "example-list",
82488c88e8eSopenharmony_ci      "attr": {
82588c88e8eSopenharmony_ci        "items": "function () {return this.items}",
82688c88e8eSopenharmony_ci        "root": "function () {return this.root}"
82788c88e8eSopenharmony_ci      }
82888c88e8eSopenharmony_ci    }
82988c88e8eSopenharmony_ci  }
83088c88e8eSopenharmony_ci}