You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ant-design-vue/components/_util/warning.js

15 lines
315 B

import warning from 'warning'
const warned = {}
export default (valid, message, throwError) => {
if (process.env.NODE_ENV !== 'production') {
if (!valid && !warned[message]) {
warning(false, message)
warned[message] = true
if (throwError) {
throw Error(message)
}
}
}
}