You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/01/17 11:20:23 UTC
[11/51] [partial] incubator-weex git commit: * [example] update
examples in weex playground app
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/ios/playground/bundlejs/vue/components/countdown.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/vue/components/countdown.js b/ios/playground/bundlejs/vue/components/countdown.js
deleted file mode 100644
index a7a989c..0000000
--- a/ios/playground/bundlejs/vue/components/countdown.js
+++ /dev/null
@@ -1,658 +0,0 @@
-// { "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__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(18)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(19)
-
- /* 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/Hanks/Codes/work/incubator-weex/examples/vue/components/countdown.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-3bf51100"
- __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)
-
-
-/***/ }),
-/* 1 */,
-/* 2 */,
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(4)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(5)
-
- /* 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/Hanks/Codes/work/incubator-weex/examples/vue/include/panel.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-58511ff6"
- __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__
-
-
-/***/ }),
-/* 4 */
-/***/ (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"
- },
- "panel-body": {
- "paddingLeft": 12,
- "paddingRight": 12,
- "paddingTop": 20,
- "paddingBottom": 20
- }
- }
-
-/***/ }),
-/* 5 */
-/***/ (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 }
- }
- };
-
-/***/ }),
-/* 6 */
-/***/ (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
-
-/***/ }),
-/* 7 */,
-/* 8 */,
-/* 9 */,
-/* 10 */,
-/* 11 */,
-/* 12 */,
-/* 13 */,
-/* 14 */,
-/* 15 */,
-/* 16 */,
-/* 17 */,
-/* 18 */
-/***/ (function(module, exports) {
-
- module.exports = {
- "ctno1": {
- "borderRadius": 8,
- "paddingTop": 6,
- "paddingBottom": 6,
- "paddingRight": 4,
- "paddingLeft": 4,
- "marginLeft": 2,
- "marginRight": 2,
- "backgroundColor": "rgb(242,222,222)",
- "color": "rgb(169,68,66)"
- },
- "ctno2": {
- "borderRadius": 8,
- "paddingTop": 30,
- "paddingBottom": 30,
- "paddingLeft": 16,
- "paddingRight": 16,
- "backgroundColor": "rgb(217,237,247)",
- "color": "rgb(49,112,143)",
- "textAlign": "center",
- "fontSize": 40
- }
- }
-
-/***/ }),
-/* 19 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- data: function data() {
- return {
- countdown1: {
- remain: 5000,
- time: {
- D: '0',
- hh: '00',
- mm: '00',
- ss: '00'
- }
- },
- countdown2: {
- remain: 5000,
- time: {
- MM: '0',
- ss: '0'
- }
- }
- };
- },
- components: {
- panel: __webpack_require__(3),
- countdown: __webpack_require__(20)
- },
- methods: {
- tick: function tick(e, k) {
- this[k].time = JSON.parse(JSON.stringify(e));
- }
- }
- };
-
-/***/ }),
-/* 20 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(21)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(22)
-
- /* template */
- var __vue_template__ = __webpack_require__(23)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/include/countdown.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-50220132"
- __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__
-
-
-/***/ }),
-/* 21 */
-/***/ (function(module, exports) {
-
- module.exports = {
- "wrap": {
- "overflow": "hidden"
- }
- }
-
-/***/ }),
-/* 22 */
-/***/ (function(module, exports) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- function format(str) {
- if (str.length >= 2) {
- return str;
- } else {
- return '0' + str;
- }
- }
-
- function getTime(target, now) {
- var remain = parseInt((target - now) / 1000);
- var D = String(parseInt(remain / 86400));
- var DD = format(D);
- var h = String(parseInt((remain - parseInt(D) * 86400) / 3600));
- var hh = format(h);
- var H = String(parseInt(remain / 3600));
- var HH = format(H);
- var m = String(parseInt((remain - parseInt(H) * 3600) / 60));
- var mm = format(m);
- var M = String(parseInt(remain / 60));
- var MM = format(M);
- var s = String(remain - parseInt(M) * 60);
- var ss = format(s);
- var S = String(remain);
- var SS = format(S);
- return {
- D: D, DD: DD,
- h: h, hh: hh,
- H: H, HH: HH,
- m: m, mm: mm,
- M: M, MM: MM,
- s: s, ss: ss,
- S: S, SS: SS
- };
- }
-
- module.exports = {
- props: {
- remain: {
- default: 0
- }
- },
- data: function data() {
- return {
- now: 0,
- target: 0,
- outofview: false
- };
- },
- created: function created() {
- this.now = Date.now();
- this.target = this.now + this.remain * 1000;
- if (this.remain > 0) {
- this.run();
- }
- },
- methods: {
- run: function run() {
- if (!this.outofview) {
- this.now = Date.now();
- }
- var time = getTime(this.target, this.now);
- if (this.target >= this.now) {
- this.$emit('tick', time);
- } else {
- this.$emit('alarm', time);
- return;
- }
- setTimeout(this.run.bind(this), 1000);
- },
- appeared: function appeared() {
- this.outofview = false;
- },
- disappeared: function disappeared() {
- this.outofview = true;
- }
- }
- };
-
-/***/ }),
-/* 23 */
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- overflow: "hidden",
- flexDirection: "row"
- },
- on: {
- "appear": _vm.appeared,
- "disappear": _vm.disappeared
- }
- }, [_vm._t("default")], 2)
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ }),
-/* 24 */
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('scroller', [_c('panel', {
- attrs: {
- "title": "Countdown",
- "type": "primary"
- }
- }, [_c('countdown', {
- staticStyle: {
- width: "750",
- marginTop: "20",
- marginBottom: "20"
- },
- attrs: {
- "remain": _vm.countdown1.remain
- },
- on: {
- "tick": function($event) {
- _vm.tick($event, 'countdown1')
- }
- }
- }, [_c('text', {
- staticClass: ["ctno1"]
- }, [_vm._v(_vm._s(_vm.countdown1.time.D))]), _c('text', {
- staticClass: ["ctno1"],
- staticStyle: {
- backgroundColor: "#FFFFFF",
- color: "#AAAAAA"
- }
- }, [_vm._v("day(s)")]), _c('text', {
- staticClass: ["ctno1"]
- }, [_vm._v(_vm._s(_vm.countdown1.time.hh))]), _c('text', {
- staticClass: ["ctno1"],
- staticStyle: {
- backgroundColor: "#FFFFFF",
- color: "#AAAAAA"
- }
- }, [_vm._v("hour(s)")]), _c('text', {
- staticClass: ["ctno1"]
- }, [_vm._v(_vm._s(_vm.countdown1.time.mm))]), _c('text', {
- staticClass: ["ctno1"],
- staticStyle: {
- backgroundColor: "#FFFFFF",
- color: "#AAAAAA"
- }
- }, [_vm._v("minute(s)")]), _c('text', {
- staticClass: ["ctno1"]
- }, [_vm._v(_vm._s(_vm.countdown1.time.ss))]), _c('text', {
- staticClass: ["ctno1"],
- staticStyle: {
- backgroundColor: "#FFFFFF",
- color: "#AAAAAA"
- }
- }, [_vm._v("second(s)")])]), _c('countdown', {
- staticStyle: {
- width: "600"
- },
- attrs: {
- "remain": _vm.countdown2.remain
- },
- on: {
- "tick": function($event) {
- _vm.tick($event, 'countdown2')
- }
- }
- }, [_c('text', {
- staticClass: ["ctno2"]
- }, [_vm._v(_vm._s(_vm.countdown2.time.MM))]), _c('text', {
- staticClass: ["ctno2"],
- staticStyle: {
- backgroundColor: "#FFFFFF",
- color: "#AAAAAA"
- }
- }, [_vm._v(":")]), _c('text', {
- staticClass: ["ctno2"]
- }, [_vm._v(_vm._s(_vm.countdown2.time.ss))])])])], 1)
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ })
-/******/ ]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/ios/playground/bundlejs/vue/components/image.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/vue/components/image.js b/ios/playground/bundlejs/vue/components/image.js
deleted file mode 100644
index 7fd1012..0000000
--- a/ios/playground/bundlejs/vue/components/image.js
+++ /dev/null
@@ -1,662 +0,0 @@
-// { "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__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(25)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(26)
-
- /* template */
- var __vue_template__ = __webpack_require__(27)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/components/image.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-185bb2aa"
- __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)
-
-
-/***/ }),
-/* 1 */,
-/* 2 */,
-/* 3 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(4)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(5)
-
- /* 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/Hanks/Codes/work/incubator-weex/examples/vue/include/panel.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-58511ff6"
- __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__
-
-
-/***/ }),
-/* 4 */
-/***/ (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"
- },
- "panel-body": {
- "paddingLeft": 12,
- "paddingRight": 12,
- "paddingTop": 20,
- "paddingBottom": 20
- }
- }
-
-/***/ }),
-/* 5 */
-/***/ (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 }
- }
- };
-
-/***/ }),
-/* 6 */
-/***/ (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
-
-/***/ }),
-/* 7 */,
-/* 8 */,
-/* 9 */,
-/* 10 */,
-/* 11 */,
-/* 12 */,
-/* 13 */
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(14)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(15)
-
- /* template */
- var __vue_template__ = __webpack_require__(16)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/include/tip.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-36fe495c"
- __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__
-
-
-/***/ }),
-/* 14 */
-/***/ (function(module, exports) {
-
- module.exports = {
- "tip": {
- "paddingLeft": 36,
- "paddingRight": 36,
- "paddingTop": 36,
- "paddingBottom": 36,
- "borderRadius": 10
- },
- "tip-txt": {
- "fontSize": 28
- },
- "tip-success": {
- "backgroundColor": "#dff0d8",
- "borderColor": "#d6e9c6"
- },
- "tip-txt-success": {
- "color": "#3c763d"
- },
- "tip-info": {
- "backgroundColor": "#d9edf7",
- "borderColor": "#bce8f1"
- },
- "tip-txt-info": {
- "color": "#31708f"
- },
- "tip-warning": {
- "backgroundColor": "#fcf8e3",
- "borderColor": "#faebcc"
- },
- "tip-txt-warning": {
- "color": "#8a6d3b"
- },
- "tip-danger": {
- "backgroundColor": "#f2dede",
- "borderColor": "#ebccd1"
- },
- "tip-txt-danger": {
- "color": "#a94442"
- }
- }
-
-/***/ }),
-/* 15 */
-/***/ (function(module, exports) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- props: {
- type: { default: 'success' },
- value: { default: '' }
- }
- };
-
-/***/ }),
-/* 16 */
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- class: ['tip', 'tip-' + _vm.type]
- }, [_c('text', {
- class: ['tip-txt', 'tip-txt-' + _vm.type]
- }, [_vm._v(_vm._s(_vm.value))])])
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ }),
-/* 17 */,
-/* 18 */,
-/* 19 */,
-/* 20 */,
-/* 21 */,
-/* 22 */,
-/* 23 */,
-/* 24 */,
-/* 25 */
-/***/ (function(module, exports) {
-
- module.exports = {
- "img": {
- "marginBottom": 20
- }
- }
-
-/***/ }),
-/* 26 */
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- data: function data() {
- return {
- img: '//gw.alicdn.com/tps/i2/TB1DpsmMpXXXXabaXXX20ySQVXX-512-512.png_400x400.jpg'
- };
- },
- components: {
- panel: __webpack_require__(3),
- tip: __webpack_require__(13)
- }
- };
-
-/***/ }),
-/* 27 */
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('scroller', [_c('panel', {
- attrs: {
- "title": "width x height",
- "type": "primary"
- }
- }, [_c('tip', {
- staticStyle: {
- marginBottom: "20px"
- },
- attrs: {
- "type": "warning",
- "value": "Weex screen width is 750"
- }
- }), _c('div', {
- staticStyle: {
- flexDirection: "row"
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "300px",
- height: "300px"
- },
- attrs: {
- "src": _vm.img
- }
- }), _c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "200px",
- height: "200px"
- },
- attrs: {
- "src": _vm.img
- }
- }), _c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "50px",
- height: "50px"
- },
- attrs: {
- "src": _vm.img
- }
- })])], 1), _c('panel', {
- attrs: {
- "title": "GIF Animation",
- "type": "primary"
- }
- }, [_c('tip', {
- staticStyle: {
- marginBottom: "20px"
- },
- attrs: {
- "type": "warning",
- "value": "Depanding on Native ImageSDK"
- }
- }), _c('div', {
- staticStyle: {
- flexDirection: "row"
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "96px",
- height: "96px"
- },
- attrs: {
- "src": "https://gtd.alicdn.com/tps/i4/T1HcvHXd4nXXb6ROYh-48-48.gif"
- }
- }), _c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "68px",
- height: "68px",
- marginLeft: "20px"
- },
- attrs: {
- "src": "https://gw.alicdn.com/tps/TB1El.mKXXXXXXyapXXXXXXXXXX-34-34.gif"
- }
- })])], 1), _c('panel', {
- attrs: {
- "title": "Base64",
- "type": "primary"
- }
- }, [_c('tip', {
- staticStyle: {
- marginBottom: "20px"
- },
- attrs: {
- "type": "warning",
- "value": "Depanding on Native ImageSDK"
- }
- }), _c('div', {
- staticStyle: {
- flexDirection: "row"
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "96px",
- height: "96px"
- },
- attrs: {
- "src": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACEAAAAhCAMAAABgOjJdAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAO1QTFRFhomSb3J8XGBrdnqDgYWNlJefV1tmfoGKU1diT1NfgISNgoWOYmZwio2Vi4+Wc3eAkJObZGhzUlZiaGt2U1djfYCKZGdyhYiQeHyFio6VgYWOVVllbHB6XWFsY2ZxaWx3jZCYXmFsfYCJcnZ/UVVham54V1tng4aPb3N8WV1pX2JtZWl0YWVvVlpmiYyUWVxohomRd3uEdHiBeX2GZ2t1hIeQVFhkf4OMbnJ8fYGKdnqEb3N9kJScY2dycnaAjpKZdHeBjpKajI+Yc3eBhYiRf4KLXmFtio6Wi4+XjZCZkJSbkZScjI+XlJifTlJe+rAZcwAAAZBJREFUeNp0lOeWgjAQhSdUBQRRbFjX7tpW3XUt23tL3v9xNigJIHh/zRk+5iR3ZgIkULWmwgv+A7VWDWWBR/nSt2gLUzIVbLH1lo8RRW1wEfqxPtCKUaKTMUhURuUhTIi6Q07l6LuAEFdpEld6tWNEx00CKKJ3jsR1xSHJcj4bB+LmkpxT49Yj8mqQUVBBciUk8ITepESJ+5AqY1+uwny5IjDPcADoN0BIwjLOsjKZOewtbi/9fvi338a44CetIai2H/cokPLj9tfEj2wVzD4rIWMlfpu+CXc5Pw4qh5X7AUw4gZIswUENGT8lAN1fMBVeAxIIxYR3Nin0imOe52emdxkyP8aY+0S9Y2d63cNoxvACRTaeI70slst+cjYCAnXmuuS1RKKmy1hKBX0hzaC3KOsxsmz2Ir2NzMcEbVCo+cf5oDOWOzNAucpxxoglnZlT1+KzXk4kymKwL4ttN+73dhHeuWV85zLL073Vw3v7MdDuE3a/JRrCmqwFQ2yV8gmvg/d+aPCMH0GLvB//
AgwAo1MTpxsaxVoAAAAASUVORK5CYII="
- }
- }), _c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "68px",
- height: "68px",
- marginLeft: "20px"
- },
- attrs: {
- "src": "data:image/gif;base64,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"
- }
- })])], 1), _c('panel', {
- attrs: {
- "title": "resize",
- "type": "primary"
- }
- }, [_c('panel', {
- attrs: {
- "title": "resize=stretch(default) 600 x 200 "
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "600px",
- height: "200px",
- borderStyle: "solid",
- borderWidth: "1px",
- borderColor: "#333"
- },
- attrs: {
- "src": _vm.img,
- "resize": "stretch"
- }
- })]), _c('panel', {
- attrs: {
- "title": "resize=contain 600 x 200 "
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "600px",
- height: "200px",
- borderStyle: "solid",
- borderWidth: "1px",
- borderColor: "#333"
- },
- attrs: {
- "src": _vm.img,
- "resize": "contain"
- }
- })]), _c('panel', {
- attrs: {
- "title": "resize=cover 600 x 200"
- }
- }, [_c('image', {
- staticClass: ["img"],
- staticStyle: {
- width: "600px",
- height: "200px",
- borderStyle: "solid",
- borderWidth: "1px",
- borderColor: "#333"
- },
- attrs: {
- "src": _vm.img,
- "resize": "cover"
- }
- })])], 1)], 1)
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ })
-/******/ ]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/ios/playground/bundlejs/vue/components/input.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/vue/components/input.js b/ios/playground/bundlejs/vue/components/input.js
deleted file mode 100644
index 634228b..0000000
--- a/ios/playground/bundlejs/vue/components/input.js
+++ /dev/null
@@ -1,796 +0,0 @@
-// { "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__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(28)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(29)
-
- /* template */
- var __vue_template__ = __webpack_require__(30)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/components/input.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-9b1cdcce"
- __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)
-
-
-/***/ }),
-
-/***/ 28:
-/***/ (function(module, exports) {
-
- module.exports = {
- "input": {
- "fontSize": 60,
- "height": 80,
- "width": 750
- },
- "button": {
- "fontSize": 36,
- "width": 200,
- "color": "#41B883",
- "textAlign": "center",
- "paddingTop": 10,
- "paddingBottom": 10,
- "borderWidth": 2,
- "borderStyle": "solid",
- "marginRight": 20,
- "borderColor": "rgb(162,217,192)",
- "backgroundColor": "rgba(162,217,192,0.2)"
- }
- }
-
-/***/ }),
-
-/***/ 29:
-/***/ (function(module, exports) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- data: function data() {
- return {
- txtInput: '',
- txtChange: '',
- txtReturnType: '',
- txtSelection: '',
- autofocus: false
- };
- },
- methods: {
- ready: function ready() {
- var self = this;
- setTimeout(function () {
- self.autofocus = true;
- }, 1000);
- },
- onchange: function onchange(event) {
- this.txtChange = event.value;
- console.log('onchange', event.value);
- },
- onreturn: function onreturn(event) {
- this.txtReturnType = event.returnKeyType;
- console.log('onreturn', event.type);
- },
- oninput: function oninput(event) {
- this.txtInput = event.value;
- console.log('oninput', event.value);
- },
- focus: function focus() {
- this.$refs['input1'].focus();
- },
- blur: function blur() {
- this.$refs['input1'].blur();
- },
- setRange: function setRange() {
- console.log(this.$refs["inputselection"]);
- this.$refs["inputselection"].setSelectionRange(2, 6);
- },
- getSelectionRange: function getSelectionRange() {
- console.log(this.$refs["inputselection"]);
- var self = this;
- this.$refs["inputselection"].getSelectionRange(function (e) {
- self.txtSelection = e.selectionStart + '-' + e.selectionEnd;
- });
- }
- }
- };
-
-/***/ }),
-
-/***/ 30:
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', [_c('div', [_c('text', {
- staticStyle: {
- fontSize: "40px"
- }
- }, [_vm._v("oninput: " + _vm._s(_vm.txtInput))]), _c('text', {
- staticStyle: {
- fontSize: "40px"
- }
- }, [_vm._v("onchange: " + _vm._s(_vm.txtChange))]), _c('text', {
- staticStyle: {
- fontSize: "40px"
- }
- }, [_vm._v("onreturntype: " + _vm._s(_vm.txtReturnType))]), _c('text', {
- staticStyle: {
- fontSize: "40px"
- }
- }, [_vm._v("selection: " + _vm._s(_vm.txtSelection))])]), _c('scroller', [_c('div', [_vm._m(0), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "Input Text",
- "autofocus": true,
- "value": ""
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(1), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "password",
- "placeholder": "Input Password"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(2), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "url",
- "placeholder": "Input URL"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(3), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "email",
- "placeholder": "Input Email"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(4), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "tel",
- "placeholder": "Input Tel"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(5), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "time",
- "placeholder": "Input Time"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(6), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "number",
- "placeholder": "Input number"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(7), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "date",
- "placeholder": "Input Date",
- "max": "2017-12-12",
- "min": "2015-01-01"
- },
- on: {
- "change": _vm.onchange,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(8), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "default"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(9), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "go"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(10), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "next"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(11), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "search"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(12), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "send"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(13), _c('input', {
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "returnKeyType": "done"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })]), _c('div', [_vm._m(14), _c('div', {
- staticStyle: {
- flexDirection: "row",
- marginBottom: "16px",
- justifyContent: "space-between"
- }
- }, [_c('text', {
- staticClass: ["button"],
- attrs: {
- "value": "Focus",
- "type": "primary"
- },
- on: {
- "click": _vm.focus
- }
- }), _c('text', {
- staticClass: ["button"],
- attrs: {
- "value": "Blur",
- "type": "primary"
- },
- on: {
- "click": _vm.blur
- }
- })]), _c('input', {
- ref: "input1",
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "Input1",
- "value": ""
- }
- })]), _c('div', [_vm._m(15), _c('div', {
- staticStyle: {
- flexDirection: "row",
- marginBottom: "16px",
- justifyContent: "space-between"
- }
- }, [_c('text', {
- staticClass: ["button"],
- attrs: {
- "value": "setRange",
- "type": "primary"
- },
- on: {
- "click": _vm.setRange
- }
- }), _c('text', {
- staticClass: ["button"],
- attrs: {
- "value": "getSelectionRange",
- "type": "primary"
- },
- on: {
- "click": _vm.getSelectionRange
- }
- })]), _c('input', {
- ref: "inputselection",
- staticClass: ["input"],
- attrs: {
- "type": "text",
- "placeholder": "please input",
- "value": "123456789"
- },
- on: {
- "change": _vm.onchange,
- "return": _vm.onreturn,
- "input": _vm.oninput
- }
- })])])])
- },staticRenderFns: [function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = text")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = password")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = url")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = email")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = tel")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = time")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = number")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input type = date")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = default")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = go")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = next")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = search")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = send")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input return-key-type = done")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("function focus() & blur()")])])
- },function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticStyle: {
- backgroundColor: "#286090"
- }
- }, [_c('text', {
- staticClass: ["title"],
- staticStyle: {
- height: "80",
- padding: "20",
- color: "#FFFFFF"
- }
- }, [_vm._v("input selection")])])
- }]}
- module.exports.render._withStripped = true
-
-/***/ })
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/ios/playground/bundlejs/vue/components/list.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/vue/components/list.js b/ios/playground/bundlejs/vue/components/list.js
deleted file mode 100644
index 33db616..0000000
--- a/ios/playground/bundlejs/vue/components/list.js
+++ /dev/null
@@ -1,266 +0,0 @@
-// { "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__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(31)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(32)
-
- /* template */
- var __vue_template__ = __webpack_require__(33)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/components/list.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-2953851f"
- __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)
-
-
-/***/ }),
-
-/***/ 31:
-/***/ (function(module, exports) {
-
- module.exports = {
- "list": {
- "height": 850
- },
- "count": {
- "fontSize": 48,
- "marginTop": 10,
- "marginRight": 10,
- "marginBottom": 10,
- "marginLeft": 10
- },
- "indicator": {
- "height": 40,
- "width": 40,
- "color": "#45b5f0"
- },
- "row": {
- "width": 750
- },
- "item": {
- "justifyContent": "center",
- "borderBottomWidth": 2,
- "borderBottomColor": "#c0c0c0",
- "height": 100,
- "paddingTop": 20,
- "paddingRight": 20,
- "paddingBottom": 20,
- "paddingLeft": 20,
- "backgroundColor:active": "#00BDFF"
- }
- }
-
-/***/ }),
-
-/***/ 32:
-/***/ (function(module, exports) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- methods: {
- onappear: function onappear(idx, e) {
- var appearId = this.rows[idx].id;
- console.log('+++++', appearId);
- var appearIds = this.appearIds;
- appearIds.push(appearId);
- this.getMinAndMaxIds(appearIds);
- },
- ondisappear: function ondisappear(idx, e) {
- var disAppearId = this.rows[idx].id;
- console.log('+++++', disAppearId);
- var appearIds = this.appearIds;
- var index = appearIds.indexOf(disAppearId);
- if (index > -1) {
- appearIds.splice(index, 1);
- }
- this.getMinAndMaxIds(appearIds);
- },
- getMinAndMaxIds: function getMinAndMaxIds(appearIds) {
- appearIds.sort(function (a, b) {
- return a - b;
- });
- this.appearIds = appearIds;
- this.appearMax = appearIds[appearIds.length - 1];
- this.appearMin = appearIds[0];
- }
- },
- data: function data() {
- return {
- appearMin: 1,
- appearMax: 1,
- appearIds: [],
- rows: [{ id: 1 }, { id: 2 }, { id: 3 }, { id: 4 }, { id: 5 }, { id: 6 }, { id: 7 }, { id: 8 }, { id: 9 }, { id: 10 }, { id: 11 }, { id: 12 }, { id: 13 }, { id: 14 }, { id: 15 }, { id: 16 }, { id: 17 }, { id: 18 }, { id: 19 }, { id: 20 }, { id: 21 }, { id: 22 }, { id: 23 }, { id: 24 }, { id: 25 }, { id: 26 }, { id: 27 }, { id: 28 }, { id: 29 }]
- };
- }
- };
-
-/***/ }),
-
-/***/ 33:
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', [_c('list', {
- staticClass: ["list"]
- }, _vm._l((_vm.rows), function(v, i) {
- return _c('cell', {
- key: i,
- staticClass: ["row"],
- appendAsTree: true,
- attrs: {
- "append": "tree",
- "index": i
- },
- on: {
- "appear": function($event) {
- _vm.onappear(i, $event)
- },
- "disappear": function($event) {
- _vm.ondisappear(i, $event)
- }
- }
- }, [_c('div', {
- staticClass: ["item"]
- }, [_c('text', {
- staticClass: ["item-title"]
- }, [_vm._v("row " + _vm._s(v.id))])])])
- })), _c('text', {
- staticClass: ["count"],
- attrs: {
- "value": 'Appear items: ' + _vm.appearMin + ' ~ ' + _vm.appearMax
- }
- })])
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ })
-
-/******/ });
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/ios/playground/bundlejs/vue/components/marquee.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/vue/components/marquee.js b/ios/playground/bundlejs/vue/components/marquee.js
deleted file mode 100644
index bccadf4..0000000
--- a/ios/playground/bundlejs/vue/components/marquee.js
+++ /dev/null
@@ -1,553 +0,0 @@
-// { "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__(34)
-
- /* template */
- var __vue_template__ = __webpack_require__(39)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/components/marquee.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)
-
-
-/***/ }),
-
-/***/ 3:
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(4)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(5)
-
- /* 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/Hanks/Codes/work/incubator-weex/examples/vue/include/panel.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-58511ff6"
- __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__
-
-
-/***/ }),
-
-/***/ 4:
-/***/ (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"
- },
- "panel-body": {
- "paddingLeft": 12,
- "paddingRight": 12,
- "paddingTop": 20,
- "paddingBottom": 20
- }
- }
-
-/***/ }),
-
-/***/ 5:
-/***/ (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 }
- }
- };
-
-/***/ }),
-
-/***/ 6:
-/***/ (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
-
-/***/ }),
-
-/***/ 34:
-/***/ (function(module, exports, __webpack_require__) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- module.exports = {
- data: function data() {
- return {
- marquee: {
- height: 30,
- duration: 1500,
- interval: 2000,
- list: [{ text: 'Introducing Bots on Messenger' }, { text: 'Capturing 3D 360-Stereo VR Video' }, { text: 'The Future of Video on Facebook' }, { text: 'Announcing Vue.js 2.0' }, { text: 'Not Your Average Virtual-DOM' }, { text: 'Templates, JSX, or Hyperscript?' }]
- }
- };
- },
- components: {
- panel: __webpack_require__(3),
- marquee: __webpack_require__(35)
- },
- methods: {
- marqueeChange: function marqueeChange(e) {
- console.log(e);
- }
- }
- };
-
-/***/ }),
-
-/***/ 35:
-/***/ (function(module, exports, __webpack_require__) {
-
- var __vue_exports__, __vue_options__
- var __vue_styles__ = []
-
- /* styles */
- __vue_styles__.push(__webpack_require__(36)
- )
-
- /* script */
- __vue_exports__ = __webpack_require__(37)
-
- /* template */
- var __vue_template__ = __webpack_require__(38)
- __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/Hanks/Codes/work/incubator-weex/examples/vue/include/marquee.vue"
- __vue_options__.render = __vue_template__.render
- __vue_options__.staticRenderFns = __vue_template__.staticRenderFns
- __vue_options__._scopeId = "data-v-34df4e3a"
- __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__
-
-
-/***/ }),
-
-/***/ 36:
-/***/ (function(module, exports) {
-
- module.exports = {
- "wrap": {
- "overflow": "hidden",
- "position": "relative"
- },
- "anim": {
- "flexDirection": "column",
- "position": "absolute",
- "transform": "translateY(0) translateZ(0)"
- }
- }
-
-/***/ }),
-
-/***/ 37:
-/***/ (function(module, exports) {
-
- 'use strict';
-
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
- //
-
- var _animation = weex.requireModule('animation');
-
- module.exports = {
- props: {
- step: { default: 0 },
- count: { default: 0 },
- index: { default: 1 },
- duration: { default: 0 },
- interval: { default: 0 },
- outofview: { default: false }
- },
- created: function created() {
- if (this.interval > 0 && this.step > 0 && this.duration > 0) {
- this.run();
- }
- },
- methods: {
- run: function run() {
- if (this.outofview) {
- setTimeout(this.run.bind(this), this.interval);
- } else {
- setTimeout(function () {
- this.animation(this.run.bind(this));
- }.bind(this), this.interval);
- }
- },
- animation: function animation(cb) {
- var offset = -this.step * this.index;
- _animation.transition(this.$refs.anim, {
- styles: {
- transform: 'translateY(' + offset + 'px) translateZ(0)'
- },
- timingFunction: 'ease',
- duration: this.duration
- }, function () {
- this.index = (this.index + 1) % this.count;
- this.$emit('change', {
- index: this.index,
- count: this.count
- });
- cb && cb();
- }.bind(this));
- },
- appeared: function appeared() {
- this.outofview = false;
- },
- disappeared: function disappeared() {
- this.outofview = true;
- }
- }
- };
-
-/***/ }),
-
-/***/ 38:
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('div', {
- staticClass: ["wrap"],
- on: {
- "appear": _vm.appeared,
- "disappear": _vm.disappeared
- }
- }, [_c('div', {
- ref: "anim",
- staticClass: ["anim"]
- }, [_vm._t("default")], 2)])
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ }),
-
-/***/ 39:
-/***/ (function(module, exports) {
-
- module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
- return _c('scroller', [_c('panel', {
- attrs: {
- "title": "Marquee",
- "type": "primary"
- }
- }, [_c('marquee', {
- style: {
- width: 700,
- height: _vm.marquee.height * 2,
- backgroundColor: 'rgb(223, 240, 216)',
- borderRadius: 8,
- paddingLeft: 10,
- paddingRight: 10
- },
- attrs: {
- "step": _vm.marquee.height * 2,
- "count": _vm.marquee.list.length,
- "interval": _vm.marquee.interval,
- "duration": _vm.marquee.duration
- },
- on: {
- "change": _vm.marqueeChange
- }
- }, _vm._l((_vm.marquee.list), function(item, i) {
- return _c('div', {
- key: i,
- style: {
- height: _vm.marquee.height * _vm.marquee.length,
- paddingTop: _vm.marquee.height * 0.5,
- paddingBottom: _vm.marquee.height * 0.5,
- overflow: 'hidden'
- }
- }, [_c('text', {
- style: {
- height: _vm.marquee.height,
- color: 'rgb(60, 118, 61)',
- fontSize: 28
- }
- }, [_vm._v(_vm._s(item.text))])])
- }))])], 1)
- },staticRenderFns: []}
- module.exports.render._withStripped = true
-
-/***/ })
-
-/******/ });
\ No newline at end of file