| // { "framework": "Vue" } |
| |
| /******/ (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 __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(1) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(25) |
| __vue_options__ = __vue_exports__ = __vue_exports__ || {} |
| if ( |
| typeof __vue_exports__.default === "object" || |
| typeof __vue_exports__.default === "function" |
| ) { |
| if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} |
| __vue_options__ = __vue_exports__ = __vue_exports__.default |
| } |
| if (typeof __vue_options__ === "function") { |
| __vue_options__ = __vue_options__.options |
| } |
| __vue_options__.__file = "/Users/YunDong/Projects/weex-vue-demo/src/App.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| |
| module.exports = __vue_exports__ |
| module.exports.el = 'body' |
| new Vue(module.exports) |
| |
| |
| /***/ }, |
| /* 1 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| Object.defineProperty(exports, "__esModule", { |
| value: true |
| }); |
| |
| var _complex = __webpack_require__(2); |
| |
| var _complex2 = _interopRequireDefault(_complex); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| exports.default = { |
| components: { Example: _complex2.default } |
| }; // |
| // |
| // |
| // |
| |
| /***/ }, |
| /* 2 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* styles */ |
| __vue_styles__.push(__webpack_require__(3) |
| ) |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(4) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(24) |
| __vue_options__ = __vue_exports__ = __vue_exports__ || {} |
| if ( |
| typeof __vue_exports__.default === "object" || |
| typeof __vue_exports__.default === "function" |
| ) { |
| if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} |
| __vue_options__ = __vue_exports__ = __vue_exports__.default |
| } |
| if (typeof __vue_options__ === "function") { |
| __vue_options__ = __vue_options__.options |
| } |
| __vue_options__.__file = "/Users/YunDong/Projects/weex-vue-demo/src/components/web/complex.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| |
| module.exports = __vue_exports__ |
| |
| |
| /***/ }, |
| /* 3 */ |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "group": { |
| "flexDirection": "row", |
| "marginTop": 20 |
| }, |
| "input": { |
| "width": 600, |
| "fontSize": 36, |
| "paddingTop": 15, |
| "paddingBottom": 15, |
| "borderWidth": 2, |
| "borderStyle": "solid", |
| "borderColor": "#BBBBBB" |
| }, |
| "button": { |
| "width": 225, |
| "textAlign": "center", |
| "backgroundColor": "#D3D3D3", |
| "paddingTop": 15, |
| "paddingBottom": 15, |
| "marginBottom": 30, |
| "fontSize": 30 |
| }, |
| "webview": { |
| "marginLeft": 75, |
| "width": 600, |
| "height": 750, |
| "borderWidth": 2, |
| "borderStyle": "solid", |
| "borderColor": "#41B883" |
| } |
| } |
| |
| /***/ }, |
| /* 4 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| Object.defineProperty(exports, "__esModule", { |
| value: true |
| }); |
| |
| var _defineProperty2 = __webpack_require__(5); |
| |
| var _defineProperty3 = _interopRequireDefault(_defineProperty2); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| var webview = weex.requireModule('webview'); |
| var modal = weex.requireModule('modal'); |
| |
| exports.default = { |
| data: function data() { |
| return { |
| url: 'https://m.alibaba.com' |
| }; |
| }, |
| |
| methods: (0, _defineProperty3.default)({ |
| loadURL: function loadURL(event) { |
| var _this = this; |
| |
| this.url = this.$refs.input.value; |
| modal.toast({ message: 'load url:' + this.url }); |
| setTimeout(function () { |
| console.log('will go back.'); |
| modal.toast({ message: 'will go back' }); |
| webview.goBack(_this.$refs.webview); |
| }, 10000); |
| }, |
| reload: function reload(event) { |
| console.log('will reload webview'); |
| modal.toast({ message: 'reload' }); |
| webview.reload(this.$refs.webview); |
| }, |
| start: function start(event) { |
| console.log('pagestart', event); |
| modal.toast({ message: 'pagestart' }); |
| }, |
| finish: function finish(event) { |
| console.log('pagefinish', event); |
| modal.toast({ message: 'pagefinish' }); |
| } |
| }, 'finish', function finish(event) { |
| console.log('error', event); |
| modal.toast({ message: 'error' }); |
| }) |
| }; |
| |
| /***/ }, |
| /* 5 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| "use strict"; |
| |
| exports.__esModule = true; |
| |
| var _defineProperty = __webpack_require__(6); |
| |
| 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; |
| }; |
| |
| /***/ }, |
| /* 6 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = { "default": __webpack_require__(7), __esModule: true }; |
| |
| /***/ }, |
| /* 7 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| __webpack_require__(8); |
| var $Object = __webpack_require__(11).Object; |
| module.exports = function defineProperty(it, key, desc){ |
| return $Object.defineProperty(it, key, desc); |
| }; |
| |
| /***/ }, |
| /* 8 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var $export = __webpack_require__(9); |
| // 19.1.2.4 / 15.2.3.6 Object.defineProperty(O, P, Attributes) |
| $export($export.S + $export.F * !__webpack_require__(19), 'Object', {defineProperty: __webpack_require__(15).f}); |
| |
| /***/ }, |
| /* 9 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var global = __webpack_require__(10) |
| , core = __webpack_require__(11) |
| , ctx = __webpack_require__(12) |
| , hide = __webpack_require__(14) |
| , 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; |
| |
| /***/ }, |
| /* 10 */ |
| /***/ 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 |
| |
| /***/ }, |
| /* 11 */ |
| /***/ function(module, exports) { |
| |
| var core = module.exports = {version: '2.4.0'}; |
| if(typeof __e == 'number')__e = core; // eslint-disable-line no-undef |
| |
| /***/ }, |
| /* 12 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // optional / simple context binding |
| var aFunction = __webpack_require__(13); |
| 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); |
| }; |
| }; |
| |
| /***/ }, |
| /* 13 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| if(typeof it != 'function')throw TypeError(it + ' is not a function!'); |
| return it; |
| }; |
| |
| /***/ }, |
| /* 14 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var dP = __webpack_require__(15) |
| , createDesc = __webpack_require__(23); |
| module.exports = __webpack_require__(19) ? function(object, key, value){ |
| return dP.f(object, key, createDesc(1, value)); |
| } : function(object, key, value){ |
| object[key] = value; |
| return object; |
| }; |
| |
| /***/ }, |
| /* 15 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var anObject = __webpack_require__(16) |
| , IE8_DOM_DEFINE = __webpack_require__(18) |
| , toPrimitive = __webpack_require__(22) |
| , dP = Object.defineProperty; |
| |
| exports.f = __webpack_require__(19) ? 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; |
| }; |
| |
| /***/ }, |
| /* 16 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(17); |
| module.exports = function(it){ |
| if(!isObject(it))throw TypeError(it + ' is not an object!'); |
| return it; |
| }; |
| |
| /***/ }, |
| /* 17 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(it){ |
| return typeof it === 'object' ? it !== null : typeof it === 'function'; |
| }; |
| |
| /***/ }, |
| /* 18 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| module.exports = !__webpack_require__(19) && !__webpack_require__(20)(function(){ |
| return Object.defineProperty(__webpack_require__(21)('div'), 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| /* 19 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // Thank's IE8 for his funny defineProperty |
| module.exports = !__webpack_require__(20)(function(){ |
| return Object.defineProperty({}, 'a', {get: function(){ return 7; }}).a != 7; |
| }); |
| |
| /***/ }, |
| /* 20 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(exec){ |
| try { |
| return !!exec(); |
| } catch(e){ |
| return true; |
| } |
| }; |
| |
| /***/ }, |
| /* 21 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var isObject = __webpack_require__(17) |
| , document = __webpack_require__(10).document |
| // in old IE typeof document.createElement is 'object' |
| , is = isObject(document) && isObject(document.createElement); |
| module.exports = function(it){ |
| return is ? document.createElement(it) : {}; |
| }; |
| |
| /***/ }, |
| /* 22 */ |
| /***/ function(module, exports, __webpack_require__) { |
| |
| // 7.1.1 ToPrimitive(input [, PreferredType]) |
| var isObject = __webpack_require__(17); |
| // 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"); |
| }; |
| |
| /***/ }, |
| /* 23 */ |
| /***/ function(module, exports) { |
| |
| module.exports = function(bitmap, value){ |
| return { |
| enumerable : !(bitmap & 1), |
| configurable: !(bitmap & 2), |
| writable : !(bitmap & 4), |
| value : value |
| }; |
| }; |
| |
| /***/ }, |
| /* 24 */ |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _h('div', { |
| staticClass: ["wrapper"] |
| }, [_h('div', { |
| staticClass: ["group"] |
| }, [_h('input', { |
| ref: "input", |
| staticClass: ["input"], |
| attrs: { |
| "type": "url", |
| "autofocus": "false", |
| "value": "https://m.taobao.com" |
| } |
| })]), _h('div', { |
| staticClass: ["group"] |
| }, [_h('text', { |
| staticClass: ["button"], |
| on: { |
| "click": _vm.loadURL |
| } |
| }, ["LoadURL"]), _h('text', { |
| staticClass: ["button"], |
| on: { |
| "click": _vm.reload |
| } |
| }, ["reload"])]), _h('web', { |
| ref: "webview", |
| staticClass: ["webview"], |
| attrs: { |
| "src": _vm.url |
| }, |
| on: { |
| "pagestart": _vm.start, |
| "pagefinish": _vm.finish, |
| "error": _vm.error |
| } |
| })]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| /* 25 */ |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _h('example') |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ } |
| /******/ ]); |