"use strict";

require("core-js/modules/es.object.to-string.js");

require("core-js/modules/web.dom-collections.for-each.js");

require("core-js/modules/es.object.keys.js");

var _interopRequireDefault = require("D:/git/\u6211\u7684/opu-components-vue/node_modules/@babel/runtime/helpers/interopRequireDefault.js").default;

var _interopRequireWildcard = require("D:/git/\u6211\u7684/opu-components-vue/node_modules/@babel/runtime/helpers/interopRequireWildcard.js").default;

Object.defineProperty(exports, "__esModule", {
  value: true
});
var _exportNames = {
  SetColumns: true,
  utils: true
};
Object.defineProperty(exports, "SetColumns", {
  enumerable: true,
  get: function get() {
    return _setColumns.default;
  }
});
exports.default = void 0;
Object.defineProperty(exports, "utils", {
  enumerable: true,
  get: function get() {
    return _utils.default;
  }
});

require("core-js/modules/es.array.map.js");

require("core-js/modules/es.function.name.js");

var _dataTable = _interopRequireWildcard(require("./dataTable"));

Object.keys(_dataTable).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _dataTable[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _dataTable[key];
    }
  });
});

var _dataForm = _interopRequireWildcard(require("./dataForm"));

Object.keys(_dataForm).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _dataForm[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _dataForm[key];
    }
  });
});

var _crudTable = _interopRequireWildcard(require("./crudTable"));

Object.keys(_crudTable).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _crudTable[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _crudTable[key];
    }
  });
});

var _cell = _interopRequireWildcard(require("./cell"));

Object.keys(_cell).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _cell[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _cell[key];
    }
  });
});

var _pageWraper = _interopRequireWildcard(require("./pageWraper"));

Object.keys(_pageWraper).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _pageWraper[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _pageWraper[key];
    }
  });
});

var _pulldownTable = _interopRequireWildcard(require("./pulldownTable"));

Object.keys(_pulldownTable).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _pulldownTable[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _pulldownTable[key];
    }
  });
});

var _cascader = _interopRequireDefault(require("./dataForm/src/extend/cascader"));

var _modal = _interopRequireWildcard(require("./modal"));

Object.keys(_modal).forEach(function (key) {
  if (key === "default" || key === "__esModule") return;
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
  if (key in exports && exports[key] === _modal[key]) return;
  Object.defineProperty(exports, key, {
    enumerable: true,
    get: function get() {
      return _modal[key];
    }
  });
});

var _setColumns = _interopRequireDefault(require("./dataTable/src/setColumns"));

var _utils = _interopRequireDefault(require("./utils"));

var cellGroup = _cell.default.Group; // 按需加载的组件

var components = [_dataForm.default, _dataTable.default, _crudTable.default, _cell.default, cellGroup, _pageWraper.default, _pulldownTable.default, _cascader.default, _modal.default]; // 默认安装

function install(Vue) {
  // 判断是否安装
  if (install.installed) return; // 遍历注册全局组件

  components.map(function (component) {
    return Vue.component(component.name, component);
  });
}

if (typeof window !== "undefined" && window.Vue && window.Vue.use) {
  install(window.Vue);
}

var _default = {
  install: install
};
exports.default = _default;