UNPKG

element-ui

Version:

A Component Library for Vue.js.

189 lines (142 loc) 4.36 kB
module.exports = /******/ (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 = "/dist/"; /******/ // Load entry module and return exports /******/ return __webpack_require__(0); /******/ }) /************************************************************************/ /******/ ({ /***/ 0: /***/ function(module, exports, __webpack_require__) { module.exports = __webpack_require__(241); /***/ }, /***/ 241: /***/ function(module, exports, __webpack_require__) { 'use strict'; exports.__esModule = true; var _tabPane = __webpack_require__(242); var _tabPane2 = _interopRequireDefault(_tabPane); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } /* istanbul ignore next */ _tabPane2.default.install = function (Vue) { Vue.component(_tabPane2.default.name, _tabPane2.default); }; exports.default = _tabPane2.default; /***/ }, /***/ 242: /***/ function(module, exports, __webpack_require__) { var __vue_exports__, __vue_options__ var __vue_styles__ = {} /* script */ __vue_exports__ = __webpack_require__(243) /* template */ var __vue_template__ = __webpack_require__(244) __vue_options__ = __vue_exports__ = __vue_exports__ || {} if ( typeof __vue_exports__.default === "object" || typeof __vue_exports__.default === "function" ) { __vue_options__ = __vue_exports__ = __vue_exports__.default } if (typeof __vue_options__ === "function") { __vue_options__ = __vue_options__.options } __vue_options__.render = __vue_template__.render __vue_options__.staticRenderFns = __vue_template__.staticRenderFns module.exports = __vue_exports__ /***/ }, /***/ 243: /***/ function(module, exports) { 'use strict'; module.exports = { name: 'el-tab-pane', props: { label: { type: String, required: true }, name: String }, data: function data() { return { counter: 0, transition: '', paneStyle: { position: 'relative' }, index: '' }; }, created: function created() { if (!this.index) { this.index = this.$parent.$children.indexOf(this) + 1 + ''; } }, computed: { show: function show() { return this.$parent.currentName === this.index; } }, destroyed: function destroyed() { if (this.$el) { this.$el.parentNode.removeChild(this.$el); } }, watch: { name: { immediate: true, handler: function handler(val) { this.index = val; } }, '$parent.currentName': function $parentCurrentName(newValue, oldValue) { if (this.index === newValue) { this.transition = newValue > oldValue ? 'slideInRight' : 'slideInLeft'; } if (this.index === oldValue) { this.transition = oldValue > newValue ? 'slideInRight' : 'slideInLeft'; } } } }; /***/ }, /***/ 244: /***/ function(module, exports) { module.exports={render:function (){var _vm=this; return _vm._h('div', { directives: [{ name: "show", rawName: "v-show", value: (_vm.show && _vm.$slots.default), expression: "show && $slots.default" }], staticClass: "el-tab-pane" }, [_vm._t("default")]) },staticRenderFns: []} /***/ } /******/ });