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

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


/***/ }),

/***/ 138:
/***/ (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-box/src/main.vue?vue&type=template&id=7370f1af&
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "Draggable",
    _vm._b(
      {
        staticClass: "flex-wrap el-input-box",
        on: {
          update: _vm.updateDataListSort,
          change: _vm.changeDataListSort,
          start: _vm.startDrag,
          end: _vm.endDrag
        },
        model: {
          value: _vm.dataList,
          callback: function($$v) {
            _vm.dataList = $$v
          },
          expression: "dataList"
        }
      },
      "Draggable",
      Object.assign(
        {},
        {
          draggable: ".el-input-box__item",
          disabled: !_vm.isDraggable || !_vm.edited || _vm.disabled
        },
        _vm.draggableProps
      ),
      false
    ),
    [
      _vm._l(_vm.dataList, function(item, index) {
        return _c(
          "div",
          {
            key: index,
            staticClass: "flex-start-center mr-16 mb-16 el-input-box__item",
            class: {
              move: _vm.isDraggable && _vm.edited && !_vm.disabled,
              relative: Boolean(item.mark),
              "overflow-hidden": Boolean(item.mark)
            },
            style: { width: _vm.width + "px", height: _vm.height + "px" }
          },
          [
            Boolean(item.mark)
              ? _c(
                  "div",
                  {
                    staticClass: "absolute text-white text-center text-12",
                    style: {
                      height: "18px",
                      "line-height": "18px",
                      width: "56px",
                      background: "#053DC8",
                      transform: "rotate(45deg) scale(0.9)",
                      top: "4px",
                      right: "-17px"
                    }
                  },
                  [_vm._v(_vm._s(item.mark))]
                )
              : _vm._e(),
            !item.isEdit
              ? _c("div", { staticClass: "w-full flex-between-center" }, [
                  _c(
                    "div",
                    {
                      staticClass:
                        "flex-start-center ellipsis el-input-box__label"
                    },
                    [
                      _vm._t(
                        "icon",
                        [_c("div", { staticClass: "el-input-box__icon mr-8" })],
                        { item: item, index: index }
                      ),
                      _vm.showColor
                        ? _c("el-color-select", {
                            staticClass: "mr-8",
                            attrs: {
                              "show-arrow": true,
                              data: _vm.colorList,
                              disabled: _vm.disabled
                            },
                            on: {
                              change: function(color) {
                                return _vm.changeColor(color, item)
                              }
                            },
                            model: {
                              value: item[_vm.props.color],
                              callback: function($$v) {
                                _vm.$set(item, _vm.props.color, $$v)
                              },
                              expression: "item[props.color]"
                            }
                          })
                        : _vm._e(),
                      _vm._t("other", null, { item: item, index: index }),
                      _c(
                        "div",
                        {
                          staticClass: "text-14 ellipsis",
                          attrs: { title: item[_vm.props.label] }
                        },
                        [_vm._v(_vm._s(item[_vm.props.label]))]
                      )
                    ],
                    2
                  ),
                  !item[_vm.props.disabled] && !_vm.disabled
                    ? _c(
                        "div",
                        { staticClass: "el-input-box__operation" },
                        [
                          _vm._t(
                            "operation",
                            [
                              _c("i", {
                                staticClass: "el-icon-edit text-18-tip pointer",
                                on: {
                                  click: function($event) {
                                    _vm.handleEdit(item)
                                  }
                                }
                              }),
                              !_vm.secondPrompt && !_vm.isAllDelete
                                ? _c("i", {
                                    staticClass:
                                      "el-icon-delete text-18-tip pointer ml-16",
                                    on: {
                                      click: function($event) {
                                        _vm.handleDel(index, item)
                                      }
                                    }
                                  })
                                : _vm._e(),
                              _vm.secondPrompt && !_vm.isAllDelete
                                ? _c(
                                    "el-popconfirm",
                                    {
                                      attrs: {
                                        confirmButtonText: "删除",
                                        cancelButtonText: "取消",
                                        icon: "el-icon-warning",
                                        title: _vm.secondPromptContents.title,
                                        content:
                                          _vm.secondPromptContents.remark,
                                        width: "246"
                                      },
                                      on: {
                                        onConfirm: function($event) {
                                          _vm.handleDel(index, item)
                                        }
                                      }
                                    },
                                    [
                                      _c("i", {
                                        staticClass:
                                          "el-icon-delete text-18-tip pointer ml-16",
                                        attrs: { slot: "reference" },
                                        on: {
                                          click: function($event) {
                                            _vm.handleBtn(index, item)
                                          }
                                        },
                                        slot: "reference"
                                      })
                                    ]
                                  )
                                : _vm._e()
                            ],
                            { item: item, index: index }
                          )
                        ],
                        2
                      )
                    : _vm._e()
                ])
              : [
                  _c("el-input", {
                    staticClass: "ml-8",
                    attrs: { maxlength: _vm.maxlength, clearable: false },
                    model: {
                      value: item[_vm.props.label],
                      callback: function($$v) {
                        _vm.$set(item, _vm.props.label, $$v)
                      },
                      expression: "item[props.label]"
                    }
                  }),
                  _c("i", {
                    staticClass: "el-icon-check text-bold pointer ml-8",
                    on: {
                      click: function($event) {
                        _vm.handleSave(item)
                      }
                    }
                  }),
                  _c("el-divider", { attrs: { direction: "vertical" } }),
                  _c("i", {
                    staticClass: "el-icon-close text-bold pointer",
                    on: {
                      click: function($event) {
                        _vm.handleCancel(item, index)
                      }
                    }
                  })
                ]
          ],
          2
        )
      }),
      _vm.datalength && _vm.datalength > 0
        ? _vm._l(_vm.datalength - _vm.dataList.length, function(item, index) {
            return _c("div", {
              key: "no" + index,
              staticClass:
                "flex-start-center mr-16 mb-16 el-input-box__item__fill",
              style: { width: _vm.width + "px", height: _vm.height + "px" }
            })
          })
        : _vm._e(),
      _vm._t("addBtn")
    ],
    2
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./packages/input-box/src/main.vue?vue&type=template&id=7370f1af&

// EXTERNAL MODULE: external "vuedraggable"
var external_vuedraggable_ = __webpack_require__(41);
var external_vuedraggable_default = /*#__PURE__*/__webpack_require__.n(external_vuedraggable_);

// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./packages/input-box/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; };

//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//


var defaultColorList = [{
  color: '',
  name: '不使用'
}, {
  color: '#6EB818',
  name: '绿色'
}, {
  color: '#858C3E',
  name: '茶绿色'
}, {
  color: '#3D704E',
  name: '浓绿'
}, {
  color: '#2B5293',
  name: '琉璃蓝'
}, {
  color: '#08979C',
  name: '青色'
}, {
  color: '#F8C623',
  name: '黄色'
}, {
  color: '#C9A222',
  name: '金黄'
}, {
  color: '#705392',
  name: '紫色'
}, {
  color: '#9E2D69',
  name: '红紫色'
}, {
  color: '#CF1322',
  name: '红色'
}, {
  color: '#DF543B',
  name: '朱红色'
}, {
  color: '#E26078',
  name: '山茶粉'
}, {
  color: '#F2BAB7',
  name: '红梅粉'
}];
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'ElInputBox',
  components: {
    Draggable: external_vuedraggable_default.a
  },
  props: {
    draggableProps: {
      type: Object
    },
    data: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    datalength: {
      type: Number
    },
    isDraggable: {
      type: Boolean,
      default: true
    },
    maxlength: {
      type: Number,
      default: 10
    },
    secondPrompt: {
      type: Boolean,
      default: true
    },
    secondPromptContents: {
      type: Object,
      default: function _default() {
        return {
          title: '确定要删除吗？',
          remark: '删除后不再显示该项目，已添加的数据不删除。'
        };
      }
    },
    showColor: {
      type: Boolean,
      default: false
    },
    colorList: {
      type: Array,
      default: function _default() {
        return defaultColorList;
      }
    },
    handleItemEdit: {
      type: Function
    },
    props: {
      type: Object,
      default: function _default() {
        return {
          label: 'label',
          id: 'id',
          disabled: 'disabled',
          color: 'color'
        };
      }
    },
    allDelete: {
      type: Boolean,
      default: false
    },
    emptyPrompt: {
      type: String,
      default: '请输入项目名称！'
    },
    width: {
      type: Number,
      default: 172
    },
    height: {
      type: Number,
      default: 52
    },
    disabled: {
      type: Boolean,
      default: false
    }
  },
  data: function data() {
    return {
      dataList: this.data || [],
      tempData: '', // 编辑时的暂存数据
      edited: true // false正在编辑 true编辑完成
    };
  },

  computed: {
    isAllDelete: function isAllDelete() {
      return !this.allDelete && this.dataList.length === 1;
    }
  },
  watch: {
    data: {
      handler: function handler(newVal) {
        this.dataList = newVal;
      },

      immediate: true
    }
  },
  methods: {
    startDrag: function startDrag(evt) {
      this.$emit('startDrag', evt);
    },
    endDrag: function endDrag(evt) {
      this.$emit('endDrag', evt);
    },
    updateDataListSort: function updateDataListSort() {
      this.$emit('onUpdateSort', this.dataList);
    },
    changeDataListSort: function changeDataListSort(evt) {
      if (evt && evt.moved) {
        var changeItems = _extends({}, evt.moved.element, {
          newIndex: evt.moved.newIndex,
          oldIndex: evt.moved.oldIndex
        });
        this.$emit('onChangeSort', this.dataList, changeItems);
      }
      this.$emit('draggableSort', this.dataList, evt);
    },
    handleSave: function handleSave(item) {
      if (!item[this.props.label]) {
        this.$message.warning(this.emptyPrompt);
        return;
      }
      this.edited = true;
      this.$emit('onSave', item);
    },
    handleCancel: function handleCancel(item, index) {
      this.edited = true;
      this.$set(item, 'isEdit', false);
      if (item[this.props.id] || item[this.props.id] === 0) {
        this.$set(item, this.props.label, this.tempData);
      } else {
        this.dataList.splice(index, 1);
      }
      this.$emit('onCancel', item);
    },
    handleEdit: function handleEdit(item) {
      if (this.handleItemEdit && typeof this.handleItemEdit === 'function') {
        this.handleItemEdit(item);
        return;
      }
      this.resetItems();
      this.edited = false;
      this.tempData = item[this.props.label];
      this.$set(item, 'isEdit', true);
      this.$emit('onEdit', item);
    },
    handleDel: function handleDel(index, item) {
      if (this.secondPrompt) {
        this.resetItems();
      }
      this.$emit('onDelete', item, index);
    },
    handleBtn: function handleBtn(index, item) {
      this.resetItems();
      this.$emit('onDeforeDelete', item, index);
    },
    resetItems: function resetItems() {
      var editingItems = this.dataList.find(function (e) {
        return e.isEdit;
      });
      if (!editingItems) {
        return;
      }
      if (editingItems[this.props.id] || editingItems[this.props.id] === 0) {
        editingItems.isEdit = false;
        editingItems[this.props.label] = this.tempData;
      } else {
        var len = this.dataList.length - 1;
        this.dataList.splice(len, 1);
      }
    },
    changeColor: function changeColor(color, item) {
      this.$emit('onColor', item, color);
    }
  }
});
// CONCATENATED MODULE: ./packages/input-box/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/input-box/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/input-box/src/main.vue"
/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/input-box/index.js


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

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

/***/ }),

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

module.exports = require("vuedraggable");

/***/ })

/******/ });