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

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


/***/ }),

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

module.exports = require("element-ui-for-gov/lib/scrollbar");

/***/ }),

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

module.exports = require("element-ui-for-gov/lib/tree");

/***/ }),

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

module.exports = require("element-ui-for-gov/lib/radio");

/***/ }),

/***/ 325:
/***/ (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/tree-transfer/src/main.vue?vue&type=template&id=cee8de06&
var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { staticClass: "el-tree-transfer" },
    [
      _c(
        "el-row",
        { attrs: { gutter: 20 } },
        [
          _c("el-col", { attrs: { span: _vm.showCheckbox ? 10 : 12 } }, [
            _c(
              "div",
              { staticClass: "el-tree-transfer__col" },
              [
                _c("div", { staticClass: "el-tree-transfer__head" }, [
                  _vm._v(_vm._s(_vm.checkTitle))
                ]),
                _vm.showSearch && !_vm.renderFilter
                  ? _c("el-input", {
                      staticClass: "el-tree-transfer__input",
                      attrs: { placeholder: "输入关键字进行过滤" },
                      model: {
                        value: _vm.filterUncheckText,
                        callback: function($$v) {
                          _vm.filterUncheckText = $$v
                        },
                        expression: "filterUncheckText"
                      }
                    })
                  : _vm._e(),
                _vm.renderFilter ? _c("filter-input") : _vm._e(),
                _c(
                  "div",
                  {
                    class: {
                      "el-tree-transfer__tree": true,
                      "el-tree-transfer__tree--search": _vm.showSearch
                    }
                  },
                  [
                    (_vm.filterUncheckText && _vm.filterHandle) ||
                    (_vm.renderFilter && _vm.loadSearchData.length > 0)
                      ? _c("el-tree", {
                          key: "searchTree",
                          ref: "searchTree",
                          attrs: {
                            data: _vm.loadSearchData,
                            "render-content": _vm.renderWrapContent(),
                            "check-strictly": _vm.checkStrictly,
                            "default-expanded-keys": _vm.defaultExpandedKeys,
                            "default-checked-keys": _vm.myDefaultCheckedKeys,
                            "show-checkbox": _vm.showCheckbox,
                            "node-key": _vm.uniqueId,
                            props: {
                              label: _vm.showName,
                              children: _vm.children,
                              isLeaf: _vm.leafKey,
                              hideCheckbox: "hideCheckbox"
                            }
                          },
                          on: {
                            "check-change": _vm.checkChange,
                            "node-click": _vm.nodeClick,
                            "set-default-check": _vm.setDefaultCheck
                          }
                        })
                      : _c("el-tree", {
                          key: "tree",
                          ref: "tree",
                          attrs: {
                            "filter-node-method": _vm.filterNode,
                            data: _vm.data,
                            "render-content": _vm.renderWrapContent(),
                            "check-strictly": _vm.checkStrictly,
                            "default-expanded-keys": _vm.defaultExpandedKeys,
                            "default-checked-keys": _vm.myDefaultCheckedKeys,
                            "show-checkbox": _vm.showCheckbox,
                            "node-key": _vm.uniqueId,
                            lazy: _vm.lazy,
                            load: _vm.loadAsyncData,
                            props: {
                              label: _vm.showName,
                              children: _vm.children,
                              isLeaf: _vm.leafKey,
                              hideCheckbox: "hideCheckbox"
                            }
                          },
                          on: {
                            "check-change": _vm.checkChange,
                            "node-click": _vm.nodeClick,
                            "set-default-check": _vm.setDefaultCheck
                          }
                        })
                  ],
                  1
                )
              ],
              1
            )
          ]),
          _vm.showCheckbox
            ? _c(
                "el-col",
                { staticStyle: { height: "400px" }, attrs: { span: 4 } },
                [
                  _c(
                    "div",
                    { staticClass: "el-tree-transfer__btngroup" },
                    [
                      _c(
                        "el-button",
                        {
                          staticClass: "el-tree-transfer__btngroup__all",
                          attrs: { type: "primary" },
                          on: { click: _vm.checkAll }
                        },
                        [_vm._v("> 全选")]
                      ),
                      _c(
                        "el-button",
                        {
                          staticClass: "el-tree-transfer__btngroup__clear",
                          on: { click: _vm.clear }
                        },
                        [_vm._v("清空已选")]
                      )
                    ],
                    1
                  )
                ]
              )
            : _vm._e(),
          _c("el-col", { attrs: { span: _vm.showCheckbox ? 10 : 12 } }, [
            _c(
              "div",
              { staticClass: "el-tree-transfer__col" },
              [
                _c("div", { staticClass: "el-tree-transfer__head" }, [
                  _vm._v(_vm._s(_vm.checkedTitle))
                ]),
                _vm.showSearch
                  ? _c("el-input", {
                      staticClass: "el-tree-transfer__input",
                      attrs: { placeholder: "输入关键字进行过滤" },
                      model: {
                        value: _vm.filterCheckText,
                        callback: function($$v) {
                          _vm.filterCheckText = $$v
                        },
                        expression: "filterCheckText"
                      }
                    })
                  : _vm._e(),
                _c(
                  "div",
                  {
                    ref: "nodes",
                    class: {
                      "el-tree-transfer__nodes": true,
                      "el-tree-transfer__nodes--search": _vm.showSearch
                    }
                  },
                  [
                    _c(
                      "el-scrollbar",
                      {
                        attrs: {
                          tag: "div",
                          "wrap-class": {
                            "el-tree-transfer__scroll": true,
                            "el-tree-transfer__scroll--search": _vm.showSearch
                          }
                        }
                      },
                      [
                        _vm._l(_vm.filterCheckNodes, function(i, index) {
                          return [
                            i._classify && i.list.length
                              ? _c(
                                  "div",
                                  { staticClass: "el-tree-transfer__list" },
                                  [
                                    _c(
                                      "div",
                                      {
                                        staticClass:
                                          "el-tree-transfer__list__title"
                                      },
                                      [_vm._v(_vm._s(i._classify))]
                                    ),
                                    _vm._l(i.list, function(item, in_index) {
                                      return [
                                        _c(
                                          "div",
                                          {
                                            key:
                                              "" +
                                              item[_vm.uniqueId] +
                                              in_index,
                                            staticClass:
                                              "el-tree-transfer__node"
                                          },
                                          [
                                            _c(
                                              "span",
                                              {
                                                staticClass:
                                                  "el-tree-transfer__node__label el-tree-transfer__node__label--group",
                                                attrs: {
                                                  title: item[_vm.showName]
                                                }
                                              },
                                              [
                                                _vm._v(
                                                  _vm._s(item[_vm.showName])
                                                )
                                              ]
                                            ),
                                            _c("span", {
                                              staticClass:
                                                "el-icon-close el-tree-transfer__node__icon",
                                              on: {
                                                click: function($event) {
                                                  _vm.cancelCheck(item)
                                                }
                                              }
                                            })
                                          ]
                                        )
                                      ]
                                    })
                                  ],
                                  2
                                )
                              : _vm._e(),
                            !i._classify
                              ? _c(
                                  "div",
                                  {
                                    key: "" + i[_vm.uniqueId] + index,
                                    staticClass: "el-tree-transfer__node"
                                  },
                                  [
                                    _c(
                                      "span",
                                      {
                                        staticClass:
                                          "el-tree-transfer__node__label",
                                        attrs: { title: i[_vm.showName] }
                                      },
                                      [_vm._v(_vm._s(i[_vm.showName]))]
                                    ),
                                    _c("span", {
                                      staticClass:
                                        "el-icon-close el-tree-transfer__node__icon",
                                      on: {
                                        click: function($event) {
                                          _vm.cancelCheck(i)
                                        }
                                      }
                                    })
                                  ]
                                )
                              : _vm._e()
                          ]
                        })
                      ],
                      2
                    )
                  ],
                  1
                )
              ],
              1
            )
          ])
        ],
        1
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true


// CONCATENATED MODULE: ./packages/tree-transfer/src/main.vue?vue&type=template&id=cee8de06&

// EXTERNAL MODULE: external "element-ui-for-gov/lib/tree"
var tree_ = __webpack_require__(31);
var tree_default = /*#__PURE__*/__webpack_require__.n(tree_);

// EXTERNAL MODULE: external "element-ui-for-gov/lib/input"
var input_ = __webpack_require__(8);
var input_default = /*#__PURE__*/__webpack_require__.n(input_);

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

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

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

// EXTERNAL MODULE: external "element-ui-for-gov/lib/radio"
var radio_ = __webpack_require__(32);
var radio_default = /*#__PURE__*/__webpack_require__.n(radio_);

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

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








var _this = void 0;
/* harmony default export */ var mainvue_type_script_lang_js_ = ({
  name: 'ElTreeTransfer',
  components: {
    ElTree: tree_default.a,
    ElInput: input_default.a,
    ElRow: row_default.a,
    ElCol: col_default.a,
    ElButton: button_default.a,
    Radio: radio_default.a,
    ElScrollbar: scrollbar_default.a,
    FilterInput: {
      render: function render() {
        console.log('FilterInput-render', _this);
        if (_this.renderFilter) {
          return _this.renderFilter(function (data) {
            _this.loadSearchData = data;
          });
        }
        return '';
      }
    }
  },
  props: {
    showSearch: {
      type: Boolean,
      default: false
    },
    checkTitle: {
      type: String,
      default: '待选'
    },
    checkedTitle: {
      type: String,
      default: '已选'
    },
    data: {
      type: Array
    },
    renderContent: {
      type: Function
    },
    checkStrictly: {
      type: Boolean,
      default: function _default() {
        return false;
      }
    },
    defaultExpandedKeys: {
      type: Array,
      default: function _default() {
        return [];
      }
    },
    defaultCheckedKeys: {
      type: Array
    },
    getLeafOnly: {
      type: Boolean,
      default: function _default() {
        return false;
      }
    },
    showCheckbox: {
      type: Boolean,
      default: function _default() {
        return true;
      }
    },
    uniqueId: {
      type: String,
      default: 'id'
    },
    showName: {
      type: String,
      default: 'label'
    },
    leafKey: {
      type: String,
      default: 'isLeaf'
    },
    children: {
      type: String,
      default: 'children'
    },
    lazy: {
      type: Boolean,
      default: false
    },
    load: {
      type: Function,
      default: function _default() {
        return function () {};
      }
    },
    defaultCheckedNodes: {
      type: Array
    },
    isSearchCheckAll: {
      type: Boolean,
      default: true
    },
    renderChecked: {
      type: Function
    },
    filterHandle: Function,
    renderFilter: Function
  },
  data: function data() {
    return {
      radio: '',
      radioNode: {},
      filterUncheckText: '',
      filterCheckText: '',
      currentNodes: [],
      setRadioDefault: false,
      myDefaultCheckedKeys: [],
      nodeMap: {},
      searchData: [],
      loadSearchData: []
    };
  },
  created: function created() {
    _this = this;
  },
  mounted: function mounted() {
    if (this.$refs.tree && this.$refs.tree.store) {
      this.searchData = this.$refs.tree.store.root;
    }
  },

  methods: {
    asyncChangeCurrentNodes: function asyncChangeCurrentNodes() {
      var _this2 = this;

      if (this.lazy) {
        var unLoadCheckedNodes = [];
        var treeCheckedNodes = this.getNodes();
        if (this.currentNodes && this.currentNodes.length) {
          this.currentNodes.forEach(function (node) {
            if (!_this2.nodeMap[node[_this2.uniqueId]]) {
              unLoadCheckedNodes.push(node);
            }
          });
        }
        // 自定义搜索过滤重复数据
        var keyMaps = [];
        this.currentNodes = treeCheckedNodes.concat(unLoadCheckedNodes).filter(function (node) {
          if (keyMaps.indexOf(node[_this2.uniqueId]) === -1) {
            keyMaps.push(node[_this2.uniqueId]);
            return true;
          } else {
            return false;
          }
        });
      } else {
        this.currentNodes = this.getNodes();
      }
    },
    _register: function _register(node) {
      var _this3 = this;

      if (node[this.uniqueId]) {
        this.nodeMap[node[this.uniqueId]] = node;
      }
      if (node[this.children] && node[this.children].length) {
        node[this.children].forEach(function (cNode) {
          _this3._register(cNode);
        });
      }
    },
    loadAsyncData: function loadAsyncData(node, resolve) {
      var _this4 = this;

      this.load(node, function (data) {
        if (data && data.length) {
          data.forEach(function (dNode) {
            _this4._register(dNode);
          });
        }
        resolve(data);
        if (_this4.$refs.tree && _this4.$refs.tree.store) {
          _this4.searchData = _this4.$refs.tree.store.root;
        }
      });
    },
    initDefaultCheck: function initDefaultCheck() {
      if (!this.showCheckbox) {
        this.radio = this.myDefaultCheckedKeys[0];
        var node = this.findNode(this.radio, this.data || []) || {};
        this.radioNode = node;
        if (node && node[this.uniqueId]) {
          this.currentNodes = [node];
        }
      } else {
        this.currentNodes = this.getNodes();
      }
    },
    initDefaultCheckedNodes: function initDefaultCheckedNodes() {
      var _this5 = this;

      if (this.defaultCheckedNodes && this.defaultCheckedNodes.length) {
        this.currentNodes = this.defaultCheckedNodes;
        var keys = this.defaultCheckedNodes.map(function (node) {
          return node[_this5.uniqueId];
        });
        this.myDefaultCheckedKeys = keys;
        if (this.radio) {
          this.radio = this.defaultCheckedNodes[0][this.uniqueId];
          this.radioNode = this.defaultCheckedNodes[0];
        }
      }
    },
    stopRadio: function stopRadio(e) {
      e.stopPropagation();
    },
    renderWrapContent: function renderWrapContent() {
      var _this6 = this;

      var h = this.$createElement;

      if (this.renderContent && typeof this.renderContent === 'function') {
        return function (h, _ref) {
          var node = _ref.node,
              data = _ref.data,
              store = _ref.store;

          return h(
            'span',
            { 'class': 'wrap-tree-node' },
            [!_this6.showCheckbox && !node.hideCheckbox && h(radio_default.a, {
              nativeOn: {
                'click': _this6.stopRadio
              },
              attrs: { value: _this6.radio, label: data[_this6.uniqueId], disabled: node.disabled === true },
              on: {
                'input': _this6.$_handleRadio
              }
            }), _this6.renderContent(h, { node: node, data: data, store: store })]
          );
        };
      } else {
        return function (h, _ref2) {
          var node = _ref2.node,
              data = _ref2.data,
              store = _ref2.store;

          return h(
            'span',
            { 'class': 'wrap-tree-node' },
            [!_this6.showCheckbox && !node.hideCheckbox && h(radio_default.a, {
              nativeOn: {
                'click': _this6.stopRadio
              },
              attrs: { value: _this6.radio, label: data[_this6.uniqueId], disabled: node.disabled === true },
              on: {
                'input': _this6.$_handleRadio
              }
            }), h('span', { 'class': 'el-icon-folder wrap-tree-node__icon' }), h('span', [node.label])]
          );
        };
      }
    },
    findNode: function findNode(id, array) {
      for (var i = 0; i < array.length; i++) {
        if (array[i][this.uniqueId] === id) {
          return array[i];
        }
        if (array[i].children && array[i].children.length) {
          return this.findNode(id, array[i].children);
        }
      }
    },
    getNodes: function getNodes() {
      if (!this.showCheckbox) {
        return this.radioNode;
      }
      var tree = this.$refs.tree || this.$refs.searchTree;
      var nodes = tree && tree.getCheckedNodes(this.getLeafOnly);
      console.log('getNodes', nodes);
      return nodes;
    },
    getCheckedNodes: function getCheckedNodes() {
      return this.currentNodes;
    },
    filterNode: function filterNode(value, data) {
      if (!value) return true;
      return data[this.showName].indexOf(value) !== -1;
    },
    checkChange: function checkChange() {
      console.log('checkChange');
      if (!this.showCheckbox) {
        this.currentNodes = [this.getNodes()];
      } else {
        this.asyncChangeCurrentNodes();
      }

      for (var _len = arguments.length, value = Array(_len), _key = 0; _key < _len; _key++) {
        value[_key] = arguments[_key];
      }

      this.$emit.apply(this, ['check-change'].concat(value));
    },
    nodeClick: function nodeClick() {
      for (var _len2 = arguments.length, value = Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
        value[_key2] = arguments[_key2];
      }

      this.$emit.apply(this, ['node-click'].concat(value));
    },
    cancelCheck: function cancelCheck(node) {
      if (!this.showCheckbox) {
        this.radio = '';
        this.radioNode = {};
        this.currentNodes = [];
      } else {
        if (this.myDefaultCheckedKeys && this.myDefaultCheckedKeys.length) {
          // 回显节点中删除该节点
          for (var i = 0; i < this.myDefaultCheckedKeys.length; i++) {
            if (this.myDefaultCheckedKeys[i] === node[this.uniqueId]) {
              var arr = this.myDefaultCheckedKeys;
              arr.splice(i, 1);
              this.myDefaultCheckedKeys = arr;
              break;
            }
          }
        }
        // 树节点中取消该节点选中
        this.$refs.tree && this.$refs.tree.setChecked(node[this.uniqueId], false);
        // 已选节点中删除该节点
        for (var _i = 0; _i < this.currentNodes.length; _i++) {
          if (this.currentNodes[_i][this.uniqueId] === node[this.uniqueId]) {
            var _arr = this.currentNodes;
            _arr.splice(_i, 1);
            this.currentNodes = _arr;
            break;
          }
        }
      }
    },
    $_handleRadio: function $_handleRadio(value) {
      this.radio = value;
      var node = {};
      var tree = this.$refs.tree || this.$refs.searchTree;
      try {
        node = tree && tree.getNode(value).data || {};
      } catch (e) {
        console.log(e);
      }
      this.radioNode = node;
      this.currentNodes = [node];
      this.$emit('check-change', node);
    },
    checkAll: function checkAll() {
      var _this7 = this;

      if (this.$refs.tree && this.$refs.tree.store) {
        var store = this.$refs.tree.store;
        var traverse = function traverse(node) {
          if (node.data && node.data[_this7.uniqueId] && node.data[_this7.showName] && !node.data.disabled) {
            _this7.$refs.tree.setChecked(node.data[_this7.uniqueId], true);
          }
          if (node.childNodes) {
            node.childNodes.forEach(function (cNode) {
              traverse(cNode);
            });
          }
        };
        if (this.isSearchCheckAll) {
          if (this.searchData && this.searchData.length) {
            this.searchData.forEach(function (node) {
              if (node.data && node.data[_this7.uniqueId] && node.data[_this7.showName] && !node.data.disabled) {
                _this7.$refs.tree.setChecked(node.data[_this7.uniqueId], true);
              }
            });
          } else {
            traverse(this.searchData);
          }
        } else {
          traverse(store.root);
        }
        // this.currentNodes = result;
      }
    },
    clear: function clear() {
      var _this8 = this;

      var arr = this.currentNodes;
      arr.forEach(function (item) {
        _this8.$refs.tree.setChecked(item[_this8.uniqueId], false);
      });
      this.currentNodes = [];
      this.myDefaultCheckedKeys = [];
    },
    setDefaultCheck: function setDefaultCheck(_ref3) {
      var _this9 = this;

      var store = _ref3.store,
          data = _ref3.data;

      if (this.showCheckbox) {
        this.$nextTick(function () {
          _this9.asyncChangeCurrentNodes();
        });
      } else if (!this.setRadioDefault) {
        if (this.lazy && this.defaultCheckedNodes && this.defaultCheckedNodes.length) {
          this.radio = this.defaultCheckedNodes[0][this.uniqueId];
          this.radioNode = this.defaultCheckedNodes[0];
          this.currentNodes = [this.defaultCheckedNodes[0]];
          this.setRadioDefault = true;
          return;
        }
        if (!store && data && data.length && this.myDefaultCheckedKeys && this.myDefaultCheckedKeys[0]) {
          data.forEach(function (item) {
            if (item[_this9.uniqueId] === _this9.myDefaultCheckedKeys[0]) {
              _this9.radio = _this9.myDefaultCheckedKeys[0];
              _this9.radioNode = item;
              _this9.currentNodes = [item];
              _this9.setRadioDefault = true;
            }
          });
        } else if (store && this.myDefaultCheckedKeys && this.myDefaultCheckedKeys[0]) {
          if (store.nodesMap && store.nodesMap[this.myDefaultCheckedKeys[0]]) {
            var node = store.nodesMap[this.myDefaultCheckedKeys[0]].data;
            this.radio = this.myDefaultCheckedKeys[0];
            this.radioNode = node;
            this.currentNodes = [node];
            this.setRadioDefault = true;
          }
        }
      }
    },
    setCheckedKeys: function setCheckedKeys(keys) {
      if (this.$refs.tree) {
        this.$refs.tree.setCheckedKeys(keys);
        this.currentNodes = this.getNodes();
      }
    }
  },
  computed: {
    filterCheckNodes: function filterCheckNodes() {
      var _this10 = this;

      if (this.showCheckbox) {
        var arr = this.currentNodes.filter(function (item) {
          return item[_this10.showName] && item[_this10.showName].indexOf(_this10.filterCheckText) !== -1;
        });
        if (this.renderChecked && typeof this.renderChecked === 'function') {
          return this.renderChecked(arr);
        }
        return arr;
      } else {
        return this.currentNodes;
      }
    }
  },
  watch: {
    filterUncheckText: function filterUncheckText(val) {
      var _this11 = this;

      if (this.filterHandle) {
        this.filterHandle(val, function (data) {
          _this11.loadSearchData = data;
        });
        return;
      }
      if (this.$refs.tree && this.$refs.tree.store) {
        var store = this.$refs.tree.store;
        var filteredNode = [];
        var traverse = function traverse(node) {
          if (node.data && node.data[_this11.uniqueId] && node.data[_this11.showName]) {
            if (_this11.filterNode(val, node.data)) {
              filteredNode.push(node);
            }
          }
          if (node.childNodes) {
            node.childNodes.forEach(function (cNode) {
              traverse(cNode);
            });
          }
        };
        traverse(store.root);
        this.searchData = filteredNode;
      }
      this.$refs.tree.filter(val);
    },

    data: {
      handler: function handler() {
        var _this12 = this;

        this.$nextTick(function () {
          _this12.initDefaultCheck();
          if (_this12.$refs.tree && _this12.$refs.tree.store) {
            _this12.searchData = _this12.$refs.tree.store.root;
          }
        });
      }
    },
    defaultCheckedKeys: {
      handler: function handler() {
        var _this13 = this;

        if (!(this.defaultCheckedNodes && this.defaultCheckedNodes.length)) {
          this.myDefaultCheckedKeys = this.defaultCheckedKeys;
          this.$nextTick(function () {
            _this13.initDefaultCheck();
          });
        }
      },

      immediate: true
    },
    defaultCheckedNodes: {
      handler: function handler() {
        var _this14 = this;

        this.$nextTick(function () {
          _this14.initDefaultCheckedNodes();
        });
      },

      immediate: true
    }
  }

});
// CONCATENATED MODULE: ./packages/tree-transfer/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__(1);

// CONCATENATED MODULE: ./packages/tree-transfer/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/tree-transfer/src/main.vue"
/* harmony default export */ var main = (component.exports);
// CONCATENATED MODULE: ./packages/tree-transfer/index.js


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

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

/***/ }),

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

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

/***/ }),

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

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

/***/ }),

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

module.exports = require("element-ui-for-gov/lib/input");

/***/ }),

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

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

/***/ })

/******/ });