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);
/******/ })
/************************************************************************/
/******/ ({

/***/ 13:
/***/ (function(module, exports) {

module.exports = require("throttle-debounce");

/***/ }),

/***/ 3:
/***/ (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,
            (options.functional ? this.parent : 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 functional 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
  }
}


/***/ }),

/***/ 86:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
// ESM COMPAT FLAG
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: external "throttle-debounce"
var external_throttle_debounce_ = __webpack_require__(13);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/menu/src/main.vue?vue&type=script&lang=js&
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };


/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'EsMenu',
  inheritAttrs: false,
  props: {
    data: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    titleIcons: {
      type: Boolean,
      default: true
    },
    deep: {
      type: Boolean,
      default: true
    },
    subNav: {
      type: Boolean,
      default: false
    },
    width: String,
    height: String,
    mode: {
      type: String,
      default: 'vertical'
    },
    collapse: Boolean,
    defaultActive: String,
    uniqueOpened: {
      type: Boolean,
      default: true
    },
    popperClass: String,
    biserial: Boolean,
    paddingLeft: {
      type: Number,
      default: 14
    },
    menuIcon: {
      type: String,
      default: 'es-icon-application'
    },
    icons: Object,
    subIcon: {
      type: Boolean,
      default: true
    },
    menuClass: String,
    color: [String, Array],
    backgroundColor: [String, Array],
    showTitle: {
      type: Boolean,
      default: true
    },
    fourthTabs: Boolean
  },
  computed: {
    maxHeight: function maxHeight() {
      return this.height === undefined ? this.maxH : this.height;
    },
    maxWidth: function maxWidth() {
      return this.maxW;
    }
  },
  watch: {
    data: {
      deep: true,
      handler: function handler() {
        this.getMaxWidth();
      }
    },
    width: function width() {
      this.getMaxWidth();
    },
    height: function height() {
      this.$refs.esMenu.update();
    }
  },
  data: function data() {
    return {
      maxH: '',
      maxW: '',
      menuId: null,
      defaultOpeneds: [],
      isChange: false
    };
  },
  beforeCreate: function beforeCreate() {
    var _this = this;

    this.getMaxWidth = Object(external_throttle_debounce_["throttle"])(500, function () {
      _this.getWidth();
    });
  },
  created: function created() {},
  mounted: function mounted() {
    this.getMaxWidth();
  },

  methods: {
    setStyle: function setStyle(num) {
      var obj = {};
      if (this.color) {
        obj.color = this.color;
        if (Array.isArray(this.color)) {
          obj.color = this.color[num % this.color.length];
        } else {
          obj.color = this.color;
        }
      }
      if (this.backgroundColor) {
        if (Array.isArray(this.backgroundColor)) {
          obj.backgroundColor = this.backgroundColor[num % this.backgroundColor.length];
        } else {
          obj.backgroundColor = this.backgroundColor;
        }
      }
      return obj;
    },
    getWidth: function getWidth() {
      var _this2 = this;

      if (this.mode === 'vertical') {
        this.$nextTick(function () {
          _this2.maxH = _this2.$refs.esMenu.$el.getBoundingClientRect().height + 'px';
          var styles = window.getComputedStyle(_this2.$refs.menu.$el.parentNode);
          _this2.maxW = _this2.width ? parseInt(_this2.width, 10) - parseInt(styles.marginLeft, 10) - parseInt(styles.marginRight, 10) + 'px' : '';
        });
      } else {
        this.$nextTick(function () {
          var w = 0;
          _this2.$refs.menu && Array.from(_this2.$refs.menu.$el.children).forEach(function (item) {
            w += item.getBoundingClientRect().width;
          });
          var styles = window.getComputedStyle(_this2.$refs.menu.$el);
          w += parseFloat(styles.paddingLeft) + parseFloat(styles.paddingRight);
          if (w > _this2.$refs.esMenu.$el.getBoundingClientRect().width) {
            _this2.maxW = w + 'px';
          }
        });
      }
    },
    handleReady: function handleReady() {
      var _this3 = this;

      if (this.mode === 'horizontal') {
        this.$refs.esMenu.wrap.onmouseover = function (e) {
          _this3.$refs.esMenu.wrap.addEventListener('mousewheel', _this3.handleWheel, { passive: false }) || _this3.$refs.esMenu.wrap.addEventListener('DOMMouseScroll', _this3.handleWheel, false);
          e.preventDefault();
        };
        this.$refs.esMenu.wrap.onmouseout = function (e) {
          _this3.$refs.esMenu.wrap.removeEventListener('mousewheel', _this3.handleWheel, { passive: false }) || _this3.$refs.esMenu.wrap.removeEventListener('DOMMouseScroll', _this3.handleWheel, false);
          e.preventDefault();
        };
      }
      // const { scrollHeight, clientHeight } =
      //   this.bodyWrapper.wrap || this.bodyWrapper;
      // if (scrollHeight === clientHeight && this.$refs.fixedWrapper) {
      //   this.$refs.fixedWrapper.onmouseover = (e) => {
      //     this.$refs.fixedWrapper.addEventListener(
      //       'mousewheel',
      //       this.handleWheel,
      //       { passive: false }
      //     ) ||
      //       this.$refs.fixedWrapper.addEventListener(
      //         'DOMMouseScroll',
      //         this.handleWheel,
      //         false
      //       );
      //     e.preventDefault();
      //   };
      //   this.$refs.fixedWrapper.onmouseout = (e) => {
      //     this.$refs.fixedWrapper.removeEventListener(
      //       'mousewheel',
      //       this.handleWheel,
      //       { passive: false }
      //     ) ||
      //       this.$refs.fixedWrapper.removeEventListener(
      //         'DOMMouseScroll',
      //         this.handleWheel,
      //         false
      //       );
      //     e.preventDefault();
      //   };
      // }
    },
    handleWheel: function handleWheel(e) {
      if (!this.sizeHeight) {
        var eventDelta = -e.wheelDelta || e.deltaY * 40;
        this.$refs.esMenu.$refs.wrap.scrollLeft = this.$refs.esMenu.$refs.wrap.scrollLeft + eventDelta / 4;
        if (this.$refs.esMenu.$refs.wrap.scrollLeft > 0 && this.$refs.esMenu.$refs.wrap.scrollLeft < this.$refs.esMenu.$refs.wrap.scrollWidth - this.$refs.esMenu.$refs.wrap.clientWidth) {
          e.preventDefault();
        }
      }
    },
    getFirst: function getFirst(arry) {
      var item = arry[0];
      if (Object.prototype.hasOwnProperty.call(item, 'children') && item.children.length) {
        return this.getFirst(item.children);
      } else {
        this.$emit('select', {
          node: item,
          mode: this.mode,
          auto: true
        });
        return item.id;
      }
    },
    handleSelect: function handleSelect(key, keyPath, item) {
      var _this4 = this;

      this.isChange = true;
      if (this.menuId !== null && keyPath.indexOf(this.menuId) == -1) {
        this.$refs.menu.close(this.menuId);
      } else {
        var openedMenus = item.rootMenu.openedMenus;
        openedMenus.forEach(function (item) {
          if (keyPath.indexOf(item) == -1) {
            _this4.$refs.menu.close(item);
          }
        });
      }
      this.$emit('select', {
        key: key,
        path: keyPath,
        node: item.$attrs.data,
        fourthTabs: item.$attrs.fourthTabs,
        item: item,
        mode: this.mode
      });
    },
    handleOpen: function handleOpen(key, keyPath, item) {
      this.menuId = key;
      this.$emit('open', {
        key: key,
        path: keyPath,
        node: item.$attrs.data,
        item: item,
        mode: this.mode
      });
    },
    handleClose: function handleClose(key, keyPath, item) {
      this.menuId = null;
      this.$emit('close', {
        key: key,
        path: keyPath,
        node: item.$attrs.data,
        item: item,
        mode: this.mode
      });
    },
    getSub: function getSub(item, h, popper, fourthTabs, subIcon, index, directives) {
      var _this5 = this;

      if (popper) {
        popper += this.popperClass ? ' ' + this.popperClass + (' es-menu-popper-' + this.mode) : ' es-menu-popper-' + this.mode;
      } else {
        popper = this.popperClass ? ' ' + this.popperClass + (' es-menu-popper-' + this.mode) : ' es-menu-popper-' + this.mode;
      }
      var title = [];
      if (subIcon) {
        title.push(h('es-icon', {
          props: {
            contents: item.icons || this.menuIcon
          },
          style: this.setStyle(index),
          class: ['es-menu-item-icon']
        }));
      }
      title.push(h('div', {
        class: ['es-menu-title-text es-menu-title-' + this.mode, {
          'es-menu-title-margin': this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0) && typeof item.tips === 'boolean' && item.tips
        }],
        directives: directives ? [{
          name: 'show',
          value: this.showTitle ? true : !this.collapse
        }] : []
      }, [h('el-badge', {
        class: ['es-badge', {
          'es-badge-right': item.tips && typeof item.tips !== 'boolean',
          'es-dot-right': item.tips && typeof item.tips === 'boolean'
        }],
        attrs: {
          title: item.text.length > 18 ? item.text : undefined
        },
        props: typeof item.tips === 'boolean' && item.tips ? {
          isDot: true
          //hidden: item.tips
        } : {
          value: parseInt(item.tips, 10),
          max: 99,
          hidden: !item.tips
        }
      }, [item.text])]));
      var doms = [h('template', { slot: 'title' }, this.titleIcons ? title : [title[1]])];
      if (this.fourthTabs) {}
      if (this.deep && item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
        doms = doms.concat(item.children.map(function (ele, index) {
          if (!ele) {
            console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
          } else {
            return _this5.getSub(ele, h, popper, false, _this5.subIcon, index);
          }
        }));
        return [h('el-submenu', {
          class: ['es-submenu', 'es-submenu-' + this.mode, item.id === this.active && !this.isChange ? 'es-menu-item-focus' : ''],
          props: {
            popperClass: popper,
            popperAppendToBody: true,
            maxHeight: this.maxHeight,
            paddingLeft: this.paddingLeft
          },
          attrs: { data: item, index: item.id, key: item.id }
        }, doms)];
      }
      if (this.deep && (this.mode === 'horizontal', this.fourthTabs) && item.fourthTabs && item.fourthTabs.length && (!item.extendData || item.extendData.businessStatus != 0)) {
        doms = doms.concat(item.fourthTabs.map(function (ele, index) {
          if (!ele) {
            console.error('\u5BF9\u8C61\u5B50\u6570\u636E\u4E2D\u7B2C[' + index + ']\u6761\u6570\u636E\u9519\u8BEF', item);
          } else {
            return _this5.getSub(ele, h, popper, true, _this5.subIcon, index);
          }
        }));
        return [h('el-submenu', {
          class: ['es-submenu', 'es-submenu-' + this.mode, item.id === this.active && !this.isChange ? 'es-menu-item-focus' : ''],
          props: {
            popperClass: popper,
            popperAppendToBody: true,
            maxHeight: this.maxHeight,
            paddingLeft: this.paddingLeft
          },
          attrs: { data: item, index: item.id, key: item.id }
        }, doms)];
      } else {
        return [h('el-menu-item', {
          class: ['es-menu-item ' + (this.deep ? '' : 'es-item-' + this.mode)],
          props: {
            paddingLeft: this.paddingLeft,
            disabled: item.extendData && item.extendData.businessStatus == 0
          },
          attrs: {
            data: item,
            index: item.id,
            key: item.id,
            fourthTabs: fourthTabs
          }
        }, this.titleIcons ? title : [title[1]])];
      }
    }
  },
  render: function render(h) {
    var _this6 = this;

    var doms = [];
    this.data.forEach(function (item, index) {
      if (item.children && item.children.length && (!item.extendData || item.extendData.businessStatus != 0)) {
        doms = doms.concat(_this6.getSub(item, h, 'es-sub-menu', false, true, index, true));
      } else {
        var title = [h('es-icon', {
          props: {
            contents: item.icons || _this6.menuIcon
          },
          style: _this6.setStyle(index),
          class: ['es-menu-item-icon']
        }), h('div', {
          class: ['es-menu-title-text es-menu-title-' + _this6.mode],
          directives: [{
            name: 'show',
            value: _this6.showTitle ? true : !_this6.collapse
          }]
        }, [h('el-badge', {
          class: ['es-badge', {
            'es-badge-right': item.tips && typeof item.tips !== 'boolean',
            'es-dot-right': item.tips && typeof item.tips === 'boolean'
          }],
          props: typeof item.tips === 'boolean' && item.tips ? {
            isDot: true
            //hidden: item.tips
          } : {
            value: parseInt(item.tips, 10),
            max: 99,
            hidden: !item.tips
          }
        }, [item.text])])];
        doms.push(h('el-menu-item', {
          class: ['es-menu-item ' + (_this6.deep ? '' : 'es-item-' + _this6.mode)],
          props: {
            paddingLeft: _this6.paddingLeft,
            disabled: item.extendData && item.extendData.businessStatus == 0
          },
          attrs: {
            data: item,
            index: item.id,
            key: item.id
          }
        }, _this6.titleIcons ? title : [title[1]]));
      }
    });
    return h('el-scrollbar', {
      ref: 'esMenu',
      props: {
        horizontal: this.mode === 'horizontal',
        onReady: this.handleReady
      },
      class: 'es-menu-' + this.mode + '-scrollbar'
    }, [h('el-menu', {
      class: ['es-menu', this.menuClass, 'es-menu-' + this.mode, { 'es-menu-collapse': this.collapse }, { 'es-menu-nav': this.subNav }],
      ref: 'menu',
      props: {
        defaultOpeneds: this.defaultOpeneds,
        defaultActive: this.defaultActive,
        collapse: this.collapse,
        mode: this.mode,
        uniqueOpened: this.uniqueOpened,
        icons: this.icons
      },
      style: { width: this.maxWidth },
      attrs: _extends({}, this.$attrs),
      on: _extends({}, this.$listeners, {
        open: this.handleOpen,
        close: this.handleClose,
        select: this.handleSelect
      })
    }, doms)]);
  }
});
// CONCATENATED MODULE: ./packages/menu/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__(3);

// CONCATENATED MODULE: ./packages/menu/src/main.vue
var render, staticRenderFns




/* normalize component */

var component = Object(componentNormalizer["a" /* default */])(
  src_mainvue_type_script_lang_js_,
  render,
  staticRenderFns,
  false,
  null,
  null,
  null
  
)

/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/menu/index.js


main.install = function (Vue) {
  return Vue.component(main.name, main);
};

/* harmony default export */ var menu = __webpack_exports__["default"] = (main);

/***/ })

/******/ });