| // { "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__(6) |
| __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 _scroll = __webpack_require__(2); |
| |
| var _scroll2 = _interopRequireDefault(_scroll); |
| |
| function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } |
| |
| exports.default = { |
| components: { Example: _scroll2.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__(5) |
| __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/modules/dom/scroll.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 = { |
| "scroller": { |
| "width": 700, |
| "height": 700, |
| "borderWidth": 3, |
| "borderStyle": "solid", |
| "borderColor": "rgb(162,217,192)", |
| "marginLeft": 25 |
| }, |
| "row": { |
| "height": 100, |
| "flexDirection": "column", |
| "justifyContent": "center", |
| "paddingLeft": 30, |
| "borderBottomWidth": 2, |
| "borderBottomStyle": "solid", |
| "borderBottomColor": "#DDDDDD" |
| }, |
| "text": { |
| "fontSize": 45, |
| "color": "#666666" |
| }, |
| "group": { |
| "flexDirection": "row", |
| "justifyContent": "center", |
| "marginTop": 60 |
| }, |
| "button": { |
| "width": 200, |
| "paddingTop": 20, |
| "paddingBottom": 20, |
| "fontSize": 40, |
| "marginLeft": 30, |
| "marginRight": 30, |
| "textAlign": "center", |
| "color": "#41B883", |
| "borderWidth": 2, |
| "borderStyle": "solid", |
| "borderColor": "rgb(162,217,192)", |
| "backgroundColor": "rgba(162,217,192,0.2)" |
| } |
| } |
| |
| /***/ }, |
| /* 4 */ |
| /***/ function(module, exports) { |
| |
| 'use strict'; |
| |
| Object.defineProperty(exports, "__esModule", { |
| value: true |
| }); |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| var dom = weex.requireModule('dom'); |
| |
| exports.default = { |
| data: function data() { |
| return { |
| rows: [] |
| }; |
| }, |
| created: function created() { |
| for (var i = 0; i < 30; i++) { |
| this.rows.push('row ' + i); |
| } |
| }, |
| |
| methods: { |
| goto10: function goto10(count) { |
| var el = this.$refs.item10[0]; |
| dom.scrollToElement(el, {}); |
| }, |
| goto20: function goto20(count) { |
| var el = this.$refs.item20[0]; |
| dom.scrollToElement(el, { offset: 0 }); |
| } |
| } |
| }; |
| |
| /***/ }, |
| /* 5 */ |
| /***/ 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('scroller', { |
| staticClass: ["scroller"] |
| }, [_vm._l((_vm.rows), function(name, index) { |
| return _h('div', { |
| ref: 'item' + index, |
| refInFor: true, |
| staticClass: ["row"] |
| }, [_h('text', { |
| ref: 'text' + index, |
| refInFor: true, |
| staticClass: ["text"] |
| }, [_vm._s(name)])]) |
| })]), _h('div', { |
| staticClass: ["group"] |
| }, [_h('text', { |
| staticClass: ["button"], |
| on: { |
| "click": _vm.goto10 |
| } |
| }, ["Go to 10"]), _h('text', { |
| staticClass: ["button"], |
| on: { |
| "click": _vm.goto20 |
| } |
| }, ["Go to 20"])])]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| /* 6 */ |
| /***/ 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 |
| |
| /***/ } |
| /******/ ]); |