UNPKG

vxe-table-select-area

Version:

一个基于 vxe-table 的可区域选中复制、粘贴的组件

17 lines (13 loc) 425 B
import GlobalConfig from '../v-x-e-table/src/conf' export function getLog (message, params) { return `[vxe-table v${process.env.VUE_APP_VXE_TABLE_VERSION}] ${GlobalConfig.i18n(message, params)}` } function outLog (type) { return function (message, params) { const msg = getLog(message, params) console[type](msg) return msg } } export const warnLog = outLog('warn') export const errLog = outLog('error')