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

/***/ 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,
          (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
  }
}


/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/scrollbar");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/utils/util");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/utils/dragHandle");

/***/ }),

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

module.exports = require("@ued_fpi/element-ui/lib/background");

/***/ }),

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

"use strict";
// ESM COMPAT FLAG
__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/basic-template/src/main.vue?vue&type=template&id=7536e186&
var render = function () {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    {
      class: [
        "el-basic-template",
        _vm.size ? "el-basic-template--" + _vm.size : "",
      ],
    },
    [
      _c("div", { staticClass: "el-basic-template-header" }, [
        _vm.hasTitle || _vm.title
          ? _c(
              "div",
              { staticClass: "el-basic-template-header-left" },
              [
                _vm.hasTitle
                  ? _vm._t("title")
                  : _c(
                      "div",
                      { staticClass: "el-basic-template-header-left-title" },
                      [
                        _vm._v(
                          "\n                " +
                            _vm._s(_vm.title) +
                            "\n            "
                        ),
                      ]
                    ),
              ],
              2
            )
          : _vm._e(),
        _c("div", { staticClass: "el-basic-template-header-right" }, [
          _c(
            "div",
            { staticClass: "el-basic-template-header-right-action-left" },
            [_vm._t("actionLeft")],
            2
          ),
          _vm.hasActionRight
            ? _c(
                "div",
                { staticClass: "el-basic-template-header-right-action-right" },
                [_vm._t("actionRight")],
                2
              )
            : _vm._e(),
        ]),
      ]),
      _c(
        "div",
        { ref: "content", staticClass: "el-basic-template-content" },
        [
          _vm.hasTree
            ? _c(
                "el-scrollbar",
                {
                  ref: "contentLeft",
                  staticClass: "el-basic-template-content-left",
                  class: {
                    "background-fuzzy": _vm.isFuzzy,
                  },
                  style: { minWidth: _vm.dragWidth || null },
                },
                [
                  _c(
                    "div",
                    { staticClass: "el-basic-template-content-left-container" },
                    [_vm._t("tree", null, { maxHeight: _vm.treeMaxH })],
                    2
                  ),
                ]
              )
            : _vm.hasLargeTree
            ? _c(
                "div",
                {
                  ref: "contentLeft",
                  staticClass: "el-basic-template-content-left-large",
                  class: {
                    "background-fuzzy": _vm.isFuzzy,
                  },
                  style: { minWidth: _vm.dragWidth || null },
                },
                [
                  _c(
                    "div",
                    {
                      staticClass:
                        "el-basic-template-content-left-large-container",
                    },
                    [_vm._t("largeTree", null, { maxHeight: _vm.treeMaxH })],
                    2
                  ),
                ]
              )
            : _vm._e(),
          _c(
            "div",
            {
              ref: "contentRight",
              staticClass: "el-basic-template-content-right",
              class: {
                "has-left-tree": _vm.hasTree || _vm.hasLargeTree,
                "has-left-large-tree": _vm.hasLargeTree,
              },
              style: {
                minWidth: _vm.dragWidth
                  ? "calc(100% - " + _vm.dragWidth + ")"
                  : "100%",
              },
            },
            [
              _c("div", {
                directives: [
                  {
                    name: "show",
                    rawName: "v-show",
                    value: _vm.resizeable && (_vm.hasTree || _vm.hasLargeTree),
                    expression: "resizeable && (hasTree || hasLargeTree)",
                  },
                ],
                ref: "resizeHandle",
                staticClass: "el-basic-template-content-right-handle",
              }),
              _vm.hasFilterLeft || _vm.hasFilterRight
                ? _c(
                    "div",
                    { staticClass: "el-basic-template-content-right-filter" },
                    [
                      _c(
                        "div",
                        {
                          ref: "filterLeft",
                          staticClass:
                            "el-basic-template-content-right-filter-left",
                        },
                        [_vm._t("filterLeft")],
                        2
                      ),
                      _vm.hasFilterRight
                        ? _c(
                            "div",
                            {
                              staticClass:
                                "el-basic-template-content-right-filter-right",
                            },
                            [_vm._t("filterRight")],
                            2
                          )
                        : _vm._e(),
                    ]
                  )
                : _vm._e(),
              _vm.hasStatistic
                ? _c(
                    "div",
                    {
                      staticClass: "el-basic-template-content-right-statistic",
                    },
                    [_vm._t("statistic")],
                    2
                  )
                : _vm._e(),
              _vm.hasDefault
                ? _c(
                    "el-scrollbar",
                    { staticClass: "el-basic-template-content-right-default" },
                    [
                      _c(
                        "div",
                        {
                          ref: "default",
                          staticClass:
                            "el-basic-template-content-right-default-container",
                        },
                        [_vm._t("default", null, { maxHeight: _vm.tableMaxH })],
                        2
                      ),
                    ]
                  )
                : _vm._e(),
            ],
            1
          ),
        ],
        1
      ),
    ]
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./packages/basic-template/src/main.vue?vue&type=template&id=7536e186&

// CONCATENATED MODULE: ./packages/basic-template/src/config.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; };

var defaultVersion = '4.0';

// 暴露给使用者的props
var props = {
  // 默认标题，可以使用title插槽覆盖
  title: {
    type: String,
    default: ''
  },
  // size: String,
  // 指定模板版本
  version: {
    type: String,
    default: defaultVersion
  },
  // 传入tableClass。会通过事件tableHeight抛出指定类名的元素应有的高度 = default slot的高度 - default slot中所有非指定类名的元素高度
  // 一个default slot中不能出现两个该类型的直接子元素
  tableClass: {
    type: Array,
    default: function _default() {
      return ['el-table'];
    }
  },
  // 是否可通过拖拽改变大小
  resizeable: {
    type: Boolean,
    default: true
  },
  // 自定义左侧树默认大小
  treeSlotWidth: Object,
  // 左侧树最小宽度
  treeSlotMinWidth: Object,
  // 左侧树最大宽度
  treeSlotMaxWidth: Object
};

// 模板通用props
var templateProps = _extends({}, props, {
  // 是否开启模糊特效
  isFuzzy: {
    type: Boolean,
    default: false
    // 背景图片
    // bgUrl: String,
    // // 顶部预留空间（留给菜单）
    // offsetTop: {
    //   type: String,
    //   default: '40px'
    // }
  } });
// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/utils/dragHandle"
var dragHandle_ = __webpack_require__(63);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/utils/util"
var util_ = __webpack_require__(3);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/background"
var background_ = __webpack_require__(64);
var background_default = /*#__PURE__*/__webpack_require__.n(background_);

// EXTERNAL MODULE: external "@ued_fpi/element-ui/lib/scrollbar"
var scrollbar_ = __webpack_require__(14);
var scrollbar_default = /*#__PURE__*/__webpack_require__.n(scrollbar_);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/basic-template/src/main.vue?vue&type=script&lang=js&
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//






var attrsValueToNumber = function attrsValueToNumber(value) {
  return parseInt(value, 10) || 0;
};
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'ElBasicTemplate',
  props: templateProps,
  data: function data() {
    return {
      treeMaxH: null, // tree最大高度
      tableMaxH: null, // 表格最大高度
      timer: false, // 是否存在定时器
      dragWidth: 0, // 拖拽后左侧树的宽度
      lastDragWidth: 0, // 上一次拖拽后左侧树的宽度
      minDragWidth: null, // 最小拖拽宽度
      maxDragWidth: null // 最大拖拽宽度
    };
  },

  computed: {
    // 当前控件尺寸
    size: function size() {
      return (this.$ELEMENT || {}).size;
    },

    // 是否自定义title
    hasTitle: function hasTitle() {
      return this.$slots.title || this.$scopedSlots.title;
    },

    // 是否有头部左侧交互
    hasActionLeft: function hasActionLeft() {
      return this.$slots.actionLeft || this.$scopedSlots.actionLeft;
    },

    // 是否有头部右侧交互
    hasActionRight: function hasActionRight() {
      return this.$slots.actionRight || this.$scopedSlots.actionRight;
    },

    // 是否有左侧树
    hasTree: function hasTree() {
      return this.$slots.tree || this.$scopedSlots.tree;
    },

    // 是否有左侧大型树
    hasLargeTree: function hasLargeTree() {
      return this.$slots.largeTree || this.$scopedSlots.largeTree;
    },

    // 是否有左侧过滤条件
    hasFilterLeft: function hasFilterLeft() {
      return this.$slots.filterLeft || this.$scopedSlots.filterLeft;
    },

    // 是否有右侧过滤条件
    hasFilterRight: function hasFilterRight() {
      return this.$slots.filterRight || this.$scopedSlots.filterRight;
    },

    // 是否有统计项
    hasStatistic: function hasStatistic() {
      return this.$slots.statistic || this.$scopedSlots.statistic;
    },

    // 是否有默认填充
    hasDefault: function hasDefault() {
      return this.$slots.default || this.$scopedSlots.default;
    }
  },
  // watch: {
  //   hasTree() {
  //     try {
  //       // 树隐藏/显示变化后，重置lastDragWidth
  //       if (this.hasTree) this.lastDragWidth = parseInt(getStyle(this.$refs.contentLeft.$el).width, 10);
  //     } catch (error) {
  //       console.log(error);
  //     }
  //   }
  // },
  components: {
    ElBackground: background_default.a,
    ElScrollbar: scrollbar_default.a
  },
  mounted: function mounted() {
    var _this = this;

    if (this.$refs.default) {
      this.triggerMaxHeightRecalculate();
      window.addEventListener('resize', this.resizeFunc, false);
    }

    // 如果有左侧树，设定lastDragWidth
    if (this.hasTree || this.hasLargeTree) {
      var contentLeft = this.hasTree ? this.$refs.contentLeft.$el : this.$refs.contentLeft;
      var contentLeftWidth = parseInt(Object(util_["getStyle"])(contentLeft).width, 10);
      var halfContentWidth = parseInt(Object(util_["getStyle"])(this.$refs.content).width, 10) / 2;
      this.lastDragWidth = contentLeftWidth;
      this.dragWidth = this.lastDragWidth + 'px';
      // 设定拖拽的范围
      this.minDragWidth = contentLeftWidth;
      this.maxDragWidth = halfContentWidth;
    }
    Object(dragHandle_["addDragHandle"])(this.$refs.resizeHandle, function (dx, dy, tickDx) {
      // 边界判断
      if (_this.lastDragWidth + dx >= _this.minDragWidth && _this.lastDragWidth + dx <= _this.maxDragWidth) {
        _this.dragWidth = _this.lastDragWidth + dx + 'px';
        _this.resizeFunc();
      }
    }, function () {
      _this.lastDragWidth = parseInt(_this.dragWidth, 10);
    });
  },
  beforeDestroy: function beforeDestroy() {
    window.removeEventListener('resize', this.resizeFunc, false);
  },

  methods: {
    /**
     * 主动触发所有最大高度的重计算
     */
    triggerMaxHeightRecalculate: function triggerMaxHeightRecalculate() {
      this.getTableMaxH();
      this.getTreeMaxH();
    },

    /**
     * 计算table表单高度
    */
    getTableMaxH: function getTableMaxH() {
      var _this2 = this;

      var defaultStyle = Object(util_["getStyle"])(this.$refs.default);
      // default总高度
      var height = window.innerHeight - Object(util_["getRect"])(this.$refs.default).top - attrsValueToNumber(defaultStyle.paddingTop) - attrsValueToNumber(defaultStyle.paddingBottom) - attrsValueToNumber(defaultStyle.marginTop) - attrsValueToNumber(defaultStyle.marginBottom);
      // 查找所有的直接子元素
      for (var i = 0; i < this.$refs.default.children.length; i++) {
        var item = this.$refs.default.children[i];
        var itemStyle = Object(util_["getStyle"])(item);
        // 是否存在className，防止split报错
        if (item.className.length < 0 || item.className.split(' ').filter(function (x) {
          return _this2.tableClass.includes(x);
        }).length === 0) {
          // 如果是包含指定类名，跳过
          height = height - attrsValueToNumber(itemStyle.height) - attrsValueToNumber(itemStyle.paddingTop) - attrsValueToNumber(itemStyle.paddingBottom) - attrsValueToNumber(itemStyle.marginTop) - attrsValueToNumber(itemStyle.marginBottom);
        }
      }
      this.tableMaxH = height;
      this.$emit('contentResize', height);
    },

    /**
     * 获取树最大高度
     */
    getTreeMaxH: function getTreeMaxH() {
      if (this.hasTree || this.hasLargeTree) {
        var contentLeft = this.hasTree ? this.$refs.contentLeft.$el : this.$refs.contentLeft;
        var style = Object(util_["getStyle"])(contentLeft);
        this.treeMaxH = attrsValueToNumber(style.height) - attrsValueToNumber(style.paddingTop) - attrsValueToNumber(style.paddingBottom) - attrsValueToNumber(style.marginTop) - attrsValueToNumber(style.marginBottom);
        this.$emit('treeResize', this.treeMaxH);
      }
    },

    /**
     * 窗口监听设置表格高度
    */
    resizeFunc: function resizeFunc() {
      var _this3 = this;

      if (this.timer) return;
      this.timer = true;
      setTimeout(function () {
        _this3.timer = false;
        _this3.triggerMaxHeightRecalculate();
      }, 100);
    }
  }
});
// CONCATENATED MODULE: ./packages/basic-template/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/basic-template/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/basic-template/src/main.vue"
/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/basic-template/index.js


/* istanbul ignore next */
main.install = function (Vue) {
  Vue.component(main.name, main);
};

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

/***/ })

/******/ });