ant-design-vue/components/_util/warning.js
2019-02-01 17:23:00 +08:00

10 lines
188 B
JavaScript

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