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

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


/***/ }),

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

module.exports = require("wp-element-ui/lib/button");

/***/ }),

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

module.exports = require("wp-element-ui/lib/locale");

/***/ }),

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

"use strict";
__webpack_require__.r(__webpack_exports__);

// EXTERNAL MODULE: external "wp-element-ui/lib/form"
var form_ = __webpack_require__(61);
var form_default = /*#__PURE__*/__webpack_require__.n(form_);

// EXTERNAL MODULE: external "wp-element-ui/lib/button"
var button_ = __webpack_require__(12);
var button_default = /*#__PURE__*/__webpack_require__.n(button_);

// EXTERNAL MODULE: external "wp-element-ui/lib/row"
var row_ = __webpack_require__(23);
var row_default = /*#__PURE__*/__webpack_require__.n(row_);

// EXTERNAL MODULE: external "wp-element-ui/lib/col"
var col_ = __webpack_require__(62);
var col_default = /*#__PURE__*/__webpack_require__.n(col_);

// EXTERNAL MODULE: external "wp-element-ui/lib/utils/util"
var util_ = __webpack_require__(2);

// EXTERNAL MODULE: external "wp-element-ui/lib/locale"
var locale_ = __webpack_require__(15);

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







/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'ElWpForm',
  components: {
    ElForm: form_default.a,
    ElButton: button_default.a,
    ElRow: row_default.a,
    ElCol: col_default.a
  },
  props: {
    isShowResetBtn: {
      type: Boolean,
      default: true
    },
    resetBtnText: {
      type: String,
      default: Object(locale_["t"])('el.table.resetFilter')
    },
    isShowSearchBtn: {
      type: Boolean,
      default: true
    },
    // 是否需要展开收起
    isShowCollapse: {
      type: Boolean,
      default: true
    },
    // 默认是否展开
    isInitCollapse: {
      type: Boolean,
      default: true
    },
    searchBtnText: {
      type: String,
      default: Object(locale_["t"])('el.table.confirmFilter')
    },
    gutter: {
      type: [Number, String],
      default: 20,
      validator: function validator(val) {
        return val == null || val === '' || /^[0-9]+$/.test(String(val));
      }
    },
    // 列数
    colCount: {
      type: [Number, String],
      default: 3,
      validator: function validator(val) {
        return val == null || val === '' || /^[0-9]+$/.test(String(val));
      }
    },
    // 收起文字
    collapseText: {
      type: String,
      default: '收起'
    },
    // 展开文字
    spreadText: {
      type: String,
      default: '展开'
    },
    align: {
      type: String,
      default: 'top'
    },
    model: Object,
    rules: Object,
    labelPosition: {
      type: String,
      default: 'top'
    },
    labelWidth: String,
    labelSuffix: {
      type: String,
      default: ''
    },
    inline: Boolean,
    inlineMessage: Boolean,
    statusIcon: Boolean,
    showMessage: {
      type: Boolean,
      default: true
    },
    size: {
      type: String,
      default: 'default'
    },
    disabled: Boolean,
    validateOnRuleChange: {
      type: Boolean,
      default: true
    },
    hideRequiredAsterisk: {
      type: Boolean,
      default: false
    }
  },
  computed: {
    span: function span() {
      return Math.ceil(24 / this.colCount);
    },
    contentSpan: function contentSpan() {
      return Math.floor(24 / this.span) - 1;
    },
    isShowActions: function isShowActions() {
      return this.isShowCollapse || this.isShowSearchBtn || this.isShowResetBtn;
    },
    toolMarginTop: function toolMarginTop() {
      var obj = {
        default: '26px',
        undefined: '26px',
        medium: '24px',
        small: '22px',
        mini: '20px'
      };
      return obj[this.size];
    }
  },
  data: function data() {
    return {
      toggleCollapse: this.isInitCollapse, // 是否收起, 默认为收起
      isResetting: false,
      isSearching: false
    };
  },
  render: function render(h) {
    var _this = this;

    var children = (Array.isArray(this.$slots.default) ? this.$slots.default : []).filter(function (item) {
      return item.tag;
    }).reduce(function (preVal, curVal, index) {
      var display = _this.isShowCollapse && _this.toggleCollapse && index >= _this.contentSpan ? 'none' : undefined;
      if (/ElCol$/g.test(curVal.tag)) {
        preVal.push(h('div', {
          style: { display: display }
        }, []));
      } else {
        preVal.push(h('el-col', {
          props: {
            span: _this.span
          },
          style: { display: display }
        }, [curVal]));
      }
      return preVal;
    }, []);
    // 如果需要展开收起
    if (this.isShowActions || Array.isArray(this.$slots.actions)) {
      var actions = (Array.isArray(this.$slots.actions) ? this.$slots.actions : []).concat([this.renderBtnSearch(h), this.renderBtnReset(h), this.renderCollapse(h)]);
      children.push(h('el-col', {
        props: {
          span: this.span
        },
        style: {
          marginLeft: 'auto',
          textAlign: 'right',
          marginTop: this.align === 'middle' && this.labelPosition === 'top' ? this.toolMarginTop : undefined
        }
      }, actions));
    }
    var rowNode = h('el-row', {
      props: {
        gutter: this.gutter,
        type: 'flex',
        align: this.align,
        isWrap: true
      }
    }, children);
    return h('el-form', {
      props: {
        model: this.model,
        rules: this.rules,
        labelPosition: this.labelPosition,
        labelWidth: this.labelWidth,
        labelSuffix: this.labelSuffix,
        inline: this.inline,
        inlineMessage: this.inlineMessage,
        statusIcon: this.statusIcon,
        showMessage: this.showMessage,
        size: this.size,
        disabled: this.disabled,
        validateOnRuleChange: this.validateOnRuleChange,
        hideRequiredAsterisk: this.hideRequiredAsterisk
      },
      ref: 'wpForm',
      class: 'el-wp-form',
      on: {
        validate: this.$listeners.validate || util_["noop"]
      }
    }, [rowNode]);
  },

  methods: {
    renderCollapse: function renderCollapse(h) {
      var _this2 = this;

      if (!this.isShowCollapse) return;
      return h('span', {
        on: {
          click: function click(e) {
            _this2.toggleCollapse = !_this2.toggleCollapse;
          }
        },
        class: 'el-wp-form-collapse-wrapper'
      }, [h('span', this.toggleCollapse ? this.spreadText : this.collapseText), h('i', { class: ['el-icon-arrow-down', 'el-wp-form-collapse-icon', !this.toggleCollapse && 'is-spread'] })]);
    },
    openResetting: function openResetting() {
      this.isResetting = true;
    },
    closeResetting: function closeResetting() {
      this.isResetting = false;
    },
    openSearching: function openSearching() {
      this.isSearching = true;
    },
    closeSearching: function closeSearching() {
      this.isSearching = false;
    },

    // 渲染重置按钮
    renderBtnReset: function renderBtnReset(h) {
      var _this3 = this;

      if (!this.isShowResetBtn) return;
      return h('el-button', {
        props: {
          type: 'default',
          size: this.size,
          loading: this.isResetting,
          disabled: this.isSearching,
          icon: 'el-icon-refresh-right'
        },
        on: {
          click: function click(e) {
            if (e && typeof e.stopPropagation === 'function') {
              e.stopPropagation();
            }
            _this3.$emit('reset', _this3.openResetting, _this3.closeResetting);
          }
        }
      }, this.resetBtnText);
    },

    // 渲染搜索按钮
    renderBtnSearch: function renderBtnSearch(h) {
      var _this4 = this;

      if (!this.isShowSearchBtn) return;
      return h('el-button', {
        props: {
          type: 'primary',
          size: this.size,
          loading: this.isSearching,
          disabled: this.isResetting,
          icon: 'el-icon-search'
        },
        on: {
          click: function click(e) {
            if (e && typeof e.stopPropagation === 'function') {
              e.stopPropagation();
            }
            _this4.validate(function (valid) {
              if (valid) {
                _this4.$emit('search', _this4.openSearching, _this4.closeSearching);
              }
            });
          }
        }
      }, this.searchBtnText);
    },

    // el-form的方法 获取表单验证
    validate: function validate(callback) {
      return this.getFormInstance().validate(callback);
    },

    // el-form的方法 对部分表单字段进行校验的方法
    validateField: function validateField(prop, callback) {
      this.getFormInstance().validateField(prop, callback);
    },

    // el-form的方法 对整个表单进行重置，将所有字段值重置为初始值并移除校验结果
    resetFields: function resetFields() {
      this.getFormInstance().resetFields();
    },

    // el-form的方法
    // 移除表单项的校验结果。传入待移除的表单项的 prop 属性或者 prop 组成的数组，如不传则移除整个表单地校验结果
    clearValidate: function clearValidate() {
      this.getFormInstance().clearValidate();
    },

    // 获取表单实例
    getFormInstance: function getFormInstance() {
      return this.$refs.wpForm;
    }
  }
});
// CONCATENATED MODULE: ./packages/wp-form/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/wp-form/src/main.vue
var main_render, staticRenderFns




/* normalize component */

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

/* hot reload */
if (false) { var api; }
component.options.__file = "packages/wp-form/src/main.vue"
/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/wp-form/index.js


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

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

/***/ }),

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

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

/***/ }),

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

module.exports = require("wp-element-ui/lib/row");

/***/ }),

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

module.exports = require("wp-element-ui/lib/form");

/***/ }),

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

module.exports = require("wp-element-ui/lib/col");

/***/ })

/******/ });