UNPKG

@lan-ui/lan-ui

Version:

A fantastic mobile ui lib implement by Vue

15 lines (13 loc) 472 B
export const warn = function (msg, componentName) { /* istanbul ignore if */ if (process.env.NODE_ENV !== 'production') { const component = componentName ? `<${componentName}> ` : '' console.error(`[Cube warn]: ${component}${msg}`) } } export const tip = function (msg, componentName) { if (process.env.NODE_ENV !== 'production') { const component = componentName ? `<${componentName}> ` : '' console.warn(`[Cube tip]: ${component}${msg}`) } }