playground/app/src/main/assets/syntax/hello-world-5.js
/******/ (function(modules) { // webpackBootstrap
/******/ // The module cache
/******/ var installedModules = {};
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ if(installedModules[moduleId])
/******/ return installedModules[moduleId].exports;
/******/ // Create a new module (and put it into the cache)
/******/ var module = installedModules[moduleId] = {
/******/ exports: {},
/******/ id: moduleId,
/******/ loaded: false
/******/ };
/******/ // Execute the module function
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/ // Flag the module as loaded
/******/ module.loaded = true;
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/ // expose the modules object (__webpack_modules__)
/******/ __webpack_require__.m = modules;
/******/ // expose the module cache
/******/ __webpack_require__.c = installedModules;
/******/ // __webpack_public_path__
/******/ __webpack_require__.p = "";
/******/ // Load entry module and return exports
/******/ return __webpack_require__(0);
/******/ })
/************************************************************************/
/******/ ([
/* 0 */
/***/ function(module, exports) {
;__weex_define__("@weex-component/7978f07b05c68b28c52fc988cc1e3560", [], function(__weex_require__, __weex_exports__, __weex_module__){
;
__weex_module__.exports = {
data: function () {return {
logoUrl: 'http://alibaba.github.io/weex/img/weex_logo_blue@3x.png',
target: 'World'
}},
methods: {
update: function (e) {
this.target = 'Weex'
}
}
}
;__weex_module__.exports.template = __weex_module__.exports.template || {}
;Object.assign(__weex_module__.exports.template, {
"type": "div",
"classList": [
"wrapper"
],
"events": {
"click": "update"
},
"children": [
{
"type": "image",
"attr": {
"src": function () {return this.logoUrl}
},
"classList": [
"logo"
]
},
{
"type": "text",
"classList": [
"title"
],
"attr": {
"value": function () {return 'Hello ' + (this.target)}
}
}
]
})
;__weex_module__.exports.style = __weex_module__.exports.style || {}
;Object.assign(__weex_module__.exports.style, {
"wrapper": {
"alignItems": "center",
"marginTop": 120
},
"title": {
"fontSize": 48
},
"logo": {
"width": 360,
"height": 82
}
})
})
;__weex_bootstrap__("@weex-component/7978f07b05c68b28c52fc988cc1e3560", {
"transformerVersion": "0.3.1"
},undefined)
/***/ }
/******/ ]);