| // NOTE: for vue2.0 and platform:web only. |
| |
| /******/ (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 App = __webpack_require__(145) |
| App.el = '#root' |
| new Vue(App) |
| |
| |
| /***/ }), |
| |
| /***/ 4: |
| /***/ (function(module, exports) { |
| |
| /* |
| MIT License http://www.opensource.org/licenses/mit-license.php |
| Author Tobias Koppers @sokra |
| */ |
| // css base code, injected by the css-loader |
| module.exports = function() { |
| var list = []; |
| |
| // return the list of modules as css string |
| list.toString = function toString() { |
| var result = []; |
| for(var i = 0; i < this.length; i++) { |
| var item = this[i]; |
| if(item[2]) { |
| result.push("@media " + item[2] + "{" + item[1] + "}"); |
| } else { |
| result.push(item[1]); |
| } |
| } |
| return result.join(""); |
| }; |
| |
| // import a list of modules into the list |
| list.i = function(modules, mediaQuery) { |
| if(typeof modules === "string") |
| modules = [[null, modules, ""]]; |
| var alreadyImportedModules = {}; |
| for(var i = 0; i < this.length; i++) { |
| var id = this[i][0]; |
| if(typeof id === "number") |
| alreadyImportedModules[id] = true; |
| } |
| for(i = 0; i < modules.length; i++) { |
| var item = modules[i]; |
| // skip already imported module |
| // this implementation is not 100% perfect for weird media query combinations |
| // when a module is imported multiple times with different media queries. |
| // I hope this will never occur (Hey this way we have smaller bundles) |
| if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { |
| if(mediaQuery && !item[2]) { |
| item[2] = mediaQuery; |
| } else if(mediaQuery) { |
| item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; |
| } |
| list.push(item); |
| } |
| } |
| }; |
| return list; |
| }; |
| |
| |
| /***/ }), |
| |
| /***/ 5: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| /* |
| MIT License http://www.opensource.org/licenses/mit-license.php |
| Author Tobias Koppers @sokra |
| Modified by Evan You @yyx990803 |
| */ |
| |
| var hasDocument = typeof document !== 'undefined' |
| |
| if (false) { |
| if (!hasDocument) { |
| throw new Error( |
| 'vue-style-loader cannot be used in a non-browser environment. ' + |
| "Use { target: 'node' } in your Webpack config to indicate a server-rendering environment." |
| ) } |
| } |
| |
| var listToStyles = __webpack_require__(6) |
| |
| /* |
| type StyleObject = { |
| id: number; |
| parts: Array<StyleObjectPart> |
| } |
| |
| type StyleObjectPart = { |
| css: string; |
| media: string; |
| sourceMap: ?string |
| } |
| */ |
| |
| var stylesInDom = {/* |
| [id: number]: { |
| id: number, |
| refs: number, |
| parts: Array<(obj?: StyleObjectPart) => void> |
| } |
| */} |
| |
| var head = hasDocument && (document.head || document.getElementsByTagName('head')[0]) |
| var singletonElement = null |
| var singletonCounter = 0 |
| var isProduction = false |
| var noop = function () {} |
| |
| // Force single-tag solution on IE6-9, which has a hard limit on the # of <style> |
| // tags it will allow on a page |
| var isOldIE = typeof navigator !== 'undefined' && /msie [6-9]\b/.test(navigator.userAgent.toLowerCase()) |
| |
| module.exports = function (parentId, list, _isProduction) { |
| isProduction = _isProduction |
| |
| var styles = listToStyles(parentId, list) |
| addStylesToDom(styles) |
| |
| return function update (newList) { |
| var mayRemove = [] |
| for (var i = 0; i < styles.length; i++) { |
| var item = styles[i] |
| var domStyle = stylesInDom[item.id] |
| domStyle.refs-- |
| mayRemove.push(domStyle) |
| } |
| if (newList) { |
| styles = listToStyles(parentId, newList) |
| addStylesToDom(styles) |
| } else { |
| styles = [] |
| } |
| for (var i = 0; i < mayRemove.length; i++) { |
| var domStyle = mayRemove[i] |
| if (domStyle.refs === 0) { |
| for (var j = 0; j < domStyle.parts.length; j++) { |
| domStyle.parts[j]() |
| } |
| delete stylesInDom[domStyle.id] |
| } |
| } |
| } |
| } |
| |
| function addStylesToDom (styles /* Array<StyleObject> */) { |
| for (var i = 0; i < styles.length; i++) { |
| var item = styles[i] |
| var domStyle = stylesInDom[item.id] |
| if (domStyle) { |
| domStyle.refs++ |
| for (var j = 0; j < domStyle.parts.length; j++) { |
| domStyle.parts[j](item.parts[j]) |
| } |
| for (; j < item.parts.length; j++) { |
| domStyle.parts.push(addStyle(item.parts[j])) |
| } |
| if (domStyle.parts.length > item.parts.length) { |
| domStyle.parts.length = item.parts.length |
| } |
| } else { |
| var parts = [] |
| for (var j = 0; j < item.parts.length; j++) { |
| parts.push(addStyle(item.parts[j])) |
| } |
| stylesInDom[item.id] = { id: item.id, refs: 1, parts: parts } |
| } |
| } |
| } |
| |
| function createStyleElement () { |
| var styleElement = document.createElement('style') |
| styleElement.type = 'text/css' |
| head.appendChild(styleElement) |
| return styleElement |
| } |
| |
| function addStyle (obj /* StyleObjectPart */) { |
| var update, remove |
| var styleElement = document.querySelector('style[data-vue-ssr-id~="' + obj.id + '"]') |
| |
| if (styleElement) { |
| if (isProduction) { |
| // has SSR styles and in production mode. |
| // simply do nothing. |
| return noop |
| } else { |
| // has SSR styles but in dev mode. |
| // for some reason Chrome can't handle source map in server-rendered |
| // style tags - source maps in <style> only works if the style tag is |
| // created and inserted dynamically. So we remove the server rendered |
| // styles and inject new ones. |
| styleElement.parentNode.removeChild(styleElement) |
| } |
| } |
| |
| if (isOldIE) { |
| // use singleton mode for IE9. |
| var styleIndex = singletonCounter++ |
| styleElement = singletonElement || (singletonElement = createStyleElement()) |
| update = applyToSingletonTag.bind(null, styleElement, styleIndex, false) |
| remove = applyToSingletonTag.bind(null, styleElement, styleIndex, true) |
| } else { |
| // use multi-style-tag mode in all other cases |
| styleElement = createStyleElement() |
| update = applyToTag.bind(null, styleElement) |
| remove = function () { |
| styleElement.parentNode.removeChild(styleElement) |
| } |
| } |
| |
| update(obj) |
| |
| return function updateStyle (newObj /* StyleObjectPart */) { |
| if (newObj) { |
| if (newObj.css === obj.css && |
| newObj.media === obj.media && |
| newObj.sourceMap === obj.sourceMap) { |
| return |
| } |
| update(obj = newObj) |
| } else { |
| remove() |
| } |
| } |
| } |
| |
| var replaceText = (function () { |
| var textStore = [] |
| |
| return function (index, replacement) { |
| textStore[index] = replacement |
| return textStore.filter(Boolean).join('\n') |
| } |
| })() |
| |
| function applyToSingletonTag (styleElement, index, remove, obj) { |
| var css = remove ? '' : obj.css |
| |
| if (styleElement.styleSheet) { |
| styleElement.styleSheet.cssText = replaceText(index, css) |
| } else { |
| var cssNode = document.createTextNode(css) |
| var childNodes = styleElement.childNodes |
| if (childNodes[index]) styleElement.removeChild(childNodes[index]) |
| if (childNodes.length) { |
| styleElement.insertBefore(cssNode, childNodes[index]) |
| } else { |
| styleElement.appendChild(cssNode) |
| } |
| } |
| } |
| |
| function applyToTag (styleElement, obj) { |
| var css = obj.css |
| var media = obj.media |
| var sourceMap = obj.sourceMap |
| |
| if (media) { |
| styleElement.setAttribute('media', media) |
| } |
| |
| if (sourceMap) { |
| // https://developer.chrome.com/devtools/docs/javascript-debugging |
| // this makes source maps inside style tags work properly in Chrome |
| css += '\n/*# sourceURL=' + sourceMap.sources[0] + ' */' |
| // http://stackoverflow.com/a/26603875 |
| css += '\n/*# sourceMappingURL=data:application/json;base64,' + btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap)))) + ' */' |
| } |
| |
| if (styleElement.styleSheet) { |
| styleElement.styleSheet.cssText = css |
| } else { |
| while (styleElement.firstChild) { |
| styleElement.removeChild(styleElement.firstChild) |
| } |
| styleElement.appendChild(document.createTextNode(css)) |
| } |
| } |
| |
| |
| /***/ }), |
| |
| /***/ 6: |
| /***/ (function(module, exports) { |
| |
| /** |
| * Translates the list format produced by css-loader into something |
| * easier to manipulate. |
| */ |
| module.exports = function listToStyles (parentId, list) { |
| var styles = [] |
| var newStyles = {} |
| for (var i = 0; i < list.length; i++) { |
| var item = list[i] |
| var id = item[0] |
| var css = item[1] |
| var media = item[2] |
| var sourceMap = item[3] |
| var part = { |
| id: parentId + ':' + i, |
| css: css, |
| media: media, |
| sourceMap: sourceMap |
| } |
| if (!newStyles[id]) { |
| styles.push(newStyles[id] = { id: id, parts: [part] }) |
| } else { |
| newStyles[id].parts.push(part) |
| } |
| } |
| return styles |
| } |
| |
| |
| /***/ }), |
| |
| /***/ 7: |
| /***/ (function(module, exports) { |
| |
| /* globals __VUE_SSR_CONTEXT__ */ |
| |
| // this module is a runtime utility for cleaner component module output and will |
| // be included in the final webpack user bundle |
| |
| module.exports = function normalizeComponent ( |
| rawScriptExports, |
| compiledTemplate, |
| injectStyles, |
| scopeId, |
| moduleIdentifier /* server only */ |
| ) { |
| var esModule |
| var scriptExports = rawScriptExports = rawScriptExports || {} |
| |
| // ES6 modules interop |
| var type = typeof rawScriptExports.default |
| if (type === 'object' || type === 'function') { |
| esModule = rawScriptExports |
| scriptExports = rawScriptExports.default |
| } |
| |
| // Vue.extend constructor export interop |
| var options = typeof scriptExports === 'function' |
| ? scriptExports.options |
| : scriptExports |
| |
| // render functions |
| if (compiledTemplate) { |
| options.render = compiledTemplate.render |
| options.staticRenderFns = compiledTemplate.staticRenderFns |
| } |
| |
| // scopedId |
| if (scopeId) { |
| options._scopeId = scopeId |
| } |
| |
| var hook |
| if (moduleIdentifier) { // server build |
| hook = function (context) { |
| // 2.3 injection |
| context = |
| context || // cached call |
| (this.$vnode && this.$vnode.ssrContext) || // stateful |
| (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional |
| // 2.2 with runInNewContext: true |
| if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { |
| context = __VUE_SSR_CONTEXT__ |
| } |
| // inject component styles |
| if (injectStyles) { |
| injectStyles.call(this, context) |
| } |
| // register component module identifier for async chunk inferrence |
| if (context && context._registeredComponents) { |
| context._registeredComponents.add(moduleIdentifier) |
| } |
| } |
| // used by ssr in case component is cached and beforeCreate |
| // never gets called |
| options._ssrRegister = hook |
| } else if (injectStyles) { |
| hook = injectStyles |
| } |
| |
| if (hook) { |
| var functional = options.functional |
| var existing = functional |
| ? options.render |
| : options.beforeCreate |
| if (!functional) { |
| // inject component registration as beforeCreate hook |
| options.beforeCreate = existing |
| ? [].concat(existing, hook) |
| : [hook] |
| } else { |
| // register for functioal component in vue file |
| options.render = function renderWithStyleInjection (h, context) { |
| hook.call(context) |
| return existing(h, context) |
| } |
| } |
| } |
| |
| return { |
| esModule: esModule, |
| exports: scriptExports, |
| options: options |
| } |
| } |
| |
| |
| /***/ }), |
| |
| /***/ 63: |
| /***/ (function(module, exports) { |
| |
| 'use strict'; |
| |
| var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
| |
| /* |
| * Licensed to the Apache Software Foundation (ASF) under one |
| * or more contributor license agreements. See the NOTICE file |
| * distributed with this work for additional information |
| * regarding copyright ownership. The ASF licenses this file |
| * to you under the Apache License, Version 2.0 (the |
| * "License"); you may not use this file except in compliance |
| * with the License. You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, |
| * software distributed under the License is distributed on an |
| * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| * KIND, either express or implied. See the License for the |
| * specific language governing permissions and limitations |
| * under the License. |
| */ |
| exports.getBaseURL = function (vm) { |
| var bundleUrl = weex.config.bundleUrl; |
| var nativeBase; |
| var isAndroidAssets = bundleUrl.indexOf('your_current_IP') >= 0 || bundleUrl.indexOf('file://assets/') >= 0; |
| var isiOSAssets = bundleUrl.indexOf('file:///') >= 0 && bundleUrl.indexOf('WeexDemo.app') > 0; |
| if (isAndroidAssets) { |
| nativeBase = 'file://assets/'; |
| } else if (isiOSAssets) { |
| // file:///var/mobile/Containers/Bundle/Application/{id}/WeexDemo.app/ |
| // file:///Users/{user}/Library/Developer/CoreSimulator/Devices/{id}/data/Containers/Bundle/Application/{id}/WeexDemo.app/ |
| nativeBase = bundleUrl.substring(0, bundleUrl.lastIndexOf('/') + 1); |
| } else { |
| var host = 'localhost:12580'; |
| var matches = /\/\/([^\/]+?)\//.exec(weex.config.bundleUrl); |
| if (matches && matches.length >= 2) { |
| host = matches[1]; |
| } |
| nativeBase = 'http://' + host + '/' + vm.dir + '/build/'; |
| } |
| var h5Base = './vue.html?page=./' + vm.dir + '/build/'; |
| // in Native |
| var base = nativeBase; |
| if ((typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object') { |
| // in Browser or WebView |
| base = h5Base; |
| } |
| return base; |
| }; |
| |
| /***/ }), |
| |
| /***/ 145: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| var disposed = false |
| var Component = __webpack_require__(7)( |
| /* script */ |
| __webpack_require__(146), |
| /* template */ |
| __webpack_require__(160), |
| /* styles */ |
| null, |
| /* scopeId */ |
| null, |
| /* moduleIdentifier (server only) */ |
| null |
| ) |
| Component.options.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/index.vue" |
| if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")} |
| if (Component.options.functional) {console.error("[vue-loader] index.vue: functional components are not supported with templates, they should use render functions.")} |
| |
| /* hot reload */ |
| if (false) {(function () { |
| var hotAPI = require("vue-hot-reload-api") |
| hotAPI.install(require("vue"), false) |
| if (!hotAPI.compatible) return |
| module.hot.accept() |
| if (!module.hot.data) { |
| hotAPI.createRecord("data-v-60767867", Component.options) |
| } else { |
| hotAPI.reload("data-v-60767867", Component.options) |
| } |
| module.hot.dispose(function (data) { |
| disposed = true |
| }) |
| })()} |
| |
| module.exports = Component.exports |
| |
| |
| /***/ }), |
| |
| /***/ 146: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; |
| |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| data: function data() { |
| var root = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? 'vue-web/vue' : 'vue'; |
| |
| return { |
| items: [ |
| // common |
| { name: root + '/hello', title: 'Hello World' }, { name: root + '/style/index', title: 'Common Style' }, { name: root + '/animation', title: 'Animation' }, { name: root + '/transition', title: 'Transition' }, |
| |
| // component |
| { name: root + '/components/text', title: 'Text' }, { name: root + '/iconfont', title: 'iconfont' }, { name: root + '/components/image', title: 'Image' }, { name: root + '/components/input', title: 'Input' }, { name: root + '/components/scroller', title: 'Scroller' }, { name: root + '/components/list', title: 'List' }, { name: root + '/components/waterfall', title: 'Waterfall' }, { name: root + '/components/slider', title: 'Slider' }, { name: root + '/components/a', title: 'A' }, { name: root + '/components/video', title: 'Video' }, { name: root + '/components/countdown', title: 'Countdown' }, { name: root + '/components/marquee', title: 'Marquee' }, { name: root + '/components/web', title: 'Web' }, { name: root + '/components/navigator', title: 'Navigator' }, { name: root + '/components/tabbar', title: 'Tabbar' }, |
| |
| // module |
| { name: root + '/modules/instance-api', title: 'Instance API' }, { name: root + '/modules/modal', title: 'Modal' }, { name: root + '/modules/webSocket', title: 'WebSocket' }, { name: root + '/modules/stream', title: 'Stream' }, { name: root + '/modules/storage', title: 'Storage' }, { name: root + '/modules/picker', title: 'picker' }, |
| // {name: 'module/clipboard', title: 'Clipboard'}, // 0.8 , developing |
| |
| // showcase |
| { name: root + '/showcase/boxshadow', title: 'boxshadow' }, { name: root + '/showcase/progress', title: 'Progress Bar' }, { name: root + '/showcase/itemlist', title: 'List (Advanced)' }, { name: root + '/showcase/calculator', title: 'Calculator' }, { name: root + '/showcase/tap-penetrate', title: 'TapPenetrate' }, { name: root + '/showcase/a-node-click', title: 'ANodeClick' }, |
| // {name: root + '/showcase/minesweeper', title: 'Minesweeper'}, |
| // {name: root + '/showcase/ui', title: 'UI Gallery'}, |
| // {name: root + '/showcase/dropdown/dropdown-demo', title: 'Dropdown'} |
| |
| // market |
| { name: root + '/market/gcanvas', title: 'Gcanvas' }] |
| }; |
| }, |
| components: { |
| exampleList: __webpack_require__(147) |
| }, |
| created: function created() { |
| var root = (typeof window === 'undefined' ? 'undefined' : _typeof(window)) === 'object' ? 'vue-web/vue' : 'vue'; |
| var platform = this.$getConfig().env.platform.toLowerCase(); |
| if (platform === 'ios') { |
| this.items.push({ name: root + '/showcase/compositing', title: 'Compositing' }); |
| } |
| } |
| }; |
| |
| /***/ }), |
| |
| /***/ 147: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| var disposed = false |
| var Component = __webpack_require__(7)( |
| /* script */ |
| __webpack_require__(148), |
| /* template */ |
| __webpack_require__(159), |
| /* styles */ |
| null, |
| /* scopeId */ |
| null, |
| /* moduleIdentifier (server only) */ |
| null |
| ) |
| Component.options.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/example-list.vue" |
| if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")} |
| if (Component.options.functional) {console.error("[vue-loader] example-list.vue: functional components are not supported with templates, they should use render functions.")} |
| |
| /* hot reload */ |
| if (false) {(function () { |
| var hotAPI = require("vue-hot-reload-api") |
| hotAPI.install(require("vue"), false) |
| if (!hotAPI.compatible) return |
| module.hot.accept() |
| if (!module.hot.data) { |
| hotAPI.createRecord("data-v-cfdc1fba", Component.options) |
| } else { |
| hotAPI.reload("data-v-cfdc1fba", Component.options) |
| } |
| module.hot.dispose(function (data) { |
| disposed = true |
| }) |
| })()} |
| |
| module.exports = Component.exports |
| |
| |
| /***/ }), |
| |
| /***/ 148: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| var getBaseURL = __webpack_require__(63).getBaseURL; |
| module.exports = { |
| props: { |
| dir: { |
| default: 'examples' |
| }, // examples, test ... |
| items: { |
| default: [{ name: 'hello', title: 'Hello World', url: '' }] |
| } |
| }, |
| components: { |
| exampleListItem: __webpack_require__(149) |
| }, |
| created: function created() { |
| var base = getBaseURL(this); |
| for (var i in this.items) { |
| var item = this.items[i]; |
| if (!item.url) { |
| item.url = base + item.name + '.js'; |
| } |
| } |
| } |
| }; |
| |
| /***/ }), |
| |
| /***/ 149: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| var disposed = false |
| function injectStyle (ssrContext) { |
| if (disposed) return |
| __webpack_require__(150) |
| } |
| var Component = __webpack_require__(7)( |
| /* script */ |
| __webpack_require__(152), |
| /* template */ |
| __webpack_require__(158), |
| /* styles */ |
| injectStyle, |
| /* scopeId */ |
| "data-v-f04b1ea6", |
| /* moduleIdentifier (server only) */ |
| null |
| ) |
| Component.options.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/example-list-item.vue" |
| if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")} |
| if (Component.options.functional) {console.error("[vue-loader] example-list-item.vue: functional components are not supported with templates, they should use render functions.")} |
| |
| /* hot reload */ |
| if (false) {(function () { |
| var hotAPI = require("vue-hot-reload-api") |
| hotAPI.install(require("vue"), false) |
| if (!hotAPI.compatible) return |
| module.hot.accept() |
| if (!module.hot.data) { |
| hotAPI.createRecord("data-v-f04b1ea6", Component.options) |
| } else { |
| hotAPI.reload("data-v-f04b1ea6", Component.options) |
| } |
| module.hot.dispose(function (data) { |
| disposed = true |
| }) |
| })()} |
| |
| module.exports = Component.exports |
| |
| |
| /***/ }), |
| |
| /***/ 150: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| // style-loader: Adds some css to the DOM by adding a <style> tag |
| |
| // load the styles |
| var content = __webpack_require__(151); |
| if(typeof content === 'string') content = [[module.id, content, '']]; |
| if(content.locals) module.exports = content.locals; |
| // add the styles to the DOM |
| var update = __webpack_require__(5)("2292246e", content, false); |
| // Hot Module Replacement |
| if(false) { |
| // When the styles change, update the <style> tags |
| if(!content.locals) { |
| module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-f04b1ea6\",\"scoped\":true,\"hasInlineConfig\":false}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./example-list-item.vue", function() { |
| var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-f04b1ea6\",\"scoped\":true,\"hasInlineConfig\":false}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./example-list-item.vue"); |
| if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; |
| update(newContent); |
| }); |
| } |
| // When the module is disposed, remove the <style> tags |
| module.hot.dispose(function() { update(); }); |
| } |
| |
| /***/ }), |
| |
| /***/ 151: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| exports = module.exports = __webpack_require__(4)(); |
| // imports |
| |
| |
| // module |
| exports.push([module.id, "\n.item-txt[data-v-f04b1ea6] {\n font-size: 48px;\n color: #555;\n}\n", ""]); |
| |
| // exports |
| |
| |
| /***/ }), |
| |
| /***/ 152: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| var event = weex.requireModule('event'); |
| module.exports = { |
| props: { |
| title: { default: '456' }, |
| url: { default: '' } |
| }, |
| components: { |
| listItem: __webpack_require__(153) |
| }, |
| methods: { |
| redirect: function redirect() { |
| event.openURL(this.url); |
| } |
| } |
| }; |
| |
| /***/ }), |
| |
| /***/ 153: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| var disposed = false |
| function injectStyle (ssrContext) { |
| if (disposed) return |
| __webpack_require__(154) |
| } |
| var Component = __webpack_require__(7)( |
| /* script */ |
| __webpack_require__(156), |
| /* template */ |
| __webpack_require__(157), |
| /* styles */ |
| injectStyle, |
| /* scopeId */ |
| "data-v-588f3460", |
| /* moduleIdentifier (server only) */ |
| null |
| ) |
| Component.options.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/list-item.vue" |
| if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")} |
| if (Component.options.functional) {console.error("[vue-loader] list-item.vue: functional components are not supported with templates, they should use render functions.")} |
| |
| /* hot reload */ |
| if (false) {(function () { |
| var hotAPI = require("vue-hot-reload-api") |
| hotAPI.install(require("vue"), false) |
| if (!hotAPI.compatible) return |
| module.hot.accept() |
| if (!module.hot.data) { |
| hotAPI.createRecord("data-v-588f3460", Component.options) |
| } else { |
| hotAPI.reload("data-v-588f3460", Component.options) |
| } |
| module.hot.dispose(function (data) { |
| disposed = true |
| }) |
| })()} |
| |
| module.exports = Component.exports |
| |
| |
| /***/ }), |
| |
| /***/ 154: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| // style-loader: Adds some css to the DOM by adding a <style> tag |
| |
| // load the styles |
| var content = __webpack_require__(155); |
| if(typeof content === 'string') content = [[module.id, content, '']]; |
| if(content.locals) module.exports = content.locals; |
| // add the styles to the DOM |
| var update = __webpack_require__(5)("05c1548a", content, false); |
| // Hot Module Replacement |
| if(false) { |
| // When the styles change, update the <style> tags |
| if(!content.locals) { |
| module.hot.accept("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-588f3460\",\"scoped\":true,\"hasInlineConfig\":false}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./list-item.vue", function() { |
| var newContent = require("!!../../../node_modules/css-loader/index.js!../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-588f3460\",\"scoped\":true,\"hasInlineConfig\":false}!../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./list-item.vue"); |
| if(typeof newContent === 'string') newContent = [[module.id, newContent, '']]; |
| update(newContent); |
| }); |
| } |
| // When the module is disposed, remove the <style> tags |
| module.hot.dispose(function() { update(); }); |
| } |
| |
| /***/ }), |
| |
| /***/ 155: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| exports = module.exports = __webpack_require__(4)(); |
| // imports |
| |
| |
| // module |
| exports.push([module.id, "\n.item[data-v-588f3460] {\n padding-top: 25px;\n padding-bottom: 25px;\n padding-left: 35px;\n padding-right: 35px;\n height: 160px;\n justify-content: center;\n /*margin-bottom: 1px; FUTURE */\n border-bottom-width: 1px;\n border-color: #dddddd;\n}\n", ""]); |
| |
| // exports |
| |
| |
| /***/ }), |
| |
| /***/ 156: |
| /***/ (function(module, exports) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| props: { |
| bgColor: { default: '#ffffff' } |
| }, |
| methods: { |
| click: function click() { |
| this.$emit('click'); |
| }, |
| touchstart: function touchstart() { |
| // FIXME android touch |
| // TODO adaptive opposite bgColor |
| // this.bgColor = '#e6e6e6'; |
| }, |
| touchend: function touchend() { |
| // FIXME android touchend not triggered |
| // this.bgColor = '#ffffff'; |
| } |
| } |
| }; |
| |
| /***/ }), |
| |
| /***/ 157: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('div', { |
| staticClass: "item", |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle({ |
| backgroundColor: _vm.bgColor |
| })), |
| on: { |
| "click": _vm.click, |
| "touchstart": _vm.touchstart, |
| "touchend": _vm.touchend |
| } |
| }, [_vm._t("default")], 2) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| if (false) { |
| module.hot.accept() |
| if (module.hot.data) { |
| require("vue-hot-reload-api").rerender("data-v-588f3460", module.exports) |
| } |
| } |
| |
| /***/ }), |
| |
| /***/ 158: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('list-item', { |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle(undefined)), |
| on: { |
| "click": _vm.redirect |
| } |
| }, [_c('text', { |
| staticClass: "item-txt", |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle(undefined)) |
| }, [_vm._v(_vm._s(_vm.title))])]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| if (false) { |
| module.hot.accept() |
| if (module.hot.data) { |
| require("vue-hot-reload-api").rerender("data-v-f04b1ea6", module.exports) |
| } |
| } |
| |
| /***/ }), |
| |
| /***/ 159: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('list', _vm._l((_vm.items), function(item, i) { |
| return _c('cell', { |
| key: i, |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle(undefined)), |
| attrs: { |
| "append": "tree" |
| } |
| }, [_c('example-list-item', { |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle(undefined)), |
| attrs: { |
| "title": item.title, |
| "url": item.url |
| } |
| })], 1) |
| })) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| if (false) { |
| module.hot.accept() |
| if (module.hot.data) { |
| require("vue-hot-reload-api").rerender("data-v-cfdc1fba", module.exports) |
| } |
| } |
| |
| /***/ }), |
| |
| /***/ 160: |
| /***/ (function(module, exports, __webpack_require__) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('example-list', { |
| staticStyle: _vm.$processStyle(undefined), |
| style: (_vm.$processStyle(undefined)), |
| attrs: { |
| "items": _vm.items, |
| "dir": "examples" |
| } |
| }) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| if (false) { |
| module.hot.accept() |
| if (module.hot.data) { |
| require("vue-hot-reload-api").rerender("data-v-60767867", module.exports) |
| } |
| } |
| |
| /***/ }) |
| |
| /******/ }); |