| // { "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__(436) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(446) |
| __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/bobning/work/source/apache-incubator-weex/examples/vue/components/navigator.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] |
| } |
| }) |
| if (typeof __register_static_styles__ === "function") { |
| __register_static_styles__(__vue_options__._scopeId, __vue_styles__) |
| } |
| |
| module.exports = __vue_exports__ |
| module.exports.el = 'true' |
| new Vue(module.exports) |
| |
| |
| /***/ }, |
| |
| /***/ 399: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* styles */ |
| __vue_styles__.push(__webpack_require__(400) |
| ) |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(401) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(402) |
| __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/bobning/work/source/apache-incubator-weex/examples/vue/include/panel.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__._scopeId = "data-v-46407d45" |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| if (typeof __register_static_styles__ === "function") { |
| __register_static_styles__(__vue_options__._scopeId, __vue_styles__) |
| } |
| |
| module.exports = __vue_exports__ |
| |
| |
| /***/ }, |
| |
| /***/ 400: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "panel": { |
| "marginBottom": 20, |
| "backgroundColor": "#ffffff", |
| "borderColor": "#dddddd", |
| "borderWidth": 1 |
| }, |
| "panel-primary": { |
| "borderColor": "rgb(40,96,144)" |
| }, |
| "panel-success": { |
| "borderColor": "rgb(76,174,76)" |
| }, |
| "panel-info": { |
| "borderColor": "rgb(70,184,218)" |
| }, |
| "panel-warning": { |
| "borderColor": "rgb(238,162,54)" |
| }, |
| "panel-danger": { |
| "borderColor": "rgb(212,63,58)" |
| }, |
| "panel-header": { |
| "backgroundColor": "#f5f5f5", |
| "fontSize": 40, |
| "color": "#333333" |
| }, |
| "panel-header-primary": { |
| "backgroundColor": "rgb(40,96,144)", |
| "color": "#ffffff" |
| }, |
| "panel-header-success": { |
| "backgroundColor": "rgb(92,184,92)", |
| "color": "#ffffff" |
| }, |
| "panel-header-info": { |
| "backgroundColor": "rgb(91,192,222)", |
| "color": "#ffffff" |
| }, |
| "panel-header-warning": { |
| "backgroundColor": "rgb(240,173,78)", |
| "color": "#ffffff" |
| }, |
| "panel-header-danger": { |
| "backgroundColor": "rgb(217,83,79)", |
| "color": "#ffffff" |
| } |
| } |
| |
| /***/ }, |
| |
| /***/ 401: |
| /***/ function(module, exports) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| props: { |
| type: { default: 'default' }, |
| title: { default: '' }, |
| paddingBody: { default: 20 }, |
| paddingHead: { default: 20 }, |
| dataClass: { default: '' }, // FIXME transfer class |
| border: { default: 0 } |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 402: |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('div', { |
| class: ['panel', 'panel-' + _vm.type], |
| style: { |
| borderWidth: _vm.border |
| } |
| }, [_c('text', { |
| class: ['panel-header', 'panel-header-' + _vm.type], |
| style: { |
| paddingTop: _vm.paddingHead, |
| paddingBottom: _vm.paddingHead, |
| paddingLeft: _vm.paddingHead * 1.5, |
| paddingRight: _vm.paddingHead * 1.5 |
| } |
| }, [_vm._v(_vm._s(_vm.title))]), _c('div', { |
| class: ['panel-body', 'panel-body-' + _vm.type], |
| style: { |
| paddingTop: _vm.paddingBody, |
| paddingBottom: _vm.paddingBody, |
| paddingLeft: _vm.paddingBody * 1.5, |
| paddingRight: _vm.paddingBody * 1.5 |
| } |
| }, [_vm._t("default")], 2)]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| |
| /***/ 403: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* styles */ |
| __vue_styles__.push(__webpack_require__(404) |
| ) |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(405) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(406) |
| __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/bobning/work/source/apache-incubator-weex/examples/vue/include/button.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__._scopeId = "data-v-4c6be341" |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| if (typeof __register_static_styles__ === "function") { |
| __register_static_styles__(__vue_options__._scopeId, __vue_styles__) |
| } |
| |
| module.exports = __vue_exports__ |
| |
| |
| /***/ }, |
| |
| /***/ 404: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "btn": { |
| "marginBottom": 0, |
| "alignItems": "center", |
| "justifyContent": "center", |
| "borderWidth": 1, |
| "borderStyle": "solid", |
| "borderColor": "#333333" |
| }, |
| "btn-default": { |
| "color": "rgb(51,51,51)" |
| }, |
| "btn-primary": { |
| "backgroundColor": "rgb(40,96,144)", |
| "borderColor": "rgb(40,96,144)" |
| }, |
| "btn-success": { |
| "backgroundColor": "rgb(92,184,92)", |
| "borderColor": "rgb(76,174,76)" |
| }, |
| "btn-info": { |
| "backgroundColor": "rgb(91,192,222)", |
| "borderColor": "rgb(70,184,218)" |
| }, |
| "btn-warning": { |
| "backgroundColor": "rgb(240,173,78)", |
| "borderColor": "rgb(238,162,54)" |
| }, |
| "btn-danger": { |
| "backgroundColor": "rgb(217,83,79)", |
| "borderColor": "rgb(212,63,58)" |
| }, |
| "btn-link": { |
| "borderColor": "rgba(0,0,0,0)", |
| "borderRadius": 0 |
| }, |
| "btn-txt-default": { |
| "color": "rgb(51,51,51)" |
| }, |
| "btn-txt-primary": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-success": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-info": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-warning": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-danger": { |
| "color": "rgb(255,255,255)" |
| }, |
| "btn-txt-link": { |
| "color": "rgb(51,122,183)" |
| }, |
| "btn-sz-large": { |
| "width": 300, |
| "height": 100, |
| "paddingTop": 25, |
| "paddingBottom": 25, |
| "paddingLeft": 40, |
| "paddingRight": 40, |
| "borderRadius": 15 |
| }, |
| "btn-sz-middle": { |
| "width": 240, |
| "height": 80, |
| "paddingTop": 15, |
| "paddingBottom": 15, |
| "paddingLeft": 30, |
| "paddingRight": 30, |
| "borderRadius": 10 |
| }, |
| "btn-sz-small": { |
| "width": 170, |
| "height": 60, |
| "paddingTop": 12, |
| "paddingBottom": 12, |
| "paddingLeft": 25, |
| "paddingRight": 25, |
| "borderRadius": 7 |
| }, |
| "btn-txt-sz-large": { |
| "fontSize": 45 |
| }, |
| "btn-txt-sz-middle": { |
| "fontSize": 35 |
| }, |
| "btn-txt-sz-small": { |
| "fontSize": 30 |
| } |
| } |
| |
| /***/ }, |
| |
| /***/ 405: |
| /***/ function(module, exports) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| props: { |
| type: { default: 'default' }, |
| size: { default: 'large' }, |
| value: { default: '' } |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 406: |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('div', { |
| class: ['btn', 'btn-' + _vm.type, 'btn-sz-' + _vm.size] |
| }, [_c('text', { |
| class: ['btn-txt', 'btn-txt-' + _vm.type, 'btn-txt-sz-' + _vm.size] |
| }, [_vm._v(_vm._s(_vm.value))])]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| |
| /***/ 436: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| var navigator = weex.requireModule('navigator'); |
| var getBaseURL = __webpack_require__(437).getBaseURL; |
| module.exports = { |
| data: function data() { |
| return { |
| navBarHeight: 88, |
| title: 'Navigator', |
| dir: 'examples', |
| baseURL: '' |
| }; |
| }, |
| components: { |
| panel: __webpack_require__(399), |
| navpage: __webpack_require__(438), |
| button: __webpack_require__(403) |
| }, |
| created: function created() { |
| this.$getConfig(function (config) { |
| var env = config.env; |
| if (env.platform == 'iOS') { |
| var scale = env.scale; |
| var deviceWidth = env.deviceWidth / scale; |
| this.navBarHeight = 64.0 * 750.0 / deviceWidth; |
| } |
| }.bind(this)); |
| this.baseURL = getBaseURL(this); |
| }, |
| methods: { |
| naviBarLeftItemClick: function naviBarLeftItemClick(e) { |
| modal.toast({ message: 'naviBarLeftItemClick', duration: 2 }); |
| }, |
| naviBarRightItemClick: function naviBarRightItemClick(e) { |
| modal.toast({ message: 'naviBarRightItemClick', duration: 2 }); |
| }, |
| push: function push() { |
| var params = { |
| 'url': this.baseURL + 'vue/components/navigator.js?test=1', |
| 'animated': 'true' |
| }; |
| navigator.push(params, function () {}); |
| }, |
| pop: function pop() { |
| var params = { |
| 'url': this.baseURL + 'vue/components/navigator.js?test=1', |
| 'animated': 'true' |
| }; |
| navigator.pop(params, function () {}); |
| } |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 437: |
| /***/ function(module, exports) { |
| |
| exports.getBaseURL = function (vm) { |
| var bundleUrl = vm.$getConfig().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(vm.$getConfig().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 === 'object') { |
| // in Browser or WebView |
| base = h5Base; |
| } |
| return base |
| } |
| |
| |
| /***/ }, |
| |
| /***/ 438: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* styles */ |
| __vue_styles__.push(__webpack_require__(439) |
| ) |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(440) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(445) |
| __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/bobning/work/source/apache-incubator-weex/examples/vue/include/navpage.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__._scopeId = "data-v-7d252f9a" |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| if (typeof __register_static_styles__ === "function") { |
| __register_static_styles__(__vue_options__._scopeId, __vue_styles__) |
| } |
| |
| module.exports = __vue_exports__ |
| |
| |
| /***/ }, |
| |
| /***/ 439: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "wrapper": { |
| "position": "absolute", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "bottom": 0, |
| "width": 750 |
| } |
| } |
| |
| /***/ }, |
| |
| /***/ 440: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| components: { |
| navbar: __webpack_require__(441) |
| }, |
| props: { |
| dataRole: { default: 'navbar' }, |
| backgroundColor: { default: 'black' }, |
| height: { default: 88 }, |
| title: { default: "" }, |
| titleColor: { default: 'black' }, |
| rightItemSrc: { default: '' }, |
| rightItemTitle: { default: '' }, |
| rightItemColor: { default: 'black' }, |
| leftItemSrc: { default: '' }, |
| leftItemTitle: { default: '' }, |
| leftItemColor: { default: 'black' } |
| }, |
| methods: { |
| naviBarRightItemClick: function naviBarRightItemClick(e) { |
| this.$emit('naviBarRightItemClick', e); |
| }, |
| naviBarLeftItemClick: function naviBarLeftItemClick(e) { |
| this.$emit('naviBarLeftItemClick', e); |
| } |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 441: |
| /***/ function(module, exports, __webpack_require__) { |
| |
| var __vue_exports__, __vue_options__ |
| var __vue_styles__ = [] |
| |
| /* styles */ |
| __vue_styles__.push(__webpack_require__(442) |
| ) |
| |
| /* script */ |
| __vue_exports__ = __webpack_require__(443) |
| |
| /* template */ |
| var __vue_template__ = __webpack_require__(444) |
| __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/bobning/work/source/apache-incubator-weex/examples/vue/include/navbar.vue" |
| __vue_options__.render = __vue_template__.render |
| __vue_options__.staticRenderFns = __vue_template__.staticRenderFns |
| __vue_options__._scopeId = "data-v-2a6b391f" |
| __vue_options__.style = __vue_options__.style || {} |
| __vue_styles__.forEach(function (module) { |
| for (var name in module) { |
| __vue_options__.style[name] = module[name] |
| } |
| }) |
| if (typeof __register_static_styles__ === "function") { |
| __register_static_styles__(__vue_options__._scopeId, __vue_styles__) |
| } |
| |
| module.exports = __vue_exports__ |
| |
| |
| /***/ }, |
| |
| /***/ 442: |
| /***/ function(module, exports) { |
| |
| module.exports = { |
| "container": { |
| "flexDirection": "row", |
| "position": "fixed", |
| "top": 0, |
| "left": 0, |
| "right": 0, |
| "width": 750 |
| }, |
| "right-text": { |
| "position": "absolute", |
| "bottom": 28, |
| "right": 32, |
| "textAlign": "right", |
| "fontSize": 32, |
| "fontFamily": "'Open Sans', sans-serif" |
| }, |
| "left-text": { |
| "position": "absolute", |
| "bottom": 28, |
| "left": 32, |
| "textAlign": "left", |
| "fontSize": 32, |
| "fontFamily": "'Open Sans', sans-serif" |
| }, |
| "center-text": { |
| "position": "absolute", |
| "bottom": 25, |
| "left": 172, |
| "right": 172, |
| "textAlign": "center", |
| "fontSize": 36, |
| "fontWeight": "bold" |
| }, |
| "left-image": { |
| "position": "absolute", |
| "bottom": 20, |
| "left": 28, |
| "width": 50, |
| "height": 50 |
| }, |
| "right-image": { |
| "position": "absolute", |
| "bottom": 20, |
| "right": 28, |
| "width": 50, |
| "height": 50 |
| } |
| } |
| |
| /***/ }, |
| |
| /***/ 443: |
| /***/ function(module, exports) { |
| |
| 'use strict'; |
| |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| // |
| |
| module.exports = { |
| props: { |
| dataRole: { default: 'navbar' }, |
| //导航条背景色 |
| backgroundColor: { default: 'black' }, |
| //导航条高度 |
| height: { default: 88 }, |
| //导航条标题 |
| title: { default: '' }, |
| //导航条标题颜色 |
| titleColor: { default: 'black' }, |
| //右侧按钮图片 |
| rightItemSrc: { default: '' }, |
| //右侧按钮标题 |
| rightItemTitle: { default: '' }, |
| //右侧按钮标题颜色 |
| rightItemColor: { default: 'black' }, |
| //左侧按钮图片 |
| leftItemSrc: { default: '' }, |
| //左侧按钮标题 |
| leftItemTitle: { default: '' }, |
| //左侧按钮颜色 |
| leftItemColor: { default: 'black' } |
| }, |
| methods: { |
| onclickrightitem: function onclickrightitem(e) { |
| this.$emit('naviBarRightItemClick'); |
| }, |
| onclickleftitem: function onclickleftitem(e) { |
| this.$emit('naviBarLeftItemClick'); |
| } |
| } |
| }; |
| |
| /***/ }, |
| |
| /***/ 444: |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('div', { |
| staticClass: ["container"], |
| style: { |
| height: _vm.height, |
| backgroundColor: _vm.backgroundColor |
| }, |
| attrs: { |
| "dataRole": _vm.dataRole |
| } |
| }, [(!_vm.rightItemSrc) ? _c('text', { |
| staticClass: ["right-text"], |
| style: { |
| color: _vm.rightItemColor |
| }, |
| attrs: { |
| "naviItemPosition": "right" |
| }, |
| on: { |
| "click": _vm.onclickrightitem |
| } |
| }, [_vm._v(_vm._s(_vm.rightItemTitle))]) : _vm._e(), (_vm.rightItemSrc) ? _c('image', { |
| staticClass: ["right-image"], |
| attrs: { |
| "naviItemPosition": "right", |
| "src": _vm.rightItemSrc |
| }, |
| on: { |
| "click": _vm.onclickrightitem |
| } |
| }) : _vm._e(), (!_vm.leftItemSrc) ? _c('text', { |
| staticClass: ["left-text"], |
| style: { |
| color: _vm.leftItemColor |
| }, |
| attrs: { |
| "naviItemPosition": "left" |
| }, |
| on: { |
| "click": _vm.onclickleftitem |
| } |
| }, [_vm._v(_vm._s(_vm.leftItemTitle))]) : _vm._e(), (_vm.leftItemSrc) ? _c('image', { |
| staticClass: ["left-image"], |
| attrs: { |
| "naviItemPosition": "left", |
| "src": _vm.leftItemSrc |
| }, |
| on: { |
| "click": _vm.onclickleftitem |
| } |
| }) : _vm._e(), _c('text', { |
| staticClass: ["center-text"], |
| style: { |
| color: _vm.titleColor |
| }, |
| attrs: { |
| "naviItemPosition": "center" |
| } |
| }, [_vm._v(_vm._s(_vm.title))])]) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| |
| /***/ 445: |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('div', { |
| staticClass: ["wrapper"] |
| }, [_c('navbar', { |
| attrs: { |
| "dataRole": _vm.dataRole, |
| "height": _vm.height, |
| "backgroundColor": _vm.backgroundColor, |
| "title": _vm.title, |
| "titleColor": _vm.titleColor, |
| "leftItemSrc": _vm.leftItemSrc, |
| "leftItemTitle": _vm.leftItemTitle, |
| "leftItemColor": _vm.leftItemColor, |
| "rightItemSrc": _vm.rightItemSrc, |
| "rightItemTitle": _vm.rightItemTitle, |
| "rightItemColor": _vm.rightItemColor |
| }, |
| on: { |
| "naviBarRightItemClick": _vm.naviBarRightItemClick, |
| "naviBarLeftItemClick": _vm.naviBarLeftItemClick |
| } |
| }), _c('div', { |
| staticClass: ["wrapper"], |
| style: { |
| marginTop: _vm.height |
| } |
| }, [_vm._t("default")], 2)], 1) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ }, |
| |
| /***/ 446: |
| /***/ function(module, exports) { |
| |
| module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; |
| return _c('navpage', { |
| attrs: { |
| "dataRole": "none", |
| "height": _vm.navBarHeight, |
| "title": _vm.title, |
| "backgroundColor": "#ff5898", |
| "titleColor": "white", |
| "leftItemTitle": "More", |
| "leftItemColor": "white", |
| "rightItemSrc": "http://gtms02.alicdn.com/tps/i2/TB1ED7iMpXXXXXEXXXXWA_BHXXX-48-48.png" |
| }, |
| on: { |
| "naviBarLeftItemClick": _vm.naviBarLeftItemClick, |
| "naviBarRightItemClick": _vm.naviBarRightItemClick |
| } |
| }, [_c('panel', { |
| attrs: { |
| "title": "push a new page" |
| } |
| }, [_c('button', { |
| attrs: { |
| "type": "primary", |
| "size": "small", |
| "value": "push" |
| }, |
| nativeOn: { |
| "click": function($event) { |
| _vm.push($event) |
| } |
| } |
| })], 1), _c('panel', { |
| attrs: { |
| "title": "pop to the last page" |
| } |
| }, [_c('button', { |
| attrs: { |
| "type": "success", |
| "size": "small", |
| "value": "pop" |
| }, |
| nativeOn: { |
| "click": function($event) { |
| _vm.pop($event) |
| } |
| } |
| })], 1)], 1) |
| },staticRenderFns: []} |
| module.exports.render._withStripped = true |
| |
| /***/ } |
| |
| /******/ }); |