"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.createComponentLog = createComponentLog;
exports.warnLog = exports.errLog = void 0;
var _core = require("@vxe-ui/core");
var log = _core.VxeUI.log;
var uiVersion = "ui v".concat("3.16.17");
function createComponentLog(name) {
  var tableVersion = _core.VxeUI.tableVersion ? "table v".concat(_core.VxeUI.tableVersion) : '';
  var ganttVersion = _core.VxeUI.ganttVersion ? "gantt v".concat(_core.VxeUI.ganttVersion) : '';
  var designVersion = _core.VxeUI.designVersion ? "design v".concat(_core.VxeUI.designVersion) : '';
  var versionInfo = [uiVersion, tableVersion, ganttVersion, designVersion].filter(function (v) {
    return v;
  }).join(' ');
  return {
    warnLog: log.create('warn', versionInfo + '] [' + name),
    errLog: log.create('error', versionInfo + '] [' + name)
  };
}
var warnLog = exports.warnLog = log.create('warn', uiVersion);
var errLog = exports.errLog = log.create('error', uiVersion);