chushihua
This commit is contained in:
+408
@@ -0,0 +1,408 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 89);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 89:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("transition", { attrs: { name: "el-alert-fade" } }, [
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
staticClass: "el-alert",
|
||||
class: [_vm.typeClass, _vm.center ? "is-center" : ""],
|
||||
attrs: { role: "alert" }
|
||||
},
|
||||
[
|
||||
_vm.showIcon
|
||||
? _c("i", {
|
||||
staticClass: "el-alert__icon",
|
||||
class: [_vm.iconClass, _vm.isBigIcon]
|
||||
})
|
||||
: _vm._e(),
|
||||
_c("div", { staticClass: "el-alert__content" }, [
|
||||
_vm.title || _vm.$slots.title
|
||||
? _c(
|
||||
"span",
|
||||
{ staticClass: "el-alert__title", class: [_vm.isBoldTitle] },
|
||||
[_vm._t("title", [_vm._v(_vm._s(_vm.title))])],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.$slots.default && !_vm.description
|
||||
? _c(
|
||||
"p",
|
||||
{ staticClass: "el-alert__description" },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.description && !_vm.$slots.default
|
||||
? _c("p", { staticClass: "el-alert__description" }, [
|
||||
_vm._v(_vm._s(_vm.description))
|
||||
])
|
||||
: _vm._e(),
|
||||
_c(
|
||||
"i",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.closable,
|
||||
expression: "closable"
|
||||
}
|
||||
],
|
||||
staticClass: "el-alert__closebtn",
|
||||
class: {
|
||||
"is-customed": _vm.closeText !== "",
|
||||
"el-icon-close": _vm.closeText === ""
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
_vm.close()
|
||||
}
|
||||
}
|
||||
},
|
||||
[_vm._v(_vm._s(_vm.closeText))]
|
||||
)
|
||||
])
|
||||
]
|
||||
)
|
||||
])
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=template&id=6e53341b&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/alert/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var TYPE_CLASSES_MAP = {
|
||||
'success': 'el-icon-success',
|
||||
'warning': 'el-icon-warning',
|
||||
'error': 'el-icon-error'
|
||||
};
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElAlert',
|
||||
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
description: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
type: {
|
||||
type: String,
|
||||
default: 'info'
|
||||
},
|
||||
closable: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
closeText: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
showIcon: Boolean,
|
||||
center: Boolean
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
visible: true
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
close: function close() {
|
||||
this.visible = false;
|
||||
this.$emit('close');
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
typeClass: function typeClass() {
|
||||
return 'el-alert--' + this.type;
|
||||
},
|
||||
iconClass: function iconClass() {
|
||||
return TYPE_CLASSES_MAP[this.type] || 'el-icon-info';
|
||||
},
|
||||
isBigIcon: function isBigIcon() {
|
||||
return this.description || this.$slots.default ? 'is-big' : '';
|
||||
},
|
||||
isBoldTitle: function isBoldTitle() {
|
||||
return this.description || this.$slots.default ? 'is-bold' : '';
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/alert/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/alert/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/alert/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/alert/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_alert = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 104);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 104:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"aside",
|
||||
{ staticClass: "el-aside", style: { width: _vm.width } },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=template&id=03411dbf&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/aside/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElAside',
|
||||
|
||||
componentName: 'ElAside',
|
||||
|
||||
props: {
|
||||
width: {
|
||||
type: String,
|
||||
default: '300px'
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/aside/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/aside/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/aside/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/aside/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var aside = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+947
@@ -0,0 +1,947 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 54);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/migrating");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/clickoutside");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 14:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("throttle-debounce/debounce");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 19:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/scrollbar");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 21:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/focus");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/util");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/vue-popper");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 54:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "clickoutside",
|
||||
rawName: "v-clickoutside",
|
||||
value: _vm.close,
|
||||
expression: "close"
|
||||
}
|
||||
],
|
||||
staticClass: "el-autocomplete",
|
||||
attrs: {
|
||||
"aria-haspopup": "listbox",
|
||||
role: "combobox",
|
||||
"aria-expanded": _vm.suggestionVisible,
|
||||
"aria-owns": _vm.id
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"el-input",
|
||||
_vm._b(
|
||||
{
|
||||
ref: "input",
|
||||
on: {
|
||||
input: _vm.handleChange,
|
||||
focus: _vm.handleFocus,
|
||||
blur: _vm.handleBlur,
|
||||
clear: _vm.handleClear
|
||||
},
|
||||
nativeOn: {
|
||||
keydown: [
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "up", 38, $event.key, [
|
||||
"Up",
|
||||
"ArrowUp"
|
||||
])
|
||||
) {
|
||||
return null
|
||||
}
|
||||
$event.preventDefault()
|
||||
_vm.highlight(_vm.highlightedIndex - 1)
|
||||
},
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "down", 40, $event.key, [
|
||||
"Down",
|
||||
"ArrowDown"
|
||||
])
|
||||
) {
|
||||
return null
|
||||
}
|
||||
$event.preventDefault()
|
||||
_vm.highlight(_vm.highlightedIndex + 1)
|
||||
},
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
return _vm.handleKeyEnter($event)
|
||||
},
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "tab", 9, $event.key, "Tab")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
return _vm.close($event)
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
"el-input",
|
||||
[_vm.$props, _vm.$attrs],
|
||||
false
|
||||
),
|
||||
[
|
||||
_vm.$slots.prepend
|
||||
? _c("template", { slot: "prepend" }, [_vm._t("prepend")], 2)
|
||||
: _vm._e(),
|
||||
_vm.$slots.append
|
||||
? _c("template", { slot: "append" }, [_vm._t("append")], 2)
|
||||
: _vm._e(),
|
||||
_vm.$slots.prefix
|
||||
? _c("template", { slot: "prefix" }, [_vm._t("prefix")], 2)
|
||||
: _vm._e(),
|
||||
_vm.$slots.suffix
|
||||
? _c("template", { slot: "suffix" }, [_vm._t("suffix")], 2)
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
),
|
||||
_c(
|
||||
"el-autocomplete-suggestions",
|
||||
{
|
||||
ref: "suggestions",
|
||||
class: [_vm.popperClass ? _vm.popperClass : ""],
|
||||
attrs: {
|
||||
"visible-arrow": "",
|
||||
"popper-options": _vm.popperOptions,
|
||||
"append-to-body": _vm.popperAppendToBody,
|
||||
placement: _vm.placement,
|
||||
id: _vm.id
|
||||
}
|
||||
},
|
||||
_vm._l(_vm.suggestions, function(item, index) {
|
||||
return _c(
|
||||
"li",
|
||||
{
|
||||
key: index,
|
||||
class: { highlighted: _vm.highlightedIndex === index },
|
||||
attrs: {
|
||||
id: _vm.id + "-item-" + index,
|
||||
role: "option",
|
||||
"aria-selected": _vm.highlightedIndex === index
|
||||
},
|
||||
on: {
|
||||
click: function($event) {
|
||||
_vm.select(item)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm._t(
|
||||
"default",
|
||||
[
|
||||
_vm._v("\n " + _vm._s(item[_vm.valueKey]) + "\n ")
|
||||
],
|
||||
{ item: item }
|
||||
)
|
||||
],
|
||||
2
|
||||
)
|
||||
}),
|
||||
0
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=template&id=152f2ee6&
|
||||
|
||||
// EXTERNAL MODULE: external "throttle-debounce/debounce"
|
||||
var debounce_ = __webpack_require__(14);
|
||||
var debounce_default = /*#__PURE__*/__webpack_require__.n(debounce_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/input"
|
||||
var input_ = __webpack_require__(9);
|
||||
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside"
|
||||
var clickoutside_ = __webpack_require__(11);
|
||||
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
|
||||
var autocomplete_suggestionsvue_type_template_id_cd10dcf0_render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"transition",
|
||||
{ attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.showPopper,
|
||||
expression: "showPopper"
|
||||
}
|
||||
],
|
||||
staticClass: "el-autocomplete-suggestion el-popper",
|
||||
class: {
|
||||
"is-loading": !_vm.parent.hideLoading && _vm.parent.loading
|
||||
},
|
||||
style: { width: _vm.dropdownWidth },
|
||||
attrs: { role: "region" }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"el-scrollbar",
|
||||
{
|
||||
attrs: {
|
||||
tag: "ul",
|
||||
"wrap-class": "el-autocomplete-suggestion__wrap",
|
||||
"view-class": "el-autocomplete-suggestion__list"
|
||||
}
|
||||
},
|
||||
[
|
||||
!_vm.parent.hideLoading && _vm.parent.loading
|
||||
? _c("li", [_c("i", { staticClass: "el-icon-loading" })])
|
||||
: _vm._t("default")
|
||||
],
|
||||
2
|
||||
)
|
||||
],
|
||||
1
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns = []
|
||||
autocomplete_suggestionsvue_type_template_id_cd10dcf0_render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=template&id=cd10dcf0&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
|
||||
var vue_popper_ = __webpack_require__(5);
|
||||
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/scrollbar"
|
||||
var scrollbar_ = __webpack_require__(19);
|
||||
var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var autocomplete_suggestionsvue_type_script_lang_js_ = ({
|
||||
components: { ElScrollbar: scrollbar_default.a },
|
||||
mixins: [vue_popper_default.a, emitter_default.a],
|
||||
|
||||
componentName: 'ElAutocompleteSuggestions',
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
parent: this.$parent,
|
||||
dropdownWidth: ''
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
props: {
|
||||
options: {
|
||||
default: function _default() {
|
||||
return {
|
||||
gpuAcceleration: false
|
||||
};
|
||||
}
|
||||
},
|
||||
id: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
select: function select(item) {
|
||||
this.dispatch('ElAutocomplete', 'item-click', item);
|
||||
}
|
||||
},
|
||||
|
||||
updated: function updated() {
|
||||
var _this = this;
|
||||
|
||||
this.$nextTick(function (_) {
|
||||
_this.popperJS && _this.updatePopper();
|
||||
});
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.$parent.popperElm = this.popperElm = this.$el;
|
||||
this.referenceElm = this.$parent.$refs.input.$refs.input;
|
||||
this.referenceList = this.$el.querySelector('.el-autocomplete-suggestion__list');
|
||||
this.referenceList.setAttribute('role', 'listbox');
|
||||
this.referenceList.setAttribute('id', this.id);
|
||||
},
|
||||
created: function created() {
|
||||
var _this2 = this;
|
||||
|
||||
this.$on('visible', function (val, inputWidth) {
|
||||
_this2.dropdownWidth = inputWidth + 'px';
|
||||
_this2.showPopper = val;
|
||||
});
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_autocomplete_suggestionsvue_type_script_lang_js_ = (autocomplete_suggestionsvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete-suggestions.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_autocomplete_suggestionsvue_type_script_lang_js_,
|
||||
autocomplete_suggestionsvue_type_template_id_cd10dcf0_render,
|
||||
autocomplete_suggestionsvue_type_template_id_cd10dcf0_staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/autocomplete/src/autocomplete-suggestions.vue"
|
||||
/* harmony default export */ var autocomplete_suggestions = (component.exports);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
||||
var migrating_ = __webpack_require__(10);
|
||||
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
||||
var util_ = __webpack_require__(4);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
|
||||
var focus_ = __webpack_require__(21);
|
||||
var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var autocompletevue_type_script_lang_js_ = ({
|
||||
name: 'ElAutocomplete',
|
||||
|
||||
mixins: [emitter_default.a, focus_default()('input'), migrating_default.a],
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
componentName: 'ElAutocomplete',
|
||||
|
||||
components: {
|
||||
ElInput: input_default.a,
|
||||
ElAutocompleteSuggestions: autocomplete_suggestions
|
||||
},
|
||||
|
||||
directives: { Clickoutside: clickoutside_default.a },
|
||||
|
||||
props: {
|
||||
valueKey: {
|
||||
type: String,
|
||||
default: 'value'
|
||||
},
|
||||
popperClass: String,
|
||||
popperOptions: Object,
|
||||
placeholder: String,
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
disabled: Boolean,
|
||||
name: String,
|
||||
size: String,
|
||||
value: String,
|
||||
maxlength: Number,
|
||||
minlength: Number,
|
||||
autofocus: Boolean,
|
||||
fetchSuggestions: Function,
|
||||
triggerOnFocus: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
customItem: String,
|
||||
selectWhenUnmatched: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
prefixIcon: String,
|
||||
suffixIcon: String,
|
||||
label: String,
|
||||
debounce: {
|
||||
type: Number,
|
||||
default: 300
|
||||
},
|
||||
placement: {
|
||||
type: String,
|
||||
default: 'bottom-start'
|
||||
},
|
||||
hideLoading: Boolean,
|
||||
popperAppendToBody: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
highlightFirstItem: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
activated: false,
|
||||
suggestions: [],
|
||||
loading: false,
|
||||
highlightedIndex: -1,
|
||||
suggestionDisabled: false
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
suggestionVisible: function suggestionVisible() {
|
||||
var suggestions = this.suggestions;
|
||||
var isValidData = Array.isArray(suggestions) && suggestions.length > 0;
|
||||
return (isValidData || this.loading) && this.activated;
|
||||
},
|
||||
id: function id() {
|
||||
return 'el-autocomplete-' + Object(util_["generateId"])();
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
suggestionVisible: function suggestionVisible(val) {
|
||||
var $input = this.getInput();
|
||||
if ($input) {
|
||||
this.broadcast('ElAutocompleteSuggestions', 'visible', [val, $input.offsetWidth]);
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {
|
||||
'custom-item': 'custom-item is removed, use scoped slot instead.',
|
||||
'props': 'props is removed, use value-key instead.'
|
||||
}
|
||||
};
|
||||
},
|
||||
getData: function getData(queryString) {
|
||||
var _this = this;
|
||||
|
||||
if (this.suggestionDisabled) {
|
||||
return;
|
||||
}
|
||||
this.loading = true;
|
||||
this.fetchSuggestions(queryString, function (suggestions) {
|
||||
_this.loading = false;
|
||||
if (_this.suggestionDisabled) {
|
||||
return;
|
||||
}
|
||||
if (Array.isArray(suggestions)) {
|
||||
_this.suggestions = suggestions;
|
||||
_this.highlightedIndex = _this.highlightFirstItem ? 0 : -1;
|
||||
} else {
|
||||
console.error('[Element Error][Autocomplete]autocomplete suggestions must be an array');
|
||||
}
|
||||
});
|
||||
},
|
||||
handleChange: function handleChange(value) {
|
||||
this.$emit('input', value);
|
||||
this.suggestionDisabled = false;
|
||||
if (!this.triggerOnFocus && !value) {
|
||||
this.suggestionDisabled = true;
|
||||
this.suggestions = [];
|
||||
return;
|
||||
}
|
||||
this.debouncedGetData(value);
|
||||
},
|
||||
handleFocus: function handleFocus(event) {
|
||||
this.activated = true;
|
||||
this.$emit('focus', event);
|
||||
if (this.triggerOnFocus) {
|
||||
this.debouncedGetData(this.value);
|
||||
}
|
||||
},
|
||||
handleBlur: function handleBlur(event) {
|
||||
this.$emit('blur', event);
|
||||
},
|
||||
handleClear: function handleClear() {
|
||||
this.activated = false;
|
||||
this.$emit('clear');
|
||||
},
|
||||
close: function close(e) {
|
||||
this.activated = false;
|
||||
},
|
||||
handleKeyEnter: function handleKeyEnter(e) {
|
||||
var _this2 = this;
|
||||
|
||||
if (this.suggestionVisible && this.highlightedIndex >= 0 && this.highlightedIndex < this.suggestions.length) {
|
||||
e.preventDefault();
|
||||
this.select(this.suggestions[this.highlightedIndex]);
|
||||
} else if (this.selectWhenUnmatched) {
|
||||
this.$emit('select', { value: this.value });
|
||||
this.$nextTick(function (_) {
|
||||
_this2.suggestions = [];
|
||||
_this2.highlightedIndex = -1;
|
||||
});
|
||||
}
|
||||
},
|
||||
select: function select(item) {
|
||||
var _this3 = this;
|
||||
|
||||
this.$emit('input', item[this.valueKey]);
|
||||
this.$emit('select', item);
|
||||
this.$nextTick(function (_) {
|
||||
_this3.suggestions = [];
|
||||
_this3.highlightedIndex = -1;
|
||||
});
|
||||
},
|
||||
highlight: function highlight(index) {
|
||||
if (!this.suggestionVisible || this.loading) {
|
||||
return;
|
||||
}
|
||||
if (index < 0) {
|
||||
this.highlightedIndex = -1;
|
||||
return;
|
||||
}
|
||||
if (index >= this.suggestions.length) {
|
||||
index = this.suggestions.length - 1;
|
||||
}
|
||||
var suggestion = this.$refs.suggestions.$el.querySelector('.el-autocomplete-suggestion__wrap');
|
||||
var suggestionList = suggestion.querySelectorAll('.el-autocomplete-suggestion__list li');
|
||||
|
||||
var highlightItem = suggestionList[index];
|
||||
var scrollTop = suggestion.scrollTop;
|
||||
var offsetTop = highlightItem.offsetTop;
|
||||
|
||||
if (offsetTop + highlightItem.scrollHeight > scrollTop + suggestion.clientHeight) {
|
||||
suggestion.scrollTop += highlightItem.scrollHeight;
|
||||
}
|
||||
if (offsetTop < scrollTop) {
|
||||
suggestion.scrollTop -= highlightItem.scrollHeight;
|
||||
}
|
||||
this.highlightedIndex = index;
|
||||
var $input = this.getInput();
|
||||
$input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
|
||||
},
|
||||
getInput: function getInput() {
|
||||
return this.$refs.input.getInput();
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var _this4 = this;
|
||||
|
||||
this.debouncedGetData = debounce_default()(this.debounce, this.getData);
|
||||
this.$on('item-click', function (item) {
|
||||
_this4.select(item);
|
||||
});
|
||||
var $input = this.getInput();
|
||||
$input.setAttribute('role', 'textbox');
|
||||
$input.setAttribute('aria-autocomplete', 'list');
|
||||
$input.setAttribute('aria-controls', 'id');
|
||||
$input.setAttribute('aria-activedescendant', this.id + '-item-' + this.highlightedIndex);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
this.$refs.suggestions.$destroy();
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_autocompletevue_type_script_lang_js_ = (autocompletevue_type_script_lang_js_);
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/src/autocomplete.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var autocomplete_component = Object(componentNormalizer["a" /* default */])(
|
||||
src_autocompletevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var autocomplete_api; }
|
||||
autocomplete_component.options.__file = "packages/autocomplete/src/autocomplete.vue"
|
||||
/* harmony default export */ var autocomplete = (autocomplete_component.exports);
|
||||
// CONCATENATED MODULE: ./packages/autocomplete/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
autocomplete.install = function (Vue) {
|
||||
Vue.component(autocomplete.name, autocomplete);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_autocomplete = __webpack_exports__["default"] = (autocomplete);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/input");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+333
@@ -0,0 +1,333 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 93);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 93:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/badge/src/main.vue?vue&type=template&id=7ccb6598&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{ staticClass: "el-badge" },
|
||||
[
|
||||
_vm._t("default"),
|
||||
_c("transition", { attrs: { name: "el-zoom-in-center" } }, [
|
||||
_c("sup", {
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value:
|
||||
!_vm.hidden && (_vm.content || _vm.content === 0 || _vm.isDot),
|
||||
expression: "!hidden && (content || content === 0 || isDot)"
|
||||
}
|
||||
],
|
||||
staticClass: "el-badge__content",
|
||||
class: [
|
||||
"el-badge__content--" + _vm.type,
|
||||
{
|
||||
"is-fixed": _vm.$slots.default,
|
||||
"is-dot": _vm.isDot
|
||||
}
|
||||
],
|
||||
domProps: { textContent: _vm._s(_vm.content) }
|
||||
})
|
||||
])
|
||||
],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=template&id=7ccb6598&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/badge/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElBadge',
|
||||
|
||||
props: {
|
||||
value: {},
|
||||
max: Number,
|
||||
isDot: Boolean,
|
||||
hidden: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
validator: function validator(val) {
|
||||
return ['primary', 'success', 'warning', 'info', 'danger'].indexOf(val) > -1;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
content: function content() {
|
||||
if (this.isDot) return;
|
||||
|
||||
var value = this.value;
|
||||
var max = this.max;
|
||||
|
||||
if (typeof value === 'number' && typeof max === 'number') {
|
||||
return max < value ? max + '+' : value;
|
||||
}
|
||||
|
||||
return value;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/badge/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/badge/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/badge/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/badge/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var badge = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+321
@@ -0,0 +1,321 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 85);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 85:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=fcf9eaac&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("span", { staticClass: "el-breadcrumb__item" }, [
|
||||
_c(
|
||||
"span",
|
||||
{
|
||||
ref: "link",
|
||||
class: ["el-breadcrumb__inner", _vm.to ? "is-link" : ""],
|
||||
attrs: { role: "link" }
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
),
|
||||
_vm.separatorClass
|
||||
? _c("i", {
|
||||
staticClass: "el-breadcrumb__separator",
|
||||
class: _vm.separatorClass
|
||||
})
|
||||
: _c(
|
||||
"span",
|
||||
{
|
||||
staticClass: "el-breadcrumb__separator",
|
||||
attrs: { role: "presentation" }
|
||||
},
|
||||
[_vm._v(_vm._s(_vm.separator))]
|
||||
)
|
||||
])
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=template&id=fcf9eaac&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var breadcrumb_itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElBreadcrumbItem',
|
||||
props: {
|
||||
to: {},
|
||||
replace: Boolean
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
separator: '',
|
||||
separatorClass: ''
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
inject: ['elBreadcrumb'],
|
||||
|
||||
mounted: function mounted() {
|
||||
var _this = this;
|
||||
|
||||
this.separator = this.elBreadcrumb.separator;
|
||||
this.separatorClass = this.elBreadcrumb.separatorClass;
|
||||
var link = this.$refs.link;
|
||||
link.setAttribute('role', 'link');
|
||||
link.addEventListener('click', function (_) {
|
||||
var to = _this.to,
|
||||
$router = _this.$router;
|
||||
|
||||
if (!to || !$router) return;
|
||||
_this.replace ? $router.replace(to) : $router.push(to);
|
||||
});
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_breadcrumb_itemvue_type_script_lang_js_ = (breadcrumb_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb-item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_breadcrumb_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/breadcrumb/src/breadcrumb-item.vue"
|
||||
/* harmony default export */ var breadcrumb_item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
breadcrumb_item.install = function (Vue) {
|
||||
Vue.component(breadcrumb_item.name, breadcrumb_item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_breadcrumb_item = __webpack_exports__["default"] = (breadcrumb_item);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+292
@@ -0,0 +1,292 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 84);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 84:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb.vue?vue&type=template&id=4b464c06&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-breadcrumb",
|
||||
attrs: { "aria-label": "Breadcrumb", role: "navigation" }
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue?vue&type=template&id=4b464c06&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/breadcrumb/src/breadcrumb.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var breadcrumbvue_type_script_lang_js_ = ({
|
||||
name: 'ElBreadcrumb',
|
||||
|
||||
props: {
|
||||
separator: {
|
||||
type: String,
|
||||
default: '/'
|
||||
},
|
||||
separatorClass: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
provide: function provide() {
|
||||
return {
|
||||
elBreadcrumb: this
|
||||
};
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var items = this.$el.querySelectorAll('.el-breadcrumb__item');
|
||||
if (items.length) {
|
||||
items[items.length - 1].setAttribute('aria-current', 'page');
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_breadcrumbvue_type_script_lang_js_ = (breadcrumbvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_breadcrumbvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/breadcrumb/src/breadcrumb.vue"
|
||||
/* harmony default export */ var breadcrumb = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/breadcrumb/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
breadcrumb.install = function (Vue) {
|
||||
Vue.component(breadcrumb.name, breadcrumb);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_breadcrumb = __webpack_exports__["default"] = (breadcrumb);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+261
@@ -0,0 +1,261 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 83);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 83:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("div", { staticClass: "el-button-group" }, [_vm._t("default")], 2)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=template&id=3d8661d0&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button-group.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var button_groupvue_type_script_lang_js_ = ({
|
||||
name: 'ElButtonGroup'
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/button/src/button-group.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_button_groupvue_type_script_lang_js_ = (button_groupvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/button/src/button-group.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_button_groupvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/button/src/button-group.vue"
|
||||
/* harmony default export */ var button_group = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/button-group/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
button_group.install = function (Vue) {
|
||||
Vue.component(button_group.name, button_group);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_button_group = __webpack_exports__["default"] = (button_group);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+356
@@ -0,0 +1,356 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 82);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 82:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"button",
|
||||
{
|
||||
staticClass: "el-button",
|
||||
class: [
|
||||
_vm.type ? "el-button--" + _vm.type : "",
|
||||
_vm.buttonSize ? "el-button--" + _vm.buttonSize : "",
|
||||
{
|
||||
"is-disabled": _vm.buttonDisabled,
|
||||
"is-loading": _vm.loading,
|
||||
"is-plain": _vm.plain,
|
||||
"is-round": _vm.round,
|
||||
"is-circle": _vm.circle
|
||||
}
|
||||
],
|
||||
attrs: {
|
||||
disabled: _vm.buttonDisabled || _vm.loading,
|
||||
autofocus: _vm.autofocus,
|
||||
type: _vm.nativeType
|
||||
},
|
||||
on: { click: _vm.handleClick }
|
||||
},
|
||||
[
|
||||
_vm.loading ? _c("i", { staticClass: "el-icon-loading" }) : _vm._e(),
|
||||
_vm.icon && !_vm.loading ? _c("i", { class: _vm.icon }) : _vm._e(),
|
||||
_vm.$slots.default ? _c("span", [_vm._t("default")], 2) : _vm._e()
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=template&id=ca859fb4&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/button/src/button.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var buttonvue_type_script_lang_js_ = ({
|
||||
name: 'ElButton',
|
||||
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
props: {
|
||||
type: {
|
||||
type: String,
|
||||
default: 'default'
|
||||
},
|
||||
size: String,
|
||||
icon: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
nativeType: {
|
||||
type: String,
|
||||
default: 'button'
|
||||
},
|
||||
loading: Boolean,
|
||||
disabled: Boolean,
|
||||
plain: Boolean,
|
||||
autofocus: Boolean,
|
||||
round: Boolean,
|
||||
circle: Boolean
|
||||
},
|
||||
|
||||
computed: {
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
buttonSize: function buttonSize() {
|
||||
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
},
|
||||
buttonDisabled: function buttonDisabled() {
|
||||
return this.disabled || (this.elForm || {}).disabled;
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleClick: function handleClick(evt) {
|
||||
this.$emit('click', evt);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/button/src/button.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_buttonvue_type_script_lang_js_ = (buttonvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/button/src/button.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_buttonvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/button/src/button.vue"
|
||||
/* harmony default export */ var src_button = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/button/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
src_button.install = function (Vue) {
|
||||
Vue.component(src_button.name, src_button);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_button = __webpack_exports__["default"] = (src_button);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+296
@@ -0,0 +1,296 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 94);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 94:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=template&id=59a4a40f&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-card",
|
||||
class: _vm.shadow ? "is-" + _vm.shadow + "-shadow" : "is-always-shadow"
|
||||
},
|
||||
[
|
||||
_vm.$slots.header || _vm.header
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "el-card__header" },
|
||||
[_vm._t("header", [_vm._v(_vm._s(_vm.header))])],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_c(
|
||||
"div",
|
||||
{ staticClass: "el-card__body", style: _vm.bodyStyle },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=template&id=59a4a40f&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/card/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElCard',
|
||||
props: {
|
||||
header: {},
|
||||
bodyStyle: {},
|
||||
shadow: {
|
||||
type: String
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/card/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/card/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/card/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/card/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var card = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+408
@@ -0,0 +1,408 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 99);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 99:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=template&id=1801ae19&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.ready,
|
||||
expression: "ready"
|
||||
}
|
||||
],
|
||||
staticClass: "el-carousel__item",
|
||||
class: {
|
||||
"is-active": _vm.active,
|
||||
"el-carousel__item--card": _vm.$parent.type === "card",
|
||||
"is-in-stage": _vm.inStage,
|
||||
"is-hover": _vm.hover,
|
||||
"is-animating": _vm.animating
|
||||
},
|
||||
style: {
|
||||
msTransform:
|
||||
"translateX(" + _vm.translate + "px) scale(" + _vm.scale + ")",
|
||||
webkitTransform:
|
||||
"translateX(" + _vm.translate + "px) scale(" + _vm.scale + ")",
|
||||
transform:
|
||||
"translateX(" + _vm.translate + "px) scale(" + _vm.scale + ")"
|
||||
},
|
||||
on: { click: _vm.handleItemClick }
|
||||
},
|
||||
[
|
||||
_vm.$parent.type === "card"
|
||||
? _c("div", {
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: !_vm.active,
|
||||
expression: "!active"
|
||||
}
|
||||
],
|
||||
staticClass: "el-carousel__mask"
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm._t("default")
|
||||
],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=template&id=1801ae19&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var CARD_SCALE = 0.83;
|
||||
/* harmony default export */ var itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElCarouselItem',
|
||||
|
||||
props: {
|
||||
name: String,
|
||||
label: {
|
||||
type: [String, Number],
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
hover: false,
|
||||
translate: 0,
|
||||
scale: 1,
|
||||
active: false,
|
||||
ready: false,
|
||||
inStage: false,
|
||||
animating: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
processIndex: function processIndex(index, activeIndex, length) {
|
||||
if (activeIndex === 0 && index === length - 1) {
|
||||
return -1;
|
||||
} else if (activeIndex === length - 1 && index === 0) {
|
||||
return length;
|
||||
} else if (index < activeIndex - 1 && activeIndex - index >= length / 2) {
|
||||
return length + 1;
|
||||
} else if (index > activeIndex + 1 && index - activeIndex >= length / 2) {
|
||||
return -2;
|
||||
}
|
||||
return index;
|
||||
},
|
||||
calculateTranslate: function calculateTranslate(index, activeIndex, parentWidth) {
|
||||
if (this.inStage) {
|
||||
return parentWidth * ((2 - CARD_SCALE) * (index - activeIndex) + 1) / 4;
|
||||
} else if (index < activeIndex) {
|
||||
return -(1 + CARD_SCALE) * parentWidth / 4;
|
||||
} else {
|
||||
return (3 + CARD_SCALE) * parentWidth / 4;
|
||||
}
|
||||
},
|
||||
translateItem: function translateItem(index, activeIndex, oldIndex) {
|
||||
var parentWidth = this.$parent.$el.offsetWidth;
|
||||
var length = this.$parent.items.length;
|
||||
if (this.$parent.type !== 'card' && oldIndex !== undefined) {
|
||||
this.animating = index === activeIndex || index === oldIndex;
|
||||
}
|
||||
if (index !== activeIndex && length > 2 && this.$parent.loop) {
|
||||
index = this.processIndex(index, activeIndex, length);
|
||||
}
|
||||
if (this.$parent.type === 'card') {
|
||||
this.inStage = Math.round(Math.abs(index - activeIndex)) <= 1;
|
||||
this.active = index === activeIndex;
|
||||
this.translate = this.calculateTranslate(index, activeIndex, parentWidth);
|
||||
this.scale = this.active ? 1 : CARD_SCALE;
|
||||
} else {
|
||||
this.active = index === activeIndex;
|
||||
this.translate = parentWidth * (index - activeIndex);
|
||||
}
|
||||
this.ready = true;
|
||||
},
|
||||
handleItemClick: function handleItemClick() {
|
||||
var parent = this.$parent;
|
||||
if (parent && parent.type === 'card') {
|
||||
var index = parent.items.indexOf(this);
|
||||
parent.setActiveItem(index);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.$parent && this.$parent.updateItems();
|
||||
},
|
||||
destroyed: function destroyed() {
|
||||
this.$parent && this.$parent.updateItems();
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_itemvue_type_script_lang_js_ = (itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/carousel/src/item.vue"
|
||||
/* harmony default export */ var item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/carousel-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
item.install = function (Vue) {
|
||||
Vue.component(item.name, item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var carousel_item = __webpack_exports__["default"] = (item);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+665
@@ -0,0 +1,665 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 98);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 15:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/resize-event");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 38:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("throttle-debounce/throttle");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 98:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-carousel",
|
||||
class: { "el-carousel--card": _vm.type === "card" },
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
$event.stopPropagation()
|
||||
return _vm.handleMouseEnter($event)
|
||||
},
|
||||
mouseleave: function($event) {
|
||||
$event.stopPropagation()
|
||||
return _vm.handleMouseLeave($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-carousel__container",
|
||||
style: { height: _vm.height }
|
||||
},
|
||||
[
|
||||
_c("transition", { attrs: { name: "carousel-arrow-left" } }, [
|
||||
_vm.arrow !== "never"
|
||||
? _c(
|
||||
"button",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value:
|
||||
(_vm.arrow === "always" || _vm.hover) &&
|
||||
(_vm.loop || _vm.activeIndex > 0),
|
||||
expression:
|
||||
"(arrow === 'always' || hover) && (loop || activeIndex > 0)"
|
||||
}
|
||||
],
|
||||
staticClass: "el-carousel__arrow el-carousel__arrow--left",
|
||||
attrs: { type: "button" },
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
_vm.handleButtonEnter("left")
|
||||
},
|
||||
mouseleave: _vm.handleButtonLeave,
|
||||
click: function($event) {
|
||||
$event.stopPropagation()
|
||||
_vm.throttledArrowClick(_vm.activeIndex - 1)
|
||||
}
|
||||
}
|
||||
},
|
||||
[_c("i", { staticClass: "el-icon-arrow-left" })]
|
||||
)
|
||||
: _vm._e()
|
||||
]),
|
||||
_c("transition", { attrs: { name: "carousel-arrow-right" } }, [
|
||||
_vm.arrow !== "never"
|
||||
? _c(
|
||||
"button",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value:
|
||||
(_vm.arrow === "always" || _vm.hover) &&
|
||||
(_vm.loop || _vm.activeIndex < _vm.items.length - 1),
|
||||
expression:
|
||||
"(arrow === 'always' || hover) && (loop || activeIndex < items.length - 1)"
|
||||
}
|
||||
],
|
||||
staticClass: "el-carousel__arrow el-carousel__arrow--right",
|
||||
attrs: { type: "button" },
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
_vm.handleButtonEnter("right")
|
||||
},
|
||||
mouseleave: _vm.handleButtonLeave,
|
||||
click: function($event) {
|
||||
$event.stopPropagation()
|
||||
_vm.throttledArrowClick(_vm.activeIndex + 1)
|
||||
}
|
||||
}
|
||||
},
|
||||
[_c("i", { staticClass: "el-icon-arrow-right" })]
|
||||
)
|
||||
: _vm._e()
|
||||
]),
|
||||
_vm._t("default")
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm.indicatorPosition !== "none"
|
||||
? _c(
|
||||
"ul",
|
||||
{
|
||||
staticClass: "el-carousel__indicators",
|
||||
class: {
|
||||
"el-carousel__indicators--labels": _vm.hasLabel,
|
||||
"el-carousel__indicators--outside":
|
||||
_vm.indicatorPosition === "outside" || _vm.type === "card"
|
||||
}
|
||||
},
|
||||
_vm._l(_vm.items, function(item, index) {
|
||||
return _c(
|
||||
"li",
|
||||
{
|
||||
staticClass: "el-carousel__indicator",
|
||||
class: { "is-active": index === _vm.activeIndex },
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
_vm.throttledIndicatorHover(index)
|
||||
},
|
||||
click: function($event) {
|
||||
$event.stopPropagation()
|
||||
_vm.handleIndicatorClick(index)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("button", { staticClass: "el-carousel__button" }, [
|
||||
_vm.hasLabel
|
||||
? _c("span", [_vm._v(_vm._s(item.label))])
|
||||
: _vm._e()
|
||||
])
|
||||
]
|
||||
)
|
||||
}),
|
||||
0
|
||||
)
|
||||
: _vm._e()
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=template&id=5d5d1482&
|
||||
|
||||
// EXTERNAL MODULE: external "throttle-debounce/throttle"
|
||||
var throttle_ = __webpack_require__(38);
|
||||
var throttle_default = /*#__PURE__*/__webpack_require__.n(throttle_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/resize-event"
|
||||
var resize_event_ = __webpack_require__(15);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/carousel/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElCarousel',
|
||||
|
||||
props: {
|
||||
initialIndex: {
|
||||
type: Number,
|
||||
default: 0
|
||||
},
|
||||
height: String,
|
||||
trigger: {
|
||||
type: String,
|
||||
default: 'hover'
|
||||
},
|
||||
autoplay: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
interval: {
|
||||
type: Number,
|
||||
default: 3000
|
||||
},
|
||||
indicatorPosition: String,
|
||||
indicator: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
arrow: {
|
||||
type: String,
|
||||
default: 'hover'
|
||||
},
|
||||
type: String,
|
||||
loop: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
items: [],
|
||||
activeIndex: -1,
|
||||
containerWidth: 0,
|
||||
timer: null,
|
||||
hover: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
hasLabel: function hasLabel() {
|
||||
return this.items.some(function (item) {
|
||||
return item.label.toString().length > 0;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
items: function items(val) {
|
||||
if (val.length > 0) this.setActiveItem(this.initialIndex);
|
||||
},
|
||||
activeIndex: function activeIndex(val, oldVal) {
|
||||
this.resetItemPosition(oldVal);
|
||||
this.$emit('change', val, oldVal);
|
||||
},
|
||||
autoplay: function autoplay(val) {
|
||||
val ? this.startTimer() : this.pauseTimer();
|
||||
},
|
||||
loop: function loop() {
|
||||
this.setActiveItem(this.activeIndex);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleMouseEnter: function handleMouseEnter() {
|
||||
this.hover = true;
|
||||
this.pauseTimer();
|
||||
},
|
||||
handleMouseLeave: function handleMouseLeave() {
|
||||
this.hover = false;
|
||||
this.startTimer();
|
||||
},
|
||||
itemInStage: function itemInStage(item, index) {
|
||||
var length = this.items.length;
|
||||
if (index === length - 1 && item.inStage && this.items[0].active || item.inStage && this.items[index + 1] && this.items[index + 1].active) {
|
||||
return 'left';
|
||||
} else if (index === 0 && item.inStage && this.items[length - 1].active || item.inStage && this.items[index - 1] && this.items[index - 1].active) {
|
||||
return 'right';
|
||||
}
|
||||
return false;
|
||||
},
|
||||
handleButtonEnter: function handleButtonEnter(arrow) {
|
||||
var _this = this;
|
||||
|
||||
this.items.forEach(function (item, index) {
|
||||
if (arrow === _this.itemInStage(item, index)) {
|
||||
item.hover = true;
|
||||
}
|
||||
});
|
||||
},
|
||||
handleButtonLeave: function handleButtonLeave() {
|
||||
this.items.forEach(function (item) {
|
||||
item.hover = false;
|
||||
});
|
||||
},
|
||||
updateItems: function updateItems() {
|
||||
this.items = this.$children.filter(function (child) {
|
||||
return child.$options.name === 'ElCarouselItem';
|
||||
});
|
||||
},
|
||||
resetItemPosition: function resetItemPosition(oldIndex) {
|
||||
var _this2 = this;
|
||||
|
||||
this.items.forEach(function (item, index) {
|
||||
item.translateItem(index, _this2.activeIndex, oldIndex);
|
||||
});
|
||||
},
|
||||
playSlides: function playSlides() {
|
||||
if (this.activeIndex < this.items.length - 1) {
|
||||
this.activeIndex++;
|
||||
} else if (this.loop) {
|
||||
this.activeIndex = 0;
|
||||
}
|
||||
},
|
||||
pauseTimer: function pauseTimer() {
|
||||
if (this.timer) {
|
||||
clearInterval(this.timer);
|
||||
this.timer = null;
|
||||
}
|
||||
},
|
||||
startTimer: function startTimer() {
|
||||
if (this.interval <= 0 || !this.autoplay || this.timer) return;
|
||||
this.timer = setInterval(this.playSlides, this.interval);
|
||||
},
|
||||
setActiveItem: function setActiveItem(index) {
|
||||
if (typeof index === 'string') {
|
||||
var filteredItems = this.items.filter(function (item) {
|
||||
return item.name === index;
|
||||
});
|
||||
if (filteredItems.length > 0) {
|
||||
index = this.items.indexOf(filteredItems[0]);
|
||||
}
|
||||
}
|
||||
index = Number(index);
|
||||
if (isNaN(index) || index !== Math.floor(index)) {
|
||||
false && false;
|
||||
return;
|
||||
}
|
||||
var length = this.items.length;
|
||||
var oldIndex = this.activeIndex;
|
||||
if (index < 0) {
|
||||
this.activeIndex = this.loop ? length - 1 : 0;
|
||||
} else if (index >= length) {
|
||||
this.activeIndex = this.loop ? 0 : length - 1;
|
||||
} else {
|
||||
this.activeIndex = index;
|
||||
}
|
||||
if (oldIndex === this.activeIndex) {
|
||||
this.resetItemPosition(oldIndex);
|
||||
}
|
||||
},
|
||||
prev: function prev() {
|
||||
this.setActiveItem(this.activeIndex - 1);
|
||||
},
|
||||
next: function next() {
|
||||
this.setActiveItem(this.activeIndex + 1);
|
||||
},
|
||||
handleIndicatorClick: function handleIndicatorClick(index) {
|
||||
this.activeIndex = index;
|
||||
},
|
||||
handleIndicatorHover: function handleIndicatorHover(index) {
|
||||
if (this.trigger === 'hover' && index !== this.activeIndex) {
|
||||
this.activeIndex = index;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
var _this3 = this;
|
||||
|
||||
this.throttledArrowClick = throttle_default()(300, true, function (index) {
|
||||
_this3.setActiveItem(index);
|
||||
});
|
||||
this.throttledIndicatorHover = throttle_default()(300, function (index) {
|
||||
_this3.handleIndicatorHover(index);
|
||||
});
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var _this4 = this;
|
||||
|
||||
this.updateItems();
|
||||
this.$nextTick(function () {
|
||||
Object(resize_event_["addResizeListener"])(_this4.$el, _this4.resetItemPosition);
|
||||
if (_this4.initialIndex < _this4.items.length && _this4.initialIndex >= 0) {
|
||||
_this4.activeIndex = _this4.initialIndex;
|
||||
}
|
||||
_this4.startTimer();
|
||||
});
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
if (this.$el) Object(resize_event_["removeResizeListener"])(this.$el, this.resetItemPosition);
|
||||
this.pauseTimer();
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/carousel/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/carousel/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/carousel/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var carousel = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+1433
File diff suppressed because it is too large
Load Diff
+572
@@ -0,0 +1,572 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 78);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 78:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=478e906e&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"label",
|
||||
{
|
||||
staticClass: "el-checkbox-button",
|
||||
class: [
|
||||
_vm.size ? "el-checkbox-button--" + _vm.size : "",
|
||||
{ "is-disabled": _vm.isDisabled },
|
||||
{ "is-checked": _vm.isChecked },
|
||||
{ "is-focus": _vm.focus }
|
||||
],
|
||||
attrs: {
|
||||
role: "checkbox",
|
||||
"aria-checked": _vm.isChecked,
|
||||
"aria-disabled": _vm.isDisabled
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm.trueLabel || _vm.falseLabel
|
||||
? _c("input", {
|
||||
directives: [
|
||||
{
|
||||
name: "model",
|
||||
rawName: "v-model",
|
||||
value: _vm.model,
|
||||
expression: "model"
|
||||
}
|
||||
],
|
||||
staticClass: "el-checkbox-button__original",
|
||||
attrs: {
|
||||
type: "checkbox",
|
||||
name: _vm.name,
|
||||
disabled: _vm.isDisabled,
|
||||
"true-value": _vm.trueLabel,
|
||||
"false-value": _vm.falseLabel
|
||||
},
|
||||
domProps: {
|
||||
checked: Array.isArray(_vm.model)
|
||||
? _vm._i(_vm.model, null) > -1
|
||||
: _vm._q(_vm.model, _vm.trueLabel)
|
||||
},
|
||||
on: {
|
||||
change: [
|
||||
function($event) {
|
||||
var $$a = _vm.model,
|
||||
$$el = $event.target,
|
||||
$$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
|
||||
if (Array.isArray($$a)) {
|
||||
var $$v = null,
|
||||
$$i = _vm._i($$a, $$v)
|
||||
if ($$el.checked) {
|
||||
$$i < 0 && (_vm.model = $$a.concat([$$v]))
|
||||
} else {
|
||||
$$i > -1 &&
|
||||
(_vm.model = $$a
|
||||
.slice(0, $$i)
|
||||
.concat($$a.slice($$i + 1)))
|
||||
}
|
||||
} else {
|
||||
_vm.model = $$c
|
||||
}
|
||||
},
|
||||
_vm.handleChange
|
||||
],
|
||||
focus: function($event) {
|
||||
_vm.focus = true
|
||||
},
|
||||
blur: function($event) {
|
||||
_vm.focus = false
|
||||
}
|
||||
}
|
||||
})
|
||||
: _c("input", {
|
||||
directives: [
|
||||
{
|
||||
name: "model",
|
||||
rawName: "v-model",
|
||||
value: _vm.model,
|
||||
expression: "model"
|
||||
}
|
||||
],
|
||||
staticClass: "el-checkbox-button__original",
|
||||
attrs: {
|
||||
type: "checkbox",
|
||||
name: _vm.name,
|
||||
disabled: _vm.isDisabled
|
||||
},
|
||||
domProps: {
|
||||
value: _vm.label,
|
||||
checked: Array.isArray(_vm.model)
|
||||
? _vm._i(_vm.model, _vm.label) > -1
|
||||
: _vm.model
|
||||
},
|
||||
on: {
|
||||
change: [
|
||||
function($event) {
|
||||
var $$a = _vm.model,
|
||||
$$el = $event.target,
|
||||
$$c = $$el.checked ? true : false
|
||||
if (Array.isArray($$a)) {
|
||||
var $$v = _vm.label,
|
||||
$$i = _vm._i($$a, $$v)
|
||||
if ($$el.checked) {
|
||||
$$i < 0 && (_vm.model = $$a.concat([$$v]))
|
||||
} else {
|
||||
$$i > -1 &&
|
||||
(_vm.model = $$a
|
||||
.slice(0, $$i)
|
||||
.concat($$a.slice($$i + 1)))
|
||||
}
|
||||
} else {
|
||||
_vm.model = $$c
|
||||
}
|
||||
},
|
||||
_vm.handleChange
|
||||
],
|
||||
focus: function($event) {
|
||||
_vm.focus = true
|
||||
},
|
||||
blur: function($event) {
|
||||
_vm.focus = false
|
||||
}
|
||||
}
|
||||
}),
|
||||
_vm.$slots.default || _vm.label
|
||||
? _c(
|
||||
"span",
|
||||
{
|
||||
staticClass: "el-checkbox-button__inner",
|
||||
style: _vm.isChecked ? _vm.activeStyle : null
|
||||
},
|
||||
[_vm._t("default", [_vm._v(_vm._s(_vm.label))])],
|
||||
2
|
||||
)
|
||||
: _vm._e()
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=template&id=478e906e&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var checkbox_buttonvue_type_script_lang_js_ = ({
|
||||
name: 'ElCheckboxButton',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
selfModel: false,
|
||||
focus: false,
|
||||
isLimitExceeded: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
props: {
|
||||
value: {},
|
||||
label: {},
|
||||
disabled: Boolean,
|
||||
checked: Boolean,
|
||||
name: String,
|
||||
trueLabel: [String, Number],
|
||||
falseLabel: [String, Number]
|
||||
},
|
||||
computed: {
|
||||
model: {
|
||||
get: function get() {
|
||||
return this._checkboxGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
|
||||
},
|
||||
set: function set(val) {
|
||||
if (this._checkboxGroup) {
|
||||
this.isLimitExceeded = false;
|
||||
this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
|
||||
|
||||
this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
|
||||
|
||||
this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
|
||||
} else if (this.value !== undefined) {
|
||||
this.$emit('input', val);
|
||||
} else {
|
||||
this.selfModel = val;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
isChecked: function isChecked() {
|
||||
if ({}.toString.call(this.model) === '[object Boolean]') {
|
||||
return this.model;
|
||||
} else if (Array.isArray(this.model)) {
|
||||
return this.model.indexOf(this.label) > -1;
|
||||
} else if (this.model !== null && this.model !== undefined) {
|
||||
return this.model === this.trueLabel;
|
||||
}
|
||||
},
|
||||
_checkboxGroup: function _checkboxGroup() {
|
||||
var parent = this.$parent;
|
||||
while (parent) {
|
||||
if (parent.$options.componentName !== 'ElCheckboxGroup') {
|
||||
parent = parent.$parent;
|
||||
} else {
|
||||
return parent;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
store: function store() {
|
||||
return this._checkboxGroup ? this._checkboxGroup.value : this.value;
|
||||
},
|
||||
activeStyle: function activeStyle() {
|
||||
return {
|
||||
backgroundColor: this._checkboxGroup.fill || '',
|
||||
borderColor: this._checkboxGroup.fill || '',
|
||||
color: this._checkboxGroup.textColor || '',
|
||||
'box-shadow': '-1px 0 0 0 ' + this._checkboxGroup.fill
|
||||
|
||||
};
|
||||
},
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
size: function size() {
|
||||
return this._checkboxGroup.checkboxGroupSize || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
},
|
||||
isDisabled: function isDisabled() {
|
||||
return this._checkboxGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
addToStore: function addToStore() {
|
||||
if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
|
||||
this.model.push(this.label);
|
||||
} else {
|
||||
this.model = this.trueLabel || true;
|
||||
}
|
||||
},
|
||||
handleChange: function handleChange(ev) {
|
||||
var _this = this;
|
||||
|
||||
if (this.isLimitExceeded) return;
|
||||
var value = void 0;
|
||||
if (ev.target.checked) {
|
||||
value = this.trueLabel === undefined ? true : this.trueLabel;
|
||||
} else {
|
||||
value = this.falseLabel === undefined ? false : this.falseLabel;
|
||||
}
|
||||
this.$emit('change', value, ev);
|
||||
this.$nextTick(function () {
|
||||
if (_this._checkboxGroup) {
|
||||
_this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.checked && this.addToStore();
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_checkbox_buttonvue_type_script_lang_js_ = (checkbox_buttonvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-button.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_checkbox_buttonvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/checkbox/src/checkbox-button.vue"
|
||||
/* harmony default export */ var checkbox_button = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/checkbox-button/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
checkbox_button.install = function (Vue) {
|
||||
Vue.component(checkbox_button.name, checkbox_button);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_checkbox_button = __webpack_exports__["default"] = (checkbox_button);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+312
@@ -0,0 +1,312 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 79);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 79:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-checkbox-group",
|
||||
attrs: { role: "group", "aria-label": "checkbox-group" }
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=template&id=7289a290&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var checkbox_groupvue_type_script_lang_js_ = ({
|
||||
name: 'ElCheckboxGroup',
|
||||
|
||||
componentName: 'ElCheckboxGroup',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
inject: {
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
props: {
|
||||
value: {},
|
||||
disabled: Boolean,
|
||||
min: Number,
|
||||
max: Number,
|
||||
size: String,
|
||||
fill: String,
|
||||
textColor: String
|
||||
},
|
||||
|
||||
computed: {
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
checkboxGroupSize: function checkboxGroupSize() {
|
||||
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
value: function value(_value) {
|
||||
this.dispatch('ElFormItem', 'el.form.change', [_value]);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_checkbox_groupvue_type_script_lang_js_ = (checkbox_groupvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox-group.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_checkbox_groupvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/checkbox/src/checkbox-group.vue"
|
||||
/* harmony default export */ var checkbox_group = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/checkbox-group/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
checkbox_group.install = function (Vue) {
|
||||
Vue.component(checkbox_group.name, checkbox_group);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_checkbox_group = __webpack_exports__["default"] = (checkbox_group);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+618
@@ -0,0 +1,618 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 77);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 77:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"label",
|
||||
{
|
||||
staticClass: "el-checkbox",
|
||||
class: [
|
||||
_vm.border && _vm.checkboxSize
|
||||
? "el-checkbox--" + _vm.checkboxSize
|
||||
: "",
|
||||
{ "is-disabled": _vm.isDisabled },
|
||||
{ "is-bordered": _vm.border },
|
||||
{ "is-checked": _vm.isChecked }
|
||||
],
|
||||
attrs: {
|
||||
role: "checkbox",
|
||||
"aria-checked": _vm.indeterminate ? "mixed" : _vm.isChecked,
|
||||
"aria-disabled": _vm.isDisabled,
|
||||
id: _vm.id
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"span",
|
||||
{
|
||||
staticClass: "el-checkbox__input",
|
||||
class: {
|
||||
"is-disabled": _vm.isDisabled,
|
||||
"is-checked": _vm.isChecked,
|
||||
"is-indeterminate": _vm.indeterminate,
|
||||
"is-focus": _vm.focus
|
||||
},
|
||||
attrs: { "aria-checked": "mixed" }
|
||||
},
|
||||
[
|
||||
_c("span", { staticClass: "el-checkbox__inner" }),
|
||||
_vm.trueLabel || _vm.falseLabel
|
||||
? _c("input", {
|
||||
directives: [
|
||||
{
|
||||
name: "model",
|
||||
rawName: "v-model",
|
||||
value: _vm.model,
|
||||
expression: "model"
|
||||
}
|
||||
],
|
||||
staticClass: "el-checkbox__original",
|
||||
attrs: {
|
||||
type: "checkbox",
|
||||
"aria-hidden": "true",
|
||||
name: _vm.name,
|
||||
disabled: _vm.isDisabled,
|
||||
"true-value": _vm.trueLabel,
|
||||
"false-value": _vm.falseLabel
|
||||
},
|
||||
domProps: {
|
||||
checked: Array.isArray(_vm.model)
|
||||
? _vm._i(_vm.model, null) > -1
|
||||
: _vm._q(_vm.model, _vm.trueLabel)
|
||||
},
|
||||
on: {
|
||||
change: [
|
||||
function($event) {
|
||||
var $$a = _vm.model,
|
||||
$$el = $event.target,
|
||||
$$c = $$el.checked ? _vm.trueLabel : _vm.falseLabel
|
||||
if (Array.isArray($$a)) {
|
||||
var $$v = null,
|
||||
$$i = _vm._i($$a, $$v)
|
||||
if ($$el.checked) {
|
||||
$$i < 0 && (_vm.model = $$a.concat([$$v]))
|
||||
} else {
|
||||
$$i > -1 &&
|
||||
(_vm.model = $$a
|
||||
.slice(0, $$i)
|
||||
.concat($$a.slice($$i + 1)))
|
||||
}
|
||||
} else {
|
||||
_vm.model = $$c
|
||||
}
|
||||
},
|
||||
_vm.handleChange
|
||||
],
|
||||
focus: function($event) {
|
||||
_vm.focus = true
|
||||
},
|
||||
blur: function($event) {
|
||||
_vm.focus = false
|
||||
}
|
||||
}
|
||||
})
|
||||
: _c("input", {
|
||||
directives: [
|
||||
{
|
||||
name: "model",
|
||||
rawName: "v-model",
|
||||
value: _vm.model,
|
||||
expression: "model"
|
||||
}
|
||||
],
|
||||
staticClass: "el-checkbox__original",
|
||||
attrs: {
|
||||
type: "checkbox",
|
||||
"aria-hidden": "true",
|
||||
disabled: _vm.isDisabled,
|
||||
name: _vm.name
|
||||
},
|
||||
domProps: {
|
||||
value: _vm.label,
|
||||
checked: Array.isArray(_vm.model)
|
||||
? _vm._i(_vm.model, _vm.label) > -1
|
||||
: _vm.model
|
||||
},
|
||||
on: {
|
||||
change: [
|
||||
function($event) {
|
||||
var $$a = _vm.model,
|
||||
$$el = $event.target,
|
||||
$$c = $$el.checked ? true : false
|
||||
if (Array.isArray($$a)) {
|
||||
var $$v = _vm.label,
|
||||
$$i = _vm._i($$a, $$v)
|
||||
if ($$el.checked) {
|
||||
$$i < 0 && (_vm.model = $$a.concat([$$v]))
|
||||
} else {
|
||||
$$i > -1 &&
|
||||
(_vm.model = $$a
|
||||
.slice(0, $$i)
|
||||
.concat($$a.slice($$i + 1)))
|
||||
}
|
||||
} else {
|
||||
_vm.model = $$c
|
||||
}
|
||||
},
|
||||
_vm.handleChange
|
||||
],
|
||||
focus: function($event) {
|
||||
_vm.focus = true
|
||||
},
|
||||
blur: function($event) {
|
||||
_vm.focus = false
|
||||
}
|
||||
}
|
||||
})
|
||||
]
|
||||
),
|
||||
_vm.$slots.default || _vm.label
|
||||
? _c(
|
||||
"span",
|
||||
{ staticClass: "el-checkbox__label" },
|
||||
[
|
||||
_vm._t("default"),
|
||||
!_vm.$slots.default ? [_vm._v(_vm._s(_vm.label))] : _vm._e()
|
||||
],
|
||||
2
|
||||
)
|
||||
: _vm._e()
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=template&id=d0387074&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var checkboxvue_type_script_lang_js_ = ({
|
||||
name: 'ElCheckbox',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
componentName: 'ElCheckbox',
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
selfModel: false,
|
||||
focus: false,
|
||||
isLimitExceeded: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
model: {
|
||||
get: function get() {
|
||||
return this.isGroup ? this.store : this.value !== undefined ? this.value : this.selfModel;
|
||||
},
|
||||
set: function set(val) {
|
||||
if (this.isGroup) {
|
||||
this.isLimitExceeded = false;
|
||||
this._checkboxGroup.min !== undefined && val.length < this._checkboxGroup.min && (this.isLimitExceeded = true);
|
||||
|
||||
this._checkboxGroup.max !== undefined && val.length > this._checkboxGroup.max && (this.isLimitExceeded = true);
|
||||
|
||||
this.isLimitExceeded === false && this.dispatch('ElCheckboxGroup', 'input', [val]);
|
||||
} else {
|
||||
this.$emit('input', val);
|
||||
this.selfModel = val;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
isChecked: function isChecked() {
|
||||
if ({}.toString.call(this.model) === '[object Boolean]') {
|
||||
return this.model;
|
||||
} else if (Array.isArray(this.model)) {
|
||||
return this.model.indexOf(this.label) > -1;
|
||||
} else if (this.model !== null && this.model !== undefined) {
|
||||
return this.model === this.trueLabel;
|
||||
}
|
||||
},
|
||||
isGroup: function isGroup() {
|
||||
var parent = this.$parent;
|
||||
while (parent) {
|
||||
if (parent.$options.componentName !== 'ElCheckboxGroup') {
|
||||
parent = parent.$parent;
|
||||
} else {
|
||||
this._checkboxGroup = parent;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
},
|
||||
store: function store() {
|
||||
return this._checkboxGroup ? this._checkboxGroup.value : this.value;
|
||||
},
|
||||
isDisabled: function isDisabled() {
|
||||
return this.isGroup ? this._checkboxGroup.disabled || this.disabled || (this.elForm || {}).disabled : this.disabled || (this.elForm || {}).disabled;
|
||||
},
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
checkboxSize: function checkboxSize() {
|
||||
var temCheckboxSize = this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
return this.isGroup ? this._checkboxGroup.checkboxGroupSize || temCheckboxSize : temCheckboxSize;
|
||||
}
|
||||
},
|
||||
|
||||
props: {
|
||||
value: {},
|
||||
label: {},
|
||||
indeterminate: Boolean,
|
||||
disabled: Boolean,
|
||||
checked: Boolean,
|
||||
name: String,
|
||||
trueLabel: [String, Number],
|
||||
falseLabel: [String, Number],
|
||||
id: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
|
||||
controls: String, /* 当indeterminate为真时,为controls提供相关连的checkbox的id,表明元素间的控制关系*/
|
||||
border: Boolean,
|
||||
size: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
addToStore: function addToStore() {
|
||||
if (Array.isArray(this.model) && this.model.indexOf(this.label) === -1) {
|
||||
this.model.push(this.label);
|
||||
} else {
|
||||
this.model = this.trueLabel || true;
|
||||
}
|
||||
},
|
||||
handleChange: function handleChange(ev) {
|
||||
var _this = this;
|
||||
|
||||
if (this.isLimitExceeded) return;
|
||||
var value = void 0;
|
||||
if (ev.target.checked) {
|
||||
value = this.trueLabel === undefined ? true : this.trueLabel;
|
||||
} else {
|
||||
value = this.falseLabel === undefined ? false : this.falseLabel;
|
||||
}
|
||||
this.$emit('change', value, ev);
|
||||
this.$nextTick(function () {
|
||||
if (_this.isGroup) {
|
||||
_this.dispatch('ElCheckboxGroup', 'change', [_this._checkboxGroup.value]);
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.checked && this.addToStore();
|
||||
},
|
||||
mounted: function mounted() {
|
||||
// 为indeterminate元素 添加aria-controls 属性
|
||||
if (this.indeterminate) {
|
||||
this.$el.setAttribute('aria-controls', this.controls);
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
value: function value(_value) {
|
||||
this.dispatch('ElFormItem', 'el.form.change', _value);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_checkboxvue_type_script_lang_js_ = (checkboxvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_checkboxvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/checkbox/src/checkbox.vue"
|
||||
/* harmony default export */ var src_checkbox = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/checkbox/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
src_checkbox.install = function (Vue) {
|
||||
Vue.component(src_checkbox.name, src_checkbox);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_checkbox = __webpack_exports__["default"] = (src_checkbox);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+176
@@ -0,0 +1,176 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 116);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 116:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/col/src/col.js
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
/* harmony default export */ var col = ({
|
||||
name: 'ElCol',
|
||||
|
||||
props: {
|
||||
span: {
|
||||
type: Number,
|
||||
default: 24
|
||||
},
|
||||
tag: {
|
||||
type: String,
|
||||
default: 'div'
|
||||
},
|
||||
offset: Number,
|
||||
pull: Number,
|
||||
push: Number,
|
||||
xs: [Number, Object],
|
||||
sm: [Number, Object],
|
||||
md: [Number, Object],
|
||||
lg: [Number, Object],
|
||||
xl: [Number, Object]
|
||||
},
|
||||
|
||||
computed: {
|
||||
gutter: function gutter() {
|
||||
var parent = this.$parent;
|
||||
while (parent && parent.$options.componentName !== 'ElRow') {
|
||||
parent = parent.$parent;
|
||||
}
|
||||
return parent ? parent.gutter : 0;
|
||||
}
|
||||
},
|
||||
render: function render(h) {
|
||||
var _this = this;
|
||||
|
||||
var classList = [];
|
||||
var style = {};
|
||||
|
||||
if (this.gutter) {
|
||||
style.paddingLeft = this.gutter / 2 + 'px';
|
||||
style.paddingRight = style.paddingLeft;
|
||||
}
|
||||
|
||||
['span', 'offset', 'pull', 'push'].forEach(function (prop) {
|
||||
if (_this[prop] || _this[prop] === 0) {
|
||||
classList.push(prop !== 'span' ? 'el-col-' + prop + '-' + _this[prop] : 'el-col-' + _this[prop]);
|
||||
}
|
||||
});
|
||||
|
||||
['xs', 'sm', 'md', 'lg', 'xl'].forEach(function (size) {
|
||||
if (typeof _this[size] === 'number') {
|
||||
classList.push('el-col-' + size + '-' + _this[size]);
|
||||
} else if (_typeof(_this[size]) === 'object') {
|
||||
var props = _this[size];
|
||||
Object.keys(props).forEach(function (prop) {
|
||||
classList.push(prop !== 'span' ? 'el-col-' + size + '-' + prop + '-' + props[prop] : 'el-col-' + size + '-' + props[prop]);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
return h(this.tag, {
|
||||
class: ['el-col', classList],
|
||||
style: style
|
||||
}, this.$slots.default);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/col/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
col.install = function (Vue) {
|
||||
Vue.component(col.name, col);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_col = __webpack_exports__["default"] = (col);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+492
@@ -0,0 +1,492 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 101);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 101:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse-item.vue?vue&type=template&id=2d05faac&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{ staticClass: "el-collapse-item", class: { "is-active": _vm.isActive } },
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
attrs: {
|
||||
role: "tab",
|
||||
"aria-expanded": _vm.isActive,
|
||||
"aria-controls": "el-collapse-content-" + _vm.id,
|
||||
"aria-describedby": "el-collapse-content-" + _vm.id
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-collapse-item__header",
|
||||
class: {
|
||||
focusing: _vm.focusing,
|
||||
"is-active": _vm.isActive
|
||||
},
|
||||
attrs: {
|
||||
role: "button",
|
||||
id: "el-collapse-head-" + _vm.id,
|
||||
tabindex: "0"
|
||||
},
|
||||
on: {
|
||||
click: _vm.handleHeaderClick,
|
||||
keyup: function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "space", 32, $event.key, [
|
||||
" ",
|
||||
"Spacebar"
|
||||
]) &&
|
||||
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
$event.stopPropagation()
|
||||
return _vm.handleEnterClick($event)
|
||||
},
|
||||
focus: _vm.handleFocus,
|
||||
blur: function($event) {
|
||||
_vm.focusing = false
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm._t("title", [_vm._v(_vm._s(_vm.title))]),
|
||||
_c("i", {
|
||||
staticClass: "el-collapse-item__arrow el-icon-arrow-right",
|
||||
class: { "is-active": _vm.isActive }
|
||||
})
|
||||
],
|
||||
2
|
||||
)
|
||||
]
|
||||
),
|
||||
_c("el-collapse-transition", [
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.isActive,
|
||||
expression: "isActive"
|
||||
}
|
||||
],
|
||||
staticClass: "el-collapse-item__wrap",
|
||||
attrs: {
|
||||
role: "tabpanel",
|
||||
"aria-hidden": !_vm.isActive,
|
||||
"aria-labelledby": "el-collapse-head-" + _vm.id,
|
||||
id: "el-collapse-content-" + _vm.id
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{ staticClass: "el-collapse-item__content" },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
]
|
||||
)
|
||||
])
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue?vue&type=template&id=2d05faac&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/transitions/collapse-transition"
|
||||
var collapse_transition_ = __webpack_require__(23);
|
||||
var collapse_transition_default = /*#__PURE__*/__webpack_require__.n(collapse_transition_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
||||
var util_ = __webpack_require__(4);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse-item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var collapse_itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElCollapseItem',
|
||||
|
||||
componentName: 'ElCollapseItem',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
components: { ElCollapseTransition: collapse_transition_default.a },
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
contentWrapStyle: {
|
||||
height: 'auto',
|
||||
display: 'block'
|
||||
},
|
||||
contentHeight: 0,
|
||||
focusing: false,
|
||||
isClick: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
inject: ['collapse'],
|
||||
|
||||
props: {
|
||||
title: String,
|
||||
name: {
|
||||
type: [String, Number],
|
||||
default: function _default() {
|
||||
return this._uid;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
isActive: function isActive() {
|
||||
return this.collapse.activeNames.indexOf(this.name) > -1;
|
||||
},
|
||||
id: function id() {
|
||||
return Object(util_["generateId"])();
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleFocus: function handleFocus() {
|
||||
var _this = this;
|
||||
|
||||
setTimeout(function () {
|
||||
if (!_this.isClick) {
|
||||
_this.focusing = true;
|
||||
} else {
|
||||
_this.isClick = false;
|
||||
}
|
||||
}, 50);
|
||||
},
|
||||
handleHeaderClick: function handleHeaderClick() {
|
||||
this.dispatch('ElCollapse', 'item-click', this);
|
||||
this.focusing = false;
|
||||
this.isClick = true;
|
||||
},
|
||||
handleEnterClick: function handleEnterClick() {
|
||||
this.dispatch('ElCollapse', 'item-click', this);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_collapse_itemvue_type_script_lang_js_ = (collapse_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse-item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_collapse_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/collapse/src/collapse-item.vue"
|
||||
/* harmony default export */ var collapse_item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/collapse-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
collapse_item.install = function (Vue) {
|
||||
Vue.component(collapse_item.name, collapse_item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_collapse_item = __webpack_exports__["default"] = (collapse_item);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 23:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/transitions/collapse-transition");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/util");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+328
@@ -0,0 +1,328 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 100);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 100:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse.vue?vue&type=template&id=461d57f4&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-collapse",
|
||||
attrs: { role: "tablist", "aria-multiselectable": "true" }
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse.vue?vue&type=template&id=461d57f4&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/collapse/src/collapse.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var collapsevue_type_script_lang_js_ = ({
|
||||
name: 'ElCollapse',
|
||||
|
||||
componentName: 'ElCollapse',
|
||||
|
||||
props: {
|
||||
accordion: Boolean,
|
||||
value: {
|
||||
type: [Array, String, Number],
|
||||
default: function _default() {
|
||||
return [];
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
activeNames: [].concat(this.value)
|
||||
};
|
||||
},
|
||||
provide: function provide() {
|
||||
return {
|
||||
collapse: this
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
value: function value(_value) {
|
||||
this.activeNames = [].concat(_value);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
setActiveNames: function setActiveNames(activeNames) {
|
||||
activeNames = [].concat(activeNames);
|
||||
var value = this.accordion ? activeNames[0] : activeNames;
|
||||
this.activeNames = activeNames;
|
||||
this.$emit('input', value);
|
||||
this.$emit('change', value);
|
||||
},
|
||||
handleItemClick: function handleItemClick(item) {
|
||||
if (this.accordion) {
|
||||
this.setActiveNames((this.activeNames[0] || this.activeNames[0] === 0) && this.activeNames[0] === item.name ? '' : item.name);
|
||||
} else {
|
||||
var activeNames = this.activeNames.slice(0);
|
||||
var index = activeNames.indexOf(item.name);
|
||||
|
||||
if (index > -1) {
|
||||
activeNames.splice(index, 1);
|
||||
} else {
|
||||
activeNames.push(item.name);
|
||||
}
|
||||
this.setActiveNames(activeNames);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.$on('item-click', this.handleItemClick);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_collapsevue_type_script_lang_js_ = (collapsevue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/collapse/src/collapse.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_collapsevue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/collapse/src/collapse.vue"
|
||||
/* harmony default export */ var collapse = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/collapse/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
collapse.install = function (Vue) {
|
||||
Vue.component(collapse.name, collapse);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_collapse = __webpack_exports__["default"] = (collapse);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+1956
File diff suppressed because it is too large
Load Diff
+287
@@ -0,0 +1,287 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 102);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 102:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"section",
|
||||
{ staticClass: "el-container", class: { "is-vertical": _vm.isVertical } },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=template&id=5bf181d4&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/container/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElContainer',
|
||||
|
||||
componentName: 'ElContainer',
|
||||
|
||||
props: {
|
||||
direction: String
|
||||
},
|
||||
|
||||
computed: {
|
||||
isVertical: function isVertical() {
|
||||
if (this.direction === 'vertical') {
|
||||
return true;
|
||||
} else if (this.direction === 'horizontal') {
|
||||
return false;
|
||||
}
|
||||
return this.$slots && this.$slots.default ? this.$slots.default.some(function (vnode) {
|
||||
var tag = vnode.componentOptions && vnode.componentOptions.tag;
|
||||
return tag === 'el-header' || tag === 'el-footer';
|
||||
}) : false;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/container/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/container/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/container/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/container/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var container = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+5986
File diff suppressed because it is too large
Load Diff
+585
@@ -0,0 +1,585 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 68);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/migrating");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/popup");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 68:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=template&id=60140e62&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"transition",
|
||||
{
|
||||
attrs: { name: "dialog-fade" },
|
||||
on: { "after-enter": _vm.afterEnter, "after-leave": _vm.afterLeave }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
staticClass: "el-dialog__wrapper",
|
||||
on: {
|
||||
click: function($event) {
|
||||
if ($event.target !== $event.currentTarget) {
|
||||
return null
|
||||
}
|
||||
return _vm.handleWrapperClick($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
ref: "dialog",
|
||||
staticClass: "el-dialog",
|
||||
class: [
|
||||
{
|
||||
"is-fullscreen": _vm.fullscreen,
|
||||
"el-dialog--center": _vm.center
|
||||
},
|
||||
_vm.customClass
|
||||
],
|
||||
style: _vm.style,
|
||||
attrs: {
|
||||
role: "dialog",
|
||||
"aria-modal": "true",
|
||||
"aria-label": _vm.title || "dialog"
|
||||
}
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{ staticClass: "el-dialog__header" },
|
||||
[
|
||||
_vm._t("title", [
|
||||
_c("span", { staticClass: "el-dialog__title" }, [
|
||||
_vm._v(_vm._s(_vm.title))
|
||||
])
|
||||
]),
|
||||
_vm.showClose
|
||||
? _c(
|
||||
"button",
|
||||
{
|
||||
staticClass: "el-dialog__headerbtn",
|
||||
attrs: { type: "button", "aria-label": "Close" },
|
||||
on: { click: _vm.handleClose }
|
||||
},
|
||||
[
|
||||
_c("i", {
|
||||
staticClass:
|
||||
"el-dialog__close el-icon el-icon-close"
|
||||
})
|
||||
]
|
||||
)
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm.rendered
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "el-dialog__body" },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.$slots.footer
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "el-dialog__footer" },
|
||||
[_vm._t("footer")],
|
||||
2
|
||||
)
|
||||
: _vm._e()
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=template&id=60140e62&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
||||
var popup_ = __webpack_require__(13);
|
||||
var popup_default = /*#__PURE__*/__webpack_require__.n(popup_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
||||
var migrating_ = __webpack_require__(10);
|
||||
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dialog/src/component.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var componentvue_type_script_lang_js_ = ({
|
||||
name: 'ElDialog',
|
||||
|
||||
mixins: [popup_default.a, emitter_default.a, migrating_default.a],
|
||||
|
||||
props: {
|
||||
title: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
modal: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
modalAppendToBody: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
appendToBody: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
|
||||
lockScroll: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
closeOnClickModal: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
closeOnPressEscape: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
showClose: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
|
||||
width: String,
|
||||
|
||||
fullscreen: Boolean,
|
||||
|
||||
customClass: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
|
||||
top: {
|
||||
type: String,
|
||||
default: '15vh'
|
||||
},
|
||||
beforeClose: Function,
|
||||
center: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
closed: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
visible: function visible(val) {
|
||||
var _this = this;
|
||||
|
||||
if (val) {
|
||||
this.closed = false;
|
||||
this.$emit('open');
|
||||
this.$el.addEventListener('scroll', this.updatePopper);
|
||||
this.$nextTick(function () {
|
||||
_this.$refs.dialog.scrollTop = 0;
|
||||
});
|
||||
if (this.appendToBody) {
|
||||
document.body.appendChild(this.$el);
|
||||
}
|
||||
} else {
|
||||
this.$el.removeEventListener('scroll', this.updatePopper);
|
||||
if (!this.closed) this.$emit('close');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
computed: {
|
||||
style: function style() {
|
||||
var style = {};
|
||||
if (!this.fullscreen) {
|
||||
style.marginTop = this.top;
|
||||
if (this.width) {
|
||||
style.width = this.width;
|
||||
}
|
||||
}
|
||||
return style;
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {
|
||||
'size': 'size is removed.'
|
||||
}
|
||||
};
|
||||
},
|
||||
handleWrapperClick: function handleWrapperClick() {
|
||||
if (!this.closeOnClickModal) return;
|
||||
this.handleClose();
|
||||
},
|
||||
handleClose: function handleClose() {
|
||||
if (typeof this.beforeClose === 'function') {
|
||||
this.beforeClose(this.hide);
|
||||
} else {
|
||||
this.hide();
|
||||
}
|
||||
},
|
||||
hide: function hide(cancel) {
|
||||
if (cancel !== false) {
|
||||
this.$emit('update:visible', false);
|
||||
this.$emit('close');
|
||||
this.closed = true;
|
||||
}
|
||||
},
|
||||
updatePopper: function updatePopper() {
|
||||
this.broadcast('ElSelectDropdown', 'updatePopper');
|
||||
this.broadcast('ElDropdownMenu', 'updatePopper');
|
||||
},
|
||||
afterEnter: function afterEnter() {
|
||||
this.$emit('opened');
|
||||
},
|
||||
afterLeave: function afterLeave() {
|
||||
this.$emit('closed');
|
||||
}
|
||||
},
|
||||
|
||||
mounted: function mounted() {
|
||||
if (this.visible) {
|
||||
this.rendered = true;
|
||||
this.open();
|
||||
if (this.appendToBody) {
|
||||
document.body.appendChild(this.$el);
|
||||
}
|
||||
}
|
||||
},
|
||||
destroyed: function destroyed() {
|
||||
// if appendToBody is true, remove DOM node after destroy
|
||||
if (this.appendToBody && this.$el && this.$el.parentNode) {
|
||||
this.$el.parentNode.removeChild(this.$el);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/dialog/src/component.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_componentvue_type_script_lang_js_ = (componentvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dialog/src/component.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_componentvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/dialog/src/component.vue"
|
||||
/* harmony default export */ var src_component = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/dialog/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
src_component.install = function (Vue) {
|
||||
Vue.component(src_component.name, src_component);
|
||||
};
|
||||
|
||||
/* harmony default export */ var dialog = __webpack_exports__["default"] = (src_component);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _normalizeWheel = require('normalize-wheel');
|
||||
|
||||
var _normalizeWheel2 = _interopRequireDefault(_normalizeWheel);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var isFirefox = typeof navigator !== 'undefined' && navigator.userAgent.toLowerCase().indexOf('firefox') > -1;
|
||||
|
||||
var mousewheel = function mousewheel(element, callback) {
|
||||
if (element && element.addEventListener) {
|
||||
element.addEventListener(isFirefox ? 'DOMMouseScroll' : 'mousewheel', function (event) {
|
||||
var normalized = (0, _normalizeWheel2.default)(event);
|
||||
callback && callback.apply(this, [event, normalized]);
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
exports.default = {
|
||||
bind: function bind(el, binding) {
|
||||
mousewheel(el, binding.value);
|
||||
}
|
||||
};
|
||||
+30
@@ -0,0 +1,30 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _dom = require('element-ui/lib/utils/dom');
|
||||
|
||||
exports.default = {
|
||||
bind: function bind(el, binding, vnode) {
|
||||
var interval = null;
|
||||
var startTime = void 0;
|
||||
var handler = function handler() {
|
||||
return vnode.context[binding.expression].apply();
|
||||
};
|
||||
var clear = function clear() {
|
||||
if (new Date() - startTime < 100) {
|
||||
handler();
|
||||
}
|
||||
clearInterval(interval);
|
||||
interval = null;
|
||||
};
|
||||
|
||||
(0, _dom.on)(el, 'mousedown', function (e) {
|
||||
if (e.button !== 0) return;
|
||||
startTime = new Date();
|
||||
(0, _dom.once)(document, 'mouseup', clear);
|
||||
clearInterval(interval);
|
||||
interval = setInterval(handler, 100);
|
||||
});
|
||||
}
|
||||
};
|
||||
+315
@@ -0,0 +1,315 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 70);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 70:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"li",
|
||||
{
|
||||
staticClass: "el-dropdown-menu__item",
|
||||
class: {
|
||||
"is-disabled": _vm.disabled,
|
||||
"el-dropdown-menu__item--divided": _vm.divided
|
||||
},
|
||||
attrs: {
|
||||
"aria-disabled": _vm.disabled,
|
||||
tabindex: _vm.disabled ? null : -1
|
||||
},
|
||||
on: { click: _vm.handleClick }
|
||||
},
|
||||
[_vm.icon ? _c("i", { class: _vm.icon }) : _vm._e(), _vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=template&id=6359102a&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var dropdown_itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElDropdownItem',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
props: {
|
||||
command: {},
|
||||
disabled: Boolean,
|
||||
divided: Boolean,
|
||||
icon: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleClick: function handleClick(e) {
|
||||
this.dispatch('ElDropdown', 'menu-item-click', [this.command, this]);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_dropdown_itemvue_type_script_lang_js_ = (dropdown_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_dropdown_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/dropdown/src/dropdown-item.vue"
|
||||
/* harmony default export */ var dropdown_item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/dropdown-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
dropdown_item.install = function (Vue) {
|
||||
Vue.component(dropdown_item.name, dropdown_item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_dropdown_item = __webpack_exports__["default"] = (dropdown_item);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+347
@@ -0,0 +1,347 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 69);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/vue-popper");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 69:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"transition",
|
||||
{ attrs: { name: "el-zoom-in-top" }, on: { "after-leave": _vm.doDestroy } },
|
||||
[
|
||||
_c(
|
||||
"ul",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.showPopper,
|
||||
expression: "showPopper"
|
||||
}
|
||||
],
|
||||
staticClass: "el-dropdown-menu el-popper",
|
||||
class: [_vm.size && "el-dropdown-menu--" + _vm.size]
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=template&id=0da6b714&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/vue-popper"
|
||||
var vue_popper_ = __webpack_require__(5);
|
||||
var vue_popper_default = /*#__PURE__*/__webpack_require__.n(vue_popper_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var dropdown_menuvue_type_script_lang_js_ = ({
|
||||
name: 'ElDropdownMenu',
|
||||
|
||||
componentName: 'ElDropdownMenu',
|
||||
|
||||
mixins: [vue_popper_default.a],
|
||||
|
||||
props: {
|
||||
visibleArrow: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
arrowOffset: {
|
||||
type: Number,
|
||||
default: 0
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
size: this.dropdown.dropdownSize
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
inject: ['dropdown'],
|
||||
|
||||
created: function created() {
|
||||
var _this = this;
|
||||
|
||||
this.$on('updatePopper', function () {
|
||||
if (_this.showPopper) _this.updatePopper();
|
||||
});
|
||||
this.$on('visible', function (val) {
|
||||
_this.showPopper = val;
|
||||
});
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.$parent.popperElm = this.popperElm = this.$el;
|
||||
this.referenceElm = this.$parent.$el;
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
'dropdown.placement': {
|
||||
immediate: true,
|
||||
handler: function handler(val) {
|
||||
this.currentPlacement = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_dropdown_menuvue_type_script_lang_js_ = (dropdown_menuvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown-menu.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_dropdown_menuvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/dropdown/src/dropdown-menu.vue"
|
||||
/* harmony default export */ var dropdown_menu = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/dropdown-menu/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
dropdown_menu.install = function (Vue) {
|
||||
Vue.component(dropdown_menu.name, dropdown_menu);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_dropdown_menu = __webpack_exports__["default"] = (dropdown_menu);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+614
@@ -0,0 +1,614 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 109);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/migrating");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 109:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/clickoutside"
|
||||
var clickoutside_ = __webpack_require__(11);
|
||||
var clickoutside_default = /*#__PURE__*/__webpack_require__.n(clickoutside_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
||||
var migrating_ = __webpack_require__(10);
|
||||
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/button"
|
||||
var button_ = __webpack_require__(18);
|
||||
var button_default = /*#__PURE__*/__webpack_require__.n(button_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/button-group"
|
||||
var button_group_ = __webpack_require__(41);
|
||||
var button_group_default = /*#__PURE__*/__webpack_require__.n(button_group_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
||||
var util_ = __webpack_require__(4);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var dropdownvue_type_script_lang_js_ = ({
|
||||
name: 'ElDropdown',
|
||||
|
||||
componentName: 'ElDropdown',
|
||||
|
||||
mixins: [emitter_default.a, migrating_default.a],
|
||||
|
||||
directives: { Clickoutside: clickoutside_default.a },
|
||||
|
||||
components: {
|
||||
ElButton: button_default.a,
|
||||
ElButtonGroup: button_group_default.a
|
||||
},
|
||||
|
||||
provide: function provide() {
|
||||
return {
|
||||
dropdown: this
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
props: {
|
||||
trigger: {
|
||||
type: String,
|
||||
default: 'hover'
|
||||
},
|
||||
type: String,
|
||||
size: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
splitButton: Boolean,
|
||||
hideOnClick: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
placement: {
|
||||
type: String,
|
||||
default: 'bottom-end'
|
||||
},
|
||||
visibleArrow: {
|
||||
default: true
|
||||
},
|
||||
showTimeout: {
|
||||
type: Number,
|
||||
default: 250
|
||||
},
|
||||
hideTimeout: {
|
||||
type: Number,
|
||||
default: 150
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
timeout: null,
|
||||
visible: false,
|
||||
triggerElm: null,
|
||||
menuItems: null,
|
||||
menuItemsArray: null,
|
||||
dropdownElm: null,
|
||||
focusing: false,
|
||||
listId: 'dropdown-menu-' + Object(util_["generateId"])()
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
dropdownSize: function dropdownSize() {
|
||||
return this.size || (this.$ELEMENT || {}).size;
|
||||
}
|
||||
},
|
||||
|
||||
mounted: function mounted() {
|
||||
this.$on('menu-item-click', this.handleMenuItemClick);
|
||||
this.initEvent();
|
||||
this.initAria();
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
visible: function visible(val) {
|
||||
this.broadcast('ElDropdownMenu', 'visible', val);
|
||||
this.$emit('visible-change', val);
|
||||
},
|
||||
focusing: function focusing(val) {
|
||||
var selfDefine = this.$el.querySelector('.el-dropdown-selfdefine');
|
||||
if (selfDefine) {
|
||||
// 自定义
|
||||
if (val) {
|
||||
selfDefine.className += ' focusing';
|
||||
} else {
|
||||
selfDefine.className = selfDefine.className.replace('focusing', '');
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {
|
||||
'menu-align': 'menu-align is renamed to placement.'
|
||||
}
|
||||
};
|
||||
},
|
||||
show: function show() {
|
||||
var _this = this;
|
||||
|
||||
if (this.triggerElm.disabled) return;
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = setTimeout(function () {
|
||||
_this.visible = true;
|
||||
}, this.trigger === 'click' ? 0 : this.showTimeout);
|
||||
},
|
||||
hide: function hide() {
|
||||
var _this2 = this;
|
||||
|
||||
if (this.triggerElm.disabled) return;
|
||||
this.removeTabindex();
|
||||
this.resetTabindex(this.triggerElm);
|
||||
clearTimeout(this.timeout);
|
||||
this.timeout = setTimeout(function () {
|
||||
_this2.visible = false;
|
||||
}, this.trigger === 'click' ? 0 : this.hideTimeout);
|
||||
},
|
||||
handleClick: function handleClick() {
|
||||
if (this.triggerElm.disabled) return;
|
||||
if (this.visible) {
|
||||
this.hide();
|
||||
} else {
|
||||
this.show();
|
||||
}
|
||||
},
|
||||
handleTriggerKeyDown: function handleTriggerKeyDown(ev) {
|
||||
var keyCode = ev.keyCode;
|
||||
if ([38, 40].indexOf(keyCode) > -1) {
|
||||
// up/down
|
||||
this.removeTabindex();
|
||||
this.resetTabindex(this.menuItems[0]);
|
||||
this.menuItems[0].focus();
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
} else if (keyCode === 13) {
|
||||
// space enter选中
|
||||
this.handleClick();
|
||||
} else if ([9, 27].indexOf(keyCode) > -1) {
|
||||
// tab || esc
|
||||
this.hide();
|
||||
}
|
||||
return;
|
||||
},
|
||||
handleItemKeyDown: function handleItemKeyDown(ev) {
|
||||
var keyCode = ev.keyCode;
|
||||
var target = ev.target;
|
||||
var currentIndex = this.menuItemsArray.indexOf(target);
|
||||
var max = this.menuItemsArray.length - 1;
|
||||
var nextIndex = void 0;
|
||||
if ([38, 40].indexOf(keyCode) > -1) {
|
||||
// up/down
|
||||
if (keyCode === 38) {
|
||||
// up
|
||||
nextIndex = currentIndex !== 0 ? currentIndex - 1 : 0;
|
||||
} else {
|
||||
// down
|
||||
nextIndex = currentIndex < max ? currentIndex + 1 : max;
|
||||
}
|
||||
this.removeTabindex();
|
||||
this.resetTabindex(this.menuItems[nextIndex]);
|
||||
this.menuItems[nextIndex].focus();
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
} else if (keyCode === 13) {
|
||||
// enter选中
|
||||
this.triggerElm.focus();
|
||||
target.click();
|
||||
if (this.hideOnClick) {
|
||||
// click关闭
|
||||
this.visible = false;
|
||||
}
|
||||
} else if ([9, 27].indexOf(keyCode) > -1) {
|
||||
// tab // esc
|
||||
this.hide();
|
||||
this.triggerElm.focus();
|
||||
}
|
||||
return;
|
||||
},
|
||||
resetTabindex: function resetTabindex(ele) {
|
||||
// 下次tab时组件聚焦元素
|
||||
this.removeTabindex();
|
||||
ele.setAttribute('tabindex', '0'); // 下次期望的聚焦元素
|
||||
},
|
||||
removeTabindex: function removeTabindex() {
|
||||
this.triggerElm.setAttribute('tabindex', '-1');
|
||||
this.menuItemsArray.forEach(function (item) {
|
||||
item.setAttribute('tabindex', '-1');
|
||||
});
|
||||
},
|
||||
initAria: function initAria() {
|
||||
this.dropdownElm.setAttribute('id', this.listId);
|
||||
this.triggerElm.setAttribute('aria-haspopup', 'list');
|
||||
this.triggerElm.setAttribute('aria-controls', this.listId);
|
||||
this.menuItems = this.dropdownElm.querySelectorAll("[tabindex='-1']");
|
||||
this.menuItemsArray = Array.prototype.slice.call(this.menuItems);
|
||||
|
||||
if (!this.splitButton) {
|
||||
// 自定义
|
||||
this.triggerElm.setAttribute('role', 'button');
|
||||
this.triggerElm.setAttribute('tabindex', '0');
|
||||
this.triggerElm.setAttribute('class', (this.triggerElm.getAttribute('class') || '') + ' el-dropdown-selfdefine'); // 控制
|
||||
}
|
||||
},
|
||||
initEvent: function initEvent() {
|
||||
var _this3 = this;
|
||||
|
||||
var trigger = this.trigger,
|
||||
show = this.show,
|
||||
hide = this.hide,
|
||||
handleClick = this.handleClick,
|
||||
splitButton = this.splitButton,
|
||||
handleTriggerKeyDown = this.handleTriggerKeyDown,
|
||||
handleItemKeyDown = this.handleItemKeyDown;
|
||||
|
||||
this.triggerElm = splitButton ? this.$refs.trigger.$el : this.$slots.default[0].elm;
|
||||
|
||||
var dropdownElm = this.dropdownElm = this.$slots.dropdown[0].elm;
|
||||
|
||||
this.triggerElm.addEventListener('keydown', handleTriggerKeyDown); // triggerElm keydown
|
||||
dropdownElm.addEventListener('keydown', handleItemKeyDown, true); // item keydown
|
||||
// 控制自定义元素的样式
|
||||
if (!splitButton) {
|
||||
this.triggerElm.addEventListener('focus', function () {
|
||||
_this3.focusing = true;
|
||||
});
|
||||
this.triggerElm.addEventListener('blur', function () {
|
||||
_this3.focusing = false;
|
||||
});
|
||||
this.triggerElm.addEventListener('click', function () {
|
||||
_this3.focusing = false;
|
||||
});
|
||||
}
|
||||
if (trigger === 'hover') {
|
||||
this.triggerElm.addEventListener('mouseenter', show);
|
||||
this.triggerElm.addEventListener('mouseleave', hide);
|
||||
dropdownElm.addEventListener('mouseenter', show);
|
||||
dropdownElm.addEventListener('mouseleave', hide);
|
||||
} else if (trigger === 'click') {
|
||||
this.triggerElm.addEventListener('click', handleClick);
|
||||
}
|
||||
},
|
||||
handleMenuItemClick: function handleMenuItemClick(command, instance) {
|
||||
if (this.hideOnClick) {
|
||||
this.visible = false;
|
||||
}
|
||||
this.$emit('command', command, instance);
|
||||
},
|
||||
focus: function focus() {
|
||||
this.triggerElm.focus && this.triggerElm.focus();
|
||||
}
|
||||
},
|
||||
|
||||
render: function render(h) {
|
||||
var _this4 = this;
|
||||
|
||||
var hide = this.hide,
|
||||
splitButton = this.splitButton,
|
||||
type = this.type,
|
||||
dropdownSize = this.dropdownSize;
|
||||
|
||||
|
||||
var handleMainButtonClick = function handleMainButtonClick(event) {
|
||||
_this4.$emit('click', event);
|
||||
hide();
|
||||
};
|
||||
|
||||
var triggerElm = !splitButton ? this.$slots.default : h('el-button-group', [h(
|
||||
'el-button',
|
||||
{
|
||||
attrs: { type: type, size: dropdownSize },
|
||||
nativeOn: {
|
||||
'click': handleMainButtonClick
|
||||
}
|
||||
},
|
||||
[this.$slots.default]
|
||||
), h(
|
||||
'el-button',
|
||||
{ ref: 'trigger', attrs: { type: type, size: dropdownSize },
|
||||
'class': 'el-dropdown__caret-button' },
|
||||
[h('i', { 'class': 'el-dropdown__icon el-icon-arrow-down' })]
|
||||
)]);
|
||||
|
||||
return h(
|
||||
'div',
|
||||
{ 'class': 'el-dropdown', directives: [{
|
||||
name: 'clickoutside',
|
||||
value: hide
|
||||
}]
|
||||
},
|
||||
[triggerElm, this.$slots.dropdown]
|
||||
);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_dropdownvue_type_script_lang_js_ = (dropdownvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/dropdown/src/dropdown.vue
|
||||
var render, staticRenderFns
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_dropdownvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/dropdown/src/dropdown.vue"
|
||||
/* harmony default export */ var dropdown = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/dropdown/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
dropdown.install = function (Vue) {
|
||||
Vue.component(dropdown.name, dropdown);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_dropdown = __webpack_exports__["default"] = (dropdown);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 11:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/clickoutside");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 18:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/button");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/util");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 41:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/button-group");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+35651
File diff suppressed because it is too large
Load Diff
+276
@@ -0,0 +1,276 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 106);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 106:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/footer/src/main.vue?vue&type=template&id=80210338&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"footer",
|
||||
{ staticClass: "el-footer", style: { height: _vm.height } },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/footer/src/main.vue?vue&type=template&id=80210338&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/footer/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElFooter',
|
||||
|
||||
componentName: 'ElFooter',
|
||||
|
||||
props: {
|
||||
height: {
|
||||
type: String,
|
||||
default: '60px'
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/footer/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/footer/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/footer/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/footer/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var footer = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+673
@@ -0,0 +1,673 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 87);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 4:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/util");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 44:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("async-validator");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/merge");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 87:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-form-item",
|
||||
class: [
|
||||
{
|
||||
"el-form-item--feedback": _vm.elForm && _vm.elForm.statusIcon,
|
||||
"is-error": _vm.validateState === "error",
|
||||
"is-validating": _vm.validateState === "validating",
|
||||
"is-success": _vm.validateState === "success",
|
||||
"is-required": _vm.isRequired || _vm.required,
|
||||
"is-no-asterisk": _vm.elForm && _vm.elForm.hideRequiredAsterisk
|
||||
},
|
||||
_vm.sizeClass ? "el-form-item--" + _vm.sizeClass : ""
|
||||
]
|
||||
},
|
||||
[
|
||||
_vm.label || _vm.$slots.label
|
||||
? _c(
|
||||
"label",
|
||||
{
|
||||
staticClass: "el-form-item__label",
|
||||
style: _vm.labelStyle,
|
||||
attrs: { for: _vm.labelFor }
|
||||
},
|
||||
[
|
||||
_vm._t("label", [
|
||||
_vm._v(_vm._s(_vm.label + _vm.form.labelSuffix))
|
||||
])
|
||||
],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_c(
|
||||
"div",
|
||||
{ staticClass: "el-form-item__content", style: _vm.contentStyle },
|
||||
[
|
||||
_vm._t("default"),
|
||||
_c(
|
||||
"transition",
|
||||
{ attrs: { name: "el-zoom-in-top" } },
|
||||
[
|
||||
_vm.validateState === "error" &&
|
||||
_vm.showMessage &&
|
||||
_vm.form.showMessage
|
||||
? _vm._t(
|
||||
"error",
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-form-item__error",
|
||||
class: {
|
||||
"el-form-item__error--inline":
|
||||
typeof _vm.inlineMessage === "boolean"
|
||||
? _vm.inlineMessage
|
||||
: (_vm.elForm && _vm.elForm.inlineMessage) ||
|
||||
false
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm._v(
|
||||
"\n " +
|
||||
_vm._s(_vm.validateMessage) +
|
||||
"\n "
|
||||
)
|
||||
]
|
||||
)
|
||||
],
|
||||
{ error: _vm.validateMessage }
|
||||
)
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
)
|
||||
],
|
||||
2
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=template&id=b6f3db6c&
|
||||
|
||||
// EXTERNAL MODULE: external "async-validator"
|
||||
var external_async_validator_ = __webpack_require__(44);
|
||||
var external_async_validator_default = /*#__PURE__*/__webpack_require__.n(external_async_validator_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/merge"
|
||||
var merge_ = __webpack_require__(8);
|
||||
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/util"
|
||||
var util_ = __webpack_require__(4);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form-item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var form_itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElFormItem',
|
||||
|
||||
componentName: 'ElFormItem',
|
||||
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
provide: function provide() {
|
||||
return {
|
||||
elFormItem: this
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
inject: ['elForm'],
|
||||
|
||||
props: {
|
||||
label: String,
|
||||
labelWidth: String,
|
||||
prop: String,
|
||||
required: {
|
||||
type: Boolean,
|
||||
default: undefined
|
||||
},
|
||||
rules: [Object, Array],
|
||||
error: String,
|
||||
validateStatus: String,
|
||||
for: String,
|
||||
inlineMessage: {
|
||||
type: [String, Boolean],
|
||||
default: ''
|
||||
},
|
||||
showMessage: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
size: String
|
||||
},
|
||||
watch: {
|
||||
error: {
|
||||
immediate: true,
|
||||
handler: function handler(value) {
|
||||
this.validateMessage = value;
|
||||
this.validateState = value ? 'error' : '';
|
||||
}
|
||||
},
|
||||
validateStatus: function validateStatus(value) {
|
||||
this.validateState = value;
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
labelFor: function labelFor() {
|
||||
return this.for || this.prop;
|
||||
},
|
||||
labelStyle: function labelStyle() {
|
||||
var ret = {};
|
||||
if (this.form.labelPosition === 'top') return ret;
|
||||
var labelWidth = this.labelWidth || this.form.labelWidth;
|
||||
if (labelWidth) {
|
||||
ret.width = labelWidth;
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
contentStyle: function contentStyle() {
|
||||
var ret = {};
|
||||
var label = this.label;
|
||||
if (this.form.labelPosition === 'top' || this.form.inline) return ret;
|
||||
if (!label && !this.labelWidth && this.isNested) return ret;
|
||||
var labelWidth = this.labelWidth || this.form.labelWidth;
|
||||
if (labelWidth) {
|
||||
ret.marginLeft = labelWidth;
|
||||
}
|
||||
return ret;
|
||||
},
|
||||
form: function form() {
|
||||
var parent = this.$parent;
|
||||
var parentName = parent.$options.componentName;
|
||||
while (parentName !== 'ElForm') {
|
||||
if (parentName === 'ElFormItem') {
|
||||
this.isNested = true;
|
||||
}
|
||||
parent = parent.$parent;
|
||||
parentName = parent.$options.componentName;
|
||||
}
|
||||
return parent;
|
||||
},
|
||||
fieldValue: function fieldValue() {
|
||||
var model = this.form.model;
|
||||
if (!model || !this.prop) {
|
||||
return;
|
||||
}
|
||||
|
||||
var path = this.prop;
|
||||
if (path.indexOf(':') !== -1) {
|
||||
path = path.replace(/:/, '.');
|
||||
}
|
||||
|
||||
return Object(util_["getPropByPath"])(model, path, true).v;
|
||||
},
|
||||
isRequired: function isRequired() {
|
||||
var rules = this.getRules();
|
||||
var isRequired = false;
|
||||
|
||||
if (rules && rules.length) {
|
||||
rules.every(function (rule) {
|
||||
if (rule.required) {
|
||||
isRequired = true;
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
});
|
||||
}
|
||||
return isRequired;
|
||||
},
|
||||
_formSize: function _formSize() {
|
||||
return this.elForm.size;
|
||||
},
|
||||
elFormItemSize: function elFormItemSize() {
|
||||
return this.size || this._formSize;
|
||||
},
|
||||
sizeClass: function sizeClass() {
|
||||
return this.elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
validateState: '',
|
||||
validateMessage: '',
|
||||
validateDisabled: false,
|
||||
validator: {},
|
||||
isNested: false
|
||||
};
|
||||
},
|
||||
|
||||
methods: {
|
||||
validate: function validate(trigger) {
|
||||
var _this = this;
|
||||
|
||||
var callback = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : util_["noop"];
|
||||
|
||||
this.validateDisabled = false;
|
||||
var rules = this.getFilteredRule(trigger);
|
||||
if ((!rules || rules.length === 0) && this.required === undefined) {
|
||||
callback();
|
||||
return true;
|
||||
}
|
||||
|
||||
this.validateState = 'validating';
|
||||
|
||||
var descriptor = {};
|
||||
if (rules && rules.length > 0) {
|
||||
rules.forEach(function (rule) {
|
||||
delete rule.trigger;
|
||||
});
|
||||
}
|
||||
descriptor[this.prop] = rules;
|
||||
|
||||
var validator = new external_async_validator_default.a(descriptor);
|
||||
var model = {};
|
||||
|
||||
model[this.prop] = this.fieldValue;
|
||||
|
||||
validator.validate(model, { firstFields: true }, function (errors, invalidFields) {
|
||||
_this.validateState = !errors ? 'success' : 'error';
|
||||
_this.validateMessage = errors ? errors[0].message : '';
|
||||
|
||||
callback(_this.validateMessage, invalidFields);
|
||||
_this.elForm && _this.elForm.$emit('validate', _this.prop, !errors, _this.validateMessage || null);
|
||||
});
|
||||
},
|
||||
clearValidate: function clearValidate() {
|
||||
this.validateState = '';
|
||||
this.validateMessage = '';
|
||||
this.validateDisabled = false;
|
||||
},
|
||||
resetField: function resetField() {
|
||||
this.validateState = '';
|
||||
this.validateMessage = '';
|
||||
|
||||
var model = this.form.model;
|
||||
var value = this.fieldValue;
|
||||
var path = this.prop;
|
||||
if (path.indexOf(':') !== -1) {
|
||||
path = path.replace(/:/, '.');
|
||||
}
|
||||
|
||||
var prop = Object(util_["getPropByPath"])(model, path, true);
|
||||
|
||||
this.validateDisabled = true;
|
||||
if (Array.isArray(value)) {
|
||||
prop.o[prop.k] = [].concat(this.initialValue);
|
||||
} else {
|
||||
prop.o[prop.k] = this.initialValue;
|
||||
}
|
||||
|
||||
this.broadcast('ElTimeSelect', 'fieldReset', this.initialValue);
|
||||
},
|
||||
getRules: function getRules() {
|
||||
var formRules = this.form.rules;
|
||||
var selfRules = this.rules;
|
||||
var requiredRule = this.required !== undefined ? { required: !!this.required } : [];
|
||||
|
||||
var prop = Object(util_["getPropByPath"])(formRules, this.prop || '');
|
||||
formRules = formRules ? prop.o[this.prop || ''] || prop.v : [];
|
||||
|
||||
return [].concat(selfRules || formRules || []).concat(requiredRule);
|
||||
},
|
||||
getFilteredRule: function getFilteredRule(trigger) {
|
||||
var rules = this.getRules();
|
||||
|
||||
return rules.filter(function (rule) {
|
||||
if (!rule.trigger || trigger === '') return true;
|
||||
if (Array.isArray(rule.trigger)) {
|
||||
return rule.trigger.indexOf(trigger) > -1;
|
||||
} else {
|
||||
return rule.trigger === trigger;
|
||||
}
|
||||
}).map(function (rule) {
|
||||
return merge_default()({}, rule);
|
||||
});
|
||||
},
|
||||
onFieldBlur: function onFieldBlur() {
|
||||
this.validate('blur');
|
||||
},
|
||||
onFieldChange: function onFieldChange() {
|
||||
if (this.validateDisabled) {
|
||||
this.validateDisabled = false;
|
||||
return;
|
||||
}
|
||||
|
||||
this.validate('change');
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
if (this.prop) {
|
||||
this.dispatch('ElForm', 'el.form.addField', [this]);
|
||||
|
||||
var initialValue = this.fieldValue;
|
||||
if (Array.isArray(initialValue)) {
|
||||
initialValue = [].concat(initialValue);
|
||||
}
|
||||
Object.defineProperty(this, 'initialValue', {
|
||||
value: initialValue
|
||||
});
|
||||
|
||||
var rules = this.getRules();
|
||||
|
||||
if (rules.length || this.required !== undefined) {
|
||||
this.$on('el.form.blur', this.onFieldBlur);
|
||||
this.$on('el.form.change', this.onFieldChange);
|
||||
}
|
||||
}
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
this.dispatch('ElForm', 'el.form.removeField', [this]);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/form/src/form-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_form_itemvue_type_script_lang_js_ = (form_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/form/src/form-item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_form_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/form/src/form-item.vue"
|
||||
/* harmony default export */ var form_item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/form-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
form_item.install = function (Vue) {
|
||||
Vue.component(form_item.name, form_item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_form_item = __webpack_exports__["default"] = (form_item);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+431
@@ -0,0 +1,431 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 86);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/merge");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 86:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form.vue?vue&type=template&id=a1b5ff34&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"form",
|
||||
{
|
||||
staticClass: "el-form",
|
||||
class: [
|
||||
_vm.labelPosition ? "el-form--label-" + _vm.labelPosition : "",
|
||||
{ "el-form--inline": _vm.inline }
|
||||
]
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/form/src/form.vue?vue&type=template&id=a1b5ff34&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/merge"
|
||||
var merge_ = __webpack_require__(8);
|
||||
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/form/src/form.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var formvue_type_script_lang_js_ = ({
|
||||
name: 'ElForm',
|
||||
|
||||
componentName: 'ElForm',
|
||||
|
||||
provide: function provide() {
|
||||
return {
|
||||
elForm: this
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
props: {
|
||||
model: Object,
|
||||
rules: Object,
|
||||
labelPosition: String,
|
||||
labelWidth: String,
|
||||
labelSuffix: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
inline: Boolean,
|
||||
inlineMessage: Boolean,
|
||||
statusIcon: Boolean,
|
||||
showMessage: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
size: String,
|
||||
disabled: Boolean,
|
||||
validateOnRuleChange: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
hideRequiredAsterisk: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
rules: function rules() {
|
||||
if (this.validateOnRuleChange) {
|
||||
this.validate(function () {});
|
||||
}
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
fields: []
|
||||
};
|
||||
},
|
||||
created: function created() {
|
||||
var _this = this;
|
||||
|
||||
this.$on('el.form.addField', function (field) {
|
||||
if (field) {
|
||||
_this.fields.push(field);
|
||||
}
|
||||
});
|
||||
/* istanbul ignore next */
|
||||
this.$on('el.form.removeField', function (field) {
|
||||
if (field.prop) {
|
||||
_this.fields.splice(_this.fields.indexOf(field), 1);
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
methods: {
|
||||
resetFields: function resetFields() {
|
||||
if (!this.model) {
|
||||
console.warn('[Element Warn][Form]model is required for resetFields to work.');
|
||||
return;
|
||||
}
|
||||
this.fields.forEach(function (field) {
|
||||
field.resetField();
|
||||
});
|
||||
},
|
||||
clearValidate: function clearValidate() {
|
||||
var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
||||
|
||||
var fields = props.length ? typeof props === 'string' ? this.fields.filter(function (field) {
|
||||
return props === field.prop;
|
||||
}) : this.fields.filter(function (field) {
|
||||
return props.indexOf(field.prop) > -1;
|
||||
}) : this.fields;
|
||||
fields.forEach(function (field) {
|
||||
field.clearValidate();
|
||||
});
|
||||
},
|
||||
validate: function validate(callback) {
|
||||
var _this2 = this;
|
||||
|
||||
if (!this.model) {
|
||||
console.warn('[Element Warn][Form]model is required for validate to work!');
|
||||
return;
|
||||
}
|
||||
|
||||
var promise = void 0;
|
||||
// if no callback, return promise
|
||||
if (typeof callback !== 'function' && window.Promise) {
|
||||
promise = new window.Promise(function (resolve, reject) {
|
||||
callback = function callback(valid) {
|
||||
valid ? resolve(valid) : reject(valid);
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
var valid = true;
|
||||
var count = 0;
|
||||
// 如果需要验证的fields为空,调用验证时立刻返回callback
|
||||
if (this.fields.length === 0 && callback) {
|
||||
callback(true);
|
||||
}
|
||||
var invalidFields = {};
|
||||
this.fields.forEach(function (field) {
|
||||
field.validate('', function (message, field) {
|
||||
if (message) {
|
||||
valid = false;
|
||||
}
|
||||
invalidFields = merge_default()({}, invalidFields, field);
|
||||
if (typeof callback === 'function' && ++count === _this2.fields.length) {
|
||||
callback(valid, invalidFields);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
if (promise) {
|
||||
return promise;
|
||||
}
|
||||
},
|
||||
validateField: function validateField(props, cb) {
|
||||
props = [].concat(props);
|
||||
var fields = this.fields.filter(function (field) {
|
||||
return props.indexOf(field.prop) !== -1;
|
||||
});
|
||||
if (!fields.length) {
|
||||
console.warn('[Element Warn]please pass correct props!');
|
||||
return;
|
||||
}
|
||||
|
||||
fields.forEach(function (field) {
|
||||
field.validate('', cb);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/form/src/form.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_formvue_type_script_lang_js_ = (formvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/form/src/form.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_formvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/form/src/form.vue"
|
||||
/* harmony default export */ var src_form = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/form/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
src_form.install = function (Vue) {
|
||||
Vue.component(src_form.name, src_form);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_form = __webpack_exports__["default"] = (src_form);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+276
@@ -0,0 +1,276 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 103);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 103:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/header/src/main.vue?vue&type=template&id=2b296ab2&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"header",
|
||||
{ staticClass: "el-header", style: { height: _vm.height } },
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/header/src/main.vue?vue&type=template&id=2b296ab2&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/header/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElHeader',
|
||||
|
||||
componentName: 'ElHeader',
|
||||
|
||||
props: {
|
||||
height: {
|
||||
type: String,
|
||||
default: '60px'
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/header/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/header/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/header/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/header/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var header = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+264
@@ -0,0 +1,264 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 90);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 90:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/icon.vue?vue&type=template&id=cb3fe7f4&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("i", { class: "el-icon-" + _vm.name })
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/icon/src/icon.vue?vue&type=template&id=cb3fe7f4&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/icon/src/icon.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var iconvue_type_script_lang_js_ = ({
|
||||
name: 'ElIcon',
|
||||
|
||||
props: {
|
||||
name: String
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/icon/src/icon.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_iconvue_type_script_lang_js_ = (iconvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/icon/src/icon.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_iconvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/icon/src/icon.vue"
|
||||
/* harmony default export */ var icon = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/icon/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
icon.install = function (Vue) {
|
||||
Vue.component(icon.name, icon);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_icon = __webpack_exports__["default"] = (icon);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+1
File diff suppressed because one or more lines are too long
+719
@@ -0,0 +1,719 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 73);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/dom");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 21:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/focus");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 25:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
||||
/* harmony import */ var element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__);
|
||||
|
||||
|
||||
/* harmony default export */ __webpack_exports__["a"] = ({
|
||||
bind: function bind(el, binding, vnode) {
|
||||
var interval = null;
|
||||
var startTime = void 0;
|
||||
var handler = function handler() {
|
||||
return vnode.context[binding.expression].apply();
|
||||
};
|
||||
var clear = function clear() {
|
||||
if (new Date() - startTime < 100) {
|
||||
handler();
|
||||
}
|
||||
clearInterval(interval);
|
||||
interval = null;
|
||||
};
|
||||
|
||||
Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["on"])(el, 'mousedown', function (e) {
|
||||
if (e.button !== 0) return;
|
||||
startTime = new Date();
|
||||
Object(element_ui_src_utils_dom__WEBPACK_IMPORTED_MODULE_0__["once"])(document, 'mouseup', clear);
|
||||
clearInterval(interval);
|
||||
interval = setInterval(handler, 100);
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 73:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
class: [
|
||||
"el-input-number",
|
||||
_vm.inputNumberSize ? "el-input-number--" + _vm.inputNumberSize : "",
|
||||
{ "is-disabled": _vm.inputNumberDisabled },
|
||||
{ "is-without-controls": !_vm.controls },
|
||||
{ "is-controls-right": _vm.controlsAtRight }
|
||||
],
|
||||
on: {
|
||||
dragstart: function($event) {
|
||||
$event.preventDefault()
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm.controls
|
||||
? _c(
|
||||
"span",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "repeat-click",
|
||||
rawName: "v-repeat-click",
|
||||
value: _vm.decrease,
|
||||
expression: "decrease"
|
||||
}
|
||||
],
|
||||
staticClass: "el-input-number__decrease",
|
||||
class: { "is-disabled": _vm.minDisabled },
|
||||
attrs: { role: "button" },
|
||||
on: {
|
||||
keydown: function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
return _vm.decrease($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("i", {
|
||||
class:
|
||||
"el-icon-" + (_vm.controlsAtRight ? "arrow-down" : "minus")
|
||||
})
|
||||
]
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.controls
|
||||
? _c(
|
||||
"span",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "repeat-click",
|
||||
rawName: "v-repeat-click",
|
||||
value: _vm.increase,
|
||||
expression: "increase"
|
||||
}
|
||||
],
|
||||
staticClass: "el-input-number__increase",
|
||||
class: { "is-disabled": _vm.maxDisabled },
|
||||
attrs: { role: "button" },
|
||||
on: {
|
||||
keydown: function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "enter", 13, $event.key, "Enter")
|
||||
) {
|
||||
return null
|
||||
}
|
||||
return _vm.increase($event)
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_c("i", {
|
||||
class: "el-icon-" + (_vm.controlsAtRight ? "arrow-up" : "plus")
|
||||
})
|
||||
]
|
||||
)
|
||||
: _vm._e(),
|
||||
_c("el-input", {
|
||||
ref: "input",
|
||||
attrs: {
|
||||
value: _vm.displayValue,
|
||||
placeholder: _vm.placeholder,
|
||||
disabled: _vm.inputNumberDisabled,
|
||||
size: _vm.inputNumberSize,
|
||||
max: _vm.max,
|
||||
min: _vm.min,
|
||||
name: _vm.name,
|
||||
label: _vm.label
|
||||
},
|
||||
on: {
|
||||
blur: _vm.handleBlur,
|
||||
focus: _vm.handleFocus,
|
||||
input: _vm.handleInput,
|
||||
change: _vm.handleInputChange
|
||||
},
|
||||
nativeOn: {
|
||||
keydown: [
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "up", 38, $event.key, ["Up", "ArrowUp"])
|
||||
) {
|
||||
return null
|
||||
}
|
||||
$event.preventDefault()
|
||||
return _vm.increase($event)
|
||||
},
|
||||
function($event) {
|
||||
if (
|
||||
!("button" in $event) &&
|
||||
_vm._k($event.keyCode, "down", 40, $event.key, [
|
||||
"Down",
|
||||
"ArrowDown"
|
||||
])
|
||||
) {
|
||||
return null
|
||||
}
|
||||
$event.preventDefault()
|
||||
return _vm.decrease($event)
|
||||
}
|
||||
]
|
||||
}
|
||||
})
|
||||
],
|
||||
1
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=template&id=42f8cf66&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/input"
|
||||
var input_ = __webpack_require__(9);
|
||||
var input_default = /*#__PURE__*/__webpack_require__.n(input_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/focus"
|
||||
var focus_ = __webpack_require__(21);
|
||||
var focus_default = /*#__PURE__*/__webpack_require__.n(focus_);
|
||||
|
||||
// EXTERNAL MODULE: ./src/directives/repeat-click.js
|
||||
var repeat_click = __webpack_require__(25);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var input_numbervue_type_script_lang_js_ = ({
|
||||
name: 'ElInputNumber',
|
||||
mixins: [focus_default()('input')],
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
directives: {
|
||||
repeatClick: repeat_click["a" /* default */]
|
||||
},
|
||||
components: {
|
||||
ElInput: input_default.a
|
||||
},
|
||||
props: {
|
||||
step: {
|
||||
type: Number,
|
||||
default: 1
|
||||
},
|
||||
max: {
|
||||
type: Number,
|
||||
default: Infinity
|
||||
},
|
||||
min: {
|
||||
type: Number,
|
||||
default: -Infinity
|
||||
},
|
||||
value: {},
|
||||
disabled: Boolean,
|
||||
size: String,
|
||||
controls: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
controlsPosition: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
name: String,
|
||||
label: String,
|
||||
placeholder: String,
|
||||
precision: {
|
||||
type: Number,
|
||||
validator: function validator(val) {
|
||||
return val >= 0 && val === parseInt(val, 10);
|
||||
}
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
currentValue: 0,
|
||||
userInput: null
|
||||
};
|
||||
},
|
||||
|
||||
watch: {
|
||||
value: {
|
||||
immediate: true,
|
||||
handler: function handler(value) {
|
||||
var newVal = value === undefined ? value : Number(value);
|
||||
if (newVal !== undefined) {
|
||||
if (isNaN(newVal)) {
|
||||
return;
|
||||
}
|
||||
if (this.precision !== undefined) {
|
||||
newVal = this.toPrecision(newVal, this.precision);
|
||||
}
|
||||
}
|
||||
if (newVal >= this.max) newVal = this.max;
|
||||
if (newVal <= this.min) newVal = this.min;
|
||||
this.currentValue = newVal;
|
||||
this.userInput = null;
|
||||
this.$emit('input', newVal);
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
minDisabled: function minDisabled() {
|
||||
return this._decrease(this.value, this.step) < this.min;
|
||||
},
|
||||
maxDisabled: function maxDisabled() {
|
||||
return this._increase(this.value, this.step) > this.max;
|
||||
},
|
||||
numPrecision: function numPrecision() {
|
||||
var value = this.value,
|
||||
step = this.step,
|
||||
getPrecision = this.getPrecision,
|
||||
precision = this.precision;
|
||||
|
||||
var stepPrecision = getPrecision(step);
|
||||
if (precision !== undefined) {
|
||||
if (stepPrecision > precision) {
|
||||
console.warn('[Element Warn][InputNumber]precision should not be less than the decimal places of step');
|
||||
}
|
||||
return precision;
|
||||
} else {
|
||||
return Math.max(getPrecision(value), stepPrecision);
|
||||
}
|
||||
},
|
||||
controlsAtRight: function controlsAtRight() {
|
||||
return this.controls && this.controlsPosition === 'right';
|
||||
},
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
inputNumberSize: function inputNumberSize() {
|
||||
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
},
|
||||
inputNumberDisabled: function inputNumberDisabled() {
|
||||
return this.disabled || (this.elForm || {}).disabled;
|
||||
},
|
||||
displayValue: function displayValue() {
|
||||
if (this.userInput !== null) {
|
||||
return this.userInput;
|
||||
}
|
||||
var currentValue = this.currentValue;
|
||||
if (typeof currentValue === 'number' && this.precision !== undefined) {
|
||||
return currentValue.toFixed(this.precision);
|
||||
} else {
|
||||
return currentValue;
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
toPrecision: function toPrecision(num, precision) {
|
||||
if (precision === undefined) precision = this.numPrecision;
|
||||
return parseFloat(Number(num).toFixed(precision));
|
||||
},
|
||||
getPrecision: function getPrecision(value) {
|
||||
if (value === undefined) return 0;
|
||||
var valueString = value.toString();
|
||||
var dotPosition = valueString.indexOf('.');
|
||||
var precision = 0;
|
||||
if (dotPosition !== -1) {
|
||||
precision = valueString.length - dotPosition - 1;
|
||||
}
|
||||
return precision;
|
||||
},
|
||||
_increase: function _increase(val, step) {
|
||||
if (typeof val !== 'number' && val !== undefined) return this.currentValue;
|
||||
|
||||
var precisionFactor = Math.pow(10, this.numPrecision);
|
||||
// Solve the accuracy problem of JS decimal calculation by converting the value to integer.
|
||||
return this.toPrecision((precisionFactor * val + precisionFactor * step) / precisionFactor);
|
||||
},
|
||||
_decrease: function _decrease(val, step) {
|
||||
if (typeof val !== 'number' && val !== undefined) return this.currentValue;
|
||||
|
||||
var precisionFactor = Math.pow(10, this.numPrecision);
|
||||
|
||||
return this.toPrecision((precisionFactor * val - precisionFactor * step) / precisionFactor);
|
||||
},
|
||||
increase: function increase() {
|
||||
if (this.inputNumberDisabled || this.maxDisabled) return;
|
||||
var value = this.value || 0;
|
||||
var newVal = this._increase(value, this.step);
|
||||
this.setCurrentValue(newVal);
|
||||
},
|
||||
decrease: function decrease() {
|
||||
if (this.inputNumberDisabled || this.minDisabled) return;
|
||||
var value = this.value || 0;
|
||||
var newVal = this._decrease(value, this.step);
|
||||
this.setCurrentValue(newVal);
|
||||
},
|
||||
handleBlur: function handleBlur(event) {
|
||||
this.$emit('blur', event);
|
||||
},
|
||||
handleFocus: function handleFocus(event) {
|
||||
this.$emit('focus', event);
|
||||
},
|
||||
setCurrentValue: function setCurrentValue(newVal) {
|
||||
var oldVal = this.currentValue;
|
||||
if (typeof newVal === 'number' && this.precision !== undefined) {
|
||||
newVal = this.toPrecision(newVal, this.precision);
|
||||
}
|
||||
if (newVal >= this.max) newVal = this.max;
|
||||
if (newVal <= this.min) newVal = this.min;
|
||||
if (oldVal === newVal) return;
|
||||
this.userInput = null;
|
||||
this.$emit('input', newVal);
|
||||
this.$emit('change', newVal, oldVal);
|
||||
this.currentValue = newVal;
|
||||
},
|
||||
handleInput: function handleInput(value) {
|
||||
this.userInput = value;
|
||||
},
|
||||
handleInputChange: function handleInputChange(value) {
|
||||
var newVal = value === '' ? undefined : Number(value);
|
||||
if (!isNaN(newVal) || value === '') {
|
||||
this.setCurrentValue(newVal);
|
||||
}
|
||||
this.userInput = null;
|
||||
},
|
||||
select: function select() {
|
||||
this.$refs.input.select();
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var innerInput = this.$refs.input.$refs.input;
|
||||
innerInput.setAttribute('role', 'spinbutton');
|
||||
innerInput.setAttribute('aria-valuemax', this.max);
|
||||
innerInput.setAttribute('aria-valuemin', this.min);
|
||||
innerInput.setAttribute('aria-valuenow', this.currentValue);
|
||||
innerInput.setAttribute('aria-disabled', this.inputNumberDisabled);
|
||||
},
|
||||
updated: function updated() {
|
||||
if (!this.$refs || !this.$refs.input) return;
|
||||
var innerInput = this.$refs.input.$refs.input;
|
||||
innerInput.setAttribute('aria-valuenow', this.currentValue);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/input-number/src/input-number.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_input_numbervue_type_script_lang_js_ = (input_numbervue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/input-number/src/input-number.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_input_numbervue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/input-number/src/input-number.vue"
|
||||
/* harmony default export */ var input_number = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/input-number/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
input_number.install = function (Vue) {
|
||||
Vue.component(input_number.name, input_number);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_input_number = __webpack_exports__["default"] = (input_number);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 9:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/input");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+896
@@ -0,0 +1,896 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 61);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/migrating");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 61:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=template&id=343dd774&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"div",
|
||||
{
|
||||
class: [
|
||||
_vm.type === "textarea" ? "el-textarea" : "el-input",
|
||||
_vm.inputSize ? "el-input--" + _vm.inputSize : "",
|
||||
{
|
||||
"is-disabled": _vm.inputDisabled,
|
||||
"el-input-group": _vm.$slots.prepend || _vm.$slots.append,
|
||||
"el-input-group--append": _vm.$slots.append,
|
||||
"el-input-group--prepend": _vm.$slots.prepend,
|
||||
"el-input--prefix": _vm.$slots.prefix || _vm.prefixIcon,
|
||||
"el-input--suffix":
|
||||
_vm.$slots.suffix ||
|
||||
_vm.suffixIcon ||
|
||||
_vm.clearable ||
|
||||
_vm.showPassword
|
||||
}
|
||||
],
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
_vm.hovering = true
|
||||
},
|
||||
mouseleave: function($event) {
|
||||
_vm.hovering = false
|
||||
}
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm.type !== "textarea"
|
||||
? [
|
||||
_vm.$slots.prepend
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "el-input-group__prepend" },
|
||||
[_vm._t("prepend")],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.type !== "textarea"
|
||||
? _c(
|
||||
"input",
|
||||
_vm._b(
|
||||
{
|
||||
ref: "input",
|
||||
staticClass: "el-input__inner",
|
||||
attrs: {
|
||||
tabindex: _vm.tabindex,
|
||||
type: _vm.showPassword
|
||||
? _vm.passwordVisible
|
||||
? "text"
|
||||
: "password"
|
||||
: _vm.type,
|
||||
disabled: _vm.inputDisabled,
|
||||
readonly: _vm.readonly,
|
||||
autocomplete: _vm.autoComplete || _vm.autocomplete,
|
||||
"aria-label": _vm.label
|
||||
},
|
||||
domProps: { value: _vm.nativeInputValue },
|
||||
on: {
|
||||
compositionstart: _vm.handleComposition,
|
||||
compositionupdate: _vm.handleComposition,
|
||||
compositionend: _vm.handleComposition,
|
||||
input: _vm.handleInput,
|
||||
focus: _vm.handleFocus,
|
||||
blur: _vm.handleBlur,
|
||||
change: _vm.handleChange
|
||||
}
|
||||
},
|
||||
"input",
|
||||
_vm.$attrs,
|
||||
false
|
||||
)
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.$slots.prefix || _vm.prefixIcon
|
||||
? _c(
|
||||
"span",
|
||||
{ staticClass: "el-input__prefix" },
|
||||
[
|
||||
_vm._t("prefix"),
|
||||
_vm.prefixIcon
|
||||
? _c("i", {
|
||||
staticClass: "el-input__icon",
|
||||
class: _vm.prefixIcon
|
||||
})
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
)
|
||||
: _vm._e(),
|
||||
_vm.$slots.suffix ||
|
||||
_vm.suffixIcon ||
|
||||
_vm.showClear ||
|
||||
_vm.showPassword ||
|
||||
(_vm.validateState && _vm.needStatusIcon)
|
||||
? _c("span", { staticClass: "el-input__suffix" }, [
|
||||
_c(
|
||||
"span",
|
||||
{ staticClass: "el-input__suffix-inner" },
|
||||
[
|
||||
!_vm.showClear || !_vm.showPwdVisible
|
||||
? [
|
||||
_vm._t("suffix"),
|
||||
_vm.suffixIcon
|
||||
? _c("i", {
|
||||
staticClass: "el-input__icon",
|
||||
class: _vm.suffixIcon
|
||||
})
|
||||
: _vm._e()
|
||||
]
|
||||
: _vm._e(),
|
||||
_vm.showClear
|
||||
? _c("i", {
|
||||
staticClass:
|
||||
"el-input__icon el-icon-circle-close el-input__clear",
|
||||
on: { click: _vm.clear }
|
||||
})
|
||||
: _vm._e(),
|
||||
_vm.showPwdVisible
|
||||
? _c("i", {
|
||||
staticClass:
|
||||
"el-input__icon el-icon-view el-input__clear",
|
||||
on: { click: _vm.handlePasswordVisible }
|
||||
})
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm.validateState
|
||||
? _c("i", {
|
||||
staticClass: "el-input__icon",
|
||||
class: ["el-input__validateIcon", _vm.validateIcon]
|
||||
})
|
||||
: _vm._e()
|
||||
])
|
||||
: _vm._e(),
|
||||
_vm.$slots.append
|
||||
? _c(
|
||||
"div",
|
||||
{ staticClass: "el-input-group__append" },
|
||||
[_vm._t("append")],
|
||||
2
|
||||
)
|
||||
: _vm._e()
|
||||
]
|
||||
: _c(
|
||||
"textarea",
|
||||
_vm._b(
|
||||
{
|
||||
ref: "textarea",
|
||||
staticClass: "el-textarea__inner",
|
||||
style: _vm.textareaStyle,
|
||||
attrs: {
|
||||
tabindex: _vm.tabindex,
|
||||
disabled: _vm.inputDisabled,
|
||||
readonly: _vm.readonly,
|
||||
autocomplete: _vm.autoComplete || _vm.autocomplete,
|
||||
"aria-label": _vm.label
|
||||
},
|
||||
domProps: { value: _vm.nativeInputValue },
|
||||
on: {
|
||||
compositionstart: _vm.handleComposition,
|
||||
compositionupdate: _vm.handleComposition,
|
||||
compositionend: _vm.handleComposition,
|
||||
input: _vm.handleInput,
|
||||
focus: _vm.handleFocus,
|
||||
blur: _vm.handleBlur,
|
||||
change: _vm.handleChange
|
||||
}
|
||||
},
|
||||
"textarea",
|
||||
_vm.$attrs,
|
||||
false
|
||||
)
|
||||
)
|
||||
],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=template&id=343dd774&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
||||
var migrating_ = __webpack_require__(10);
|
||||
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/input/src/calcTextareaHeight.js
|
||||
var hiddenTextarea = void 0;
|
||||
|
||||
var HIDDEN_STYLE = '\n height:0 !important;\n visibility:hidden !important;\n overflow:hidden !important;\n position:absolute !important;\n z-index:-1000 !important;\n top:0 !important;\n right:0 !important\n';
|
||||
|
||||
var CONTEXT_STYLE = ['letter-spacing', 'line-height', 'padding-top', 'padding-bottom', 'font-family', 'font-weight', 'font-size', 'text-rendering', 'text-transform', 'width', 'text-indent', 'padding-left', 'padding-right', 'border-width', 'box-sizing'];
|
||||
|
||||
function calculateNodeStyling(targetElement) {
|
||||
var style = window.getComputedStyle(targetElement);
|
||||
|
||||
var boxSizing = style.getPropertyValue('box-sizing');
|
||||
|
||||
var paddingSize = parseFloat(style.getPropertyValue('padding-bottom')) + parseFloat(style.getPropertyValue('padding-top'));
|
||||
|
||||
var borderSize = parseFloat(style.getPropertyValue('border-bottom-width')) + parseFloat(style.getPropertyValue('border-top-width'));
|
||||
|
||||
var contextStyle = CONTEXT_STYLE.map(function (name) {
|
||||
return name + ':' + style.getPropertyValue(name);
|
||||
}).join(';');
|
||||
|
||||
return { contextStyle: contextStyle, paddingSize: paddingSize, borderSize: borderSize, boxSizing: boxSizing };
|
||||
}
|
||||
|
||||
function calcTextareaHeight(targetElement) {
|
||||
var minRows = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
|
||||
var maxRows = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
||||
|
||||
if (!hiddenTextarea) {
|
||||
hiddenTextarea = document.createElement('textarea');
|
||||
document.body.appendChild(hiddenTextarea);
|
||||
}
|
||||
|
||||
var _calculateNodeStyling = calculateNodeStyling(targetElement),
|
||||
paddingSize = _calculateNodeStyling.paddingSize,
|
||||
borderSize = _calculateNodeStyling.borderSize,
|
||||
boxSizing = _calculateNodeStyling.boxSizing,
|
||||
contextStyle = _calculateNodeStyling.contextStyle;
|
||||
|
||||
hiddenTextarea.setAttribute('style', contextStyle + ';' + HIDDEN_STYLE);
|
||||
hiddenTextarea.value = targetElement.value || targetElement.placeholder || '';
|
||||
|
||||
var height = hiddenTextarea.scrollHeight;
|
||||
var result = {};
|
||||
|
||||
if (boxSizing === 'border-box') {
|
||||
height = height + borderSize;
|
||||
} else if (boxSizing === 'content-box') {
|
||||
height = height - paddingSize;
|
||||
}
|
||||
|
||||
hiddenTextarea.value = '';
|
||||
var singleRowHeight = hiddenTextarea.scrollHeight - paddingSize;
|
||||
|
||||
if (minRows !== null) {
|
||||
var minHeight = singleRowHeight * minRows;
|
||||
if (boxSizing === 'border-box') {
|
||||
minHeight = minHeight + paddingSize + borderSize;
|
||||
}
|
||||
height = Math.max(minHeight, height);
|
||||
result.minHeight = minHeight + 'px';
|
||||
}
|
||||
if (maxRows !== null) {
|
||||
var maxHeight = singleRowHeight * maxRows;
|
||||
if (boxSizing === 'border-box') {
|
||||
maxHeight = maxHeight + paddingSize + borderSize;
|
||||
}
|
||||
height = Math.min(maxHeight, height);
|
||||
}
|
||||
result.height = height + 'px';
|
||||
hiddenTextarea.parentNode && hiddenTextarea.parentNode.removeChild(hiddenTextarea);
|
||||
hiddenTextarea = null;
|
||||
return result;
|
||||
};
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/merge"
|
||||
var merge_ = __webpack_require__(8);
|
||||
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input/src/input.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var inputvue_type_script_lang_js_ = ({
|
||||
name: 'ElInput',
|
||||
|
||||
componentName: 'ElInput',
|
||||
|
||||
mixins: [emitter_default.a, migrating_default.a],
|
||||
|
||||
inheritAttrs: false,
|
||||
|
||||
inject: {
|
||||
elForm: {
|
||||
default: ''
|
||||
},
|
||||
elFormItem: {
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
textareaCalcStyle: {},
|
||||
hovering: false,
|
||||
focused: false,
|
||||
isOnComposition: false,
|
||||
passwordVisible: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
props: {
|
||||
value: [String, Number],
|
||||
size: String,
|
||||
resize: String,
|
||||
form: String,
|
||||
disabled: Boolean,
|
||||
readonly: Boolean,
|
||||
type: {
|
||||
type: String,
|
||||
default: 'text'
|
||||
},
|
||||
autosize: {
|
||||
type: [Boolean, Object],
|
||||
default: false
|
||||
},
|
||||
autocomplete: {
|
||||
type: String,
|
||||
default: 'off'
|
||||
},
|
||||
/** @Deprecated in next major version */
|
||||
autoComplete: {
|
||||
type: String,
|
||||
validator: function validator(val) {
|
||||
false && false;
|
||||
return true;
|
||||
}
|
||||
},
|
||||
validateEvent: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
suffixIcon: String,
|
||||
prefixIcon: String,
|
||||
label: String,
|
||||
clearable: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
showPassword: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
},
|
||||
tabindex: String
|
||||
},
|
||||
|
||||
computed: {
|
||||
_elFormItemSize: function _elFormItemSize() {
|
||||
return (this.elFormItem || {}).elFormItemSize;
|
||||
},
|
||||
validateState: function validateState() {
|
||||
return this.elFormItem ? this.elFormItem.validateState : '';
|
||||
},
|
||||
needStatusIcon: function needStatusIcon() {
|
||||
return this.elForm ? this.elForm.statusIcon : false;
|
||||
},
|
||||
validateIcon: function validateIcon() {
|
||||
return {
|
||||
validating: 'el-icon-loading',
|
||||
success: 'el-icon-circle-check',
|
||||
error: 'el-icon-circle-close'
|
||||
}[this.validateState];
|
||||
},
|
||||
textareaStyle: function textareaStyle() {
|
||||
return merge_default()({}, this.textareaCalcStyle, { resize: this.resize });
|
||||
},
|
||||
inputSize: function inputSize() {
|
||||
return this.size || this._elFormItemSize || (this.$ELEMENT || {}).size;
|
||||
},
|
||||
inputDisabled: function inputDisabled() {
|
||||
return this.disabled || (this.elForm || {}).disabled;
|
||||
},
|
||||
nativeInputValue: function nativeInputValue() {
|
||||
return this.value === null || this.value === undefined ? '' : this.value;
|
||||
},
|
||||
showClear: function showClear() {
|
||||
return this.clearable && !this.inputDisabled && !this.readonly && this.nativeInputValue && (this.focused || this.hovering);
|
||||
},
|
||||
showPwdVisible: function showPwdVisible() {
|
||||
return this.showPassword && !this.inputDisabled && !this.readonly && (!!this.nativeInputValue || this.focused);
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
value: function value(val) {
|
||||
this.$nextTick(this.resizeTextarea);
|
||||
if (this.validateEvent) {
|
||||
this.dispatch('ElFormItem', 'el.form.change', [val]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
focus: function focus() {
|
||||
this.getInput().focus();
|
||||
},
|
||||
blur: function blur() {
|
||||
this.getInput().blur();
|
||||
},
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {
|
||||
'icon': 'icon is removed, use suffix-icon / prefix-icon instead.',
|
||||
'on-icon-click': 'on-icon-click is removed.'
|
||||
},
|
||||
events: {
|
||||
'click': 'click is removed.'
|
||||
}
|
||||
};
|
||||
},
|
||||
handleBlur: function handleBlur(event) {
|
||||
this.focused = false;
|
||||
this.$emit('blur', event);
|
||||
if (this.validateEvent) {
|
||||
this.dispatch('ElFormItem', 'el.form.blur', [this.value]);
|
||||
}
|
||||
},
|
||||
select: function select() {
|
||||
this.getInput().select();
|
||||
},
|
||||
resizeTextarea: function resizeTextarea() {
|
||||
if (this.$isServer) return;
|
||||
var autosize = this.autosize,
|
||||
type = this.type;
|
||||
|
||||
if (type !== 'textarea') return;
|
||||
if (!autosize) {
|
||||
this.textareaCalcStyle = {
|
||||
minHeight: calcTextareaHeight(this.$refs.textarea).minHeight
|
||||
};
|
||||
return;
|
||||
}
|
||||
var minRows = autosize.minRows;
|
||||
var maxRows = autosize.maxRows;
|
||||
|
||||
this.textareaCalcStyle = calcTextareaHeight(this.$refs.textarea, minRows, maxRows);
|
||||
},
|
||||
handleFocus: function handleFocus(event) {
|
||||
this.focused = true;
|
||||
this.$emit('focus', event);
|
||||
},
|
||||
handleComposition: function handleComposition(event) {
|
||||
if (event.type === 'compositionstart') {
|
||||
this.isOnComposition = true;
|
||||
}
|
||||
if (event.type === 'compositionend') {
|
||||
this.isOnComposition = false;
|
||||
this.handleInput(event);
|
||||
}
|
||||
},
|
||||
handleInput: function handleInput(event) {
|
||||
var _this = this;
|
||||
|
||||
if (this.isOnComposition) return;
|
||||
|
||||
// hack for https://github.com/ElemeFE/element/issues/8548
|
||||
// should remove the following line when we don't support IE
|
||||
if (event.target.value === this.nativeInputValue) return;
|
||||
|
||||
this.$emit('input', event.target.value);
|
||||
|
||||
// set input's value, in case parent refuses the change
|
||||
// see: https://github.com/ElemeFE/element/issues/12850
|
||||
this.$nextTick(function () {
|
||||
var input = _this.getInput();
|
||||
input.value = _this.value;
|
||||
});
|
||||
},
|
||||
handleChange: function handleChange(event) {
|
||||
this.$emit('change', event.target.value);
|
||||
},
|
||||
calcIconOffset: function calcIconOffset(place) {
|
||||
var elList = [].slice.call(this.$el.querySelectorAll('.el-input__' + place) || []);
|
||||
if (!elList.length) return;
|
||||
var el = null;
|
||||
for (var i = 0; i < elList.length; i++) {
|
||||
if (elList[i].parentNode === this.$el) {
|
||||
el = elList[i];
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!el) return;
|
||||
var pendantMap = {
|
||||
suffix: 'append',
|
||||
prefix: 'prepend'
|
||||
};
|
||||
|
||||
var pendant = pendantMap[place];
|
||||
if (this.$slots[pendant]) {
|
||||
el.style.transform = 'translateX(' + (place === 'suffix' ? '-' : '') + this.$el.querySelector('.el-input-group__' + pendant).offsetWidth + 'px)';
|
||||
} else {
|
||||
el.removeAttribute('style');
|
||||
}
|
||||
},
|
||||
updateIconOffset: function updateIconOffset() {
|
||||
this.calcIconOffset('prefix');
|
||||
this.calcIconOffset('suffix');
|
||||
},
|
||||
clear: function clear() {
|
||||
this.$emit('input', '');
|
||||
this.$emit('change', '');
|
||||
this.$emit('clear');
|
||||
},
|
||||
handlePasswordVisible: function handlePasswordVisible() {
|
||||
this.passwordVisible = !this.passwordVisible;
|
||||
this.focus();
|
||||
},
|
||||
getInput: function getInput() {
|
||||
return this.$refs.input || this.$refs.textarea;
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.$on('inputSelect', this.select);
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.resizeTextarea();
|
||||
this.updateIconOffset();
|
||||
},
|
||||
updated: function updated() {
|
||||
this.$nextTick(this.updateIconOffset);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/input/src/input.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_inputvue_type_script_lang_js_ = (inputvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/input/src/input.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_inputvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/input/src/input.vue"
|
||||
/* harmony default export */ var input = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/input/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
input.install = function (Vue) {
|
||||
Vue.component(input.name, input);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_input = __webpack_exports__["default"] = (input);
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/merge");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+626
@@ -0,0 +1,626 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 59);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/popup");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/dom");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 36:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/after-leave");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 59:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external "vue"
|
||||
var external_vue_ = __webpack_require__(6);
|
||||
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"transition",
|
||||
{
|
||||
attrs: { name: "el-loading-fade" },
|
||||
on: { "after-leave": _vm.handleAfterLeave }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
staticClass: "el-loading-mask",
|
||||
class: [_vm.customClass, { "is-fullscreen": _vm.fullscreen }],
|
||||
style: { backgroundColor: _vm.background || "" }
|
||||
},
|
||||
[
|
||||
_c("div", { staticClass: "el-loading-spinner" }, [
|
||||
!_vm.spinner
|
||||
? _c(
|
||||
"svg",
|
||||
{
|
||||
staticClass: "circular",
|
||||
attrs: { viewBox: "25 25 50 50" }
|
||||
},
|
||||
[
|
||||
_c("circle", {
|
||||
staticClass: "path",
|
||||
attrs: { cx: "50", cy: "50", r: "20", fill: "none" }
|
||||
})
|
||||
]
|
||||
)
|
||||
: _c("i", { class: _vm.spinner }),
|
||||
_vm.text
|
||||
? _c("p", { staticClass: "el-loading-text" }, [
|
||||
_vm._v(_vm._s(_vm.text))
|
||||
])
|
||||
: _vm._e()
|
||||
])
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=template&id=eee0a7ac&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/loading/src/loading.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var loadingvue_type_script_lang_js_ = ({
|
||||
data: function data() {
|
||||
return {
|
||||
text: null,
|
||||
spinner: null,
|
||||
background: null,
|
||||
fullscreen: true,
|
||||
visible: false,
|
||||
customClass: ''
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
methods: {
|
||||
handleAfterLeave: function handleAfterLeave() {
|
||||
this.$emit('after-leave');
|
||||
},
|
||||
setText: function setText(text) {
|
||||
this.text = text;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/loading/src/loading.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_loadingvue_type_script_lang_js_ = (loadingvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/loading/src/loading.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_loadingvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/loading/src/loading.vue"
|
||||
/* harmony default export */ var loading = (component.exports);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/dom"
|
||||
var dom_ = __webpack_require__(2);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
||||
var popup_ = __webpack_require__(13);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/after-leave"
|
||||
var after_leave_ = __webpack_require__(36);
|
||||
var after_leave_default = /*#__PURE__*/__webpack_require__.n(after_leave_);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/loading/src/directive.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var Mask = external_vue_default.a.extend(loading);
|
||||
|
||||
var loadingDirective = {};
|
||||
loadingDirective.install = function (Vue) {
|
||||
if (Vue.prototype.$isServer) return;
|
||||
var toggleLoading = function toggleLoading(el, binding) {
|
||||
if (binding.value) {
|
||||
Vue.nextTick(function () {
|
||||
if (binding.modifiers.fullscreen) {
|
||||
el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
|
||||
el.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
|
||||
el.maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
|
||||
|
||||
Object(dom_["addClass"])(el.mask, 'is-fullscreen');
|
||||
insertDom(document.body, el, binding);
|
||||
} else {
|
||||
Object(dom_["removeClass"])(el.mask, 'is-fullscreen');
|
||||
|
||||
if (binding.modifiers.body) {
|
||||
el.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
|
||||
|
||||
['top', 'left'].forEach(function (property) {
|
||||
var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
|
||||
el.maskStyle[property] = el.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] - parseInt(Object(dom_["getStyle"])(document.body, 'margin-' + property), 10) + 'px';
|
||||
});
|
||||
['height', 'width'].forEach(function (property) {
|
||||
el.maskStyle[property] = el.getBoundingClientRect()[property] + 'px';
|
||||
});
|
||||
|
||||
insertDom(document.body, el, binding);
|
||||
} else {
|
||||
el.originalPosition = Object(dom_["getStyle"])(el, 'position');
|
||||
insertDom(el, el, binding);
|
||||
}
|
||||
}
|
||||
});
|
||||
} else {
|
||||
after_leave_default()(el.instance, function (_) {
|
||||
el.domVisible = false;
|
||||
var target = binding.modifiers.fullscreen || binding.modifiers.body ? document.body : el;
|
||||
Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
|
||||
Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
|
||||
el.instance.hiding = false;
|
||||
}, 300, true);
|
||||
el.instance.visible = false;
|
||||
el.instance.hiding = true;
|
||||
}
|
||||
};
|
||||
var insertDom = function insertDom(parent, el, binding) {
|
||||
if (!el.domVisible && Object(dom_["getStyle"])(el, 'display') !== 'none' && Object(dom_["getStyle"])(el, 'visibility') !== 'hidden') {
|
||||
Object.keys(el.maskStyle).forEach(function (property) {
|
||||
el.mask.style[property] = el.maskStyle[property];
|
||||
});
|
||||
|
||||
if (el.originalPosition !== 'absolute' && el.originalPosition !== 'fixed') {
|
||||
Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
|
||||
}
|
||||
if (binding.modifiers.fullscreen && binding.modifiers.lock) {
|
||||
Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
|
||||
}
|
||||
el.domVisible = true;
|
||||
|
||||
parent.appendChild(el.mask);
|
||||
Vue.nextTick(function () {
|
||||
if (el.instance.hiding) {
|
||||
el.instance.$emit('after-leave');
|
||||
} else {
|
||||
el.instance.visible = true;
|
||||
}
|
||||
});
|
||||
el.domInserted = true;
|
||||
}
|
||||
};
|
||||
|
||||
Vue.directive('loading', {
|
||||
bind: function bind(el, binding, vnode) {
|
||||
var textExr = el.getAttribute('element-loading-text');
|
||||
var spinnerExr = el.getAttribute('element-loading-spinner');
|
||||
var backgroundExr = el.getAttribute('element-loading-background');
|
||||
var customClassExr = el.getAttribute('element-loading-custom-class');
|
||||
var vm = vnode.context;
|
||||
var mask = new Mask({
|
||||
el: document.createElement('div'),
|
||||
data: {
|
||||
text: vm && vm[textExr] || textExr,
|
||||
spinner: vm && vm[spinnerExr] || spinnerExr,
|
||||
background: vm && vm[backgroundExr] || backgroundExr,
|
||||
customClass: vm && vm[customClassExr] || customClassExr,
|
||||
fullscreen: !!binding.modifiers.fullscreen
|
||||
}
|
||||
});
|
||||
el.instance = mask;
|
||||
el.mask = mask.$el;
|
||||
el.maskStyle = {};
|
||||
|
||||
binding.value && toggleLoading(el, binding);
|
||||
},
|
||||
|
||||
update: function update(el, binding) {
|
||||
el.instance.setText(el.getAttribute('element-loading-text'));
|
||||
if (binding.oldValue !== binding.value) {
|
||||
toggleLoading(el, binding);
|
||||
}
|
||||
},
|
||||
|
||||
unbind: function unbind(el, binding) {
|
||||
if (el.domInserted) {
|
||||
el.mask && el.mask.parentNode && el.mask.parentNode.removeChild(el.mask);
|
||||
toggleLoading(el, { value: false, modifiers: binding.modifiers });
|
||||
}
|
||||
el.instance && el.instance.$destroy();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/* harmony default export */ var directive = (loadingDirective);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/merge"
|
||||
var merge_ = __webpack_require__(8);
|
||||
var merge_default = /*#__PURE__*/__webpack_require__.n(merge_);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/loading/src/index.js
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
var LoadingConstructor = external_vue_default.a.extend(loading);
|
||||
|
||||
var defaults = {
|
||||
text: null,
|
||||
fullscreen: true,
|
||||
body: false,
|
||||
lock: false,
|
||||
customClass: ''
|
||||
};
|
||||
|
||||
var fullscreenLoading = void 0;
|
||||
|
||||
LoadingConstructor.prototype.originalPosition = '';
|
||||
LoadingConstructor.prototype.originalOverflow = '';
|
||||
|
||||
LoadingConstructor.prototype.close = function () {
|
||||
var _this = this;
|
||||
|
||||
if (this.fullscreen) {
|
||||
fullscreenLoading = undefined;
|
||||
}
|
||||
after_leave_default()(this, function (_) {
|
||||
var target = _this.fullscreen || _this.body ? document.body : _this.target;
|
||||
Object(dom_["removeClass"])(target, 'el-loading-parent--relative');
|
||||
Object(dom_["removeClass"])(target, 'el-loading-parent--hidden');
|
||||
if (_this.$el && _this.$el.parentNode) {
|
||||
_this.$el.parentNode.removeChild(_this.$el);
|
||||
}
|
||||
_this.$destroy();
|
||||
}, 300);
|
||||
this.visible = false;
|
||||
};
|
||||
|
||||
var src_addStyle = function addStyle(options, parent, instance) {
|
||||
var maskStyle = {};
|
||||
if (options.fullscreen) {
|
||||
instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
|
||||
instance.originalOverflow = Object(dom_["getStyle"])(document.body, 'overflow');
|
||||
maskStyle.zIndex = popup_["PopupManager"].nextZIndex();
|
||||
} else if (options.body) {
|
||||
instance.originalPosition = Object(dom_["getStyle"])(document.body, 'position');
|
||||
['top', 'left'].forEach(function (property) {
|
||||
var scroll = property === 'top' ? 'scrollTop' : 'scrollLeft';
|
||||
maskStyle[property] = options.target.getBoundingClientRect()[property] + document.body[scroll] + document.documentElement[scroll] + 'px';
|
||||
});
|
||||
['height', 'width'].forEach(function (property) {
|
||||
maskStyle[property] = options.target.getBoundingClientRect()[property] + 'px';
|
||||
});
|
||||
} else {
|
||||
instance.originalPosition = Object(dom_["getStyle"])(parent, 'position');
|
||||
}
|
||||
Object.keys(maskStyle).forEach(function (property) {
|
||||
instance.$el.style[property] = maskStyle[property];
|
||||
});
|
||||
};
|
||||
|
||||
var src_Loading = function Loading() {
|
||||
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
||||
|
||||
if (external_vue_default.a.prototype.$isServer) return;
|
||||
options = merge_default()({}, defaults, options);
|
||||
if (typeof options.target === 'string') {
|
||||
options.target = document.querySelector(options.target);
|
||||
}
|
||||
options.target = options.target || document.body;
|
||||
if (options.target !== document.body) {
|
||||
options.fullscreen = false;
|
||||
} else {
|
||||
options.body = true;
|
||||
}
|
||||
if (options.fullscreen && fullscreenLoading) {
|
||||
return fullscreenLoading;
|
||||
}
|
||||
|
||||
var parent = options.body ? document.body : options.target;
|
||||
var instance = new LoadingConstructor({
|
||||
el: document.createElement('div'),
|
||||
data: options
|
||||
});
|
||||
|
||||
src_addStyle(options, parent, instance);
|
||||
if (instance.originalPosition !== 'absolute' && instance.originalPosition !== 'fixed') {
|
||||
Object(dom_["addClass"])(parent, 'el-loading-parent--relative');
|
||||
}
|
||||
if (options.fullscreen && options.lock) {
|
||||
Object(dom_["addClass"])(parent, 'el-loading-parent--hidden');
|
||||
}
|
||||
parent.appendChild(instance.$el);
|
||||
external_vue_default.a.nextTick(function () {
|
||||
instance.visible = true;
|
||||
});
|
||||
if (options.fullscreen) {
|
||||
fullscreenLoading = instance;
|
||||
}
|
||||
return instance;
|
||||
};
|
||||
|
||||
/* harmony default export */ var src = (src_Loading);
|
||||
// CONCATENATED MODULE: ./packages/loading/index.js
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var packages_loading = __webpack_exports__["default"] = ({
|
||||
install: function install(Vue) {
|
||||
Vue.use(directive);
|
||||
Vue.prototype.$loading = src;
|
||||
},
|
||||
|
||||
directive: directive,
|
||||
service: src
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("vue");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/merge");
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+56
@@ -0,0 +1,56 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
|
||||
|
||||
exports.default = function (Vue) {
|
||||
|
||||
/**
|
||||
* template
|
||||
*
|
||||
* @param {String} string
|
||||
* @param {Array} ...args
|
||||
* @return {String}
|
||||
*/
|
||||
|
||||
function template(string) {
|
||||
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
args[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
if (args.length === 1 && _typeof(args[0]) === 'object') {
|
||||
args = args[0];
|
||||
}
|
||||
|
||||
if (!args || !args.hasOwnProperty) {
|
||||
args = {};
|
||||
}
|
||||
|
||||
return string.replace(RE_NARGS, function (match, prefix, i, index) {
|
||||
var result = void 0;
|
||||
|
||||
if (string[index - 1] === '{' && string[index + match.length] === '}') {
|
||||
return i;
|
||||
} else {
|
||||
result = (0, _util.hasOwn)(args, i) ? args[i] : null;
|
||||
if (result === null || result === undefined) {
|
||||
return '';
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return template;
|
||||
};
|
||||
|
||||
var _util = require('element-ui/lib/utils/util');
|
||||
|
||||
var RE_NARGS = /(%|)\{([0-9a-zA-Z_]+)\}/g;
|
||||
/**
|
||||
* String format template
|
||||
* - Inspired:
|
||||
* https://github.com/Matt-Esch/string-template/index.js
|
||||
*/
|
||||
+63
@@ -0,0 +1,63 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.i18n = exports.use = exports.t = undefined;
|
||||
|
||||
var _zhCN = require('element-ui/lib/locale/lang/zh-CN');
|
||||
|
||||
var _zhCN2 = _interopRequireDefault(_zhCN);
|
||||
|
||||
var _vue = require('vue');
|
||||
|
||||
var _vue2 = _interopRequireDefault(_vue);
|
||||
|
||||
var _deepmerge = require('deepmerge');
|
||||
|
||||
var _deepmerge2 = _interopRequireDefault(_deepmerge);
|
||||
|
||||
var _format = require('./format');
|
||||
|
||||
var _format2 = _interopRequireDefault(_format);
|
||||
|
||||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
||||
|
||||
var format = (0, _format2.default)(_vue2.default);
|
||||
var lang = _zhCN2.default;
|
||||
var merged = false;
|
||||
var i18nHandler = function i18nHandler() {
|
||||
var vuei18n = Object.getPrototypeOf(this || _vue2.default).$t;
|
||||
if (typeof vuei18n === 'function' && !!_vue2.default.locale) {
|
||||
if (!merged) {
|
||||
merged = true;
|
||||
_vue2.default.locale(_vue2.default.config.lang, (0, _deepmerge2.default)(lang, _vue2.default.locale(_vue2.default.config.lang) || {}, { clone: true }));
|
||||
}
|
||||
return vuei18n.apply(this, arguments);
|
||||
}
|
||||
};
|
||||
|
||||
var t = exports.t = function t(path, options) {
|
||||
var value = i18nHandler.apply(this, arguments);
|
||||
if (value !== null && value !== undefined) return value;
|
||||
|
||||
var array = path.split('.');
|
||||
var current = lang;
|
||||
|
||||
for (var i = 0, j = array.length; i < j; i++) {
|
||||
var property = array[i];
|
||||
value = current[property];
|
||||
if (i === j - 1) return format(value, options);
|
||||
if (!value) return '';
|
||||
current = value;
|
||||
}
|
||||
return '';
|
||||
};
|
||||
|
||||
var use = exports.use = function use(l) {
|
||||
lang = l || lang;
|
||||
};
|
||||
|
||||
var i18n = exports.i18n = function i18n(fn) {
|
||||
i18nHandler = fn || i18nHandler;
|
||||
};
|
||||
|
||||
exports.default = { use: use, t: t, i18n: i18n };
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Bevestig',
|
||||
clear: 'Maak skoon'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nou',
|
||||
today: 'Vandag',
|
||||
cancel: 'Kanselleer',
|
||||
clear: 'Maak skoon',
|
||||
confirm: 'Bevestig',
|
||||
selectDate: 'Kies datum',
|
||||
selectTime: 'Kies tyd',
|
||||
startDate: 'Begindatum',
|
||||
startTime: 'Begintyd',
|
||||
endDate: 'Einddatum',
|
||||
endTime: 'Eindtyd',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'Jaar',
|
||||
month1: 'Jan',
|
||||
month2: 'Feb',
|
||||
month3: 'Mrt',
|
||||
month4: 'Apr',
|
||||
month5: 'Mei',
|
||||
month6: 'Jun',
|
||||
month7: 'Jul',
|
||||
month8: 'Aug',
|
||||
month9: 'Sep',
|
||||
month10: 'Okt',
|
||||
month11: 'Nov',
|
||||
month12: 'Des',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'So',
|
||||
mon: 'Ma',
|
||||
tue: 'Di',
|
||||
wed: 'Wo',
|
||||
thu: 'Do',
|
||||
fri: 'Vr',
|
||||
sat: 'Sa'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mrt',
|
||||
apr: 'Apr',
|
||||
may: 'Mei',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laai',
|
||||
noMatch: 'Geen toepaslike data',
|
||||
noData: 'Geen data',
|
||||
placeholder: 'Kies'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Geen toepaslike data',
|
||||
loading: 'Laai',
|
||||
placeholder: 'Kies'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gaan na',
|
||||
pagesize: '/page',
|
||||
total: 'Totaal {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Boodskap',
|
||||
confirm: 'Bevestig',
|
||||
cancel: 'Kanselleer',
|
||||
error: 'Ongeldige invoer'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Verwyder',
|
||||
preview: 'Voorskou',
|
||||
continue: 'Gaan voort'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Geen Data',
|
||||
confirmFilter: 'Bevestig',
|
||||
resetFilter: 'Herstel',
|
||||
clearFilter: 'Alles',
|
||||
sumText: 'Som'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Geen Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Geen toepaslike data',
|
||||
noData: 'Geen data',
|
||||
titles: ['Lys 1', 'Lys 2'],
|
||||
filterPlaceholder: 'Voer sleutelwoord in',
|
||||
noCheckedFormat: '{total} items',
|
||||
hasCheckedFormat: '{checked}/{total} gekies'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'موافق',
|
||||
clear: 'إزالة'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'الآن',
|
||||
today: 'اليوم',
|
||||
cancel: 'إلغاء',
|
||||
clear: 'إزالة',
|
||||
confirm: 'موافق',
|
||||
selectDate: 'أختر التاريخ',
|
||||
selectTime: 'أختر الوقت',
|
||||
startDate: 'تاريخ البدء',
|
||||
startTime: 'وقت البدء',
|
||||
endDate: 'تاريخ الانتهاء',
|
||||
endTime: 'وقت الانتهاء',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'يناير',
|
||||
month2: 'فبراير',
|
||||
month3: 'مارس',
|
||||
month4: 'ابريل',
|
||||
month5: 'مايو',
|
||||
month6: 'يونيو',
|
||||
month7: 'يوليو',
|
||||
month8: 'أغسطس',
|
||||
month9: 'سبتمبر',
|
||||
month10: 'أكتوبر',
|
||||
month11: 'نوفمبر',
|
||||
month12: 'ديسمبر',
|
||||
week: 'أسبوع',
|
||||
weeks: {
|
||||
sun: 'الأحد',
|
||||
mon: 'الأثنين',
|
||||
tue: 'الثلاثاء',
|
||||
wed: 'الأربعاء',
|
||||
thu: 'الخميس',
|
||||
fri: 'الجمعة',
|
||||
sat: 'السبت'
|
||||
},
|
||||
months: {
|
||||
jan: 'يناير',
|
||||
feb: 'فبراير',
|
||||
mar: 'مارس',
|
||||
apr: 'أبريل',
|
||||
may: 'مايو',
|
||||
jun: 'يونيو',
|
||||
jul: 'يوليو',
|
||||
aug: 'أغسطس',
|
||||
sep: 'سبتمبر',
|
||||
oct: 'أكتوبر',
|
||||
nov: 'نوفمبر',
|
||||
dec: 'ديسمبر'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'جار التحميل',
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
noData: 'لايوجد بيانات',
|
||||
placeholder: 'أختر'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
loading: 'جار التحميل',
|
||||
placeholder: 'أختر'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'أذهب إلى',
|
||||
pagesize: '/صفحة',
|
||||
total: 'الكل {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'الرسالة',
|
||||
confirm: 'موافق',
|
||||
cancel: 'إلغاء',
|
||||
error: 'مدخل غير صحيح'
|
||||
},
|
||||
upload: {
|
||||
delete: 'حذف',
|
||||
preview: 'عرض',
|
||||
continue: 'إستمرار'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'لايوجد بيانات',
|
||||
confirmFilter: 'تأكيد',
|
||||
resetFilter: 'حذف',
|
||||
clearFilter: 'الكل',
|
||||
sumText: 'المجموع'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'لايوجد بيانات'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'لايوجد بيانات مطابقة',
|
||||
noData: 'لايوجد بيانات',
|
||||
titles: ['قائمة 1', 'قائمة 2'],
|
||||
filterPlaceholder: 'ادخل كلمة',
|
||||
noCheckedFormat: '{total} عناصر',
|
||||
hasCheckedFormat: '{checked}/{total} مختار'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Изчисти'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сега',
|
||||
today: 'Днес',
|
||||
cancel: 'Откажи',
|
||||
clear: 'Изчисти',
|
||||
confirm: 'ОК',
|
||||
selectDate: 'Избери дата',
|
||||
selectTime: 'Избери час',
|
||||
startDate: 'Начална дата',
|
||||
startTime: 'Начален час',
|
||||
endDate: 'Крайна дата',
|
||||
endTime: 'Краен час',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Януари',
|
||||
month2: 'Февруари',
|
||||
month3: 'Март',
|
||||
month4: 'Април',
|
||||
month5: 'Май',
|
||||
month6: 'Юни',
|
||||
month7: 'Юли',
|
||||
month8: 'Август',
|
||||
month9: 'Септември',
|
||||
month10: 'Октомври',
|
||||
month11: 'Ноември',
|
||||
month12: 'Декември',
|
||||
// week: 'Седмица',
|
||||
weeks: {
|
||||
sun: 'Нед',
|
||||
mon: 'Пон',
|
||||
tue: 'Вто',
|
||||
wed: 'Сря',
|
||||
thu: 'Чет',
|
||||
fri: 'Пет',
|
||||
sat: 'Съб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Яну',
|
||||
feb: 'Фев',
|
||||
mar: 'Мар',
|
||||
apr: 'Апр',
|
||||
may: 'Май',
|
||||
jun: 'Юни',
|
||||
jul: 'Юли',
|
||||
aug: 'Авг',
|
||||
sep: 'Сеп',
|
||||
oct: 'Окт',
|
||||
nov: 'Ное',
|
||||
dec: 'Дек'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Зареждане',
|
||||
noMatch: 'Няма намерени',
|
||||
noData: 'Няма данни',
|
||||
placeholder: 'Избери'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Няма намерени',
|
||||
loading: 'Зареждане',
|
||||
placeholder: 'Избери'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Иди на',
|
||||
pagesize: '/страница',
|
||||
total: 'Общо {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Съобщение',
|
||||
confirm: 'ОК',
|
||||
cancel: 'Откажи',
|
||||
error: 'Невалидни данни'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Изтрий',
|
||||
preview: 'Прегледай',
|
||||
continue: 'Продължи'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Няма данни',
|
||||
confirmFilter: 'Потвърди',
|
||||
resetFilter: 'Изчисти',
|
||||
clearFilter: 'Всички',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Няма данни'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Няма намерени',
|
||||
noData: 'Няма данни',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Netejar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ara',
|
||||
today: 'Avui',
|
||||
cancel: 'Cancel·lar',
|
||||
clear: 'Netejar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Seleccionar data',
|
||||
selectTime: 'Seleccionar hora',
|
||||
startDate: 'Data Inici',
|
||||
startTime: 'Hora Inici',
|
||||
endDate: 'Data Final',
|
||||
endTime: 'Hora Final',
|
||||
prevYear: 'Any anterior',
|
||||
nextYear: 'Pròxim Any',
|
||||
prevMonth: 'Mes anterior',
|
||||
nextMonth: 'Pròxim Mes',
|
||||
year: 'Any',
|
||||
month1: 'Gener',
|
||||
month2: 'Febrer',
|
||||
month3: 'Març',
|
||||
month4: 'Abril',
|
||||
month5: 'Maig',
|
||||
month6: 'Juny',
|
||||
month7: 'Juliol',
|
||||
month8: 'Agost',
|
||||
month9: 'Setembre',
|
||||
month10: 'Octubre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Desembre',
|
||||
// week: 'setmana',
|
||||
weeks: {
|
||||
sun: 'Dg',
|
||||
mon: 'Dl',
|
||||
tue: 'Dt',
|
||||
wed: 'Dc',
|
||||
thu: 'Dj',
|
||||
fri: 'Dv',
|
||||
sat: 'Ds'
|
||||
},
|
||||
months: {
|
||||
jan: 'Gen',
|
||||
feb: 'Febr',
|
||||
mar: 'Març',
|
||||
apr: 'Abr',
|
||||
may: 'Maig',
|
||||
jun: 'Juny',
|
||||
jul: 'Jul',
|
||||
aug: 'Ag',
|
||||
sep: 'Set',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Carregant',
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
noData: 'Sense Dades',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
loading: 'Carregant',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Anar a',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Acceptar',
|
||||
cancel: 'Cancel·lar',
|
||||
error: 'Entrada invàlida'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'premi eliminar per descartar',
|
||||
delete: 'Eliminar',
|
||||
preview: 'Vista Prèvia',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sense Dades',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Netejar',
|
||||
clearFilter: 'Tot',
|
||||
sumText: 'Tot'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sense Dades'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No hi ha dades que coincideixin',
|
||||
noData: 'Sense Dades',
|
||||
titles: ['Llista 1', 'Llista 2'],
|
||||
filterPlaceholder: 'Introdueix la paraula clau',
|
||||
noCheckedFormat: '{total} ítems',
|
||||
hasCheckedFormat: '{checked}/{total} seleccionats'
|
||||
}
|
||||
}
|
||||
};
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Vymazat'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teď',
|
||||
today: 'Dnes',
|
||||
cancel: 'Zrušit',
|
||||
clear: 'Vymazat',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vybrat datum',
|
||||
selectTime: 'Vybrat čas',
|
||||
startDate: 'Datum začátku',
|
||||
startTime: 'Čas začátku',
|
||||
endDate: 'Datum konce',
|
||||
endTime: 'Čas konce',
|
||||
prevYear: 'Předchozí rok',
|
||||
nextYear: 'Příští rok',
|
||||
prevMonth: 'Předchozí měsíc',
|
||||
nextMonth: 'Příští měsíc',
|
||||
day: 'Den',
|
||||
week: 'Týden',
|
||||
month: 'Měsíc',
|
||||
year: 'Rok',
|
||||
month1: 'Leden',
|
||||
month2: 'Únor',
|
||||
month3: 'Březen',
|
||||
month4: 'Duben',
|
||||
month5: 'Květen',
|
||||
month6: 'Červen',
|
||||
month7: 'Červenec',
|
||||
month8: 'Srpen',
|
||||
month9: 'Září',
|
||||
month10: 'Říjen',
|
||||
month11: 'Listopad',
|
||||
month12: 'Prosinec',
|
||||
weeks: {
|
||||
sun: 'Ne',
|
||||
mon: 'Po',
|
||||
tue: 'Út',
|
||||
wed: 'St',
|
||||
thu: 'Čt',
|
||||
fri: 'Pá',
|
||||
sat: 'So'
|
||||
},
|
||||
months: {
|
||||
jan: 'Led',
|
||||
feb: 'Úno',
|
||||
mar: 'Bře',
|
||||
apr: 'Dub',
|
||||
may: 'Kvě',
|
||||
jun: 'Čer',
|
||||
jul: 'Čvc',
|
||||
aug: 'Srp',
|
||||
sep: 'Zář',
|
||||
oct: 'Říj',
|
||||
nov: 'Lis',
|
||||
dec: 'Pro'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Načítání',
|
||||
noMatch: 'Žádná shoda',
|
||||
noData: 'Žádná data',
|
||||
placeholder: 'Vybrat'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Žádná shoda',
|
||||
loading: 'Načítání',
|
||||
placeholder: 'Vybrat'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Jít na',
|
||||
pagesize: 'na stranu',
|
||||
total: 'Celkem {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Zpráva',
|
||||
confirm: 'OK',
|
||||
cancel: 'Zrušit',
|
||||
error: 'Neplatný vstup'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Stisknout pro smazání',
|
||||
delete: 'Vymazat',
|
||||
preview: 'Náhled',
|
||||
continue: 'Pokračovat'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Žádná data',
|
||||
confirmFilter: 'Potvrdit',
|
||||
resetFilter: 'Resetovat',
|
||||
clearFilter: 'Vše',
|
||||
sumText: 'Celkem'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Žádná data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Žádná shoda',
|
||||
noData: 'Žádná data',
|
||||
titles: ['Seznam 1', 'Seznam 2'],
|
||||
filterPlaceholder: 'Klíčové slovo',
|
||||
noCheckedFormat: '{total} položek',
|
||||
hasCheckedFormat: '{checked}/{total} vybráno'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Ryd'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'I dag',
|
||||
cancel: 'Annuller',
|
||||
clear: 'Ryd',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vælg dato',
|
||||
selectTime: 'Vælg tidspunkt',
|
||||
startDate: 'Startdato',
|
||||
startTime: 'Starttidspunkt',
|
||||
endDate: 'Slutdato',
|
||||
endTime: 'Sluttidspunkt',
|
||||
prevYear: 'Forrige år',
|
||||
nextYear: 'Næste år',
|
||||
prevMonth: 'Forrige måned',
|
||||
nextMonth: 'Næste måned',
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'Marts',
|
||||
month4: 'April',
|
||||
month5: 'Maj',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
week: 'uge',
|
||||
weeks: {
|
||||
sun: 'Søn',
|
||||
mon: 'Man',
|
||||
tue: 'Tir',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lør'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Henter',
|
||||
noMatch: 'Ingen matchende data',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Vælg'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ingen matchende data',
|
||||
loading: 'Henter',
|
||||
placeholder: 'Vælg'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå til',
|
||||
pagesize: '/side',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Annuller',
|
||||
error: 'Ugyldig input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'tryk slet for at fjerne',
|
||||
delete: 'Slet',
|
||||
preview: 'Forhåndsvisning',
|
||||
continue: 'Fortsæt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ingen data',
|
||||
confirmFilter: 'Bekræft',
|
||||
resetFilter: 'Nulstil',
|
||||
clearFilter: 'Alle',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ingen data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ingen matchende data',
|
||||
noData: 'Ingen data',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Indtast søgeord',
|
||||
noCheckedFormat: '{total} emner',
|
||||
hasCheckedFormat: '{checked}/{total} valgt'
|
||||
}
|
||||
}
|
||||
};
|
||||
+113
@@ -0,0 +1,113 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Leeren'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Jetzt',
|
||||
today: 'Heute',
|
||||
cancel: 'Abbrechen',
|
||||
clear: 'Leeren',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Datum wählen',
|
||||
selectTime: 'Uhrzeit wählen',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Startzeit',
|
||||
endDate: 'Enddatum',
|
||||
endTime: 'Endzeit',
|
||||
prevYear: 'Letztes Jahr',
|
||||
nextYear: 'Nächtes Jahr',
|
||||
prevMonth: 'Letzter Monat',
|
||||
nextMonth: 'Nächster Monat',
|
||||
day: 'Tag',
|
||||
week: 'Woche',
|
||||
month: 'Monat',
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'März',
|
||||
month4: 'April',
|
||||
month5: 'Mai',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Dezember',
|
||||
weeks: {
|
||||
sun: 'So',
|
||||
mon: 'Mo',
|
||||
tue: 'Di',
|
||||
wed: 'Mi',
|
||||
thu: 'Do',
|
||||
fri: 'Fr',
|
||||
sat: 'Sa'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mär',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Lädt.',
|
||||
noMatch: 'Nichts gefunden.',
|
||||
noData: 'Keine Daten',
|
||||
placeholder: 'Daten wählen'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nichts gefunden.',
|
||||
loading: 'Lädt.',
|
||||
placeholder: 'Daten wählen'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gehe zu',
|
||||
pagesize: ' pro Seite',
|
||||
total: 'Gesamt {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Abbrechen',
|
||||
error: 'Fehler'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Klicke löschen zum entfernen',
|
||||
delete: 'Löschen',
|
||||
preview: 'Vorschau',
|
||||
continue: 'Fortsetzen'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Keine Daten',
|
||||
confirmFilter: 'Anwenden',
|
||||
resetFilter: 'Zurücksetzen',
|
||||
clearFilter: 'Alles ',
|
||||
sumText: 'Summe'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Keine Einträge'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nichts gefunden.',
|
||||
noData: 'Keine Einträge',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Einträge filtern',
|
||||
noCheckedFormat: '{total} Einträge',
|
||||
hasCheckedFormat: '{checked}/{total} ausgewählt'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tühjenda'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Praegu',
|
||||
today: 'Täna',
|
||||
cancel: 'Tühista',
|
||||
clear: 'Tühjenda',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vali kuupäev',
|
||||
selectTime: 'Vali kellaaeg',
|
||||
startDate: 'Alguskuupäev',
|
||||
startTime: 'Algusaeg',
|
||||
endDate: 'Lõpukuupäev',
|
||||
endTime: 'Lõpuaeg',
|
||||
prevYear: 'Eelmine aasta',
|
||||
nextYear: 'Järgmine aasta',
|
||||
prevMonth: 'Eelmine kuu',
|
||||
nextMonth: 'Järgmine kuu',
|
||||
year: '',
|
||||
month1: 'Jaanuar',
|
||||
month2: 'Veebruar',
|
||||
month3: 'Märts',
|
||||
month4: 'Aprill',
|
||||
month5: 'Mai',
|
||||
month6: 'Juuni',
|
||||
month7: 'Juuli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktoober',
|
||||
month11: 'November',
|
||||
month12: 'Detsember',
|
||||
// week: 'nädal',
|
||||
weeks: {
|
||||
sun: 'P',
|
||||
mon: 'E',
|
||||
tue: 'T',
|
||||
wed: 'K',
|
||||
thu: 'N',
|
||||
fri: 'R',
|
||||
sat: 'L'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jaan',
|
||||
feb: 'Veeb',
|
||||
mar: 'Mär',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Juun',
|
||||
jul: 'Juul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sept',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dets'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laadimine',
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
noData: 'Andmed puuduvad',
|
||||
placeholder: 'Vali'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
loading: 'Laadimine',
|
||||
placeholder: 'Vali'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Mine lehele',
|
||||
pagesize: '/page',
|
||||
total: 'Kokku {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Teade',
|
||||
confirm: 'OK',
|
||||
cancel: 'Tühista',
|
||||
error: 'Vigane sisend'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Vajuta "Kustuta", et eemaldada',
|
||||
delete: 'Kustuta',
|
||||
preview: 'Eelvaate',
|
||||
continue: 'Jätka'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Andmed puuduvad',
|
||||
confirmFilter: 'Kinnita',
|
||||
resetFilter: 'Taasta',
|
||||
clearFilter: 'Kõik',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Andmed puuduvad'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sobivad andmed puuduvad',
|
||||
noData: 'Andmed puuduvad',
|
||||
titles: ['Loend 1', 'Loend 2'],
|
||||
filterPlaceholder: 'Sisesta märksõna',
|
||||
noCheckedFormat: '{total} objekti',
|
||||
hasCheckedFormat: '{checked}/{total} valitud'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Εντάξει',
|
||||
clear: 'Καθαρισμός'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Τώρα',
|
||||
today: 'Σήμερα',
|
||||
cancel: 'Ακύρωση',
|
||||
clear: 'Καθαρισμός',
|
||||
confirm: 'Εντάξει',
|
||||
selectDate: 'Επιλέξτε ημέρα',
|
||||
selectTime: 'Επιλέξτε ώρα',
|
||||
startDate: 'Ημερομηνία Έναρξης',
|
||||
startTime: 'Ωρα Έναρξης',
|
||||
endDate: 'Ημερομηνία Λήξης',
|
||||
endTime: 'Ωρα Λήξης',
|
||||
prevYear: 'Προηγούμενο Έτος',
|
||||
nextYear: 'Επόμενο Έτος',
|
||||
prevMonth: 'Προηγούμενος Μήνας',
|
||||
nextMonth: 'Επόμενος Μήνας',
|
||||
year: 'Έτος',
|
||||
month1: 'Ιανουάριος',
|
||||
month2: 'Φεβρουάριος',
|
||||
month3: 'Μάρτιος',
|
||||
month4: 'Απρίλιος',
|
||||
month5: 'Μάιος',
|
||||
month6: 'Ιούνιος',
|
||||
month7: 'Ιούλιος',
|
||||
month8: 'Αύγουστος',
|
||||
month9: 'Σεπτέμβριος',
|
||||
month10: 'Οκτώβριος',
|
||||
month11: 'Νοέμβριος',
|
||||
month12: 'Δεκέμβριος',
|
||||
// week: 'εβδομάδα',
|
||||
weeks: {
|
||||
sun: 'Κυρ',
|
||||
mon: 'Δευ',
|
||||
tue: 'Τρι',
|
||||
wed: 'Τετ',
|
||||
thu: 'Πεμ',
|
||||
fri: 'Παρ',
|
||||
sat: 'Σαβ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ιαν',
|
||||
feb: 'Φεβ',
|
||||
mar: 'Μαρ',
|
||||
apr: 'Απρ',
|
||||
may: 'Μαϊ',
|
||||
jun: 'Ιουν',
|
||||
jul: 'Ιουλ',
|
||||
aug: 'Αυγ',
|
||||
sep: 'Σεπ',
|
||||
oct: 'Οκτ',
|
||||
nov: 'Νοε',
|
||||
dec: 'Δεκ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Φόρτωση',
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
noData: 'Χωρίς δεδομένα',
|
||||
placeholder: 'Επιλογή'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
loading: 'Φόρτωση',
|
||||
placeholder: 'Επιλογή'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Μετάβαση σε',
|
||||
pagesize: '/σελίδα',
|
||||
total: 'Σύνολο {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Μήνυμα',
|
||||
confirm: 'Εντάξει',
|
||||
cancel: 'Ακύρωση',
|
||||
error: 'Άκυρη εισαγωγή'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Πάτησε Διαγραφή για αφαίρεση',
|
||||
delete: 'Διαγραφή',
|
||||
preview: 'Προεπισκόπηση',
|
||||
continue: 'Συνέχεια'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Χωρίς Δεδομένα',
|
||||
confirmFilter: 'Επιβεβαίωση',
|
||||
resetFilter: 'Επαναφορά',
|
||||
clearFilter: 'Όλα',
|
||||
sumText: 'Σύνολο'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Χωρίς Δεδομένα'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Δεν βρέθηκαν αποτελέσματα',
|
||||
noData: 'Χωρίς δεδομένα',
|
||||
titles: ['Λίστα 1', 'Λίστα 2'],
|
||||
filterPlaceholder: 'Αναζήτηση',
|
||||
noCheckedFormat: '{total} Αντικείμενα',
|
||||
hasCheckedFormat: '{checked}/{total} επιλεγμένα'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Clear'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Now',
|
||||
today: 'Today',
|
||||
cancel: 'Cancel',
|
||||
clear: 'Clear',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Select date',
|
||||
selectTime: 'Select time',
|
||||
startDate: 'Start Date',
|
||||
startTime: 'Start Time',
|
||||
endDate: 'End Date',
|
||||
endTime: 'End Time',
|
||||
prevYear: 'Previous Year',
|
||||
nextYear: 'Next Year',
|
||||
prevMonth: 'Previous Month',
|
||||
nextMonth: 'Next Month',
|
||||
year: '',
|
||||
month1: 'January',
|
||||
month2: 'February',
|
||||
month3: 'March',
|
||||
month4: 'April',
|
||||
month5: 'May',
|
||||
month6: 'June',
|
||||
month7: 'July',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'October',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
week: 'week',
|
||||
weeks: {
|
||||
sun: 'Sun',
|
||||
mon: 'Mon',
|
||||
tue: 'Tue',
|
||||
wed: 'Wed',
|
||||
thu: 'Thu',
|
||||
fri: 'Fri',
|
||||
sat: 'Sat'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'May',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Loading',
|
||||
noMatch: 'No matching data',
|
||||
noData: 'No data',
|
||||
placeholder: 'Select'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No matching data',
|
||||
loading: 'Loading',
|
||||
placeholder: 'Select'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Go to',
|
||||
pagesize: '/page',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Message',
|
||||
confirm: 'OK',
|
||||
cancel: 'Cancel',
|
||||
error: 'Illegal input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove',
|
||||
delete: 'Delete',
|
||||
preview: 'Preview',
|
||||
continue: 'Continue'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'No Data',
|
||||
confirmFilter: 'Confirm',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'All',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'No Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No matching data',
|
||||
noData: 'No data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Despejar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ahora',
|
||||
today: 'Hoy',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Despejar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Seleccionar fecha',
|
||||
selectTime: 'Seleccionar hora',
|
||||
startDate: 'Fecha Incial',
|
||||
startTime: 'Hora Inicial',
|
||||
endDate: 'Fecha Final',
|
||||
endTime: 'Hora Final',
|
||||
prevYear: 'Año Anterior',
|
||||
nextYear: 'Próximo Año',
|
||||
prevMonth: 'Mes Anterior',
|
||||
nextMonth: 'Próximo Mes',
|
||||
year: '',
|
||||
month1: 'enero',
|
||||
month2: 'febrero',
|
||||
month3: 'marzo',
|
||||
month4: 'abril',
|
||||
month5: 'mayo',
|
||||
month6: 'junio',
|
||||
month7: 'julio',
|
||||
month8: 'agosto',
|
||||
month9: 'septiembre',
|
||||
month10: 'octubre',
|
||||
month11: 'noviembre',
|
||||
month12: 'diciembre',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'dom',
|
||||
mon: 'lun',
|
||||
tue: 'mar',
|
||||
wed: 'mié',
|
||||
thu: 'jue',
|
||||
fri: 'vie',
|
||||
sat: 'sáb'
|
||||
},
|
||||
months: {
|
||||
jan: 'ene',
|
||||
feb: 'feb',
|
||||
mar: 'mar',
|
||||
apr: 'abr',
|
||||
may: 'may',
|
||||
jun: 'jun',
|
||||
jul: 'jul',
|
||||
aug: 'ago',
|
||||
sep: 'sep',
|
||||
oct: 'oct',
|
||||
nov: 'nov',
|
||||
dec: 'dic'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Cargando',
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
noData: 'Sin datos',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
loading: 'Cargando',
|
||||
placeholder: 'Seleccionar'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir a',
|
||||
pagesize: '/página',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Aceptar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Entrada inválida'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Pulse Eliminar para retirar',
|
||||
delete: 'Eliminar',
|
||||
preview: 'Vista Previa',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sin Datos',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Reiniciar',
|
||||
clearFilter: 'Despejar',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sin Datos'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'No hay datos que coincidan',
|
||||
noData: 'Sin datos',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Ingresar palabra clave',
|
||||
noCheckedFormat: '{total} artículos',
|
||||
hasCheckedFormat: '{checked}/{total} revisados'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Ados',
|
||||
clear: 'Garbitu'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Orain',
|
||||
today: 'Gaur',
|
||||
cancel: 'Utzi',
|
||||
clear: 'Garbitu',
|
||||
confirm: 'Ados',
|
||||
selectDate: 'Hautatu data',
|
||||
selectTime: 'Hautatu ordua',
|
||||
startDate: 'Hasierako data',
|
||||
startTime: 'Hasierako ordua',
|
||||
endDate: 'Amaierako data',
|
||||
endTime: 'Amaierako ordua',
|
||||
prevYear: 'Aurreko urtea',
|
||||
nextYear: 'Hurrengo urtea',
|
||||
prevMonth: 'Aurreko hilabetea',
|
||||
nextMonth: 'Hurrengo hilabetea',
|
||||
year: '',
|
||||
month1: 'Urtarrila',
|
||||
month2: 'Otsaila',
|
||||
month3: 'Martxoa',
|
||||
month4: 'Apirila',
|
||||
month5: 'Maiatza',
|
||||
month6: 'Ekaina',
|
||||
month7: 'Uztaila',
|
||||
month8: 'Abuztua',
|
||||
month9: 'Iraila',
|
||||
month10: 'Urria',
|
||||
month11: 'Azaroa',
|
||||
month12: 'Abendua',
|
||||
// week: 'astea',
|
||||
weeks: {
|
||||
sun: 'ig.',
|
||||
mon: 'al.',
|
||||
tue: 'ar.',
|
||||
wed: 'az.',
|
||||
thu: 'og.',
|
||||
fri: 'ol.',
|
||||
sat: 'lr.'
|
||||
},
|
||||
months: {
|
||||
jan: 'urt',
|
||||
feb: 'ots',
|
||||
mar: 'mar',
|
||||
apr: 'api',
|
||||
may: 'mai',
|
||||
jun: 'eka',
|
||||
jul: 'uzt',
|
||||
aug: 'abu',
|
||||
sep: 'ira',
|
||||
oct: 'urr',
|
||||
nov: 'aza',
|
||||
dec: 'abe'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Kargatzen',
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
noData: 'Daturik ez',
|
||||
placeholder: 'Hautatu'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
loading: 'Kargatzen',
|
||||
placeholder: 'Hautatu'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Joan',
|
||||
pagesize: '/orria',
|
||||
total: 'Guztira {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mezua',
|
||||
confirm: 'Ados',
|
||||
cancel: 'Utzi',
|
||||
error: 'Sarrera baliogabea'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'sakatu Ezabatu kentzeko',
|
||||
delete: 'Ezabatu',
|
||||
preview: 'Aurrebista',
|
||||
continue: 'Jarraitu'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Daturik ez',
|
||||
confirmFilter: 'Baieztatu',
|
||||
resetFilter: 'Berrezarri',
|
||||
clearFilter: 'Guztia',
|
||||
sumText: 'Batura'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Daturik ez'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Bat datorren daturik ez',
|
||||
noData: 'Daturik ez',
|
||||
titles: ['Zerrenda 1', 'Zerrenda 2'], // to be translated
|
||||
filterPlaceholder: 'Sartu gako-hitza', // to be translated
|
||||
noCheckedFormat: '{total} elementu', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} hautatuta' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'باشد',
|
||||
clear: 'حذف'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'اکنون',
|
||||
today: 'امروز',
|
||||
cancel: 'لغو',
|
||||
clear: 'حذف',
|
||||
confirm: 'باشه',
|
||||
selectDate: 'انتخاب تاریخ',
|
||||
selectTime: 'انتخاب زمان',
|
||||
startDate: 'تاریخ شروع',
|
||||
startTime: 'زمان شروع',
|
||||
endDate: 'تاریخ پایان',
|
||||
endTime: 'زمان پایان',
|
||||
prevYear: 'سال قبل',
|
||||
nextYear: 'سال بعد',
|
||||
prevMonth: 'ماه قبل',
|
||||
nextMonth: 'ماه بعد',
|
||||
year: 'سال',
|
||||
month1: 'ژانویه',
|
||||
month2: 'فوریه',
|
||||
month3: 'مارس',
|
||||
month4: 'آوریل',
|
||||
month5: 'مه',
|
||||
month6: 'ژوئن',
|
||||
month7: 'جولای',
|
||||
month8: 'اوت',
|
||||
month9: 'سپتامبر',
|
||||
month10: 'اکتبر',
|
||||
month11: 'نوامبر',
|
||||
month12: 'دسامبر',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'یکشنبه',
|
||||
mon: 'دوشنبه',
|
||||
tue: 'سهشنبه',
|
||||
wed: 'چهارشنبه',
|
||||
thu: 'پنجشنبه',
|
||||
fri: 'جمعه',
|
||||
sat: 'شنبه'
|
||||
},
|
||||
months: {
|
||||
jan: 'ژانویه',
|
||||
feb: 'فوریه',
|
||||
mar: 'مارس',
|
||||
apr: 'آوریل',
|
||||
may: 'مه',
|
||||
jun: 'ژوئن',
|
||||
jul: 'جولای',
|
||||
aug: 'اوت',
|
||||
sep: 'سپتامبر',
|
||||
oct: 'اکتبر',
|
||||
nov: 'نوامبر',
|
||||
dec: 'دسامبر'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'بارگیری',
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
noData: 'اطلاعاتی وجود ندارد',
|
||||
placeholder: 'انتخاب کنید'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
loading: 'بارگیری',
|
||||
placeholder: 'انتخاب کنید'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'برو به',
|
||||
pagesize: '/صفحه',
|
||||
total: 'مجموع {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'پیام',
|
||||
confirm: 'باشه',
|
||||
cancel: 'لغو',
|
||||
error: 'ورودی غیر مجاز'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'برای پاک کردن حذف را فشار دهید',
|
||||
delete: 'حذف',
|
||||
preview: 'پیشنمایش',
|
||||
continue: 'ادامه'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'اطلاعاتی وجود ندارد',
|
||||
confirmFilter: 'تایید',
|
||||
resetFilter: 'حذف',
|
||||
clearFilter: 'همه',
|
||||
sumText: 'جمع'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'اطلاعاتی وجود ندارد'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'هیچ دادهای پیدا نشد',
|
||||
noData: 'اطلاعاتی وجود ندارد',
|
||||
titles: ['لیست 1', 'لیست 2'],
|
||||
filterPlaceholder: 'کلید واژه هارو وارد کن',
|
||||
noCheckedFormat: '{total} مورد',
|
||||
hasCheckedFormat: '{checked} مورد از {total} مورد انتخاب شده است'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tyhjennä'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nyt',
|
||||
today: 'Tänään',
|
||||
cancel: 'Peruuta',
|
||||
clear: 'Tyhjennä',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Valitse päivä',
|
||||
selectTime: 'Valitse aika',
|
||||
startDate: 'Aloituspäivä',
|
||||
startTime: 'Aloitusaika',
|
||||
endDate: 'Lopetuspäivä',
|
||||
endTime: 'Lopetusaika',
|
||||
prevYear: 'Edellinen vuosi',
|
||||
nextYear: 'Seuraava vuosi',
|
||||
prevMonth: 'Edellinen kuukausi',
|
||||
nextMonth: 'Seuraava kuukausi',
|
||||
year: '',
|
||||
month1: 'tammikuu',
|
||||
month2: 'helmikuu',
|
||||
month3: 'maaliskuu',
|
||||
month4: 'huhtikuu',
|
||||
month5: 'toukokuu',
|
||||
month6: 'kesäkuu',
|
||||
month7: 'heinäkuu',
|
||||
month8: 'elokuu',
|
||||
month9: 'syyskuu',
|
||||
month10: 'lokakuu',
|
||||
month11: 'marraskuu',
|
||||
month12: 'joulukuu',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'su',
|
||||
mon: 'ma',
|
||||
tue: 'ti',
|
||||
wed: 'ke',
|
||||
thu: 'to',
|
||||
fri: 'pe',
|
||||
sat: 'la'
|
||||
},
|
||||
months: {
|
||||
jan: 'tammi',
|
||||
feb: 'helmi',
|
||||
mar: 'maalis',
|
||||
apr: 'huhti',
|
||||
may: 'touko',
|
||||
jun: 'kesä',
|
||||
jul: 'heinä',
|
||||
aug: 'elo',
|
||||
sep: 'syys',
|
||||
oct: 'loka',
|
||||
nov: 'marras',
|
||||
dec: 'joulu'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Lataa',
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
noData: 'Ei tietoja',
|
||||
placeholder: 'Valitse'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
loading: 'Lataa',
|
||||
placeholder: 'Valitse'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Mene',
|
||||
pagesize: '/sivu',
|
||||
total: 'Yhteensä {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Viesti',
|
||||
confirm: 'OK',
|
||||
cancel: 'Peruuta',
|
||||
error: 'Virheellinen syöte'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Poista Delete-näppäimellä',
|
||||
delete: 'Poista',
|
||||
preview: 'Esikatsele',
|
||||
continue: 'Jatka'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ei tietoja',
|
||||
confirmFilter: 'Vahvista',
|
||||
resetFilter: 'Tyhjennä',
|
||||
clearFilter: 'Kaikki',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ei tietoja'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ei vastaavia tietoja',
|
||||
noData: 'Ei tietoja',
|
||||
titles: ['Luettelo 1', 'Luettelo 2'],
|
||||
filterPlaceholder: 'Syötä hakusana',
|
||||
noCheckedFormat: '{total} kohdetta',
|
||||
hasCheckedFormat: '{checked}/{total} valittu'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Effacer'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Maintenant',
|
||||
today: 'Auj.',
|
||||
cancel: 'Annuler',
|
||||
clear: 'Effacer',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Choisir date',
|
||||
selectTime: 'Choisir horaire',
|
||||
startDate: 'Date début',
|
||||
startTime: 'Horaire début',
|
||||
endDate: 'Date fin',
|
||||
endTime: 'Horaire fin',
|
||||
prevYear: 'Année précédente',
|
||||
nextYear: 'Année suivante',
|
||||
prevMonth: 'Mois précédent',
|
||||
nextMonth: 'Mois suivant',
|
||||
year: '', // In french, like in english, we don't say "Année" after the year number.
|
||||
month1: 'Janvier',
|
||||
month2: 'Février',
|
||||
month3: 'Mars',
|
||||
month4: 'Avril',
|
||||
month5: 'Mai',
|
||||
month6: 'Juin',
|
||||
month7: 'Juillet',
|
||||
month8: 'Août',
|
||||
month9: 'Septembre',
|
||||
month10: 'Octobre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Décembre',
|
||||
// week: 'Semaine',
|
||||
weeks: {
|
||||
sun: 'Dim',
|
||||
mon: 'Lun',
|
||||
tue: 'Mar',
|
||||
wed: 'Mer',
|
||||
thu: 'Jeu',
|
||||
fri: 'Ven',
|
||||
sat: 'Sam'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fév',
|
||||
mar: 'Mar',
|
||||
apr: 'Avr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aoû',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Nov',
|
||||
dec: 'Déc'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Chargement',
|
||||
noMatch: 'Aucune correspondance',
|
||||
noData: 'Aucune donnée',
|
||||
placeholder: 'Choisir'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Aucune correspondance',
|
||||
loading: 'Chargement',
|
||||
placeholder: 'Choisir'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Aller à',
|
||||
pagesize: '/page',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'Confirmer',
|
||||
cancel: 'Annuler',
|
||||
error: 'Erreur'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Cliquer sur supprimer pour retirer le fichier',
|
||||
delete: 'Supprimer',
|
||||
preview: 'Aperçu',
|
||||
continue: 'Continuer'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Aucune donnée',
|
||||
confirmFilter: 'Confirmer',
|
||||
resetFilter: 'Réinitialiser',
|
||||
clearFilter: 'Tous',
|
||||
sumText: 'Somme'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Aucune donnée'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Aucune correspondance',
|
||||
noData: 'Aucune donnée',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Entrer un mot clef',
|
||||
noCheckedFormat: '{total} elements',
|
||||
hasCheckedFormat: '{checked}/{total} coché(s)'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'אישור',
|
||||
clear: 'נקה'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'כעת',
|
||||
today: 'היום',
|
||||
cancel: 'בטל',
|
||||
clear: 'נקה',
|
||||
confirm: 'אישור',
|
||||
selectDate: 'בחר תאריך',
|
||||
selectTime: 'בחר זמן',
|
||||
startDate: 'תאריך התחלה',
|
||||
startTime: 'זמן התחלה',
|
||||
endDate: 'תאריך סיום',
|
||||
endTime: 'זמן סיום',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'ינואר',
|
||||
month2: 'פברואר',
|
||||
month3: 'מרץ',
|
||||
month4: 'אפריל',
|
||||
month5: 'מאי',
|
||||
month6: 'יוני',
|
||||
month7: 'יולי',
|
||||
month8: 'אוגוסט',
|
||||
month9: 'ספטמבר',
|
||||
month10: 'אוקטובר',
|
||||
month11: 'נובמבר',
|
||||
month12: 'דצמבר',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'א׳',
|
||||
mon: 'ב׳',
|
||||
tue: 'ג׳',
|
||||
wed: 'ד׳',
|
||||
thu: 'ה׳',
|
||||
fri: 'ו׳',
|
||||
sat: 'שבת'
|
||||
},
|
||||
months: {
|
||||
jan: 'ינואר',
|
||||
feb: 'פברואר',
|
||||
mar: 'מרץ',
|
||||
apr: 'אפריל',
|
||||
may: 'מאי',
|
||||
jun: 'יוני',
|
||||
jul: 'יולי',
|
||||
aug: 'אוגוסט',
|
||||
sep: 'ספטמבר',
|
||||
oct: 'אוקטובר',
|
||||
nov: 'נובמבר',
|
||||
dec: 'דצמבר'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'טוען',
|
||||
noMatch: 'לא נמצאו נתונים',
|
||||
noData: 'ללא נתונים',
|
||||
placeholder: 'בחר'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ללא נתונים מתאימים',
|
||||
loading: 'טוען',
|
||||
placeholder: 'בחר'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'עבור ל',
|
||||
pagesize: '/page',
|
||||
total: 'כולל {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'הודעה',
|
||||
confirm: 'אישור',
|
||||
cancel: 'בטל',
|
||||
error: 'קלט לא תקין'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'מחק',
|
||||
preview: 'תצוגה מקדימה',
|
||||
continue: 'המשך'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'אין נתונים',
|
||||
confirmFilter: 'אישור',
|
||||
resetFilter: 'נקה',
|
||||
clearFilter: 'הכל',
|
||||
sumText: 'סך'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'אין נתונים'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'אין נתונים מתאימים',
|
||||
noData: 'ללא נתונים',
|
||||
titles: ['רשימה 1', 'רשימה 2'],
|
||||
filterPlaceholder: 'הקלד',
|
||||
noCheckedFormat: 'פריטים {total}',
|
||||
hasCheckedFormat: ' אישור {checked}/{total}'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Törlés'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Most',
|
||||
today: 'Ma',
|
||||
cancel: 'Mégse',
|
||||
clear: 'Törlés',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Dátum',
|
||||
selectTime: 'Időpont',
|
||||
startDate: 'Dátum-tól',
|
||||
startTime: 'Időpont-tól',
|
||||
endDate: 'Dátum-ig',
|
||||
endTime: 'Időpont-ig',
|
||||
prevYear: 'Előző év',
|
||||
nextYear: 'Következő év',
|
||||
prevMonth: 'Előző hónap',
|
||||
nextMonth: 'Következő hónap',
|
||||
year: '',
|
||||
month1: 'Január',
|
||||
month2: 'Február',
|
||||
month3: 'Március',
|
||||
month4: 'Április',
|
||||
month5: 'Május',
|
||||
month6: 'Június',
|
||||
month7: 'Július',
|
||||
month8: 'Augusztus',
|
||||
month9: 'Szeptember',
|
||||
month10: 'Október',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
weeks: {
|
||||
sun: 'Vas',
|
||||
mon: 'Hét',
|
||||
tue: 'Ked',
|
||||
wed: 'Sze',
|
||||
thu: 'Csü',
|
||||
fri: 'Pén',
|
||||
sat: 'Szo'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Már',
|
||||
apr: 'Ápr',
|
||||
may: 'Máj',
|
||||
jun: 'Jún',
|
||||
jul: 'Júl',
|
||||
aug: 'Aug',
|
||||
sep: 'Szep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Betöltés',
|
||||
noMatch: 'Nincs találat',
|
||||
noData: 'Nincs adat',
|
||||
placeholder: 'Válassz'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nincs találat',
|
||||
loading: 'Betöltés',
|
||||
placeholder: 'Válassz'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ugrás',
|
||||
pagesize: '/oldal',
|
||||
total: 'Össz {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Üzenet',
|
||||
confirm: 'OK',
|
||||
cancel: 'Mégse',
|
||||
error: 'Hibás adat'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kattints a törléshez',
|
||||
delete: 'Törlés',
|
||||
preview: 'Előnézet',
|
||||
continue: 'Tovább'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nincs adat',
|
||||
confirmFilter: 'Megerősít',
|
||||
resetFilter: 'Alaphelyet',
|
||||
clearFilter: 'Mind',
|
||||
sumText: 'Összeg'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nincs adat'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nincs találat',
|
||||
noData: 'Nincs adat',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Kulcsszó',
|
||||
noCheckedFormat: '{total} elem',
|
||||
hasCheckedFormat: '{checked}/{total} kiválasztva'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Լաւ',
|
||||
clear: 'Մաքրել'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Հիմա',
|
||||
today: 'Այսօր',
|
||||
cancel: 'Չեղարկել',
|
||||
clear: 'Մաքրել',
|
||||
confirm: 'Լաւ',
|
||||
selectDate: 'Ընտրեք ամսաթիւը',
|
||||
selectTime: 'Ընտրեք ժամանակը',
|
||||
startDate: 'Սկզբ. ամսաթիւը',
|
||||
startTime: 'Սկզբ. ժամանակը',
|
||||
endDate: 'Վերջ. ամսաթիվը',
|
||||
endTime: 'Վերջ. ժամանակը',
|
||||
prevYear: 'Նախորդ տարի',
|
||||
nextYear: 'Յաջորդ տարի',
|
||||
prevMonth: 'Նախորդ ամիս',
|
||||
nextMonth: 'Յաջորդ ամիս',
|
||||
year: 'Տարի',
|
||||
month1: 'Յունուար',
|
||||
month2: 'Փետրուար',
|
||||
month3: 'Մարտ',
|
||||
month4: 'Ապրիլ',
|
||||
month5: 'Մայիս',
|
||||
month6: 'Յունիս',
|
||||
month7: 'Յուլիս',
|
||||
month8: 'Օգոստոս',
|
||||
month9: 'Սեպտեմբեր',
|
||||
month10: 'Յոկտեմբեր',
|
||||
month11: 'Նոյեմբեր',
|
||||
month12: 'Դեկտեմբեր',
|
||||
week: 'Շաբաթ',
|
||||
weeks: {
|
||||
sun: 'Կիր',
|
||||
mon: 'Երկ',
|
||||
tue: 'Եր',
|
||||
wed: 'Չոր',
|
||||
thu: 'Հինգ',
|
||||
fri: 'Ուրբ',
|
||||
sat: 'Շաբ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Յունվ',
|
||||
feb: 'Փետ',
|
||||
mar: 'Մար',
|
||||
apr: 'Ապր',
|
||||
may: 'Մայ',
|
||||
jun: 'Յուն',
|
||||
jul: 'Յուլ',
|
||||
aug: 'Օգ',
|
||||
sep: 'Սեպտ',
|
||||
oct: 'Յոկ',
|
||||
nov: 'Նոյ',
|
||||
dec: 'Դեկ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Բեռնում',
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
noData: 'Տվյալներ չկան',
|
||||
placeholder: 'Ընտրել'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
loading: 'Բեռնում',
|
||||
placeholder: 'Ընտրել'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Անցնել',
|
||||
pagesize: ' էջում',
|
||||
total: 'Ընդամենը {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Հաղորդագրութիւն',
|
||||
confirm: 'Լաւ',
|
||||
cancel: 'Չեղարկել',
|
||||
error: 'Անվաւեր տուեալների մուտք'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Սեղմեք [Ջնջել] ջնջելու համար',
|
||||
delete: 'Ջնջել',
|
||||
preview: 'Նախադիտում',
|
||||
continue: 'Շարունակել'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Տուեալներ չկան',
|
||||
confirmFilter: 'Յաստատել',
|
||||
resetFilter: 'Վերագործարկել',
|
||||
clearFilter: 'Բոլորը',
|
||||
sumText: 'Գումարը'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Տուեալներ չկան'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Համապատասխան տուեալներ չկան',
|
||||
noData: 'Տուեալներ չկան',
|
||||
titles: ['Ցուցակ 1', 'Ցուցակ 2'],
|
||||
filterPlaceholder: 'Մուտքագրեք բանալի բառ',
|
||||
noCheckedFormat: '{total} միաւոր',
|
||||
hasCheckedFormat: '{checked}/{total} ընտրուած է'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Pilih',
|
||||
clear: 'Kosongkan'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Sekarang',
|
||||
today: 'Hari ini',
|
||||
cancel: 'Batal',
|
||||
clear: 'Kosongkan',
|
||||
confirm: 'Ya',
|
||||
selectDate: 'Pilih tanggal',
|
||||
selectTime: 'Pilih waktu',
|
||||
startDate: 'Tanggal Mulai',
|
||||
startTime: 'Waktu Mulai',
|
||||
endDate: 'Tanggal Selesai',
|
||||
endTime: 'Waktu Selesai',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'Tahun',
|
||||
month1: 'Januari',
|
||||
month2: 'Februari',
|
||||
month3: 'Maret',
|
||||
month4: 'April',
|
||||
month5: 'Mei',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'Agustus',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Desember',
|
||||
// week: 'minggu',
|
||||
weeks: {
|
||||
sun: 'Min',
|
||||
mon: 'Sen',
|
||||
tue: 'Sel',
|
||||
wed: 'Rab',
|
||||
thu: 'Kam',
|
||||
fri: 'Jum',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mei',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Agu',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Memuat',
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
noData: 'Tidak ada data',
|
||||
placeholder: 'Pilih'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
loading: 'Memuat',
|
||||
placeholder: 'Pilih'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Pergi ke',
|
||||
pagesize: '/laman',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Pesan',
|
||||
confirm: 'Ya',
|
||||
cancel: 'Batal',
|
||||
error: 'Masukan ilegal'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Hapus',
|
||||
preview: 'Pratinjau',
|
||||
continue: 'Lanjutkan'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Tidak ada data',
|
||||
confirmFilter: 'Konfirmasi',
|
||||
resetFilter: 'Atur ulang',
|
||||
clearFilter: 'Semua',
|
||||
sumText: 'Jml'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Tidak ada data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Tidak ada data yg cocok',
|
||||
noData: 'Tidak ada data',
|
||||
titles: ['Senarai 1', 'Senarai 2'],
|
||||
filterPlaceholder: 'Masukan kata kunci',
|
||||
noCheckedFormat: '{total} butir',
|
||||
hasCheckedFormat: '{checked}/{total} terpilih'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Pulisci'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Ora',
|
||||
today: 'Oggi',
|
||||
cancel: 'Cancella',
|
||||
clear: 'Pulisci',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Seleziona data',
|
||||
selectTime: 'Seleziona ora',
|
||||
startDate: 'Data inizio',
|
||||
startTime: 'Ora inizio',
|
||||
endDate: 'Data fine',
|
||||
endTime: 'Ora fine',
|
||||
prevYear: 'Anno precedente',
|
||||
nextYear: 'Anno successivo',
|
||||
prevMonth: 'Mese precedente',
|
||||
nextMonth: 'Mese successivo',
|
||||
year: '',
|
||||
month1: 'Gennaio',
|
||||
month2: 'Febbraio',
|
||||
month3: 'Marzo',
|
||||
month4: 'Aprile',
|
||||
month5: 'Maggio',
|
||||
month6: 'Giugno',
|
||||
month7: 'Luglio',
|
||||
month8: 'Agosto',
|
||||
month9: 'Settembre',
|
||||
month10: 'Ottobre',
|
||||
month11: 'Novembre',
|
||||
month12: 'Dicembre',
|
||||
// week: 'settimana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Lun',
|
||||
tue: 'Mar',
|
||||
wed: 'Mer',
|
||||
thu: 'Gio',
|
||||
fri: 'Ven',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Gen',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mag',
|
||||
jun: 'Giu',
|
||||
jul: 'Lug',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Ott',
|
||||
nov: 'Nov',
|
||||
dec: 'Dic'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Caricamento',
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
noData: 'Nessun dato',
|
||||
placeholder: 'Seleziona'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
loading: 'Caricamento',
|
||||
placeholder: 'Seleziona'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Vai a',
|
||||
pagesize: '/page',
|
||||
total: 'Totale {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Cancella',
|
||||
error: 'Input non valido'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Premi cancella per rimuovere',
|
||||
delete: 'Cancella',
|
||||
preview: 'Anteprima',
|
||||
continue: 'Continua'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nessun dato',
|
||||
confirmFilter: 'Conferma',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'Tutti',
|
||||
sumText: 'Somma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nessun dato'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nessuna corrispondenza',
|
||||
noData: 'Nessun dato',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Inserisci filtro',
|
||||
noCheckedFormat: '{total} elementi',
|
||||
hasCheckedFormat: '{checked}/{total} selezionati'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'クリア'
|
||||
},
|
||||
datepicker: {
|
||||
now: '現在',
|
||||
today: '今日',
|
||||
cancel: 'キャンセル',
|
||||
clear: 'クリア',
|
||||
confirm: 'OK',
|
||||
selectDate: '日付を選択',
|
||||
selectTime: '時間を選択',
|
||||
startDate: '開始日',
|
||||
startTime: '開始時間',
|
||||
endDate: '終了日',
|
||||
endTime: '終了時間',
|
||||
prevYear: '前年',
|
||||
nextYear: '翌年',
|
||||
prevMonth: '前月',
|
||||
nextMonth: '翌月',
|
||||
year: '年',
|
||||
month1: '1月',
|
||||
month2: '2月',
|
||||
month3: '3月',
|
||||
month4: '4月',
|
||||
month5: '5月',
|
||||
month6: '6月',
|
||||
month7: '7月',
|
||||
month8: '8月',
|
||||
month9: '9月',
|
||||
month10: '10月',
|
||||
month11: '11月',
|
||||
month12: '12月',
|
||||
// week: '週次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '月',
|
||||
tue: '火',
|
||||
wed: '水',
|
||||
thu: '木',
|
||||
fri: '金',
|
||||
sat: '土'
|
||||
},
|
||||
months: {
|
||||
jan: '1月',
|
||||
feb: '2月',
|
||||
mar: '3月',
|
||||
apr: '4月',
|
||||
may: '5月',
|
||||
jun: '6月',
|
||||
jul: '7月',
|
||||
aug: '8月',
|
||||
sep: '9月',
|
||||
oct: '10月',
|
||||
nov: '11月',
|
||||
dec: '12月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'ロード中',
|
||||
noMatch: 'データなし',
|
||||
noData: 'データなし',
|
||||
placeholder: '選択してください'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'データなし',
|
||||
loading: 'ロード中',
|
||||
placeholder: '選択してください'
|
||||
},
|
||||
pagination: {
|
||||
goto: '',
|
||||
pagesize: '件/ページ',
|
||||
total: '総計 {total} 件',
|
||||
pageClassifier: 'ページ目へ'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'メッセージ',
|
||||
confirm: 'OK',
|
||||
cancel: 'キャンセル',
|
||||
error: '正しくない入力'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Delキーを押して削除する',
|
||||
delete: '削除する',
|
||||
preview: 'プレビュー',
|
||||
continue: '続行する'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'データなし',
|
||||
confirmFilter: '確認',
|
||||
resetFilter: '初期化',
|
||||
clearFilter: 'すべて',
|
||||
sumText: '合計'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'データなし'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'データなし',
|
||||
noData: 'データなし',
|
||||
titles: ['リスト 1', 'リスト 2'],
|
||||
filterPlaceholder: 'キーワードを入力',
|
||||
noCheckedFormat: '総計 {total} 件',
|
||||
hasCheckedFormat: '{checked}/{total} を選択した'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Мурунку',
|
||||
clear: 'ачык'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'азыр',
|
||||
today: 'бүгүн',
|
||||
cancel: 'жокко чыгарылды',
|
||||
clear: 'ачык',
|
||||
confirm: 'белгилөө',
|
||||
selectDate: 'дата',
|
||||
selectTime: 'тандоо убактысы',
|
||||
startDate: 'Башталган датасы',
|
||||
startTime: 'Start убакыт',
|
||||
endDate: 'Бүткөн датасы',
|
||||
endTime: 'End убакыт',
|
||||
prevYear: 'өткөн жылы',
|
||||
nextYear: 'бир жылдан кийин',
|
||||
prevMonth: 'Өткөн айда',
|
||||
nextMonth: 'Кийинки ай',
|
||||
year: 'жыл',
|
||||
month1: 'биринчи ай',
|
||||
month2: 'Экинчи айда',
|
||||
month3: 'Үчүнчү айда',
|
||||
month4: 'Төртүнчү айда',
|
||||
month5: 'бешинчи айда',
|
||||
month6: 'Алгачкы алты ай',
|
||||
month7: 'жетинчи айда',
|
||||
month8: 'сегизинчи ай',
|
||||
month9: 'Алгачкы тогуз ай',
|
||||
month10: 'онунчу айда',
|
||||
month11: 'он биринчи ай',
|
||||
month12: 'он экинчи айда',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: 'жети жума',
|
||||
mon: 'дүйшөмбү',
|
||||
tue: 'шейшемби',
|
||||
wed: 'шаршемби',
|
||||
thu: 'бейшемби',
|
||||
fri: 'жума',
|
||||
sat: 'ишемби'
|
||||
},
|
||||
months: {
|
||||
jan: 'биринчи ай',
|
||||
feb: 'Экинчи айда',
|
||||
mar: 'Үчүнчү айда',
|
||||
apr: 'Төртүнчү айда',
|
||||
may: 'бешинчи айда',
|
||||
jun: 'Алгачкы алты ай',
|
||||
jul: 'жетинчи айда',
|
||||
aug: 'сегизинчи ай',
|
||||
sep: 'Алгачкы тогуз ай',
|
||||
oct: 'онунчу айда',
|
||||
nov: 'он биринчи ай',
|
||||
dec: 'он экинчи айда'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Жүктөлүүдө',
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
noData: 'маалымат жок',
|
||||
placeholder: 'тандоо'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
loading: 'Жүктөлүүдө',
|
||||
placeholder: 'тандоо'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Мурунку',
|
||||
pagesize: 'бир',
|
||||
total: 'бүтүндөй {total} сан ',
|
||||
pageClassifier: 'бет'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'тез',
|
||||
confirm: 'белгилөө',
|
||||
cancel: 'жокко чыгарылды',
|
||||
error: 'Маалыматтарды киргизүү мыйзамдуу эмес!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Жок кылуу баскычын басуу жок',
|
||||
delete: 'жок кылуу',
|
||||
preview: 'ЖМКнын картинки',
|
||||
continue: 'жүктөп бер'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'маалымат жок',
|
||||
confirmFilter: 'чыпка',
|
||||
resetFilter: 'кайра орнотуу',
|
||||
clearFilter: 'бүткөн',
|
||||
sumText: 'Бардыгы болуп'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'маалымат жок'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Дал келген маалыматтар',
|
||||
noData: 'маалымат жок',
|
||||
titles: ['1 тизмеси', '2 тизмеси'],
|
||||
filterPlaceholder: 'Сураныч, издөө кирет',
|
||||
noCheckedFormat: 'бүтүндөй {total} сан',
|
||||
hasCheckedFormat: 'Тандалган {checked}/{total} сан'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'យល់ព្រម',
|
||||
clear: 'លុប'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ឥឡូវនេះ',
|
||||
today: 'ថ្ងៃនេះ',
|
||||
cancel: 'បោះបង់',
|
||||
clear: 'លុប',
|
||||
confirm: 'យល់ព្រម',
|
||||
selectDate: 'ជ្រើសរើសថ្ងៃ',
|
||||
selectTime: 'ជ្រើសរើសម៉ោង',
|
||||
startDate: 'ថ្ងៃចាប់ផ្តើម',
|
||||
startTime: 'ម៉ោងចាប់ផ្តើម',
|
||||
endDate: 'ថ្ងៃបញ្ចប់',
|
||||
endTime: 'ម៉ោងបញ្ចប់',
|
||||
prevYear: 'ឆ្នាំមុន',
|
||||
nextYear: 'ឆ្នាំក្រោយ',
|
||||
prevMonth: 'ខែមុន',
|
||||
nextMonth: 'ខែក្រោយ',
|
||||
year: 'ឆ្នាំ',
|
||||
month1: 'មករា',
|
||||
month2: 'កុម្ភៈ',
|
||||
month3: 'មីនា',
|
||||
month4: 'មេសា',
|
||||
month5: 'ឧសភា',
|
||||
month6: 'មិថុនា',
|
||||
month7: 'កក្កដា',
|
||||
month8: 'សីហា',
|
||||
month9: 'កញ្ញា',
|
||||
month10: 'តុលា',
|
||||
month11: 'វិច្ឆកា',
|
||||
month12: 'ធ្នូ',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'អាទិត្យ',
|
||||
mon: 'Mon',
|
||||
tue: 'អង្គារ',
|
||||
wed: 'ពុធ',
|
||||
thu: 'ព្រ.ហ',
|
||||
fri: 'សុក្រ',
|
||||
sat: 'សៅរ៏'
|
||||
},
|
||||
months: {
|
||||
jan: 'មករា',
|
||||
feb: 'កុម្ភៈ',
|
||||
mar: 'មីនា',
|
||||
apr: 'មេសា',
|
||||
may: 'ឧសភា',
|
||||
jun: 'មិថុនា',
|
||||
jul: 'កក្កដា',
|
||||
aug: 'សីហា',
|
||||
sep: 'កញ្ញា',
|
||||
oct: 'តុលា',
|
||||
nov: 'វិច្ឆកា',
|
||||
dec: 'ធ្នូ'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'កំពុងផ្ទុក',
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
noData: 'គ្មានទិន្ន័យ',
|
||||
placeholder: 'ជ្រើសរើស'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
loading: 'កំពុងផ្ទុក',
|
||||
placeholder: 'ជ្រើសរើស'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'ទៅកាន់',
|
||||
pagesize: '/ទំព័រ',
|
||||
total: 'សរុប {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'សារ',
|
||||
confirm: 'យល់ព្រម',
|
||||
cancel: 'បោះបង់',
|
||||
error: 'ការបញ្ចូលមិនអនុញ្ញាត'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'ចុចលុបដើម្បីដកចេញ',
|
||||
delete: 'លុប',
|
||||
preview: 'មើល',
|
||||
continue: 'បន្ត'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'គ្មានទិន្ន័យ',
|
||||
confirmFilter: 'យល់ព្រម',
|
||||
resetFilter: 'កំណត់ឡើងវិញ',
|
||||
clearFilter: 'ទាំងអស់',
|
||||
sumText: 'បូក'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'គ្មានទិន្ន័យ'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'គ្មានទិន្ន័យដូច',
|
||||
noData: 'គ្មានទិន្ន័យ',
|
||||
titles: ['បញ្ជី ១', 'បញ្ជី ២'],
|
||||
filterPlaceholder: 'បញ្ចូលពាក្យ',
|
||||
noCheckedFormat: '{total} ធាតុ',
|
||||
hasCheckedFormat: '{checked}/{total} បានគូសធីក'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '확인',
|
||||
clear: '초기화'
|
||||
},
|
||||
datepicker: {
|
||||
now: '지금',
|
||||
today: '오늘',
|
||||
cancel: '취소',
|
||||
clear: '초기화',
|
||||
confirm: '확인',
|
||||
selectDate: '날짜 선택',
|
||||
selectTime: '시간 선택',
|
||||
startDate: '시작 날짜',
|
||||
startTime: '시작 시간',
|
||||
endDate: '종료 날짜',
|
||||
endTime: '종료 시간',
|
||||
prevYear: '지난해',
|
||||
nextYear: '다음해',
|
||||
prevMonth: '지난달',
|
||||
nextMonth: '다음달',
|
||||
year: '년',
|
||||
month1: '1월',
|
||||
month2: '2월',
|
||||
month3: '3월',
|
||||
month4: '4월',
|
||||
month5: '5월',
|
||||
month6: '6월',
|
||||
month7: '7월',
|
||||
month8: '8월',
|
||||
month9: '9월',
|
||||
month10: '10월',
|
||||
month11: '11월',
|
||||
month12: '12월',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: '일',
|
||||
mon: '월',
|
||||
tue: '화',
|
||||
wed: '수',
|
||||
thu: '목',
|
||||
fri: '금',
|
||||
sat: '토'
|
||||
},
|
||||
months: {
|
||||
jan: '1월',
|
||||
feb: '2월',
|
||||
mar: '3월',
|
||||
apr: '4월',
|
||||
may: '5월',
|
||||
jun: '6월',
|
||||
jul: '7월',
|
||||
aug: '8월',
|
||||
sep: '9월',
|
||||
oct: '10월',
|
||||
nov: '11월',
|
||||
dec: '12월'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '불러오는 중',
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
noData: '데이터 없음',
|
||||
placeholder: '선택'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
loading: '불러오는 중',
|
||||
placeholder: '선택'
|
||||
},
|
||||
pagination: {
|
||||
goto: '이동',
|
||||
pagesize: '/page',
|
||||
total: '총 {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: '메시지',
|
||||
confirm: '확인',
|
||||
cancel: '취소',
|
||||
error: '올바르지 않은 입력'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '클릭시 삭제됩니다',
|
||||
delete: '삭제',
|
||||
preview: '미리보기',
|
||||
continue: '계속하기'
|
||||
},
|
||||
table: {
|
||||
emptyText: '데이터 없음',
|
||||
confirmFilter: '확인',
|
||||
resetFilter: '초기화',
|
||||
clearFilter: '전체',
|
||||
sumText: '합'
|
||||
},
|
||||
tree: {
|
||||
emptyText: '데이터 없음'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '맞는 데이터가 없습니다',
|
||||
noData: '데이터 없음',
|
||||
titles: ['리스트 1', '리스트 2'],
|
||||
filterPlaceholder: ' 입력하세요',
|
||||
noCheckedFormat: '{total} 항목',
|
||||
hasCheckedFormat: '{checked}/{total} 선택됨'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Temam',
|
||||
clear: 'Paqij bike'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Niha',
|
||||
today: 'Îro',
|
||||
cancel: 'Betal bike',
|
||||
clear: 'Paqij bike',
|
||||
confirm: 'Temam',
|
||||
selectDate: 'Dîrokê bibijêre',
|
||||
selectTime: 'Demê bibijêre',
|
||||
startDate: 'Dîroka Destpêkê',
|
||||
startTime: 'Dema Destpêkê',
|
||||
endDate: 'Dîroka Dawî',
|
||||
endTime: 'Dema Dawî',
|
||||
prevYear: 'Sala Pêş',
|
||||
nextYear: 'Sala Paş',
|
||||
prevMonth: 'Meha Pêş',
|
||||
nextMonth: 'Meha Paş',
|
||||
year: 'Sal',
|
||||
month1: 'Rêbendan',
|
||||
month2: 'Reşemeh',
|
||||
month3: 'Adar',
|
||||
month4: 'Avrêl',
|
||||
month5: 'Gulan',
|
||||
month6: 'Pûşber',
|
||||
month7: 'Tîrmeh',
|
||||
month8: 'Gilavêj',
|
||||
month9: 'Rezber',
|
||||
month10: 'Kewçêr',
|
||||
month11: 'Sarmawaz',
|
||||
month12: 'Berfanbar',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Yek',
|
||||
mon: 'Duş',
|
||||
tue: 'Sêş',
|
||||
wed: 'Çar',
|
||||
thu: 'Pên',
|
||||
fri: 'În',
|
||||
sat: 'Şem'
|
||||
},
|
||||
months: {
|
||||
jan: 'Rêb',
|
||||
feb: 'Reş',
|
||||
mar: 'Ada',
|
||||
apr: 'Avr',
|
||||
may: 'Gul',
|
||||
jun: 'Pûş',
|
||||
jul: 'Tîr',
|
||||
aug: 'Gil',
|
||||
sep: 'Rez',
|
||||
oct: 'Kew',
|
||||
nov: 'Sar',
|
||||
dec: 'Ber'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Bardibe',
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
noData: 'Agahî tune',
|
||||
placeholder: 'Bibijêre'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
loading: 'Bardibe',
|
||||
placeholder: 'Bibijêre'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Biçe',
|
||||
pagesize: '/rupel',
|
||||
total: 'Tevahî {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Peyam',
|
||||
confirm: 'Temam',
|
||||
cancel: 'Betal bike',
|
||||
error: 'Beyana çewt'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'ji bo rake pêl "delete" bike',
|
||||
delete: 'Rake',
|
||||
preview: 'Pêşdîtin',
|
||||
continue: 'Berdewam'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Agahî tune',
|
||||
confirmFilter: 'Piştrast bike',
|
||||
resetFilter: 'Jê bibe',
|
||||
clearFilter: 'Hemû',
|
||||
sumText: 'Kom'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Agahî tune'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Li hembere ve agahî tune',
|
||||
noData: 'Agahî tune',
|
||||
titles: ['Lîste 1', 'Lîste 2'],
|
||||
filterPlaceholder: 'Binivîse',
|
||||
noCheckedFormat: '{total} lib',
|
||||
hasCheckedFormat: '{checked}/{total} bijartin'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Қабылдау',
|
||||
clear: 'Тазалау'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Қазір',
|
||||
today: 'Бүгін',
|
||||
cancel: 'Болдырмау',
|
||||
clear: 'Тазалау',
|
||||
confirm: 'Қабылдау',
|
||||
selectDate: 'Күнді таңдаңыз',
|
||||
selectTime: 'Сағатты таңдаңыз',
|
||||
startDate: 'Басталу күні',
|
||||
startTime: 'Басталу сағаты',
|
||||
endDate: 'Аяқталу күні',
|
||||
endTime: 'Аяқталу сағаты',
|
||||
prevYear: 'Алдыңғы жыл',
|
||||
nextYear: 'Келесі жыл',
|
||||
prevMonth: 'Алдыңғы ай',
|
||||
nextMonth: 'Келесі ай',
|
||||
year: 'Жыл',
|
||||
month1: 'Қаңтар',
|
||||
month2: 'Ақпан',
|
||||
month3: 'Наурыз',
|
||||
month4: 'Сәуір',
|
||||
month5: 'Мамыр',
|
||||
month6: 'Маусым',
|
||||
month7: 'Шілде',
|
||||
month8: 'Тамыз',
|
||||
month9: 'Қыркүйек',
|
||||
month10: 'Қазан',
|
||||
month11: 'Қараша',
|
||||
month12: 'Желтоқсан',
|
||||
week: 'Апта',
|
||||
weeks: {
|
||||
sun: 'Жек',
|
||||
mon: 'Дүй',
|
||||
tue: 'Сей',
|
||||
wed: 'Сәр',
|
||||
thu: 'Бей',
|
||||
fri: 'Жұм',
|
||||
sat: 'Сен'
|
||||
},
|
||||
months: {
|
||||
jan: 'Қаң',
|
||||
feb: 'Ақп',
|
||||
mar: 'Нау',
|
||||
apr: 'Сәу',
|
||||
may: 'Мам',
|
||||
jun: 'Мау',
|
||||
jul: 'Шіл',
|
||||
aug: 'Там',
|
||||
sep: 'Қыр',
|
||||
oct: 'Қаз',
|
||||
nov: 'Қар',
|
||||
dec: 'Жел'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Жүктелуде',
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
noData: 'Деректер жоқ',
|
||||
placeholder: 'Таңдаңыз'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
loading: 'Жүктелуде',
|
||||
placeholder: 'Таңдаңыз'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Бару',
|
||||
pagesize: '/page',
|
||||
total: 'Барлығы {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Хабар',
|
||||
confirm: 'Қабылдау',
|
||||
cancel: 'Болдырмау',
|
||||
error: 'Жарамсыз енгізулер'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Өшіруді басып өшіріңіз',
|
||||
delete: 'Өшіру',
|
||||
preview: 'Алдын ала қарау',
|
||||
continue: 'Жалғастыру'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Деректер жоқ',
|
||||
confirmFilter: 'Қабылдау',
|
||||
resetFilter: 'Қалпына келтіру',
|
||||
clearFilter: 'Барлығы',
|
||||
sumText: 'Сомасы'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Деректер жоқ'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Сәйкес деректер жоқ',
|
||||
noData: 'Деректер жоқ',
|
||||
titles: ['List 1', 'List 2'],
|
||||
filterPlaceholder: 'Кілт сөзді енгізіңіз',
|
||||
noCheckedFormat: '{total} элэмэнт',
|
||||
hasCheckedFormat: '{checked}/{total} құсбелгісі қойылды'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Valyti'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Dabar',
|
||||
today: 'Šiandien',
|
||||
cancel: 'Atšaukti',
|
||||
clear: 'Valyti',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Pasirink datą',
|
||||
selectTime: 'Pasirink laiką',
|
||||
startDate: 'Data nuo',
|
||||
startTime: 'Laikas nuo',
|
||||
endDate: 'Data iki',
|
||||
endTime: 'Laikas iki',
|
||||
prevYear: 'Metai atgal',
|
||||
nextYear: 'Metai į priekį',
|
||||
prevMonth: 'Mėn. atgal',
|
||||
nextMonth: 'Mėn. į priekį',
|
||||
year: '',
|
||||
month1: 'Sausis',
|
||||
month2: 'Vasaris',
|
||||
month3: 'Kovas',
|
||||
month4: 'Balandis',
|
||||
month5: 'Gegužė',
|
||||
month6: 'Birželis',
|
||||
month7: 'Liepa',
|
||||
month8: 'Rugpjūtis',
|
||||
month9: 'Rugsėjis',
|
||||
month10: 'Spalis',
|
||||
month11: 'Lapkritis',
|
||||
month12: 'Gruodis',
|
||||
// week: 'savaitė',
|
||||
weeks: {
|
||||
sun: 'S.',
|
||||
mon: 'Pr.',
|
||||
tue: 'A.',
|
||||
wed: 'T.',
|
||||
thu: 'K.',
|
||||
fri: 'Pn.',
|
||||
sat: 'Š.'
|
||||
},
|
||||
months: {
|
||||
jan: 'Sau',
|
||||
feb: 'Vas',
|
||||
mar: 'Kov',
|
||||
apr: 'Bal',
|
||||
may: 'Geg',
|
||||
jun: 'Bir',
|
||||
jul: 'Lie',
|
||||
aug: 'Rugp',
|
||||
sep: 'Rugs',
|
||||
oct: 'Spa',
|
||||
nov: 'Lap',
|
||||
dec: 'Gruo'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Kraunasi',
|
||||
noMatch: 'Duomenų nerasta',
|
||||
noData: 'Nėra duomenų',
|
||||
placeholder: 'Pasirink'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Duomenų nerasta',
|
||||
loading: 'Kraunasi',
|
||||
placeholder: 'Pasirink'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Eiti į',
|
||||
pagesize: '/p',
|
||||
total: 'Viso {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Žinutė',
|
||||
confirm: 'OK',
|
||||
cancel: 'Atšaukti',
|
||||
error: 'Klaida įvestuose duomenyse'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'spauskite "Trinti" norėdami pašalinti',
|
||||
delete: 'Trinti',
|
||||
preview: 'Peržiūrėti',
|
||||
continue: 'Toliau'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Duomenų nerasta',
|
||||
confirmFilter: 'Patvirtinti',
|
||||
resetFilter: 'Atstatyti',
|
||||
clearFilter: 'Išvalyti',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nėra duomenų'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Duomenų nerasta',
|
||||
noData: 'Nėra duomenų',
|
||||
titles: ['Sąrašas 1', 'Sąrašas 2'],
|
||||
filterPlaceholder: 'Įvesk raktažodį',
|
||||
noCheckedFormat: 'Viso: {total}',
|
||||
hasCheckedFormat: 'Pažymėta {checked} iš {total}'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Labi',
|
||||
clear: 'Notīrīt'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Tagad',
|
||||
today: 'Šodien',
|
||||
cancel: 'Atcelt',
|
||||
clear: 'Notīrīt',
|
||||
confirm: 'Labi',
|
||||
selectDate: 'Izvēlēties datumu',
|
||||
selectTime: 'Izvēlēties laiku',
|
||||
startDate: 'Sākuma datums',
|
||||
startTime: 'Sākuma laiks',
|
||||
endDate: 'Beigu datums',
|
||||
endTime: 'Beigu laiks',
|
||||
prevYear: 'Iepriekšējais gads',
|
||||
nextYear: 'Nākamais gads',
|
||||
prevMonth: 'Iepriekšējais mēnesis',
|
||||
nextMonth: 'Nākamais mēnesis',
|
||||
year: '',
|
||||
month1: 'Janvāris',
|
||||
month2: 'Februāris',
|
||||
month3: 'Marts',
|
||||
month4: 'Aprīlis',
|
||||
month5: 'Maijs',
|
||||
month6: 'Jūnijs',
|
||||
month7: 'Jūlijs',
|
||||
month8: 'Augusts',
|
||||
month9: 'Septembris',
|
||||
month10: 'Oktobris',
|
||||
month11: 'Novembris',
|
||||
month12: 'Decembris',
|
||||
// week: 'nedēļa',
|
||||
weeks: {
|
||||
sun: 'Sv',
|
||||
mon: 'Pr',
|
||||
tue: 'Ot',
|
||||
wed: 'Tr',
|
||||
thu: 'Ce',
|
||||
fri: 'Pk',
|
||||
sat: 'Se'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jūn',
|
||||
jul: 'Jūl',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ielādē',
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
noData: 'Nav datu',
|
||||
placeholder: 'Izvēlēties'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
loading: 'Ielādē',
|
||||
placeholder: 'Izvēlēties'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Iet uz',
|
||||
pagesize: '/lapa',
|
||||
total: 'Kopā {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Paziņojums',
|
||||
confirm: 'Labi',
|
||||
cancel: 'Atcelt',
|
||||
error: 'Nederīga ievade'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Nospiediet dzēst lai izņemtu',
|
||||
delete: 'Dzēst',
|
||||
preview: 'Priekšskatīt',
|
||||
continue: 'Turpināt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nav datu',
|
||||
confirmFilter: 'Apstiprināt',
|
||||
resetFilter: 'Atiestatīt',
|
||||
clearFilter: 'Visi',
|
||||
sumText: 'Summa'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nav datu'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nav atbilstošu datu',
|
||||
noData: 'Nav datu',
|
||||
titles: ['Saraksts 1', 'Saraksts 2'],
|
||||
filterPlaceholder: 'Ievadīt atslēgvārdu',
|
||||
noCheckedFormat: '{total} vienības',
|
||||
hasCheckedFormat: '{checked}/{total} atzīmēti'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Тийм',
|
||||
clear: 'Цэвэрлэх'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Одоо',
|
||||
today: 'Өнөөдөр',
|
||||
cancel: 'Болих',
|
||||
clear: 'Цэвэрлэх',
|
||||
confirm: 'Тийм',
|
||||
selectDate: 'Огноог сонго',
|
||||
selectTime: 'Цагийг сонго',
|
||||
startDate: 'Эхлэх огноо',
|
||||
startTime: 'Эхлэх цаг',
|
||||
endDate: 'Дуусах огноо',
|
||||
endTime: 'Дуусах цаг',
|
||||
prevYear: 'Өмнөх жил',
|
||||
nextYear: 'Дараа жил',
|
||||
prevMonth: 'Өмнөх сар',
|
||||
nextMonth: 'Дараа сар',
|
||||
year: 'он',
|
||||
month1: '1 сар',
|
||||
month2: '2 сар',
|
||||
month3: '3 сар',
|
||||
month4: '4 сар',
|
||||
month5: '5 сар',
|
||||
month6: '6 сар',
|
||||
month7: '7 сар',
|
||||
month8: '8 сар',
|
||||
month9: '9 сар',
|
||||
month10: '10 сар',
|
||||
month11: '11 сар',
|
||||
month12: '12 сар',
|
||||
week: 'Долоо хоног',
|
||||
weeks: {
|
||||
sun: 'Ням',
|
||||
mon: 'Дав',
|
||||
tue: 'Мяг',
|
||||
wed: 'Лха',
|
||||
thu: 'Пүр',
|
||||
fri: 'Баа',
|
||||
sat: 'Бям'
|
||||
},
|
||||
months: {
|
||||
jan: '1 сар',
|
||||
feb: '2 сар',
|
||||
mar: '3 сар',
|
||||
apr: '4 сар',
|
||||
may: '5 сар',
|
||||
jun: '6 сар',
|
||||
jul: '7 сар',
|
||||
aug: '8 сар',
|
||||
sep: '9 сар',
|
||||
oct: '10 сар',
|
||||
nov: '11 сар',
|
||||
dec: '12 сар'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ачаалж байна',
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
noData: 'Өгөгдөл байхгүй',
|
||||
placeholder: 'Сонгох'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
loading: 'Ачаалж байна',
|
||||
placeholder: 'Сонгох'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Очих',
|
||||
pagesize: '/хуудас',
|
||||
total: 'Нийт {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Зурвас',
|
||||
confirm: 'Тийм',
|
||||
cancel: 'Болих',
|
||||
error: 'Буруу утга'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Устгахын дарж арилга',
|
||||
delete: 'Устгах',
|
||||
preview: 'Өмнөх',
|
||||
continue: 'Үргэлжлүүлэх'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Өгөгдөл байхгүй',
|
||||
confirmFilter: 'Зөвшөөрөх',
|
||||
resetFilter: 'Цэвэрлэх',
|
||||
clearFilter: 'Бүгд',
|
||||
sumText: 'Нийт'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Өгөгдөл байхгүй'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Тохирох өгөгдөл байхгүй',
|
||||
noData: 'Өгөгдөл байхгүй',
|
||||
titles: ['Жагсаалт 1', 'Жагсаалт 2'],
|
||||
filterPlaceholder: 'Утга оруул',
|
||||
noCheckedFormat: '{total} өгөгдөл',
|
||||
hasCheckedFormat: '{checked}/{total} сонгосон'
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Tøm'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nå',
|
||||
today: 'I dag',
|
||||
cancel: 'Avbryt',
|
||||
clear: 'Tøm',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Velg dato',
|
||||
selectTime: 'Velg tidspunkt',
|
||||
startDate: 'Start Dato',
|
||||
startTime: 'Start Tidspunkt',
|
||||
endDate: 'Sluttdato',
|
||||
endTime: 'Sluttidspunkt',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Januar',
|
||||
month2: 'Februar',
|
||||
month3: 'Mars',
|
||||
month4: 'April',
|
||||
month5: 'Mai',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'Desember',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Søn',
|
||||
mon: 'Man',
|
||||
tue: 'Tir',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lør'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Des'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laster',
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Velg'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
loading: 'Laster',
|
||||
placeholder: 'Velg'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå til',
|
||||
pagesize: '/side',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
confirm: 'OK',
|
||||
cancel: 'Avbryt',
|
||||
error: 'Ugyldig input'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Slett',
|
||||
preview: 'Forhåndsvisning',
|
||||
continue: 'Fortsett'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ingen Data',
|
||||
confirmFilter: 'Bekreft',
|
||||
resetFilter: 'Tilbakestill',
|
||||
clearFilter: 'Alle',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ingen Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ingen samsvarende data',
|
||||
noData: 'Ingen data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Bevestig',
|
||||
clear: 'Wissen'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'Vandaag',
|
||||
cancel: 'Annuleren',
|
||||
clear: 'Legen',
|
||||
confirm: 'Bevestig',
|
||||
selectDate: 'Selecteer datum',
|
||||
selectTime: 'Selecteer tijd',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Starttijd',
|
||||
endDate: 'Einddatum',
|
||||
endTime: 'Eindtijd',
|
||||
prevYear: 'Vorig jaar',
|
||||
nextYear: 'Volgend jaar',
|
||||
prevMonth: 'Vorige maand',
|
||||
nextMonth: 'Volgende maand',
|
||||
year: '',
|
||||
month1: 'januari',
|
||||
month2: 'februari',
|
||||
month3: 'maart',
|
||||
month4: 'april',
|
||||
month5: 'mei',
|
||||
month6: 'juni',
|
||||
month7: 'juli',
|
||||
month8: 'augustus',
|
||||
month9: 'september',
|
||||
month10: 'oktober',
|
||||
month11: 'november',
|
||||
month12: 'december',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Zo',
|
||||
mon: 'Ma',
|
||||
tue: 'Di',
|
||||
wed: 'Wo',
|
||||
thu: 'Do',
|
||||
fri: 'Vr',
|
||||
sat: 'Za'
|
||||
},
|
||||
months: {
|
||||
jan: 'jan',
|
||||
feb: 'feb',
|
||||
mar: 'maa',
|
||||
apr: 'apr',
|
||||
may: 'mei',
|
||||
jun: 'jun',
|
||||
jul: 'jul',
|
||||
aug: 'aug',
|
||||
sep: 'sep',
|
||||
oct: 'okt',
|
||||
nov: 'nov',
|
||||
dec: 'dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laden',
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
noData: 'Geen data',
|
||||
placeholder: 'Selecteer'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
loading: 'Laden',
|
||||
placeholder: 'Selecteer'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ga naar',
|
||||
pagesize: '/pagina',
|
||||
total: 'Totaal {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Bericht',
|
||||
confirm: 'Bevestig',
|
||||
cancel: 'Annuleren',
|
||||
error: 'Ongeldige invoer'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Kies verwijder om te wissen',
|
||||
delete: 'Verwijder',
|
||||
preview: 'Voorbeeld',
|
||||
continue: 'Doorgaan'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Geen data',
|
||||
confirmFilter: 'Bevestigen',
|
||||
resetFilter: 'Reset',
|
||||
clearFilter: 'Alles',
|
||||
sumText: 'Som'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Geen data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Geen overeenkomende resultaten',
|
||||
noData: 'Geen data',
|
||||
titles: ['Lijst 1', 'Lijst 2'],
|
||||
filterPlaceholder: 'Geef zoekwoerd',
|
||||
noCheckedFormat: '{total} items',
|
||||
hasCheckedFormat: '{checked}/{total} geselecteerd'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Wyczyść'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teraz',
|
||||
today: 'Dzisiaj',
|
||||
cancel: 'Anuluj',
|
||||
clear: 'Wyczyść',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Wybierz datę',
|
||||
selectTime: 'Wybierz godzinę',
|
||||
startDate: 'Data początkowa',
|
||||
startTime: 'Godzina początkowa',
|
||||
endDate: 'Data końcowa',
|
||||
endTime: 'Czas końcowa',
|
||||
prevYear: 'Poprzedni rok',
|
||||
nextYear: 'Następny rok',
|
||||
prevMonth: 'Poprzedni miesiąc',
|
||||
nextMonth: 'Następny miesiąc',
|
||||
year: 'rok',
|
||||
month1: 'styczeń',
|
||||
month2: 'luty',
|
||||
month3: 'marzec',
|
||||
month4: 'kwiecień',
|
||||
month5: 'maj',
|
||||
month6: 'czerwiec',
|
||||
month7: 'lipiec',
|
||||
month8: 'sierpień',
|
||||
month9: 'wrzesień',
|
||||
month10: 'październik',
|
||||
month11: 'listopad',
|
||||
month12: 'grudzień',
|
||||
week: 'tydzień',
|
||||
weeks: {
|
||||
sun: 'niedz.',
|
||||
mon: 'pon.',
|
||||
tue: 'wt.',
|
||||
wed: 'śr.',
|
||||
thu: 'czw.',
|
||||
fri: 'pt.',
|
||||
sat: 'sob.'
|
||||
},
|
||||
months: {
|
||||
jan: 'STY',
|
||||
feb: 'LUT',
|
||||
mar: 'MAR',
|
||||
apr: 'KWI',
|
||||
may: 'MAJ',
|
||||
jun: 'CZE',
|
||||
jul: 'LIP',
|
||||
aug: 'SIE',
|
||||
sep: 'WRZ',
|
||||
oct: 'PAŹ',
|
||||
nov: 'LIS',
|
||||
dec: 'GRU'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Ładowanie',
|
||||
noMatch: 'Brak dopasowań',
|
||||
noData: 'Brak danych',
|
||||
placeholder: 'Wybierz'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Brak dopasowań',
|
||||
loading: 'Ładowanie',
|
||||
placeholder: 'Wybierz'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Idź do',
|
||||
pagesize: '/strona',
|
||||
total: 'Wszystkich {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Wiadomość',
|
||||
confirm: 'OK',
|
||||
cancel: 'Anuluj',
|
||||
error: 'Wiadomość zawiera niedozwolone znaki'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kliknij kasuj aby usunąć',
|
||||
delete: 'Kasuj',
|
||||
preview: 'Podgląd',
|
||||
continue: 'Kontynuuj'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Brak danych',
|
||||
confirmFilter: 'Potwierdź',
|
||||
resetFilter: 'Resetuj',
|
||||
clearFilter: 'Wszystko',
|
||||
sumText: 'Razem'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Brak danych'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Brak dopasowań',
|
||||
noData: 'Brak danych',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Wpisz szukaną frazę',
|
||||
noCheckedFormat: 'razem: {total}',
|
||||
hasCheckedFormat: 'wybranych: {checked}/{total}'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Limpar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Agora',
|
||||
today: 'Hoje',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Limpar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Selecione a data',
|
||||
selectTime: 'Selecione a hora',
|
||||
startDate: 'Data inicial',
|
||||
startTime: 'Hora inicial',
|
||||
endDate: 'Data final',
|
||||
endTime: 'Hora final',
|
||||
prevYear: 'Ano anterior',
|
||||
nextYear: 'Próximo ano',
|
||||
prevMonth: 'Mês anterior',
|
||||
nextMonth: 'Próximo mês',
|
||||
year: '',
|
||||
month1: 'Janeiro',
|
||||
month2: 'Fevereiro',
|
||||
month3: 'Março',
|
||||
month4: 'Abril',
|
||||
month5: 'Maio',
|
||||
month6: 'Junho',
|
||||
month7: 'Julho',
|
||||
month8: 'Agosto',
|
||||
month9: 'Setembro',
|
||||
month10: 'Outubro',
|
||||
month11: 'Novembro',
|
||||
month12: 'Dezembro',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Seg',
|
||||
tue: 'Ter',
|
||||
wed: 'Qua',
|
||||
thu: 'Qui',
|
||||
fri: 'Sex',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fev',
|
||||
mar: 'Mar',
|
||||
apr: 'Abr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Out',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Carregando',
|
||||
noMatch: 'Sem resultados',
|
||||
noData: 'Sem dados',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sem resultados',
|
||||
loading: 'Carregando',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir para',
|
||||
pagesize: '/página',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mensagem',
|
||||
confirm: 'Confirmar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Erro!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'aperte delete para apagar',
|
||||
delete: 'Apagar',
|
||||
preview: 'Pré-visualizar',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sem dados',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Limpar',
|
||||
clearFilter: 'Todos',
|
||||
sumText: 'Total'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sem dados'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sem resultados',
|
||||
noData: 'Sem dados',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Digite uma palavra-chave',
|
||||
noCheckedFormat: '{total} itens',
|
||||
hasCheckedFormat: '{checked}/{total} selecionados'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Confirmar',
|
||||
clear: 'Limpar'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Agora',
|
||||
today: 'Hoje',
|
||||
cancel: 'Cancelar',
|
||||
clear: 'Limpar',
|
||||
confirm: 'Confirmar',
|
||||
selectDate: 'Selecione a data',
|
||||
selectTime: 'Selecione a hora',
|
||||
startDate: 'Data de inicio',
|
||||
startTime: 'Hora de inicio',
|
||||
endDate: 'Data de fim',
|
||||
endTime: 'Hora de fim',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Janeiro',
|
||||
month2: 'Fevereiro',
|
||||
month3: 'Março',
|
||||
month4: 'Abril',
|
||||
month5: 'Maio',
|
||||
month6: 'Junho',
|
||||
month7: 'Julho',
|
||||
month8: 'Agosto',
|
||||
month9: 'Setembro',
|
||||
month10: 'Outubro',
|
||||
month11: 'Novembro',
|
||||
month12: 'Dezembro',
|
||||
// week: 'semana',
|
||||
weeks: {
|
||||
sun: 'Dom',
|
||||
mon: 'Seg',
|
||||
tue: 'Ter',
|
||||
wed: 'Qua',
|
||||
thu: 'Qui',
|
||||
fri: 'Sex',
|
||||
sat: 'Sab'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Fev',
|
||||
mar: 'Mar',
|
||||
apr: 'Abr',
|
||||
may: 'Mai',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Ago',
|
||||
sep: 'Set',
|
||||
oct: 'Out',
|
||||
nov: 'Nov',
|
||||
dec: 'Dez'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'A carregar',
|
||||
noMatch: 'Sem correspondência',
|
||||
noData: 'Sem dados',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Sem correspondência',
|
||||
loading: 'A carregar',
|
||||
placeholder: 'Selecione'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Ir para',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mensagem',
|
||||
confirm: 'Confirmar',
|
||||
cancel: 'Cancelar',
|
||||
error: 'Erro!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Apagar',
|
||||
preview: 'Previsualizar',
|
||||
continue: 'Continuar'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Sem dados',
|
||||
confirmFilter: 'Confirmar',
|
||||
resetFilter: 'Limpar',
|
||||
clearFilter: 'Todos',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Sem dados'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Sem correspondência',
|
||||
noData: 'Sem dados',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Șterge'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Acum',
|
||||
today: 'Azi',
|
||||
cancel: 'Anulează',
|
||||
clear: 'Șterge',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Selectează data',
|
||||
selectTime: 'Selectează ora',
|
||||
startDate: 'Data de început',
|
||||
startTime: 'Ora de început',
|
||||
endDate: 'Data de sfârșit',
|
||||
endTime: 'Ora de sfârșit',
|
||||
prevYear: 'Anul trecut',
|
||||
nextYear: 'Anul următor',
|
||||
prevMonth: 'Luna trecută',
|
||||
nextMonth: 'Luna următoare',
|
||||
year: '',
|
||||
month1: 'Ianuarie',
|
||||
month2: 'Februarie',
|
||||
month3: 'Martie',
|
||||
month4: 'Aprilie',
|
||||
month5: 'Mai',
|
||||
month6: 'Iunie',
|
||||
month7: 'Iulie',
|
||||
month8: 'August',
|
||||
month9: 'Septembrie',
|
||||
month10: 'Octombrie',
|
||||
month11: 'Noiembrie',
|
||||
month12: 'Decembrie',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Du',
|
||||
mon: 'Lu',
|
||||
tue: 'Ma',
|
||||
wed: 'Mi',
|
||||
thu: 'Jo',
|
||||
fri: 'Vi',
|
||||
sat: 'Sâ'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ian',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Mai',
|
||||
jun: 'Iun',
|
||||
jul: 'Iul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Oct',
|
||||
nov: 'Noi',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Se încarcă',
|
||||
noMatch: 'Nu există date potrivite',
|
||||
noData: 'Nu există date',
|
||||
placeholder: 'Selectează'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Nu există date potrivite',
|
||||
loading: 'Se încarcă',
|
||||
placeholder: 'Selectează'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Go to',
|
||||
pagesize: '/pagina',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mesaj',
|
||||
confirm: 'OK',
|
||||
cancel: 'Anulează',
|
||||
error: 'Date introduse eronate'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'apăsați pe ștergeți pentru a elimina',
|
||||
delete: 'șterge',
|
||||
preview: 'previzualizare',
|
||||
continue: 'continuă'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Nu există date',
|
||||
confirmFilter: 'Confirmă',
|
||||
resetFilter: 'Resetează',
|
||||
clearFilter: 'Tot',
|
||||
sumText: 'Suma'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Nu există date'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Nu există date potrivite',
|
||||
noData: 'Nu există date',
|
||||
titles: ['Lista 1', 'Lista 2'],
|
||||
filterPlaceholder: 'Introduceți cuvântul cheie',
|
||||
noCheckedFormat: '{total} elemente',
|
||||
hasCheckedFormat: '{checked}/{total} verificate'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Очистить'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сейчас',
|
||||
today: 'Сегодня',
|
||||
cancel: 'Отмена',
|
||||
clear: 'Очистить',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Выбрать дату',
|
||||
selectTime: 'Выбрать время',
|
||||
startDate: 'Дата начала',
|
||||
startTime: 'Время начала',
|
||||
endDate: 'Дата окончания',
|
||||
endTime: 'Время окончания',
|
||||
prevYear: 'Предыдущий год',
|
||||
nextYear: 'Следующий год',
|
||||
prevMonth: 'Предыдущий месяц',
|
||||
nextMonth: 'Следующий месяц',
|
||||
year: '',
|
||||
month1: 'Январь',
|
||||
month2: 'Февраль',
|
||||
month3: 'Март',
|
||||
month4: 'Апрель',
|
||||
month5: 'Май',
|
||||
month6: 'Июнь',
|
||||
month7: 'Июль',
|
||||
month8: 'Август',
|
||||
month9: 'Сентябрь',
|
||||
month10: 'Октябрь',
|
||||
month11: 'Ноябрь',
|
||||
month12: 'Декабрь',
|
||||
week: 'неделя',
|
||||
weeks: {
|
||||
sun: 'Вс',
|
||||
mon: 'Пн',
|
||||
tue: 'Вт',
|
||||
wed: 'Ср',
|
||||
thu: 'Чт',
|
||||
fri: 'Пт',
|
||||
sat: 'Сб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Янв',
|
||||
feb: 'Фев',
|
||||
mar: 'Мар',
|
||||
apr: 'Апр',
|
||||
may: 'Май',
|
||||
jun: 'Июн',
|
||||
jul: 'Июл',
|
||||
aug: 'Авг',
|
||||
sep: 'Сен',
|
||||
oct: 'Окт',
|
||||
nov: 'Ноя',
|
||||
dec: 'Дек'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Загрузка',
|
||||
noMatch: 'Совпадений не найдено',
|
||||
noData: 'Нет данных',
|
||||
placeholder: 'Выбрать'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Совпадений не найдено',
|
||||
loading: 'Загрузка',
|
||||
placeholder: 'Выбрать'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Перейти',
|
||||
pagesize: ' на странице',
|
||||
total: 'Всего {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Сообщение',
|
||||
confirm: 'OK',
|
||||
cancel: 'Отмена',
|
||||
error: 'Недопустимый ввод данных'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Нажмите [Удалить] для удаления',
|
||||
delete: 'Удалить',
|
||||
preview: 'Превью',
|
||||
continue: 'Продолжить'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Нет данных',
|
||||
confirmFilter: 'Подтвердить',
|
||||
resetFilter: 'Сбросить',
|
||||
clearFilter: 'Все',
|
||||
sumText: 'Сумма'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Нет данных'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Совпадений не найдено',
|
||||
noData: 'Нет данных',
|
||||
titles: ['Список 1', 'Список 2'],
|
||||
filterPlaceholder: 'Введите ключевое слово',
|
||||
noCheckedFormat: '{total} пунктов',
|
||||
hasCheckedFormat: '{checked}/{total} выбрано'
|
||||
}
|
||||
}
|
||||
};
|
||||
+114
@@ -0,0 +1,114 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Zmazať'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Teraz',
|
||||
today: 'Dnes',
|
||||
cancel: 'Zrušiť',
|
||||
clear: 'Zmazať',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Vybrať dátum',
|
||||
selectTime: 'Vybrať čas',
|
||||
startDate: 'Dátum začiatku',
|
||||
startTime: 'Čas začiatku',
|
||||
endDate: 'Dátum konca',
|
||||
endTime: 'Čas konca',
|
||||
prevYear: 'Predošlý rok',
|
||||
nextYear: 'Ďalší rok',
|
||||
prevMonth: 'Predošlý mesiac',
|
||||
nextMonth: 'Ďalší mesiac',
|
||||
day: 'Deň',
|
||||
week: 'Týždeň',
|
||||
month: 'Mesiac',
|
||||
year: 'Rok',
|
||||
month1: 'Január',
|
||||
month2: 'Február',
|
||||
month3: 'Marec',
|
||||
month4: 'Apríl',
|
||||
month5: 'Máj',
|
||||
month6: 'Jún',
|
||||
month7: 'Júl',
|
||||
month8: 'August',
|
||||
month9: 'September',
|
||||
month10: 'Október',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
weeks: {
|
||||
sun: 'Ne',
|
||||
mon: 'Po',
|
||||
tue: 'Ut',
|
||||
wed: 'St',
|
||||
thu: 'Št',
|
||||
fri: 'Pi',
|
||||
sat: 'So'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Máj',
|
||||
jun: 'Jún',
|
||||
jul: 'Júl',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Načítavanie',
|
||||
noMatch: 'Žiadna zhoda',
|
||||
noData: 'Žiadne dáta',
|
||||
placeholder: 'Vybrať'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Žiadna zhoda',
|
||||
loading: 'Načítavanie',
|
||||
placeholder: 'Vybrať'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Choď na',
|
||||
pagesize: 'na stranu',
|
||||
total: 'Všetko {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Správa',
|
||||
confirm: 'OK',
|
||||
cancel: 'Zrušiť',
|
||||
error: 'Neplatný vstup'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'pre odstránenie stisni klávesu Delete',
|
||||
delete: 'Vymazať',
|
||||
preview: 'Prehliadať',
|
||||
continue: 'Pokračovať'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Žiadne dáta',
|
||||
confirmFilter: 'Potvrdiť',
|
||||
resetFilter: 'Zresetovať',
|
||||
clearFilter: 'Všetko',
|
||||
sumText: 'Spolu'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Žiadne dáta'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Žiadna zhoda',
|
||||
noData: 'Žiadne dáta',
|
||||
titles: ['Zoznam 1', 'Zoznam 2'],
|
||||
filterPlaceholder: 'Filtrovať podľa',
|
||||
noCheckedFormat: '{total} položiek',
|
||||
hasCheckedFormat: '{checked}/{total} označených'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'V redu',
|
||||
clear: 'Počisti'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Zdaj',
|
||||
today: 'Danes',
|
||||
cancel: 'Prekliči',
|
||||
clear: 'Počisti',
|
||||
confirm: 'Potrdi',
|
||||
selectDate: 'Izberi datum',
|
||||
selectTime: 'Izberi čas',
|
||||
startDate: 'Začetni datum',
|
||||
startTime: 'Začetni čas',
|
||||
endDate: 'Končni datum',
|
||||
endTime: 'Končni čas',
|
||||
prevYear: 'Prejšnje leto',
|
||||
nextYear: 'Naslednje leto',
|
||||
prevMonth: 'Prejšnji mesec',
|
||||
nextMonth: 'Naslednji mesec',
|
||||
year: '',
|
||||
month1: 'Jan',
|
||||
month2: 'Feb',
|
||||
month3: 'Mar',
|
||||
month4: 'Apr',
|
||||
month5: 'Maj',
|
||||
month6: 'Jun',
|
||||
month7: 'Jul',
|
||||
month8: 'Avg',
|
||||
month9: 'Sep',
|
||||
month10: 'Okt',
|
||||
month11: 'Nov',
|
||||
month12: 'Dec',
|
||||
week: 'teden',
|
||||
weeks: {
|
||||
sun: 'Ned',
|
||||
mon: 'Pon',
|
||||
tue: 'Tor',
|
||||
wed: 'Sre',
|
||||
thu: 'Čet',
|
||||
fri: 'Pet',
|
||||
sat: 'Sob'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Avg',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Nalaganje',
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
noData: 'Ni podatkov',
|
||||
placeholder: 'Izberi'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
loading: 'Nalaganje',
|
||||
placeholder: 'Izberi'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Pojdi na',
|
||||
pagesize: '/stran',
|
||||
total: 'Skupno {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Sporočilo',
|
||||
confirm: 'V redu',
|
||||
cancel: 'Prekliči',
|
||||
error: 'Nedovoljen vnos'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Izbriši',
|
||||
preview: 'Predogled',
|
||||
continue: 'Nadaljuj'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Ni podatkov',
|
||||
confirmFilter: 'Potrdi',
|
||||
resetFilter: 'Ponastavi',
|
||||
clearFilter: 'Vse',
|
||||
sumText: 'Skupno'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Ni podatkov'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Ni ustreznih podatkov',
|
||||
noData: 'Ni podatkov',
|
||||
titles: ['Seznam 1', 'Seznam 2'],
|
||||
filterPlaceholder: 'Vnesi ključno besedo',
|
||||
noCheckedFormat: '{total} elementov',
|
||||
hasCheckedFormat: '{checked}/{total} izbranih'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Поништи'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Сад',
|
||||
today: 'Данас',
|
||||
cancel: 'Откажи',
|
||||
clear: 'Бриши',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Изабери датум',
|
||||
selectTime: 'Изабери време',
|
||||
startDate: 'Датум почетка',
|
||||
startTime: 'Време почетка',
|
||||
endDate: 'Датум завршетка',
|
||||
endTime: 'Време завршетка',
|
||||
prevYear: 'Претходна година',
|
||||
nextYear: 'Следећа година',
|
||||
prevMonth: 'Претходни месец',
|
||||
nextMonth: 'Следећи месец',
|
||||
year: 'година',
|
||||
month1: 'јануар',
|
||||
month2: 'фебруар',
|
||||
month3: 'март',
|
||||
month4: 'април',
|
||||
month5: 'мај',
|
||||
month6: 'јун',
|
||||
month7: 'јул',
|
||||
month8: 'август',
|
||||
month9: 'септембар',
|
||||
month10: 'октобар',
|
||||
month11: 'новембар',
|
||||
month12: 'децембар',
|
||||
week: 'седмица',
|
||||
weeks: {
|
||||
sun: 'Нед',
|
||||
mon: 'Пон',
|
||||
tue: 'Уто',
|
||||
wed: 'Сре',
|
||||
thu: 'Чет',
|
||||
fri: 'Пет',
|
||||
sat: 'Суб'
|
||||
},
|
||||
months: {
|
||||
jan: 'јан',
|
||||
feb: 'феб',
|
||||
mar: 'мар',
|
||||
apr: 'апр',
|
||||
may: 'мај',
|
||||
jun: 'јун',
|
||||
jul: 'јул',
|
||||
aug: 'авг',
|
||||
sep: 'сеп',
|
||||
oct: 'окт',
|
||||
nov: 'нов',
|
||||
dec: 'дец'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Учитавање',
|
||||
noMatch: 'Нема резултата',
|
||||
noData: 'Нема података',
|
||||
placeholder: 'Изабери'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Нема резултата',
|
||||
loading: 'Учитавање',
|
||||
placeholder: 'Изабери'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Иди на',
|
||||
pagesize: '/страни',
|
||||
total: 'Укупно {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Порука',
|
||||
confirm: 'OK',
|
||||
cancel: 'Откажи',
|
||||
error: 'Неисправан унос'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'притисни БРИШИ да обришеш',
|
||||
delete: 'Бриши',
|
||||
preview: 'Види',
|
||||
continue: 'Настави'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Нема података',
|
||||
confirmFilter: 'Потврди',
|
||||
resetFilter: 'Ресетуј',
|
||||
clearFilter: 'Све',
|
||||
sumText: 'Збир'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Нема података'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Нема резултата',
|
||||
noData: 'Нема података',
|
||||
titles: ['Листа 1', 'Листа 2'], // to be translated
|
||||
filterPlaceholder: 'Унеси кључну реч', // to be translated
|
||||
noCheckedFormat: '{total} ставки', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} обележених' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Töm'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Nu',
|
||||
today: 'Idag',
|
||||
cancel: 'Avbryt',
|
||||
clear: 'Töm',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Välj datum',
|
||||
selectTime: 'Välj tid',
|
||||
startDate: 'Startdatum',
|
||||
startTime: 'Starttid',
|
||||
endDate: 'Slutdatum',
|
||||
endTime: 'Sluttid',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'År',
|
||||
month1: 'Januari',
|
||||
month2: 'Februari',
|
||||
month3: 'Mars',
|
||||
month4: 'April',
|
||||
month5: 'Maj',
|
||||
month6: 'Juni',
|
||||
month7: 'Juli',
|
||||
month8: 'Augusti',
|
||||
month9: 'September',
|
||||
month10: 'Oktober',
|
||||
month11: 'November',
|
||||
month12: 'December',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Sön',
|
||||
mon: 'Mån',
|
||||
tue: 'Tis',
|
||||
wed: 'Ons',
|
||||
thu: 'Tor',
|
||||
fri: 'Fre',
|
||||
sat: 'Lör'
|
||||
},
|
||||
months: {
|
||||
jan: 'Jan',
|
||||
feb: 'Feb',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maj',
|
||||
jun: 'Jun',
|
||||
jul: 'Jul',
|
||||
aug: 'Aug',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Nov',
|
||||
dec: 'Dec'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Laddar',
|
||||
noMatch: 'Hittade inget',
|
||||
noData: 'Ingen data',
|
||||
placeholder: 'Välj'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Hittade inget',
|
||||
loading: 'Laddar',
|
||||
placeholder: 'Välj'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Gå till',
|
||||
pagesize: '/sida',
|
||||
total: 'Total {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Meddelande',
|
||||
confirm: 'OK',
|
||||
cancel: 'Avbryt',
|
||||
error: 'Felaktig inmatning'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'Radera',
|
||||
preview: 'Förhandsvisa',
|
||||
continue: 'Fortsätt'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Inga Data',
|
||||
confirmFilter: 'Bekräfta',
|
||||
resetFilter: 'Återställ',
|
||||
clearFilter: 'Alla',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Inga Data'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Hittade inget',
|
||||
noData: 'Ingen data',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+111
@@ -0,0 +1,111 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'உறுதி செய்',
|
||||
clear: 'தெளிவாக்கு'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'தற்போது',
|
||||
today: 'இன்று',
|
||||
cancel: 'ரத்து செய்',
|
||||
clear: 'சரி',
|
||||
confirm: 'உறுதி செய்',
|
||||
selectDate: 'தேதியை தேர்வு செய்',
|
||||
selectTime: 'நேரத்தை தேர்வு செய்',
|
||||
startDate: 'தொடங்கும் நாள்',
|
||||
startTime: 'தொடங்கும் நேரம்',
|
||||
endDate: 'முடியும் தேதி',
|
||||
endTime: 'முடியும் நேரம்',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'வருடம்',
|
||||
month1: 'ஜனவரி',
|
||||
month2: 'பிப்ரவரி',
|
||||
month3: 'மார்ச்',
|
||||
month4: 'ஏப்ரல்',
|
||||
month5: 'மே',
|
||||
month6: 'ஜூன்',
|
||||
month7: 'ஜூலை',
|
||||
month8: 'ஆகஸ்ட்',
|
||||
month9: 'செப்டம்பர்',
|
||||
month10: 'அக்டோபர்',
|
||||
month11: 'நவம்பர்',
|
||||
month12: 'டிசம்பர்',
|
||||
weeks: {
|
||||
sun: 'ஞாயிறு',
|
||||
mon: 'திங்கள்',
|
||||
tue: 'செவ்வாய்',
|
||||
wed: 'புதன்',
|
||||
thu: 'வியாழன்',
|
||||
fri: 'வெள்ளி',
|
||||
sat: 'சனி'
|
||||
},
|
||||
months: {
|
||||
jan: 'ஜனவரி',
|
||||
feb: 'பிப்ரவரி',
|
||||
mar: 'மார்ச்',
|
||||
apr: 'ஏப்ரல்',
|
||||
may: 'மே',
|
||||
jun: 'ஜூன்',
|
||||
jul: 'ஜூலை',
|
||||
aug: 'ஆகஸ்ட்',
|
||||
sep: 'செப்டம்பர்',
|
||||
oct: 'அக்டோபர்',
|
||||
nov: 'நவம்பர்',
|
||||
dec: 'டிசம்பர்'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'தயாராகிக்கொண்டிருக்கிறது',
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
noData: 'தரவு இல்லை',
|
||||
placeholder: 'தேர்வு செய்'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
loading: 'தயாராகிக்கொண்டிருக்கிறது',
|
||||
placeholder: 'தேர்வு செய்'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'தேவையான் பகுதிக்கு செல்',
|
||||
pagesize: '/page',
|
||||
total: 'மொத்தம் {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'செய்தி',
|
||||
confirm: 'உறுதி செய்',
|
||||
cancel: 'ரத்து செய்',
|
||||
error: 'பொருத்தாமில்லாத உள்ளீடு'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'நீக்கு',
|
||||
preview: 'முன்னோட்டம் பார்',
|
||||
continue: 'தொடரு'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'தரவு இல்லை',
|
||||
confirmFilter: 'உறுதி செய்',
|
||||
resetFilter: 'புதுமாற்றம் செய்',
|
||||
clearFilter: 'அனைத்தும்',
|
||||
sumText: 'கூட்டு'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'தரவு இல்லை'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'பொருத்தமான தரவு கிடைக்கவில்லை',
|
||||
noData: 'தரவு இல்லை',
|
||||
titles: ['பட்டியல் 1', 'பட்டியல் 2'],
|
||||
filterPlaceholder: 'சொல்லை உள்ளீடு செய்',
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} தேர்வு செய்யப்பட்டவைகள்'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'ตกลง',
|
||||
clear: 'ล้างข้อมูล'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ตอนนี้',
|
||||
today: 'วันนี้',
|
||||
cancel: 'ยกเลิก',
|
||||
clear: 'ล้างข้อมูล',
|
||||
confirm: 'ตกลง',
|
||||
selectDate: 'เลือกวันที่',
|
||||
selectTime: 'เลือกเวลา',
|
||||
startDate: 'วันที่เริ่มต้น',
|
||||
startTime: 'เวลาเริ่มต้น',
|
||||
endDate: 'วันที่สิ้นสุด',
|
||||
endTime: 'เวลาสิ้นสุด',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: 'ปี',
|
||||
month1: 'มกราคม',
|
||||
month2: 'กุมภาพันธ์',
|
||||
month3: 'มีนาคม',
|
||||
month4: 'เมษายน',
|
||||
month5: 'พฤษภาคม',
|
||||
month6: 'มิถุนายน',
|
||||
month7: 'กรกฎาคม',
|
||||
month8: 'สิงหาคม',
|
||||
month9: 'กันยายน',
|
||||
month10: 'ตุลาคม',
|
||||
month11: 'พฤศจิกายน',
|
||||
month12: 'ธันวาคม',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'อา',
|
||||
mon: 'จ',
|
||||
tue: 'อ',
|
||||
wed: 'พ',
|
||||
thu: 'พฤ',
|
||||
fri: 'ศ',
|
||||
sat: 'ส'
|
||||
},
|
||||
months: {
|
||||
jan: 'มกรา',
|
||||
feb: 'กุมภา',
|
||||
mar: 'มีนา',
|
||||
apr: 'เมษา',
|
||||
may: 'พฤษภา',
|
||||
jun: 'มิถุนา',
|
||||
jul: 'กรกฎา',
|
||||
aug: 'สิงหา',
|
||||
sep: 'กันยา',
|
||||
oct: 'ตุลา',
|
||||
nov: 'พฤศจิกา',
|
||||
dec: 'ธันวา'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'กำลังโหลด',
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
noData: 'ไม่พบข้อมูล',
|
||||
placeholder: 'เลือก'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
loading: 'กำลังโหลด',
|
||||
placeholder: 'เลือก'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'ไปที่',
|
||||
pagesize: '/หน้า',
|
||||
total: 'ทั้งหมด {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'ข้อความ',
|
||||
confirm: 'ตกลง',
|
||||
cancel: 'ยกเลิก',
|
||||
error: 'คุณป้อนข้อมูลไม่ถูกต้อง'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'press delete to remove', // to be translated
|
||||
delete: 'ลบ',
|
||||
preview: 'ตัวอย่าง',
|
||||
continue: 'ทำต่อ'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'ไม่พบข้อมูล',
|
||||
confirmFilter: 'ยืนยัน',
|
||||
resetFilter: 'รีเซ็ต',
|
||||
clearFilter: 'ทั้งหมด',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'ไม่พบข้อมูล'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'ไม่พบข้อมูลที่ตรงกัน',
|
||||
noData: 'ไม่พบข้อมูล',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Arassala'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Şuwagt',
|
||||
today: 'Şügün',
|
||||
cancel: 'Bes et',
|
||||
clear: 'Arassala',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Güni saýlaň',
|
||||
selectTime: 'Wagty saýlaň',
|
||||
startDate: 'Başlaýan güni',
|
||||
startTime: 'Başlaýan wagty',
|
||||
endDate: 'Gutarýan güni',
|
||||
endTime: 'Gutarýan wagty',
|
||||
prevYear: 'Previous Year', // to be translated
|
||||
nextYear: 'Next Year', // to be translated
|
||||
prevMonth: 'Previous Month', // to be translated
|
||||
nextMonth: 'Next Month', // to be translated
|
||||
year: '',
|
||||
month1: 'Ýan',
|
||||
month2: 'Few',
|
||||
month3: 'Mar',
|
||||
month4: 'Apr',
|
||||
month5: 'Maý',
|
||||
month6: 'Iýn',
|
||||
month7: 'Iýl',
|
||||
month8: 'Awg',
|
||||
month9: 'Sen',
|
||||
month10: 'Okt',
|
||||
month11: 'Noý',
|
||||
month12: 'Dek',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Ýek',
|
||||
mon: 'Duş',
|
||||
tue: 'Siş',
|
||||
wed: 'Çar',
|
||||
thu: 'Pen',
|
||||
fri: 'Ann',
|
||||
sat: 'Şen'
|
||||
},
|
||||
months: {
|
||||
jan: 'Ýan',
|
||||
feb: 'Few',
|
||||
mar: 'Mar',
|
||||
apr: 'Apr',
|
||||
may: 'Maý',
|
||||
jun: 'Iýn',
|
||||
jul: 'Iýl',
|
||||
aug: 'Awg',
|
||||
sep: 'Sep',
|
||||
oct: 'Okt',
|
||||
nov: 'Noý',
|
||||
dec: 'Dek'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Indirilýär',
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
noData: 'Hiçzat ýok',
|
||||
placeholder: 'Saýla'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
loading: 'Indirilýär',
|
||||
placeholder: 'Saýlaň'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Git',
|
||||
pagesize: '/sahypa',
|
||||
total: 'Umumy {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Hat',
|
||||
confirm: 'OK',
|
||||
cancel: 'Bes et',
|
||||
error: 'Ýalňyş girizme'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Pozmak üçin "poz" düwmä basyň',
|
||||
delete: 'Poz',
|
||||
preview: 'Gör',
|
||||
continue: 'Dowam et'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Maglumat ýok',
|
||||
confirmFilter: 'Tassykla',
|
||||
resetFilter: 'Arassala',
|
||||
clearFilter: 'Hemmesi',
|
||||
sumText: 'Jemi'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Maglumat ýok'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Hiçzat tapylmady',
|
||||
noData: 'Hiçzat ýok',
|
||||
titles: ['Sanaw 1', 'Sanaw 2'],
|
||||
filterPlaceholder: 'Gözleg sözlerini giriziň',
|
||||
noCheckedFormat: '{total} sany',
|
||||
hasCheckedFormat: '{checked}/{total} saýlanan'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'Onayla',
|
||||
clear: 'Temizle'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Şimdi',
|
||||
today: 'Bugün',
|
||||
cancel: 'İptal',
|
||||
clear: 'Temizle',
|
||||
confirm: 'Onayla',
|
||||
selectDate: 'Tarih seç',
|
||||
selectTime: 'Saat seç',
|
||||
startDate: 'Başlangıç Tarihi',
|
||||
startTime: 'Başlangıç Saati',
|
||||
endDate: 'Bitiş Tarihi',
|
||||
endTime: 'Bitiş Saati',
|
||||
prevYear: 'Önceki Yıl',
|
||||
nextYear: 'Sonraki Yıl',
|
||||
prevMonth: 'Önceki Ay',
|
||||
nextMonth: 'Sonraki Ay',
|
||||
year: '',
|
||||
month1: 'Ocak',
|
||||
month2: 'Şubat',
|
||||
month3: 'Mart',
|
||||
month4: 'Nisan',
|
||||
month5: 'Mayıs',
|
||||
month6: 'Haziran',
|
||||
month7: 'Temmuz',
|
||||
month8: 'Ağustos',
|
||||
month9: 'Eylül',
|
||||
month10: 'Ekim',
|
||||
month11: 'Kasım',
|
||||
month12: 'Aralık',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'Paz',
|
||||
mon: 'Pzt',
|
||||
tue: 'Sal',
|
||||
wed: 'Çar',
|
||||
thu: 'Per',
|
||||
fri: 'Cum',
|
||||
sat: 'Cmt'
|
||||
},
|
||||
months: {
|
||||
jan: 'Oca',
|
||||
feb: 'Şub',
|
||||
mar: 'Mar',
|
||||
apr: 'Nis',
|
||||
may: 'May',
|
||||
jun: 'Haz',
|
||||
jul: 'Tem',
|
||||
aug: 'Ağu',
|
||||
sep: 'Eyl',
|
||||
oct: 'Eki',
|
||||
nov: 'Kas',
|
||||
dec: 'Ara'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Yükleniyor',
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
noData: 'Veri yok',
|
||||
placeholder: 'Seç'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
loading: 'Yükleniyor',
|
||||
placeholder: 'Seç'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Git',
|
||||
pagesize: '/sayfa',
|
||||
total: 'Toplam {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Mesaj',
|
||||
confirm: 'Onayla',
|
||||
cancel: 'İptal',
|
||||
error: 'İllegal giriş'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'kaldırmak için delete tuşuna bas',
|
||||
delete: 'Sil',
|
||||
preview: 'Görüntüle',
|
||||
continue: 'Devam'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Veri yok',
|
||||
confirmFilter: 'Onayla',
|
||||
resetFilter: 'Sıfırla',
|
||||
clearFilter: 'Hepsi',
|
||||
sumText: 'Sum'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Veri yok'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Eşleşen veri bulunamadı',
|
||||
noData: 'Veri yok',
|
||||
titles: ['Liste 1', 'Liste 2'],
|
||||
filterPlaceholder: 'Anahtar kelimeleri gir',
|
||||
noCheckedFormat: '{total} adet',
|
||||
hasCheckedFormat: '{checked}/{total} seçildi'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Очистити'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Зараз',
|
||||
today: 'Сьогодні',
|
||||
cancel: 'Відміна',
|
||||
clear: 'Очистити',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Вибрати дату',
|
||||
selectTime: 'Вибрати час',
|
||||
startDate: 'Дата початку',
|
||||
startTime: 'Час початку',
|
||||
endDate: 'Дата завершення',
|
||||
endTime: 'Час завершення',
|
||||
prevYear: 'Попередній Рік',
|
||||
nextYear: 'Наступний Рік',
|
||||
prevMonth: 'Попередній Місяць',
|
||||
nextMonth: 'Наступний Місяць',
|
||||
year: '',
|
||||
month1: 'Січень',
|
||||
month2: 'Лютий',
|
||||
month3: 'Березень',
|
||||
month4: 'Квітень',
|
||||
month5: 'Травень',
|
||||
month6: 'Червень',
|
||||
month7: 'Липень',
|
||||
month8: 'Серпень',
|
||||
month9: 'Вересень',
|
||||
month10: 'Жовтень',
|
||||
month11: 'Листопад',
|
||||
month12: 'Грудень',
|
||||
week: 'тиждень',
|
||||
weeks: {
|
||||
sun: 'Нд',
|
||||
mon: 'Пн',
|
||||
tue: 'Вт',
|
||||
wed: 'Ср',
|
||||
thu: 'Чт',
|
||||
fri: 'Пт',
|
||||
sat: 'Сб'
|
||||
},
|
||||
months: {
|
||||
jan: 'Січ',
|
||||
feb: 'Лют',
|
||||
mar: 'Бер',
|
||||
apr: 'Кві',
|
||||
may: 'Тра',
|
||||
jun: 'Чер',
|
||||
jul: 'Лип',
|
||||
aug: 'Сер',
|
||||
sep: 'Вер',
|
||||
oct: 'Жов',
|
||||
nov: 'Лис',
|
||||
dec: 'Гру'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Завантаження',
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
noData: 'Немає даних',
|
||||
placeholder: 'Обрати'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
loading: 'Завантаження',
|
||||
placeholder: 'Обрати'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Перейти',
|
||||
pagesize: 'на сторінці',
|
||||
total: 'Всього {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Повідомлення',
|
||||
confirm: 'OK',
|
||||
cancel: 'Відміна',
|
||||
error: 'Неприпустимий ввід даних'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'натисніть кнопку щоб видалити',
|
||||
delete: 'Видалити',
|
||||
preview: 'Перегляд',
|
||||
continue: 'Продовжити'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Немає даних',
|
||||
confirmFilter: 'Підтвердити',
|
||||
resetFilter: 'Скинути',
|
||||
clearFilter: 'Все',
|
||||
sumText: 'Сума'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Немає даних'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Співпадінь не знайдено',
|
||||
noData: 'Обрати',
|
||||
titles: ['Список 1', 'Список 2'],
|
||||
filterPlaceholder: 'Введіть ключове слово',
|
||||
noCheckedFormat: '{total} пунктів',
|
||||
hasCheckedFormat: '{checked}/{total} вибрано'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'جەزملەش',
|
||||
clear: 'قۇرۇقداش'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'ھازىرقى ۋاقىت',
|
||||
today: 'بۈگۈن',
|
||||
cancel: 'بىكار قىلىش',
|
||||
clear: 'قۇرۇقداش',
|
||||
confirm: 'جەزملەش',
|
||||
selectDate: 'چىسلا تاللاڭ',
|
||||
selectTime: 'ۋاقىت تاللاڭ',
|
||||
startDate: 'باشلانغان چىسلا',
|
||||
startTime: 'باشلانغان ۋاقىت',
|
||||
endDate: 'ئاخىرلاشقان چىسلا',
|
||||
endTime: 'ئاخىرلاشقان ۋاقىت',
|
||||
prevYear: 'ئالدىنقى يىل',
|
||||
nextYear: 'كىيىنكى يىل',
|
||||
prevMonth: 'ئالدىنقى ئاي',
|
||||
nextMonth: 'كىيىنكى ئاي',
|
||||
year: '- يىل',
|
||||
month1: '1-ئاي',
|
||||
month2: '2-ئاي',
|
||||
month3: '3-ئاي',
|
||||
month4: '4-ئاي',
|
||||
month5: '5-ئاي',
|
||||
month6: '6-ئاي',
|
||||
month7: '7-ئاي',
|
||||
month8: '8-ئاي',
|
||||
month9: '9-ئاي',
|
||||
month10: '10-ئاي',
|
||||
month11: '11-ئاي',
|
||||
month12: '12-ئاي',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: 'يەكشەنبە',
|
||||
mon: 'دۈشەنبە',
|
||||
tue: 'سەيشەنبە',
|
||||
wed: 'چارشەنبە',
|
||||
thu: 'پەيشەنبە',
|
||||
fri: 'جۈمە',
|
||||
sat: 'شەنبە'
|
||||
},
|
||||
months: {
|
||||
jan: '1-ئاي',
|
||||
feb: '2-ئاي',
|
||||
mar: '3-ئاي',
|
||||
apr: '4-ئاي',
|
||||
may: '5-ئاي',
|
||||
jun: '6-ئاي',
|
||||
jul: '7-ئاي',
|
||||
aug: '8-ئاي',
|
||||
sep: '9-ئاي',
|
||||
oct: '10-ئاي',
|
||||
nov: '11-ئاي',
|
||||
dec: '12-ئاي'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'يۈكلىنىۋاتىدۇ',
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
noData: 'ئۇچۇر يوق',
|
||||
placeholder: 'تاللاڭ'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
loading: 'يۈكلىنىۋاتىدۇ',
|
||||
placeholder: 'تاللاڭ'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'كىيىنكى بەت',
|
||||
pagesize: 'تال/بەت',
|
||||
total: 'جەمئىي {total} تال',
|
||||
pageClassifier: 'بەت'
|
||||
},
|
||||
messagebox: {
|
||||
title: 'ئەسكەرتىش',
|
||||
confirm: 'جەزملەش',
|
||||
cancel: 'بىكار قىلىش',
|
||||
error: 'كىرگۈزگەن ئۇچۇرىڭىزدا خاتالىق بار!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'delete كۇنپكىسىنى بېسىپ ئۆچۈرەلەيسىز',
|
||||
delete: 'ئۆچۈرۈش',
|
||||
preview: 'رەسىمنى كۆرۈش',
|
||||
continue: 'رەسىم يوللاش'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'ئۇچۇر يوق',
|
||||
confirmFilter: 'سۈزگۈچ',
|
||||
resetFilter: 'قايتا تولدۇرۇش',
|
||||
clearFilter: 'ھەممە',
|
||||
sumText: 'جەمئىي'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'ئۇچۇر يوق'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'ئۇچۇر تېپىلمىدى',
|
||||
noData: 'ئۇچۇر يوق',
|
||||
titles: ['جەدۋەل 1', 'جەدۋەل 2'],
|
||||
filterPlaceholder: 'ئىزدىمەكچى بولغان مەزمۇننى كىرگۈزۈڭ',
|
||||
noCheckedFormat: 'جەمئىي {total} تۈر',
|
||||
hasCheckedFormat: 'تاللانغىنى {checked}/{total} تۈر'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: 'OK',
|
||||
clear: 'Xóa'
|
||||
},
|
||||
datepicker: {
|
||||
now: 'Hiện tại',
|
||||
today: 'Hôm nay',
|
||||
cancel: 'Hủy',
|
||||
clear: 'Xóa',
|
||||
confirm: 'OK',
|
||||
selectDate: 'Chọn ngày',
|
||||
selectTime: 'Chọn giờ',
|
||||
startDate: 'Ngày bắt đầu',
|
||||
startTime: 'Thời gian bắt đầu',
|
||||
endDate: 'Ngày kết thúc',
|
||||
endTime: 'Thời gian kết thúc',
|
||||
prevYear: 'Năm trước',
|
||||
nextYear: 'Năm tới',
|
||||
prevMonth: 'Tháng trước',
|
||||
nextMonth: 'Tháng tới',
|
||||
year: 'Năm',
|
||||
month1: 'Tháng 1',
|
||||
month2: 'Tháng 2',
|
||||
month3: 'Tháng 3',
|
||||
month4: 'Tháng 4',
|
||||
month5: 'Tháng 5',
|
||||
month6: 'Tháng 6',
|
||||
month7: 'Tháng 7',
|
||||
month8: 'Tháng 8',
|
||||
month9: 'Tháng 9',
|
||||
month10: 'Tháng 10',
|
||||
month11: 'Tháng 11',
|
||||
month12: 'Tháng 12',
|
||||
// week: 'week',
|
||||
weeks: {
|
||||
sun: 'CN',
|
||||
mon: 'T2',
|
||||
tue: 'T3',
|
||||
wed: 'T4',
|
||||
thu: 'T5',
|
||||
fri: 'T6',
|
||||
sat: 'T7'
|
||||
},
|
||||
months: {
|
||||
jan: 'Th.1',
|
||||
feb: 'Th.2',
|
||||
mar: 'Th.3',
|
||||
apr: 'Th.4',
|
||||
may: 'Th.5',
|
||||
jun: 'Th.6',
|
||||
jul: 'Th.7',
|
||||
aug: 'Th.8',
|
||||
sep: 'Th.9',
|
||||
oct: 'Th.10',
|
||||
nov: 'Th.11',
|
||||
dec: 'Th.12'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: 'Đang tải',
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
noData: 'Không tìm thấy dữ liệu',
|
||||
placeholder: 'Chọn'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
loading: 'Đang tải',
|
||||
placeholder: 'Chọn'
|
||||
},
|
||||
pagination: {
|
||||
goto: 'Nhảy tới',
|
||||
pagesize: '/trang',
|
||||
total: 'Tổng {total}',
|
||||
pageClassifier: ''
|
||||
},
|
||||
messagebox: {
|
||||
title: 'Thông báo',
|
||||
confirm: 'OK',
|
||||
cancel: 'Hủy',
|
||||
error: 'Dữ liệu không hợp lệ'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: 'Nhấn xoá để xoá',
|
||||
delete: 'Xóa',
|
||||
preview: 'Xem trước',
|
||||
continue: 'Tiếp tục'
|
||||
},
|
||||
table: {
|
||||
emptyText: 'Không có dữ liệu',
|
||||
confirmFilter: 'Xác nhận',
|
||||
resetFilter: 'Làm mới',
|
||||
clearFilter: 'Xóa hết',
|
||||
sumText: 'Tổng'
|
||||
},
|
||||
tree: {
|
||||
emptyText: 'Không có dữ liệu'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: 'Dữ liệu không phù hợp',
|
||||
noData: 'Không tìm thấy dữ liệu',
|
||||
titles: ['Danh sách 1', 'Danh sách 2'],
|
||||
filterPlaceholder: 'Nhập từ khóa',
|
||||
noCheckedFormat: '{total} mục',
|
||||
hasCheckedFormat: '{checked}/{total} đã chọn '
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '确定',
|
||||
clear: '清空'
|
||||
},
|
||||
datepicker: {
|
||||
now: '此刻',
|
||||
today: '今天',
|
||||
cancel: '取消',
|
||||
clear: '清空',
|
||||
confirm: '确定',
|
||||
selectDate: '选择日期',
|
||||
selectTime: '选择时间',
|
||||
startDate: '开始日期',
|
||||
startTime: '开始时间',
|
||||
endDate: '结束日期',
|
||||
endTime: '结束时间',
|
||||
prevYear: '前一年',
|
||||
nextYear: '后一年',
|
||||
prevMonth: '上个月',
|
||||
nextMonth: '下个月',
|
||||
year: '年',
|
||||
month1: '1 月',
|
||||
month2: '2 月',
|
||||
month3: '3 月',
|
||||
month4: '4 月',
|
||||
month5: '5 月',
|
||||
month6: '6 月',
|
||||
month7: '7 月',
|
||||
month8: '8 月',
|
||||
month9: '9 月',
|
||||
month10: '10 月',
|
||||
month11: '11 月',
|
||||
month12: '12 月',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '一',
|
||||
tue: '二',
|
||||
wed: '三',
|
||||
thu: '四',
|
||||
fri: '五',
|
||||
sat: '六'
|
||||
},
|
||||
months: {
|
||||
jan: '一月',
|
||||
feb: '二月',
|
||||
mar: '三月',
|
||||
apr: '四月',
|
||||
may: '五月',
|
||||
jun: '六月',
|
||||
jul: '七月',
|
||||
aug: '八月',
|
||||
sep: '九月',
|
||||
oct: '十月',
|
||||
nov: '十一月',
|
||||
dec: '十二月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '加载中',
|
||||
noMatch: '无匹配数据',
|
||||
noData: '无数据',
|
||||
placeholder: '请选择'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '无匹配数据',
|
||||
loading: '加载中',
|
||||
placeholder: '请选择'
|
||||
},
|
||||
pagination: {
|
||||
goto: '前往',
|
||||
pagesize: '条/页',
|
||||
total: '共 {total} 条',
|
||||
pageClassifier: '页'
|
||||
},
|
||||
messagebox: {
|
||||
title: '提示',
|
||||
confirm: '确定',
|
||||
cancel: '取消',
|
||||
error: '输入的数据不合法!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '按 delete 键可删除',
|
||||
delete: '删除',
|
||||
preview: '查看图片',
|
||||
continue: '继续上传'
|
||||
},
|
||||
table: {
|
||||
emptyText: '暂无数据',
|
||||
confirmFilter: '筛选',
|
||||
resetFilter: '重置',
|
||||
clearFilter: '全部',
|
||||
sumText: '合计'
|
||||
},
|
||||
tree: {
|
||||
emptyText: '暂无数据'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '无匹配数据',
|
||||
noData: '无数据',
|
||||
titles: ['列表 1', '列表 2'],
|
||||
filterPlaceholder: '请输入搜索内容',
|
||||
noCheckedFormat: '共 {total} 项',
|
||||
hasCheckedFormat: '已选 {checked}/{total} 项'
|
||||
}
|
||||
}
|
||||
};
|
||||
+112
@@ -0,0 +1,112 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
exports.default = {
|
||||
el: {
|
||||
colorpicker: {
|
||||
confirm: '確認',
|
||||
clear: '清空'
|
||||
},
|
||||
datepicker: {
|
||||
now: '現在',
|
||||
today: '今天',
|
||||
cancel: '取消',
|
||||
clear: '清空',
|
||||
confirm: '確認',
|
||||
selectDate: '選擇日期',
|
||||
selectTime: '選擇時間',
|
||||
startDate: '開始日期',
|
||||
startTime: '開始時間',
|
||||
endDate: '結束日期',
|
||||
endTime: '結束時間',
|
||||
prevYear: '前一年',
|
||||
nextYear: '後一年',
|
||||
prevMonth: '上個月',
|
||||
nextMonth: '下個月',
|
||||
year: '年',
|
||||
month1: '1 月',
|
||||
month2: '2 月',
|
||||
month3: '3 月',
|
||||
month4: '4 月',
|
||||
month5: '5 月',
|
||||
month6: '6 月',
|
||||
month7: '7 月',
|
||||
month8: '8 月',
|
||||
month9: '9 月',
|
||||
month10: '10 月',
|
||||
month11: '11 月',
|
||||
month12: '12 月',
|
||||
// week: '周次',
|
||||
weeks: {
|
||||
sun: '日',
|
||||
mon: '一',
|
||||
tue: '二',
|
||||
wed: '三',
|
||||
thu: '四',
|
||||
fri: '五',
|
||||
sat: '六'
|
||||
},
|
||||
months: {
|
||||
jan: '一月',
|
||||
feb: '二月',
|
||||
mar: '三月',
|
||||
apr: '四月',
|
||||
may: '五月',
|
||||
jun: '六月',
|
||||
jul: '七月',
|
||||
aug: '八月',
|
||||
sep: '九月',
|
||||
oct: '十月',
|
||||
nov: '十一月',
|
||||
dec: '十二月'
|
||||
}
|
||||
},
|
||||
select: {
|
||||
loading: '加載中',
|
||||
noMatch: '無匹配資料',
|
||||
noData: '無資料',
|
||||
placeholder: '請選擇'
|
||||
},
|
||||
cascader: {
|
||||
noMatch: '無匹配資料',
|
||||
loading: '加載中',
|
||||
placeholder: '請選擇'
|
||||
},
|
||||
pagination: {
|
||||
goto: '前往',
|
||||
pagesize: '項/頁',
|
||||
total: '共 {total} 項',
|
||||
pageClassifier: '頁'
|
||||
},
|
||||
messagebox: {
|
||||
title: '提示',
|
||||
confirm: '確定',
|
||||
cancel: '取消',
|
||||
error: '輸入的資料不符規定!'
|
||||
},
|
||||
upload: {
|
||||
deleteTip: '按 delete 鍵可刪除',
|
||||
delete: '刪除',
|
||||
preview: '查看圖片',
|
||||
continue: '繼續上傳'
|
||||
},
|
||||
table: {
|
||||
emptyText: '暫無資料',
|
||||
confirmFilter: '篩選',
|
||||
resetFilter: '重置',
|
||||
clearFilter: '全部',
|
||||
sumText: 'Sum' // to be translated
|
||||
},
|
||||
tree: {
|
||||
emptyText: '暫無資料'
|
||||
},
|
||||
transfer: {
|
||||
noMatch: '無匹配資料',
|
||||
noData: '無資料',
|
||||
titles: ['List 1', 'List 2'], // to be translated
|
||||
filterPlaceholder: 'Enter keyword', // to be translated
|
||||
noCheckedFormat: '{total} items', // to be translated
|
||||
hasCheckedFormat: '{checked}/{total} checked' // to be translated
|
||||
}
|
||||
}
|
||||
};
|
||||
+263
@@ -0,0 +1,263 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 105);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 105:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("main", { staticClass: "el-main" }, [_vm._t("default")], 2)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=template&id=2a3a7406&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/main/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
name: 'ElMain',
|
||||
componentName: 'ElMain'
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/main/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/main/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/main/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/main/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
main.install = function (Vue) {
|
||||
Vue.component(main.name, main);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_main = __webpack_exports__["default"] = (main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+307
@@ -0,0 +1,307 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 72);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 72:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("li", { staticClass: "el-menu-item-group" }, [
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-menu-item-group__title",
|
||||
style: { paddingLeft: _vm.levelPadding + "px" }
|
||||
},
|
||||
[!_vm.$slots.title ? [_vm._v(_vm._s(_vm.title))] : _vm._t("title")],
|
||||
2
|
||||
),
|
||||
_c("ul", [_vm._t("default")], 2)
|
||||
])
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=template&id=543b7bdc&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
/* harmony default export */ var menu_item_groupvue_type_script_lang_js_ = ({
|
||||
name: 'ElMenuItemGroup',
|
||||
|
||||
componentName: 'ElMenuItemGroup',
|
||||
|
||||
inject: ['rootMenu'],
|
||||
props: {
|
||||
title: {
|
||||
type: String
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
paddingLeft: 20
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
levelPadding: function levelPadding() {
|
||||
var padding = 20;
|
||||
var parent = this.$parent;
|
||||
if (this.rootMenu.collapse) return 20;
|
||||
while (parent && parent.$options.componentName !== 'ElMenu') {
|
||||
if (parent.$options.componentName === 'ElSubmenu') {
|
||||
padding += 20;
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
return padding;
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_menu_item_groupvue_type_script_lang_js_ = (menu_item_groupvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item-group.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_menu_item_groupvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/menu/src/menu-item-group.vue"
|
||||
/* harmony default export */ var menu_item_group = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/menu-item-group/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
menu_item_group.install = function (Vue) {
|
||||
Vue.component(menu_item_group.name, menu_item_group);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_menu_item_group = __webpack_exports__["default"] = (menu_item_group);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+490
@@ -0,0 +1,490 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 71);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 24:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/tooltip");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 32:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony default export */ __webpack_exports__["a"] = ({
|
||||
inject: ['rootMenu'],
|
||||
computed: {
|
||||
indexPath: function indexPath() {
|
||||
var path = [this.index];
|
||||
var parent = this.$parent;
|
||||
while (parent.$options.componentName !== 'ElMenu') {
|
||||
if (parent.index) {
|
||||
path.unshift(parent.index);
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
return path;
|
||||
},
|
||||
parentMenu: function parentMenu() {
|
||||
var parent = this.$parent;
|
||||
while (parent && ['ElMenu', 'ElSubmenu'].indexOf(parent.$options.componentName) === -1) {
|
||||
parent = parent.$parent;
|
||||
}
|
||||
return parent;
|
||||
},
|
||||
paddingStyle: function paddingStyle() {
|
||||
if (this.rootMenu.mode !== 'vertical') return {};
|
||||
|
||||
var padding = 20;
|
||||
var parent = this.$parent;
|
||||
|
||||
if (this.rootMenu.collapse) {
|
||||
padding = 20;
|
||||
} else {
|
||||
while (parent && parent.$options.componentName !== 'ElMenu') {
|
||||
if (parent.$options.componentName === 'ElSubmenu') {
|
||||
padding += 20;
|
||||
}
|
||||
parent = parent.$parent;
|
||||
}
|
||||
}
|
||||
return { paddingLeft: padding + 'px' };
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 71:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"li",
|
||||
{
|
||||
staticClass: "el-menu-item",
|
||||
class: {
|
||||
"is-active": _vm.active,
|
||||
"is-disabled": _vm.disabled
|
||||
},
|
||||
style: [
|
||||
_vm.paddingStyle,
|
||||
_vm.itemStyle,
|
||||
{ backgroundColor: _vm.backgroundColor }
|
||||
],
|
||||
attrs: { role: "menuitem", tabindex: "-1" },
|
||||
on: {
|
||||
click: _vm.handleClick,
|
||||
mouseenter: _vm.onMouseEnter,
|
||||
focus: _vm.onMouseEnter,
|
||||
blur: _vm.onMouseLeave,
|
||||
mouseleave: _vm.onMouseLeave
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm.parentMenu.$options.componentName === "ElMenu" &&
|
||||
_vm.rootMenu.collapse &&
|
||||
_vm.$slots.title
|
||||
? _c("el-tooltip", { attrs: { effect: "dark", placement: "right" } }, [
|
||||
_c(
|
||||
"div",
|
||||
{ attrs: { slot: "content" }, slot: "content" },
|
||||
[_vm._t("title")],
|
||||
2
|
||||
),
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticStyle: {
|
||||
position: "absolute",
|
||||
left: "0",
|
||||
top: "0",
|
||||
height: "100%",
|
||||
width: "100%",
|
||||
display: "inline-block",
|
||||
"box-sizing": "border-box",
|
||||
padding: "0 20px"
|
||||
}
|
||||
},
|
||||
[_vm._t("default")],
|
||||
2
|
||||
)
|
||||
])
|
||||
: [_vm._t("default"), _vm._t("title")]
|
||||
],
|
||||
2
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=template&id=2a5dbfea&
|
||||
|
||||
// EXTERNAL MODULE: ./packages/menu/src/menu-mixin.js
|
||||
var menu_mixin = __webpack_require__(32);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/tooltip"
|
||||
var tooltip_ = __webpack_require__(24);
|
||||
var tooltip_default = /*#__PURE__*/__webpack_require__.n(tooltip_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var menu_itemvue_type_script_lang_js_ = ({
|
||||
name: 'ElMenuItem',
|
||||
|
||||
componentName: 'ElMenuItem',
|
||||
|
||||
mixins: [menu_mixin["a" /* default */], emitter_default.a],
|
||||
|
||||
components: { ElTooltip: tooltip_default.a },
|
||||
|
||||
props: {
|
||||
index: {
|
||||
default: null,
|
||||
validator: function validator(val) {
|
||||
return typeof val === 'string' || val === null;
|
||||
}
|
||||
},
|
||||
route: [String, Object],
|
||||
disabled: Boolean
|
||||
},
|
||||
computed: {
|
||||
active: function active() {
|
||||
return this.index === this.rootMenu.activeIndex;
|
||||
},
|
||||
hoverBackground: function hoverBackground() {
|
||||
return this.rootMenu.hoverBackground;
|
||||
},
|
||||
backgroundColor: function backgroundColor() {
|
||||
return this.rootMenu.backgroundColor || '';
|
||||
},
|
||||
activeTextColor: function activeTextColor() {
|
||||
return this.rootMenu.activeTextColor || '';
|
||||
},
|
||||
textColor: function textColor() {
|
||||
return this.rootMenu.textColor || '';
|
||||
},
|
||||
mode: function mode() {
|
||||
return this.rootMenu.mode;
|
||||
},
|
||||
itemStyle: function itemStyle() {
|
||||
var style = {
|
||||
color: this.active ? this.activeTextColor : this.textColor
|
||||
};
|
||||
if (this.mode === 'horizontal' && !this.isNested) {
|
||||
style.borderBottomColor = this.active ? this.rootMenu.activeTextColor ? this.activeTextColor : '' : 'transparent';
|
||||
}
|
||||
return style;
|
||||
},
|
||||
isNested: function isNested() {
|
||||
return this.parentMenu !== this.rootMenu;
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
onMouseEnter: function onMouseEnter() {
|
||||
if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
|
||||
this.$el.style.backgroundColor = this.hoverBackground;
|
||||
},
|
||||
onMouseLeave: function onMouseLeave() {
|
||||
if (this.mode === 'horizontal' && !this.rootMenu.backgroundColor) return;
|
||||
this.$el.style.backgroundColor = this.backgroundColor;
|
||||
},
|
||||
handleClick: function handleClick() {
|
||||
if (!this.disabled) {
|
||||
this.dispatch('ElMenu', 'item-click', this);
|
||||
this.$emit('click', this);
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.parentMenu.addItem(this);
|
||||
this.rootMenu.addItem(this);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
this.parentMenu.removeItem(this);
|
||||
this.rootMenu.removeItem(this);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_menu_itemvue_type_script_lang_js_ = (menu_itemvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu-item.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_menu_itemvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/menu/src/menu-item.vue"
|
||||
/* harmony default export */ var menu_item = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/menu-item/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
menu_item.install = function (Vue) {
|
||||
Vue.component(menu_item.name, menu_item);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_menu_item = __webpack_exports__["default"] = (menu_item);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+854
@@ -0,0 +1,854 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 58);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 10:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/migrating");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 2:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/dom");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 58:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/migrating"
|
||||
var migrating_ = __webpack_require__(10);
|
||||
var migrating_default = /*#__PURE__*/__webpack_require__.n(migrating_);
|
||||
|
||||
// CONCATENATED MODULE: ./src/utils/aria-utils.js
|
||||
var aria = aria || {};
|
||||
|
||||
aria.Utils = aria.Utils || {};
|
||||
|
||||
/**
|
||||
* @desc Set focus on descendant nodes until the first focusable element is
|
||||
* found.
|
||||
* @param element
|
||||
* DOM node for which to find the first focusable descendant.
|
||||
* @returns
|
||||
* true if a focusable element is found and focus is set.
|
||||
*/
|
||||
aria.Utils.focusFirstDescendant = function (element) {
|
||||
for (var i = 0; i < element.childNodes.length; i++) {
|
||||
var child = element.childNodes[i];
|
||||
if (aria.Utils.attemptFocus(child) || aria.Utils.focusFirstDescendant(child)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Find the last descendant node that is focusable.
|
||||
* @param element
|
||||
* DOM node for which to find the last focusable descendant.
|
||||
* @returns
|
||||
* true if a focusable element is found and focus is set.
|
||||
*/
|
||||
|
||||
aria.Utils.focusLastDescendant = function (element) {
|
||||
for (var i = element.childNodes.length - 1; i >= 0; i--) {
|
||||
var child = element.childNodes[i];
|
||||
if (aria.Utils.attemptFocus(child) || aria.Utils.focusLastDescendant(child)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
/**
|
||||
* @desc Set Attempt to set focus on the current node.
|
||||
* @param element
|
||||
* The node to attempt to focus on.
|
||||
* @returns
|
||||
* true if element is focused.
|
||||
*/
|
||||
aria.Utils.attemptFocus = function (element) {
|
||||
if (!aria.Utils.isFocusable(element)) {
|
||||
return false;
|
||||
}
|
||||
aria.Utils.IgnoreUtilFocusChanges = true;
|
||||
try {
|
||||
element.focus();
|
||||
} catch (e) {}
|
||||
aria.Utils.IgnoreUtilFocusChanges = false;
|
||||
return document.activeElement === element;
|
||||
};
|
||||
|
||||
aria.Utils.isFocusable = function (element) {
|
||||
if (element.tabIndex > 0 || element.tabIndex === 0 && element.getAttribute('tabIndex') !== null) {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (element.disabled) {
|
||||
return false;
|
||||
}
|
||||
|
||||
switch (element.nodeName) {
|
||||
case 'A':
|
||||
return !!element.href && element.rel !== 'ignore';
|
||||
case 'INPUT':
|
||||
return element.type !== 'hidden' && element.type !== 'file';
|
||||
case 'BUTTON':
|
||||
case 'SELECT':
|
||||
case 'TEXTAREA':
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
};
|
||||
|
||||
/**
|
||||
* 触发一个事件
|
||||
* mouseenter, mouseleave, mouseover, keyup, change, click 等
|
||||
* @param {Element} elm
|
||||
* @param {String} name
|
||||
* @param {*} opts
|
||||
*/
|
||||
aria.Utils.triggerEvent = function (elm, name) {
|
||||
var eventName = void 0;
|
||||
|
||||
if (/^mouse|click/.test(name)) {
|
||||
eventName = 'MouseEvents';
|
||||
} else if (/^key/.test(name)) {
|
||||
eventName = 'KeyboardEvent';
|
||||
} else {
|
||||
eventName = 'HTMLEvents';
|
||||
}
|
||||
var evt = document.createEvent(eventName);
|
||||
|
||||
for (var _len = arguments.length, opts = Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
||||
opts[_key - 2] = arguments[_key];
|
||||
}
|
||||
|
||||
evt.initEvent.apply(evt, [name].concat(opts));
|
||||
elm.dispatchEvent ? elm.dispatchEvent(evt) : elm.fireEvent('on' + name, evt);
|
||||
|
||||
return elm;
|
||||
};
|
||||
|
||||
aria.Utils.keys = {
|
||||
tab: 9,
|
||||
enter: 13,
|
||||
space: 32,
|
||||
left: 37,
|
||||
up: 38,
|
||||
right: 39,
|
||||
down: 40
|
||||
};
|
||||
|
||||
/* harmony default export */ var aria_utils = (aria.Utils);
|
||||
// CONCATENATED MODULE: ./src/utils/menu/aria-submenu.js
|
||||
|
||||
|
||||
var SubMenu = function SubMenu(parent, domNode) {
|
||||
this.domNode = domNode;
|
||||
this.parent = parent;
|
||||
this.subMenuItems = [];
|
||||
this.subIndex = 0;
|
||||
this.init();
|
||||
};
|
||||
|
||||
SubMenu.prototype.init = function () {
|
||||
this.subMenuItems = this.domNode.querySelectorAll('li');
|
||||
this.addListeners();
|
||||
};
|
||||
|
||||
SubMenu.prototype.gotoSubIndex = function (idx) {
|
||||
if (idx === this.subMenuItems.length) {
|
||||
idx = 0;
|
||||
} else if (idx < 0) {
|
||||
idx = this.subMenuItems.length - 1;
|
||||
}
|
||||
this.subMenuItems[idx].focus();
|
||||
this.subIndex = idx;
|
||||
};
|
||||
|
||||
SubMenu.prototype.addListeners = function () {
|
||||
var _this = this;
|
||||
|
||||
var keys = aria_utils.keys;
|
||||
var parentNode = this.parent.domNode;
|
||||
Array.prototype.forEach.call(this.subMenuItems, function (el) {
|
||||
el.addEventListener('keydown', function (event) {
|
||||
var prevDef = false;
|
||||
switch (event.keyCode) {
|
||||
case keys.down:
|
||||
_this.gotoSubIndex(_this.subIndex + 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.up:
|
||||
_this.gotoSubIndex(_this.subIndex - 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.tab:
|
||||
aria_utils.triggerEvent(parentNode, 'mouseleave');
|
||||
break;
|
||||
case keys.enter:
|
||||
case keys.space:
|
||||
prevDef = true;
|
||||
event.currentTarget.click();
|
||||
break;
|
||||
}
|
||||
if (prevDef) {
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
}
|
||||
return false;
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
/* harmony default export */ var aria_submenu = (SubMenu);
|
||||
// CONCATENATED MODULE: ./src/utils/menu/aria-menuitem.js
|
||||
|
||||
|
||||
|
||||
var MenuItem = function MenuItem(domNode) {
|
||||
this.domNode = domNode;
|
||||
this.submenu = null;
|
||||
this.init();
|
||||
};
|
||||
|
||||
MenuItem.prototype.init = function () {
|
||||
this.domNode.setAttribute('tabindex', '0');
|
||||
var menuChild = this.domNode.querySelector('.el-menu');
|
||||
if (menuChild) {
|
||||
this.submenu = new aria_submenu(this, menuChild);
|
||||
}
|
||||
this.addListeners();
|
||||
};
|
||||
|
||||
MenuItem.prototype.addListeners = function () {
|
||||
var _this = this;
|
||||
|
||||
var keys = aria_utils.keys;
|
||||
this.domNode.addEventListener('keydown', function (event) {
|
||||
var prevDef = false;
|
||||
switch (event.keyCode) {
|
||||
case keys.down:
|
||||
aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
|
||||
_this.submenu && _this.submenu.gotoSubIndex(0);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.up:
|
||||
aria_utils.triggerEvent(event.currentTarget, 'mouseenter');
|
||||
_this.submenu && _this.submenu.gotoSubIndex(_this.submenu.subMenuItems.length - 1);
|
||||
prevDef = true;
|
||||
break;
|
||||
case keys.tab:
|
||||
aria_utils.triggerEvent(event.currentTarget, 'mouseleave');
|
||||
break;
|
||||
case keys.enter:
|
||||
case keys.space:
|
||||
prevDef = true;
|
||||
event.currentTarget.click();
|
||||
break;
|
||||
}
|
||||
if (prevDef) {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
/* harmony default export */ var aria_menuitem = (MenuItem);
|
||||
// CONCATENATED MODULE: ./src/utils/menu/aria-menubar.js
|
||||
|
||||
|
||||
var Menu = function Menu(domNode) {
|
||||
this.domNode = domNode;
|
||||
this.init();
|
||||
};
|
||||
|
||||
Menu.prototype.init = function () {
|
||||
var menuChildren = this.domNode.childNodes;
|
||||
[].filter.call(menuChildren, function (child) {
|
||||
return child.nodeType === 1;
|
||||
}).forEach(function (child) {
|
||||
new aria_menuitem(child); // eslint-disable-line
|
||||
});
|
||||
};
|
||||
/* harmony default export */ var aria_menubar = (Menu);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/dom"
|
||||
var dom_ = __webpack_require__(2);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/menu.vue?vue&type=script&lang=js&
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var menuvue_type_script_lang_js_ = ({
|
||||
name: 'ElMenu',
|
||||
|
||||
render: function render(h) {
|
||||
var component = h(
|
||||
'ul',
|
||||
{
|
||||
attrs: {
|
||||
role: 'menubar'
|
||||
},
|
||||
key: +this.collapse,
|
||||
style: { backgroundColor: this.backgroundColor || '' },
|
||||
'class': {
|
||||
'el-menu--horizontal': this.mode === 'horizontal',
|
||||
'el-menu--collapse': this.collapse,
|
||||
"el-menu": true
|
||||
}
|
||||
},
|
||||
[this.$slots.default]
|
||||
);
|
||||
|
||||
if (this.collapseTransition) {
|
||||
return h('el-menu-collapse-transition', [component]);
|
||||
} else {
|
||||
return component;
|
||||
}
|
||||
},
|
||||
|
||||
|
||||
componentName: 'ElMenu',
|
||||
|
||||
mixins: [emitter_default.a, migrating_default.a],
|
||||
|
||||
provide: function provide() {
|
||||
return {
|
||||
rootMenu: this
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
components: {
|
||||
'el-menu-collapse-transition': {
|
||||
functional: true,
|
||||
render: function render(createElement, context) {
|
||||
var data = {
|
||||
props: {
|
||||
mode: 'out-in'
|
||||
},
|
||||
on: {
|
||||
beforeEnter: function beforeEnter(el) {
|
||||
el.style.opacity = 0.2;
|
||||
},
|
||||
enter: function enter(el) {
|
||||
Object(dom_["addClass"])(el, 'el-opacity-transition');
|
||||
el.style.opacity = 1;
|
||||
},
|
||||
afterEnter: function afterEnter(el) {
|
||||
Object(dom_["removeClass"])(el, 'el-opacity-transition');
|
||||
el.style.opacity = '';
|
||||
},
|
||||
beforeLeave: function beforeLeave(el) {
|
||||
if (!el.dataset) el.dataset = {};
|
||||
|
||||
if (Object(dom_["hasClass"])(el, 'el-menu--collapse')) {
|
||||
Object(dom_["removeClass"])(el, 'el-menu--collapse');
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
el.dataset.scrollWidth = el.clientWidth;
|
||||
Object(dom_["addClass"])(el, 'el-menu--collapse');
|
||||
} else {
|
||||
Object(dom_["addClass"])(el, 'el-menu--collapse');
|
||||
el.dataset.oldOverflow = el.style.overflow;
|
||||
el.dataset.scrollWidth = el.clientWidth;
|
||||
Object(dom_["removeClass"])(el, 'el-menu--collapse');
|
||||
}
|
||||
|
||||
el.style.width = el.scrollWidth + 'px';
|
||||
el.style.overflow = 'hidden';
|
||||
},
|
||||
leave: function leave(el) {
|
||||
Object(dom_["addClass"])(el, 'horizontal-collapse-transition');
|
||||
el.style.width = el.dataset.scrollWidth + 'px';
|
||||
}
|
||||
}
|
||||
};
|
||||
return createElement('transition', data, context.children);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
props: {
|
||||
mode: {
|
||||
type: String,
|
||||
default: 'vertical'
|
||||
},
|
||||
defaultActive: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
defaultOpeneds: Array,
|
||||
uniqueOpened: Boolean,
|
||||
router: Boolean,
|
||||
menuTrigger: {
|
||||
type: String,
|
||||
default: 'hover'
|
||||
},
|
||||
collapse: Boolean,
|
||||
backgroundColor: String,
|
||||
textColor: String,
|
||||
activeTextColor: String,
|
||||
collapseTransition: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
activeIndex: this.defaultActive,
|
||||
openedMenus: this.defaultOpeneds && !this.collapse ? this.defaultOpeneds.slice(0) : [],
|
||||
items: {},
|
||||
submenus: {}
|
||||
};
|
||||
},
|
||||
|
||||
computed: {
|
||||
hoverBackground: function hoverBackground() {
|
||||
return this.backgroundColor ? this.mixColor(this.backgroundColor, 0.2) : '';
|
||||
},
|
||||
isMenuPopup: function isMenuPopup() {
|
||||
return this.mode === 'horizontal' || this.mode === 'vertical' && this.collapse;
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
defaultActive: 'updateActiveIndex',
|
||||
|
||||
defaultOpeneds: function defaultOpeneds(value) {
|
||||
if (!this.collapse) {
|
||||
this.openedMenus = value;
|
||||
}
|
||||
},
|
||||
collapse: function collapse(value) {
|
||||
if (value) this.openedMenus = [];
|
||||
this.broadcast('ElSubmenu', 'toggle-collapse', value);
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
updateActiveIndex: function updateActiveIndex(val) {
|
||||
var item = this.items[val] || this.items[this.activeIndex] || this.items[this.defaultActive];
|
||||
if (item) {
|
||||
this.activeIndex = item.index;
|
||||
this.initOpenedMenu();
|
||||
} else {
|
||||
this.activeIndex = null;
|
||||
}
|
||||
},
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {
|
||||
'theme': 'theme is removed.'
|
||||
}
|
||||
};
|
||||
},
|
||||
getColorChannels: function getColorChannels(color) {
|
||||
color = color.replace('#', '');
|
||||
if (/^[0-9a-fA-F]{3}$/.test(color)) {
|
||||
color = color.split('');
|
||||
for (var i = 2; i >= 0; i--) {
|
||||
color.splice(i, 0, color[i]);
|
||||
}
|
||||
color = color.join('');
|
||||
}
|
||||
if (/^[0-9a-fA-F]{6}$/.test(color)) {
|
||||
return {
|
||||
red: parseInt(color.slice(0, 2), 16),
|
||||
green: parseInt(color.slice(2, 4), 16),
|
||||
blue: parseInt(color.slice(4, 6), 16)
|
||||
};
|
||||
} else {
|
||||
return {
|
||||
red: 255,
|
||||
green: 255,
|
||||
blue: 255
|
||||
};
|
||||
}
|
||||
},
|
||||
mixColor: function mixColor(color, percent) {
|
||||
var _getColorChannels = this.getColorChannels(color),
|
||||
red = _getColorChannels.red,
|
||||
green = _getColorChannels.green,
|
||||
blue = _getColorChannels.blue;
|
||||
|
||||
if (percent > 0) {
|
||||
// shade given color
|
||||
red *= 1 - percent;
|
||||
green *= 1 - percent;
|
||||
blue *= 1 - percent;
|
||||
} else {
|
||||
// tint given color
|
||||
red += (255 - red) * percent;
|
||||
green += (255 - green) * percent;
|
||||
blue += (255 - blue) * percent;
|
||||
}
|
||||
return 'rgb(' + Math.round(red) + ', ' + Math.round(green) + ', ' + Math.round(blue) + ')';
|
||||
},
|
||||
addItem: function addItem(item) {
|
||||
this.$set(this.items, item.index, item);
|
||||
},
|
||||
removeItem: function removeItem(item) {
|
||||
delete this.items[item.index];
|
||||
},
|
||||
addSubmenu: function addSubmenu(item) {
|
||||
this.$set(this.submenus, item.index, item);
|
||||
},
|
||||
removeSubmenu: function removeSubmenu(item) {
|
||||
delete this.submenus[item.index];
|
||||
},
|
||||
openMenu: function openMenu(index, indexPath) {
|
||||
var openedMenus = this.openedMenus;
|
||||
if (openedMenus.indexOf(index) !== -1) return;
|
||||
// 将不在该菜单路径下的其余菜单收起
|
||||
// collapse all menu that are not under current menu item
|
||||
if (this.uniqueOpened) {
|
||||
this.openedMenus = openedMenus.filter(function (index) {
|
||||
return indexPath.indexOf(index) !== -1;
|
||||
});
|
||||
}
|
||||
this.openedMenus.push(index);
|
||||
},
|
||||
closeMenu: function closeMenu(index) {
|
||||
var i = this.openedMenus.indexOf(index);
|
||||
if (i !== -1) {
|
||||
this.openedMenus.splice(i, 1);
|
||||
}
|
||||
},
|
||||
handleSubmenuClick: function handleSubmenuClick(submenu) {
|
||||
var index = submenu.index,
|
||||
indexPath = submenu.indexPath;
|
||||
|
||||
var isOpened = this.openedMenus.indexOf(index) !== -1;
|
||||
|
||||
if (isOpened) {
|
||||
this.closeMenu(index);
|
||||
this.$emit('close', index, indexPath);
|
||||
} else {
|
||||
this.openMenu(index, indexPath);
|
||||
this.$emit('open', index, indexPath);
|
||||
}
|
||||
},
|
||||
handleItemClick: function handleItemClick(item) {
|
||||
var _this = this;
|
||||
|
||||
var index = item.index,
|
||||
indexPath = item.indexPath;
|
||||
|
||||
var oldActiveIndex = this.activeIndex;
|
||||
var hasIndex = item.index !== null;
|
||||
|
||||
if (hasIndex) {
|
||||
this.activeIndex = item.index;
|
||||
}
|
||||
|
||||
this.$emit('select', index, indexPath, item);
|
||||
|
||||
if (this.mode === 'horizontal' || this.collapse) {
|
||||
this.openedMenus = [];
|
||||
}
|
||||
|
||||
if (this.router && hasIndex) {
|
||||
this.routeToItem(item, function (error) {
|
||||
_this.activeIndex = oldActiveIndex;
|
||||
if (error) console.error(error);
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
// 初始化展开菜单
|
||||
// initialize opened menu
|
||||
initOpenedMenu: function initOpenedMenu() {
|
||||
var _this2 = this;
|
||||
|
||||
var index = this.activeIndex;
|
||||
var activeItem = this.items[index];
|
||||
if (!activeItem || this.mode === 'horizontal' || this.collapse) return;
|
||||
|
||||
var indexPath = activeItem.indexPath;
|
||||
|
||||
// 展开该菜单项的路径上所有子菜单
|
||||
// expand all submenus of the menu item
|
||||
indexPath.forEach(function (index) {
|
||||
var submenu = _this2.submenus[index];
|
||||
submenu && _this2.openMenu(index, submenu.indexPath);
|
||||
});
|
||||
},
|
||||
routeToItem: function routeToItem(item, onError) {
|
||||
var route = item.route || item.index;
|
||||
try {
|
||||
this.$router.push(route, function () {}, onError);
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
},
|
||||
open: function open(index) {
|
||||
var _this3 = this;
|
||||
|
||||
var indexPath = this.submenus[index.toString()].indexPath;
|
||||
|
||||
indexPath.forEach(function (i) {
|
||||
return _this3.openMenu(i, indexPath);
|
||||
});
|
||||
},
|
||||
close: function close(index) {
|
||||
this.closeMenu(index);
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.initOpenedMenu();
|
||||
this.$on('item-click', this.handleItemClick);
|
||||
this.$on('submenu-click', this.handleSubmenuClick);
|
||||
if (this.mode === 'horizontal') {
|
||||
new aria_menubar(this.$el); // eslint-disable-line
|
||||
}
|
||||
this.$watch('items', this.updateActiveIndex);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_menuvue_type_script_lang_js_ = (menuvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/menu/src/menu.vue
|
||||
var menu_render, staticRenderFns
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_menuvue_type_script_lang_js_,
|
||||
menu_render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/menu/src/menu.vue"
|
||||
/* harmony default export */ var menu = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/menu/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
menu.install = function (Vue) {
|
||||
Vue.component(menu.name, menu);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_menu = __webpack_exports__["default"] = (menu);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+1184
File diff suppressed because it is too large
Load Diff
+510
@@ -0,0 +1,510 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 67);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/popup");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/vdom");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("vue");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 67:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external "vue"
|
||||
var external_vue_ = __webpack_require__(6);
|
||||
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=template&id=455b9f60&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"transition",
|
||||
{
|
||||
attrs: { name: "el-message-fade" },
|
||||
on: { "after-leave": _vm.handleAfterLeave }
|
||||
},
|
||||
[
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
class: [
|
||||
"el-message",
|
||||
_vm.type && !_vm.iconClass ? "el-message--" + _vm.type : "",
|
||||
_vm.center ? "is-center" : "",
|
||||
_vm.showClose ? "is-closable" : "",
|
||||
_vm.customClass
|
||||
],
|
||||
attrs: { role: "alert" },
|
||||
on: { mouseenter: _vm.clearTimer, mouseleave: _vm.startTimer }
|
||||
},
|
||||
[
|
||||
_vm.iconClass
|
||||
? _c("i", { class: _vm.iconClass })
|
||||
: _c("i", { class: _vm.typeClass }),
|
||||
_vm._t("default", [
|
||||
!_vm.dangerouslyUseHTMLString
|
||||
? _c("p", { staticClass: "el-message__content" }, [
|
||||
_vm._v(_vm._s(_vm.message))
|
||||
])
|
||||
: _c("p", {
|
||||
staticClass: "el-message__content",
|
||||
domProps: { innerHTML: _vm._s(_vm.message) }
|
||||
})
|
||||
]),
|
||||
_vm.showClose
|
||||
? _c("i", {
|
||||
staticClass: "el-message__closeBtn el-icon-close",
|
||||
on: { click: _vm.close }
|
||||
})
|
||||
: _vm._e()
|
||||
],
|
||||
2
|
||||
)
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=template&id=455b9f60&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/message/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var typeMap = {
|
||||
success: 'success',
|
||||
info: 'info',
|
||||
warning: 'warning',
|
||||
error: 'error'
|
||||
};
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
data: function data() {
|
||||
return {
|
||||
visible: false,
|
||||
message: '',
|
||||
duration: 3000,
|
||||
type: 'info',
|
||||
iconClass: '',
|
||||
customClass: '',
|
||||
onClose: null,
|
||||
showClose: false,
|
||||
closed: false,
|
||||
timer: null,
|
||||
dangerouslyUseHTMLString: false,
|
||||
center: false
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
typeClass: function typeClass() {
|
||||
return this.type && !this.iconClass ? 'el-message__icon el-icon-' + typeMap[this.type] : '';
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
closed: function closed(newVal) {
|
||||
if (newVal) {
|
||||
this.visible = false;
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
handleAfterLeave: function handleAfterLeave() {
|
||||
this.$destroy(true);
|
||||
this.$el.parentNode.removeChild(this.$el);
|
||||
},
|
||||
close: function close() {
|
||||
this.closed = true;
|
||||
if (typeof this.onClose === 'function') {
|
||||
this.onClose(this);
|
||||
}
|
||||
},
|
||||
clearTimer: function clearTimer() {
|
||||
clearTimeout(this.timer);
|
||||
},
|
||||
startTimer: function startTimer() {
|
||||
var _this = this;
|
||||
|
||||
if (this.duration > 0) {
|
||||
this.timer = setTimeout(function () {
|
||||
if (!_this.closed) {
|
||||
_this.close();
|
||||
}
|
||||
}, this.duration);
|
||||
}
|
||||
},
|
||||
keydown: function keydown(e) {
|
||||
if (e.keyCode === 27) {
|
||||
// esc关闭消息
|
||||
if (!this.closed) {
|
||||
this.close();
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.startTimer();
|
||||
document.addEventListener('keydown', this.keydown);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
document.removeEventListener('keydown', this.keydown);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/message/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/message/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/message/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
||||
var popup_ = __webpack_require__(13);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/vdom"
|
||||
var vdom_ = __webpack_require__(20);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/message/src/main.js
|
||||
|
||||
|
||||
|
||||
|
||||
var MessageConstructor = external_vue_default.a.extend(main);
|
||||
|
||||
var instance = void 0;
|
||||
var instances = [];
|
||||
var seed = 1;
|
||||
|
||||
var main_Message = function Message(options) {
|
||||
if (external_vue_default.a.prototype.$isServer) return;
|
||||
options = options || {};
|
||||
if (typeof options === 'string') {
|
||||
options = {
|
||||
message: options
|
||||
};
|
||||
}
|
||||
var userOnClose = options.onClose;
|
||||
var id = 'message_' + seed++;
|
||||
|
||||
options.onClose = function () {
|
||||
Message.close(id, userOnClose);
|
||||
};
|
||||
instance = new MessageConstructor({
|
||||
data: options
|
||||
});
|
||||
instance.id = id;
|
||||
if (Object(vdom_["isVNode"])(instance.message)) {
|
||||
instance.$slots.default = [instance.message];
|
||||
instance.message = null;
|
||||
}
|
||||
instance.vm = instance.$mount();
|
||||
document.body.appendChild(instance.vm.$el);
|
||||
instance.vm.visible = true;
|
||||
instance.dom = instance.vm.$el;
|
||||
instance.dom.style.zIndex = popup_["PopupManager"].nextZIndex();
|
||||
instances.push(instance);
|
||||
return instance.vm;
|
||||
};
|
||||
|
||||
['success', 'warning', 'info', 'error'].forEach(function (type) {
|
||||
main_Message[type] = function (options) {
|
||||
if (typeof options === 'string') {
|
||||
options = {
|
||||
message: options
|
||||
};
|
||||
}
|
||||
options.type = type;
|
||||
return main_Message(options);
|
||||
};
|
||||
});
|
||||
|
||||
main_Message.close = function (id, userOnClose) {
|
||||
for (var i = 0, len = instances.length; i < len; i++) {
|
||||
if (id === instances[i].id) {
|
||||
if (typeof userOnClose === 'function') {
|
||||
userOnClose(instances[i]);
|
||||
}
|
||||
instances.splice(i, 1);
|
||||
break;
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
main_Message.closeAll = function () {
|
||||
for (var i = instances.length - 1; i >= 0; i--) {
|
||||
instances[i].close();
|
||||
}
|
||||
};
|
||||
|
||||
/* harmony default export */ var src_main = (main_Message);
|
||||
// CONCATENATED MODULE: ./packages/message/index.js
|
||||
|
||||
/* harmony default export */ var message = __webpack_exports__["default"] = (src_main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
function _broadcast(componentName, eventName, params) {
|
||||
this.$children.forEach(function (child) {
|
||||
var name = child.$options.componentName;
|
||||
|
||||
if (name === componentName) {
|
||||
child.$emit.apply(child, [eventName].concat(params));
|
||||
} else {
|
||||
_broadcast.apply(child, [componentName, eventName].concat([params]));
|
||||
}
|
||||
});
|
||||
}
|
||||
exports.default = {
|
||||
methods: {
|
||||
dispatch: function dispatch(componentName, eventName, params) {
|
||||
var parent = this.$parent || this.$root;
|
||||
var name = parent.$options.componentName;
|
||||
|
||||
while (parent && (!name || name !== componentName)) {
|
||||
parent = parent.$parent;
|
||||
|
||||
if (parent) {
|
||||
name = parent.$options.componentName;
|
||||
}
|
||||
}
|
||||
if (parent) {
|
||||
parent.$emit.apply(parent, [eventName].concat(params));
|
||||
}
|
||||
},
|
||||
broadcast: function broadcast(componentName, eventName, params) {
|
||||
_broadcast.call(this, componentName, eventName, params);
|
||||
}
|
||||
}
|
||||
};
|
||||
+15
@@ -0,0 +1,15 @@
|
||||
"use strict";
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
exports.default = function (ref) {
|
||||
return {
|
||||
methods: {
|
||||
focus: function focus() {
|
||||
this.$refs[ref].focus();
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
;
|
||||
+17
@@ -0,0 +1,17 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
|
||||
var _locale = require('element-ui/lib/locale');
|
||||
|
||||
exports.default = {
|
||||
methods: {
|
||||
t: function t() {
|
||||
for (var _len = arguments.length, args = Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
return _locale.t.apply(this, args);
|
||||
}
|
||||
}
|
||||
};
|
||||
+64
@@ -0,0 +1,64 @@
|
||||
'use strict';
|
||||
|
||||
exports.__esModule = true;
|
||||
/**
|
||||
* Show migrating guide in browser console.
|
||||
*
|
||||
* Usage:
|
||||
* import Migrating from 'element-ui/src/mixins/migrating';
|
||||
*
|
||||
* mixins: [Migrating]
|
||||
*
|
||||
* add getMigratingConfig method for your component.
|
||||
* getMigratingConfig() {
|
||||
* return {
|
||||
* props: {
|
||||
* 'allow-no-selection': 'allow-no-selection is removed.',
|
||||
* 'selection-mode': 'selection-mode is removed.'
|
||||
* },
|
||||
* events: {
|
||||
* selectionchange: 'selectionchange is renamed to selection-change.'
|
||||
* }
|
||||
* };
|
||||
* },
|
||||
*/
|
||||
exports.default = {
|
||||
mounted: function mounted() {
|
||||
if (process.env.NODE_ENV === 'production') return;
|
||||
if (!this.$vnode) return;
|
||||
|
||||
var _getMigratingConfig = this.getMigratingConfig(),
|
||||
_getMigratingConfig$p = _getMigratingConfig.props,
|
||||
props = _getMigratingConfig$p === undefined ? {} : _getMigratingConfig$p,
|
||||
_getMigratingConfig$e = _getMigratingConfig.events,
|
||||
events = _getMigratingConfig$e === undefined ? {} : _getMigratingConfig$e;
|
||||
|
||||
var _$vnode = this.$vnode,
|
||||
data = _$vnode.data,
|
||||
componentOptions = _$vnode.componentOptions;
|
||||
|
||||
var definedProps = data.attrs || {};
|
||||
var definedEvents = componentOptions.listeners || {};
|
||||
|
||||
for (var propName in definedProps) {
|
||||
if (definedProps.hasOwnProperty(propName) && props[propName]) {
|
||||
console.warn('[Element Migrating][' + this.$options.name + '][Attribute]: ' + props[propName]);
|
||||
}
|
||||
}
|
||||
|
||||
for (var eventName in definedEvents) {
|
||||
if (definedEvents.hasOwnProperty(eventName) && events[eventName]) {
|
||||
console.warn('[Element Migrating][' + this.$options.name + '][Event]: ' + events[eventName]);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
getMigratingConfig: function getMigratingConfig() {
|
||||
return {
|
||||
props: {},
|
||||
events: {}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
+602
@@ -0,0 +1,602 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 66);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 13:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/popup");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 20:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/utils/vdom");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 6:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("vue");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 66:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// EXTERNAL MODULE: external "vue"
|
||||
var external_vue_ = __webpack_require__(6);
|
||||
var external_vue_default = /*#__PURE__*/__webpack_require__.n(external_vue_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/notification/src/main.vue?vue&type=template&id=43dbc3d8&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c("transition", { attrs: { name: "el-notification-fade" } }, [
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
class: ["el-notification", _vm.customClass, _vm.horizontalClass],
|
||||
style: _vm.positionStyle,
|
||||
attrs: { role: "alert" },
|
||||
on: {
|
||||
mouseenter: function($event) {
|
||||
_vm.clearTimer()
|
||||
},
|
||||
mouseleave: function($event) {
|
||||
_vm.startTimer()
|
||||
},
|
||||
click: _vm.click
|
||||
}
|
||||
},
|
||||
[
|
||||
_vm.type || _vm.iconClass
|
||||
? _c("i", {
|
||||
staticClass: "el-notification__icon",
|
||||
class: [_vm.typeClass, _vm.iconClass]
|
||||
})
|
||||
: _vm._e(),
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
staticClass: "el-notification__group",
|
||||
class: { "is-with-icon": _vm.typeClass || _vm.iconClass }
|
||||
},
|
||||
[
|
||||
_c("h2", {
|
||||
staticClass: "el-notification__title",
|
||||
domProps: { textContent: _vm._s(_vm.title) }
|
||||
}),
|
||||
_c(
|
||||
"div",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.message,
|
||||
expression: "message"
|
||||
}
|
||||
],
|
||||
staticClass: "el-notification__content"
|
||||
},
|
||||
[
|
||||
_vm._t("default", [
|
||||
!_vm.dangerouslyUseHTMLString
|
||||
? _c("p", [_vm._v(_vm._s(_vm.message))])
|
||||
: _c("p", { domProps: { innerHTML: _vm._s(_vm.message) } })
|
||||
])
|
||||
],
|
||||
2
|
||||
),
|
||||
_vm.showClose
|
||||
? _c("div", {
|
||||
staticClass: "el-notification__closeBtn el-icon-close",
|
||||
on: {
|
||||
click: function($event) {
|
||||
$event.stopPropagation()
|
||||
return _vm.close($event)
|
||||
}
|
||||
}
|
||||
})
|
||||
: _vm._e()
|
||||
]
|
||||
)
|
||||
]
|
||||
)
|
||||
])
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/notification/src/main.vue?vue&type=template&id=43dbc3d8&
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/notification/src/main.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
var typeMap = {
|
||||
success: 'success',
|
||||
info: 'info',
|
||||
warning: 'warning',
|
||||
error: 'error'
|
||||
};
|
||||
|
||||
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
|
||||
data: function data() {
|
||||
return {
|
||||
visible: false,
|
||||
title: '',
|
||||
message: '',
|
||||
duration: 4500,
|
||||
type: '',
|
||||
showClose: true,
|
||||
customClass: '',
|
||||
iconClass: '',
|
||||
onClose: null,
|
||||
onClick: null,
|
||||
closed: false,
|
||||
verticalOffset: 0,
|
||||
timer: null,
|
||||
dangerouslyUseHTMLString: false,
|
||||
position: 'top-right'
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
computed: {
|
||||
typeClass: function typeClass() {
|
||||
return this.type && typeMap[this.type] ? 'el-icon-' + typeMap[this.type] : '';
|
||||
},
|
||||
horizontalClass: function horizontalClass() {
|
||||
return this.position.indexOf('right') > -1 ? 'right' : 'left';
|
||||
},
|
||||
verticalProperty: function verticalProperty() {
|
||||
return (/^top-/.test(this.position) ? 'top' : 'bottom'
|
||||
);
|
||||
},
|
||||
positionStyle: function positionStyle() {
|
||||
var _ref;
|
||||
|
||||
return _ref = {}, _ref[this.verticalProperty] = this.verticalOffset + 'px', _ref;
|
||||
}
|
||||
},
|
||||
|
||||
watch: {
|
||||
closed: function closed(newVal) {
|
||||
if (newVal) {
|
||||
this.visible = false;
|
||||
this.$el.addEventListener('transitionend', this.destroyElement);
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
destroyElement: function destroyElement() {
|
||||
this.$el.removeEventListener('transitionend', this.destroyElement);
|
||||
this.$destroy(true);
|
||||
this.$el.parentNode.removeChild(this.$el);
|
||||
},
|
||||
click: function click() {
|
||||
if (typeof this.onClick === 'function') {
|
||||
this.onClick();
|
||||
}
|
||||
},
|
||||
close: function close() {
|
||||
this.closed = true;
|
||||
if (typeof this.onClose === 'function') {
|
||||
this.onClose();
|
||||
}
|
||||
},
|
||||
clearTimer: function clearTimer() {
|
||||
clearTimeout(this.timer);
|
||||
},
|
||||
startTimer: function startTimer() {
|
||||
var _this = this;
|
||||
|
||||
if (this.duration > 0) {
|
||||
this.timer = setTimeout(function () {
|
||||
if (!_this.closed) {
|
||||
_this.close();
|
||||
}
|
||||
}, this.duration);
|
||||
}
|
||||
},
|
||||
keydown: function keydown(e) {
|
||||
if (e.keyCode === 46 || e.keyCode === 8) {
|
||||
this.clearTimer(); // detele 取消倒计时
|
||||
} else if (e.keyCode === 27) {
|
||||
// esc关闭消息
|
||||
if (!this.closed) {
|
||||
this.close();
|
||||
}
|
||||
} else {
|
||||
this.startTimer(); // 恢复倒计时
|
||||
}
|
||||
}
|
||||
},
|
||||
mounted: function mounted() {
|
||||
var _this2 = this;
|
||||
|
||||
if (this.duration > 0) {
|
||||
this.timer = setTimeout(function () {
|
||||
if (!_this2.closed) {
|
||||
_this2.close();
|
||||
}
|
||||
}, this.duration);
|
||||
}
|
||||
document.addEventListener('keydown', this.keydown);
|
||||
},
|
||||
beforeDestroy: function beforeDestroy() {
|
||||
document.removeEventListener('keydown', this.keydown);
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/notification/src/main.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_mainvue_type_script_lang_js_ = (mainvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/notification/src/main.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_mainvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/notification/src/main.vue"
|
||||
/* harmony default export */ var main = (component.exports);
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/popup"
|
||||
var popup_ = __webpack_require__(13);
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/utils/vdom"
|
||||
var vdom_ = __webpack_require__(20);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/notification/src/main.js
|
||||
|
||||
|
||||
|
||||
|
||||
var NotificationConstructor = external_vue_default.a.extend(main);
|
||||
|
||||
var instance = void 0;
|
||||
var instances = [];
|
||||
var seed = 1;
|
||||
|
||||
var main_Notification = function Notification(options) {
|
||||
if (external_vue_default.a.prototype.$isServer) return;
|
||||
options = options || {};
|
||||
var userOnClose = options.onClose;
|
||||
var id = 'notification_' + seed++;
|
||||
var position = options.position || 'top-right';
|
||||
|
||||
options.onClose = function () {
|
||||
Notification.close(id, userOnClose);
|
||||
};
|
||||
|
||||
instance = new NotificationConstructor({
|
||||
data: options
|
||||
});
|
||||
|
||||
if (Object(vdom_["isVNode"])(options.message)) {
|
||||
instance.$slots.default = [options.message];
|
||||
options.message = 'REPLACED_BY_VNODE';
|
||||
}
|
||||
instance.id = id;
|
||||
instance.$mount();
|
||||
document.body.appendChild(instance.$el);
|
||||
instance.visible = true;
|
||||
instance.dom = instance.$el;
|
||||
instance.dom.style.zIndex = popup_["PopupManager"].nextZIndex();
|
||||
|
||||
var verticalOffset = options.offset || 0;
|
||||
instances.filter(function (item) {
|
||||
return item.position === position;
|
||||
}).forEach(function (item) {
|
||||
verticalOffset += item.$el.offsetHeight + 16;
|
||||
});
|
||||
verticalOffset += 16;
|
||||
instance.verticalOffset = verticalOffset;
|
||||
instances.push(instance);
|
||||
return instance;
|
||||
};
|
||||
|
||||
['success', 'warning', 'info', 'error'].forEach(function (type) {
|
||||
main_Notification[type] = function (options) {
|
||||
if (typeof options === 'string' || Object(vdom_["isVNode"])(options)) {
|
||||
options = {
|
||||
message: options
|
||||
};
|
||||
}
|
||||
options.type = type;
|
||||
return main_Notification(options);
|
||||
};
|
||||
});
|
||||
|
||||
main_Notification.close = function (id, userOnClose) {
|
||||
var index = -1;
|
||||
var len = instances.length;
|
||||
var instance = instances.filter(function (instance, i) {
|
||||
if (instance.id === id) {
|
||||
index = i;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
})[0];
|
||||
if (!instance) return;
|
||||
|
||||
if (typeof userOnClose === 'function') {
|
||||
userOnClose(instance);
|
||||
}
|
||||
instances.splice(index, 1);
|
||||
|
||||
if (len <= 1) return;
|
||||
var position = instance.position;
|
||||
var removedHeight = instance.dom.offsetHeight;
|
||||
for (var i = index; i < len - 1; i++) {
|
||||
if (instances[i].position === position) {
|
||||
instances[i].dom.style[instance.verticalProperty] = parseInt(instances[i].dom.style[instance.verticalProperty], 10) - removedHeight - 16 + 'px';
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
main_Notification.closeAll = function () {
|
||||
for (var i = instances.length - 1; i >= 0; i--) {
|
||||
instances[i].close();
|
||||
}
|
||||
};
|
||||
|
||||
/* harmony default export */ var src_main = (main_Notification);
|
||||
// CONCATENATED MODULE: ./packages/notification/index.js
|
||||
|
||||
/* harmony default export */ var notification = __webpack_exports__["default"] = (src_main);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
+343
@@ -0,0 +1,343 @@
|
||||
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] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = 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;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "/dist/";
|
||||
/******/
|
||||
/******/
|
||||
/******/ // Load entry module and return exports
|
||||
/******/ return __webpack_require__(__webpack_require__.s = 81);
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ({
|
||||
|
||||
/***/ 0:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return normalizeComponent; });
|
||||
/* globals __VUE_SSR_CONTEXT__ */
|
||||
|
||||
// IMPORTANT: Do NOT use ES2015 features in this file (except for modules).
|
||||
// This module is a runtime utility for cleaner component module output and will
|
||||
// be included in the final webpack user bundle.
|
||||
|
||||
function normalizeComponent (
|
||||
scriptExports,
|
||||
render,
|
||||
staticRenderFns,
|
||||
functionalTemplate,
|
||||
injectStyles,
|
||||
scopeId,
|
||||
moduleIdentifier, /* server only */
|
||||
shadowMode /* vue-cli only */
|
||||
) {
|
||||
// Vue.extend constructor export interop
|
||||
var options = typeof scriptExports === 'function'
|
||||
? scriptExports.options
|
||||
: scriptExports
|
||||
|
||||
// render functions
|
||||
if (render) {
|
||||
options.render = render
|
||||
options.staticRenderFns = staticRenderFns
|
||||
options._compiled = true
|
||||
}
|
||||
|
||||
// functional template
|
||||
if (functionalTemplate) {
|
||||
options.functional = true
|
||||
}
|
||||
|
||||
// scopedId
|
||||
if (scopeId) {
|
||||
options._scopeId = 'data-v-' + scopeId
|
||||
}
|
||||
|
||||
var hook
|
||||
if (moduleIdentifier) { // server build
|
||||
hook = function (context) {
|
||||
// 2.3 injection
|
||||
context =
|
||||
context || // cached call
|
||||
(this.$vnode && this.$vnode.ssrContext) || // stateful
|
||||
(this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
|
||||
// 2.2 with runInNewContext: true
|
||||
if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
|
||||
context = __VUE_SSR_CONTEXT__
|
||||
}
|
||||
// inject component styles
|
||||
if (injectStyles) {
|
||||
injectStyles.call(this, context)
|
||||
}
|
||||
// register component module identifier for async chunk inferrence
|
||||
if (context && context._registeredComponents) {
|
||||
context._registeredComponents.add(moduleIdentifier)
|
||||
}
|
||||
}
|
||||
// used by ssr in case component is cached and beforeCreate
|
||||
// never gets called
|
||||
options._ssrRegister = hook
|
||||
} else if (injectStyles) {
|
||||
hook = shadowMode
|
||||
? function () { injectStyles.call(this, this.$root.$options.shadowRoot) }
|
||||
: injectStyles
|
||||
}
|
||||
|
||||
if (hook) {
|
||||
if (options.functional) {
|
||||
// for template-only hot-reload because in that case the render fn doesn't
|
||||
// go through the normalizer
|
||||
options._injectStyles = hook
|
||||
// register for functioal component in vue file
|
||||
var originalRender = options.render
|
||||
options.render = function renderWithStyleInjection (h, context) {
|
||||
hook.call(context)
|
||||
return originalRender(h, context)
|
||||
}
|
||||
} else {
|
||||
// inject component registration as beforeCreate hook
|
||||
var existing = options.beforeCreate
|
||||
options.beforeCreate = existing
|
||||
? [].concat(existing, hook)
|
||||
: [hook]
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
exports: scriptExports,
|
||||
options: options
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 3:
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
module.exports = require("element-ui/lib/mixins/emitter");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 81:
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option-group.vue?vue&type=template&id=6685e5de&
|
||||
var render = function() {
|
||||
var _vm = this
|
||||
var _h = _vm.$createElement
|
||||
var _c = _vm._self._c || _h
|
||||
return _c(
|
||||
"ul",
|
||||
{
|
||||
directives: [
|
||||
{
|
||||
name: "show",
|
||||
rawName: "v-show",
|
||||
value: _vm.visible,
|
||||
expression: "visible"
|
||||
}
|
||||
],
|
||||
staticClass: "el-select-group__wrap"
|
||||
},
|
||||
[
|
||||
_c("li", { staticClass: "el-select-group__title" }, [
|
||||
_vm._v(_vm._s(_vm.label))
|
||||
]),
|
||||
_c("li", [
|
||||
_c("ul", { staticClass: "el-select-group" }, [_vm._t("default")], 2)
|
||||
])
|
||||
]
|
||||
)
|
||||
}
|
||||
var staticRenderFns = []
|
||||
render._withStripped = true
|
||||
|
||||
|
||||
// CONCATENATED MODULE: ./packages/select/src/option-group.vue?vue&type=template&id=6685e5de&
|
||||
|
||||
// EXTERNAL MODULE: external "element-ui/lib/mixins/emitter"
|
||||
var emitter_ = __webpack_require__(3);
|
||||
var emitter_default = /*#__PURE__*/__webpack_require__.n(emitter_);
|
||||
|
||||
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/select/src/option-group.vue?vue&type=script&lang=js&
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
|
||||
/* harmony default export */ var option_groupvue_type_script_lang_js_ = ({
|
||||
mixins: [emitter_default.a],
|
||||
|
||||
name: 'ElOptionGroup',
|
||||
|
||||
componentName: 'ElOptionGroup',
|
||||
|
||||
props: {
|
||||
label: String,
|
||||
disabled: {
|
||||
type: Boolean,
|
||||
default: false
|
||||
}
|
||||
},
|
||||
|
||||
data: function data() {
|
||||
return {
|
||||
visible: true
|
||||
};
|
||||
},
|
||||
|
||||
|
||||
watch: {
|
||||
disabled: function disabled(val) {
|
||||
this.broadcast('ElOption', 'handleGroupDisabled', val);
|
||||
}
|
||||
},
|
||||
|
||||
methods: {
|
||||
queryChange: function queryChange() {
|
||||
this.visible = this.$children && Array.isArray(this.$children) && this.$children.some(function (option) {
|
||||
return option.visible === true;
|
||||
});
|
||||
}
|
||||
},
|
||||
|
||||
created: function created() {
|
||||
this.$on('queryChange', this.queryChange);
|
||||
},
|
||||
mounted: function mounted() {
|
||||
if (this.disabled) {
|
||||
this.broadcast('ElOption', 'handleGroupDisabled', this.disabled);
|
||||
}
|
||||
}
|
||||
});
|
||||
// CONCATENATED MODULE: ./packages/select/src/option-group.vue?vue&type=script&lang=js&
|
||||
/* harmony default export */ var src_option_groupvue_type_script_lang_js_ = (option_groupvue_type_script_lang_js_);
|
||||
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
||||
var componentNormalizer = __webpack_require__(0);
|
||||
|
||||
// CONCATENATED MODULE: ./packages/select/src/option-group.vue
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* normalize component */
|
||||
|
||||
var component = Object(componentNormalizer["a" /* default */])(
|
||||
src_option_groupvue_type_script_lang_js_,
|
||||
render,
|
||||
staticRenderFns,
|
||||
false,
|
||||
null,
|
||||
null,
|
||||
null
|
||||
|
||||
)
|
||||
|
||||
/* hot reload */
|
||||
if (false) { var api; }
|
||||
component.options.__file = "packages/select/src/option-group.vue"
|
||||
/* harmony default export */ var option_group = (component.exports);
|
||||
// CONCATENATED MODULE: ./packages/option-group/index.js
|
||||
|
||||
|
||||
/* istanbul ignore next */
|
||||
option_group.install = function (Vue) {
|
||||
Vue.component(option_group.name, option_group);
|
||||
};
|
||||
|
||||
/* harmony default export */ var packages_option_group = __webpack_exports__["default"] = (option_group);
|
||||
|
||||
/***/ })
|
||||
|
||||
/******/ });
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user