| /******/ (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__(165) |
| var __weex_style__ = __webpack_require__(166) |
| var __weex_script__ = __webpack_require__(167) |
| |
| __weex_define__('@weex-component/80b287cd7ee83071ff869144c4552259', [], 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/80b287cd7ee83071ff869144c4552259',undefined,undefined) |
| |
| /***/ }, |
| |
| /***/ 32: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var global = __webpack_require__(33) |
| , core = __webpack_require__(34) |
| , ctx = __webpack_require__(35) |
| , hide = __webpack_require__(37) |
| , PROTOTYPE = 'prototype'; |
| |
| var $export = function(type, name, source){ |
| var IS_FORCED = type & $export.F |
| , IS_GLOBAL = type & $export.G |
| , IS_STATIC = type & $export.S |
| , IS_PROTO = type & $export.P |
| , IS_BIND = type & $export.B |
| , IS_WRAP = type & $export.W |
| , exports = IS_GLOBAL ? core : core[name] || (core[name] = {}) |
| , expProto = exports[PROTOTYPE] |
| , target = IS_GLOBAL ? global : IS_STATIC ? global[name] : (global[name] || {})[PROTOTYPE] |
| , key, own, out; |
| if(IS_GLOBAL)source = name; |
| for(key in source){ |
| // contains in native |
| own = !IS_FORCED && target && target[key] !== undefined; |
| if(own && key in exports)continue; |
| // export native or passed |
| out = own ? target[key] : source[key]; |
| // prevent global pollution for namespaces |
| exports[key] = IS_GLOBAL && typeof target[key] != 'function' ? source[key] |
| // bind timers to global for call from export context |
| : IS_BIND && own ? ctx(out, global) |
| // wrap global constructors for prevent change them in library |
| : IS_WRAP && target[key] == out ? (function(C){ |
| var F = function(a, b, c){ |
| if(this instanceof C){ |
| switch(arguments.length){ |
| case 0: return new C; |
| case 1: return new C(a); |
| case 2: return new C(a, b); |
| } return new C(a, b, c); |
| } return C.apply(this, arguments); |
| }; |
| F[PROTOTYPE] = C[PROTOTYPE]; |
| return F; |
| // make static versions for prototype methods |
| })(out) : IS_PROTO && typeof out == 'function' ? ctx(Function.call, out) : out; |
| // export proto methods to core.%CONSTRUCTOR%.methods.%NAME% |
| if(IS_PROTO){ |
| (exports.virtual || (exports.virtual = {}))[key] = out; |
| // export proto methods to core.%CONSTRUCTOR%.prototype.%NAME% |
| if(type & $export.R && expProto && !expProto[key])hide(expProto, key, out); |
| } |
| } |
| }; |
| // type bitmap |
| $export.F = 1; // forced |
| $export.G = 2; // global |
| $export.S = 4; // static |
| $export.P = 8; // proto |
| $export.B = 16; // bind |
| $export.W = 32; // wrap |
| $export.U = 64; // safe |
| $export.R = 128; // real proto method for `library` |
| module.exports = $export; |
| |
| /***/ }, |
| |
| /***/ 33: |
| /***/ function(module, exports) { |
| |
| // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028 |
| var global = module.exports = typeof window != 'undefined' && window.Math == Math |
| ? window : typeof self != 'undefined' && self.Math == Math ? self : Function('return this')(); |
| if(typeof __g == 'number')__g = global; // eslint-disable-line no-undef |
| |
| /***/ }, |
| |
| /***/ 34: |
| /***/ function(module, exports) { |
| |
| var core = module.exports = {version: '2.4.0'}; |
| if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef |
| |
| /***/ }, |
| |
| /***/ 35: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // optional / simple context binding |
| var aFunction = __webpack_require__(36); |
| module.exports = function(fn, that, length){ |
| aFunction(fn); |
| if(that === undefined)return fn; |
| switch(length){ |
| case 1: return function(a){ |
| return fn.call(that, a); |
| }; |
| case 2: return function(a, b){ |
| return fn.call(that, a, b); |
| }; |
| case 3: return function(a, b, c){ |
| return fn.call(that, a, b, c); |
| }; |
| } |
| return function(/* ...args */){ |
| return fn.apply(that, arguments); |
| }; |
| }; |
| |
| /***/ }, |
| |
| /***/ 36: |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| if(typeof it != 'function')throw TypeError(it + ' is not a function!'); |
| return it; |
| }; |
| |
| /***/ }, |
| |
| /***/ 37: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var dP = __webpack_require__(38) |
| , createDesc = __webpack_require__(46); |
| module.exports = __webpack_require__(42) ? function(object, key, value){ |
| return dP.f(object, key, createDesc(1, value)); |
| } : function(object, key, value){ |
| object[key] = value; |
| return object; |
| }; |
| |
| /***/ }, |
| |
| /***/ 38: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var anObject = __webpack_require__(39) |
| , IE8_DOM_DEFINE = __webpack_require__(41) |
| , toPrimitive = __webpack_require__(45) |
| , dP = Object.defineProperty; |
| |
| exports.f = __webpack_require__(42) ? Object.defineProperty : function defineProperty(O, P, Attributes){ |
| anObject(O); |
| P = toPrimitive(P, true); |
| anObject(Attributes); |
| if(IE8_DOM_DEFINE)try { |
| return dP(O, P, Attributes); |
| } catch(e){ /* empty */ } |
| if('get' in Attributes || 'set' in Attributes)throw TypeError('Accessors not supported!'); |
| if('value' in Attributes)O[P] = Attributes.value; |
| return O; |
| }; |
| |
| /***/ }, |
| |
| /***/ 39: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(40); |
| module.exports = function(it){ |
| if(!isObject(it))throw TypeError(it + ' is not an object!'); |
| return it; |
| }; |
| |
| /***/ }, |
| |
| /***/ 40: |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| return typeof it === 'object' ? it !== null : typeof it === 'function'; |
| }; |
| |
| /***/ }, |
| |
| /***/ 41: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = !__webpack_require__(42) && !__webpack_require__(43)(function(){ |
| return Object.defineProperty(__webpack_require__(44)('div'), 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| |
| /***/ 42: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // Thank's IE8 for his funny defineProperty |
| module.exports = !__webpack_require__(43)(function(){ |
| return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| |
| /***/ 43: |
| /***/ function(module, exports) { |
| |
| module.exports = function(exec){ |
| try { |
| return !!exec(); |
| } catch(e){ |
| return true; |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 44: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(40) |
| , document = __webpack_require__(33).document |
| // in old IE typeof document.createElement is 'object' |
| , is = isObject(document) && isObject(document.createElement); |
| module.exports = function(it){ |
| return is ? document.createElement(it) : {}; |
| }; |
| |
| /***/ }, |
| |
| /***/ 45: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.1.1 ToPrimitive(input [, PreferredType]) |
| var isObject = __webpack_require__(40); |
| // instead of the ES6 spec version, we didn't implement @@toPrimitive case |
| // and the second argument - flag - preferred type is a string |
| module.exports = function(it, S){ |
| if(!isObject(it))return it; |
| var fn, val; |
| if(S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; |
| if(typeof (fn = it.valueOf) == 'function' && !isObject(val = fn.call(it)))return val; |
| if(!S && typeof (fn = it.toString) == 'function' && !isObject(val = fn.call(it)))return val; |
| throw TypeError("Can't convert object to primitive value"); |
| }; |
| |
| /***/ }, |
| |
| /***/ 46: |
| /***/ function(module, exports) { |
| |
| module.exports = function(bitmap, value){ |
| return { |
| enumerable : !(bitmap & 1), |
| configurable: !(bitmap & 2), |
| writable : !(bitmap & 4), |
| value : value |
| }; |
| }; |
| |
| /***/ }, |
| |
| /***/ 165: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "type": "div", |
| "style": { |
| "padding": 25 |
| }, |
| "children": [ |
| { |
| "type": "div", |
| "style": { |
| "height": 80, |
| "flexDirection": "row" |
| }, |
| "children": [ |
| { |
| "type": "div", |
| "style": { |
| "flex": 1, |
| "backgroundColor": "#008B8B", |
| "justifyContent": "center", |
| "alignItems": "center" |
| }, |
| "events": { |
| "click": function ($event) {this.goto(0,$event)} |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": [ |
| "page-title" |
| ], |
| "attr": { |
| "value": "Page 1" |
| } |
| } |
| ] |
| }, |
| { |
| "type": "div", |
| "style": { |
| "flex": 1, |
| "backgroundColor": "#7FFFD4", |
| "justifyContent": "center", |
| "alignItems": "center" |
| }, |
| "events": { |
| "click": function ($event) {this.goto(1,$event)} |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": [ |
| "page-title" |
| ], |
| "attr": { |
| "value": "Page 2" |
| } |
| } |
| ] |
| }, |
| { |
| "type": "div", |
| "style": { |
| "flex": 1, |
| "backgroundColor": "#008B8B", |
| "justifyContent": "center", |
| "alignItems": "center" |
| }, |
| "events": { |
| "click": function ($event) {this.goto(2,$event)} |
| }, |
| "children": [ |
| { |
| "type": "text", |
| "classList": [ |
| "page-title" |
| ], |
| "attr": { |
| "value": "Page 3" |
| } |
| } |
| ] |
| } |
| ] |
| }, |
| { |
| "type": "div", |
| "style": { |
| "height": 10, |
| "backgroundColor": "#87CEEB" |
| }, |
| "children": [ |
| { |
| "type": "div", |
| "style": { |
| "width": 233, |
| "height": 10, |
| "marginLeft": function () {return this.progress}, |
| "backgroundColor": "#00008B" |
| } |
| } |
| ] |
| }, |
| { |
| "type": "slider", |
| "classList": [ |
| "slider" |
| ], |
| "attr": { |
| "interval": "4500", |
| "index": function () {return this.index}, |
| "offsetXAccuracy": "0.01" |
| }, |
| "events": { |
| "change": "onchange", |
| "scroll": "onscroll" |
| }, |
| "append": "tree", |
| "children": [ |
| { |
| "type": "div", |
| "classList": [ |
| "frame" |
| ], |
| "repeat": { |
| "expression": function () {return this.imageList}, |
| "value": "img" |
| }, |
| "children": [ |
| { |
| "type": "image", |
| "classList": [ |
| "image" |
| ], |
| "attr": { |
| "resize": "cover", |
| "src": function () {return this.img.src} |
| } |
| }, |
| { |
| "type": "text", |
| "classList": [ |
| "title" |
| ], |
| "attr": { |
| "value": function () {return this.img.title} |
| } |
| } |
| ] |
| }, |
| { |
| "type": "indicator", |
| "style": { |
| "height": 20 |
| } |
| } |
| ] |
| } |
| ] |
| } |
| |
| /***/ }, |
| |
| /***/ 166: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "page-title": { |
| "color": "#000000", |
| "fontSize": 40, |
| "fontWeight": "bold" |
| }, |
| "image": { |
| "width": 700, |
| "height": 700 |
| }, |
| "slider": { |
| "width": 700, |
| "height": 700, |
| "position": "absolute", |
| "borderWidth": 2, |
| "borderStyle": "solid", |
| "borderColor": "#41B883" |
| }, |
| "title": { |
| "position": "absolute", |
| "top": 20, |
| "left": 20, |
| "paddingLeft": 20, |
| "width": 200, |
| "color": "#FFFFFF", |
| "fontSize": 36, |
| "lineHeight": 60, |
| "backgroundColor": "rgba(0,0,0,0.3)" |
| }, |
| "frame": { |
| "width": 700, |
| "height": 700 |
| } |
| } |
| |
| /***/ }, |
| |
| /***/ 167: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = function(module, exports, __weex_require__){'use strict'; |
| |
| Object.defineProperty(exports, "__esModule", { |
| value: true |
| }); |
| |
| var _defineProperty2 = __webpack_require__(168); |
| |
| var _defineProperty3 = _interopRequireDefault(_defineProperty2); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| exports.default = { |
| data: { |
| imageList: [{ title: 'Page 1', src: 'https://gd2.alicdn.com/bao/uploaded/i2/T14H1LFwBcXXXXXXXX_!!0-item_pic.jpg' }, { |
| title: 'Page 2', |
| src: 'https://gd1.alicdn.com/bao/uploaded/i1/TB1PXJCJFXXXXciXFXXXXXXXXXX_!!0-item_pic.jpg' |
| }, { |
| title: 'Page 3', |
| src: 'https://gd3.alicdn.com/bao/uploaded/i3/TB1x6hYLXXXXXazXVXXXXXXXXXX_!!0-item_pic.jpg' |
| }], |
| index: 0, |
| progress: 0 |
| }, |
| methods: (0, _defineProperty3.default)({ |
| onchange: function onchange(event) { |
| console.log('changed:', event.index); |
| }, |
| goto: function goto(i) { |
| this.index = i; |
| this.progress = i * 233; |
| }, |
| onscroll: function onscroll(e) { |
| var ratio = parseFloat(e.offsetXRatio); |
| this.progress = 233 * this.index + 233 * -ratio; |
| } |
| }, 'onchange', function onchange(e) { |
| this.goto(parseInt(e.index)); |
| }) |
| };} |
| /* generated by weex-loader */ |
| |
| |
| /***/ }, |
| |
| /***/ 168: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| "use strict"; |
| |
| exports.__esModule = true; |
| |
| var _defineProperty = __webpack_require__(169); |
| |
| var _defineProperty2 = _interopRequireDefault(_defineProperty); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| exports.default = function (obj, key, value) { |
| if (key in obj) { |
| (0, _defineProperty2.default)(obj, key, { |
| value: value, |
| enumerable: true, |
| configurable: true, |
| writable: true |
| }); |
| } else { |
| obj[key] = value; |
| } |
| |
| return obj; |
| }; |
| |
| /***/ }, |
| |
| /***/ 169: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = { "default": __webpack_require__(170), __esModule: true }; |
| |
| /***/ }, |
| |
| /***/ 170: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(171); |
| var $Object = __webpack_require__(34).Object; |
| module.exports = function defineProperty(it, key, desc){ |
| return $Object.defineProperty(it, key, desc); |
| }; |
| |
| /***/ }, |
| |
| /***/ 171: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var $export = __webpack_require__(32); |
| // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) |
| $export($export.S + $export.F * !__webpack_require__(42), 'Object', {defineProperty: __webpack_require__(38).f}); |
| |
| /***/ } |
| |
| /******/ }); |