ant-design-vue/components/_util/warning.js
2019-01-12 12:46:29 +08:00

10 lines
200 B
JavaScript

import warning from 'warning';
const warned = {};
export default (valid, message, throwError) => {
if (!valid && !warned[message]) {
warning(false, message);
warned[message] = true;
}
};