blob: f4eccef46ad36a2832fc165679e19cf4ed4eebbb [file] [log] [blame]
/******/ (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, __webpack_require__) {
var __weex_template__ = __webpack_require__(371)
var __weex_style__ = __webpack_require__(372)
var __weex_script__ = __webpack_require__(373)
__weex_define__('@weex-component/01700b62cc1ab66f2cbfd893c5c95eaf', [], function(__weex_require__, __weex_exports__, __weex_module__) {
__weex_script__(__weex_module__, __weex_exports__, __weex_require__)
if (__weex_exports__.__esModule && __weex_exports__.default) {
__weex_module__.exports = __weex_exports__.default
}
__weex_module__.exports.template = __weex_template__
__weex_module__.exports.style = __weex_style__
})
__weex_bootstrap__('@weex-component/01700b62cc1ab66f2cbfd893c5c95eaf',undefined,undefined)
/***/ },
/***/ 371:
/***/ function(module, exports) {
module.exports = {
"type": "div",
"children": [
{
"type": "text",
"classList": [
"title"
],
"attr": {
"value": "Track by"
}
},
{
"type": "text",
"classList": [
"subtitle"
],
"repeat": {
"expression": function () {return this.list},
"value": "item"
},
"attr": {
"trackBy": "key",
"value": function () {return (this.$index) + '-' + (this.item.text)}
}
},
{
"type": "text",
"classList": [
"btn"
],
"events": {
"click": "update"
},
"attr": {
"value": "Update"
}
},
{
"type": "text",
"classList": [
"btn"
],
"events": {
"click": "mutate"
},
"attr": {
"value": "Mutate"
}
}
]
}
/***/ },
/***/ 372:
/***/ function(module, exports) {
module.exports = {
"title": {
"fontSize": 48
},
"subtitle": {
"fontSize": 36
},
"btn": {
"fontSize": 36,
"textAlign": "center",
"color": "#FFFFFF",
"backgroundColor": "#808080",
"padding": 20,
"borderRadius": 5
}
}
/***/ },
/***/ 373:
/***/ function(module, exports) {
module.exports = function(module, exports, __weex_require__){'use strict';
module.exports = {
data: function () {return {
list: [{ key: 1, text: 'a' }, { key: 2, text: 'a' }, { key: 3, text: 'b' }, { key: 4, text: 'c' }, { key: 5, text: 'a' }],
flag: true
}},
methods: {
update: function update(e) {
this.list.$set(2, { key: 3, text: 'foo' });
},
mutate: function mutate(e) {
if (this.list.length % 2) {
this.list.push({ key: 'x', text: 'bar' });
} else {
this.list.pop();
}
}
}
};}
/* generated by weex-loader */
/***/ }
/******/ });