mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-15 09:21:25 +08:00
10 lines
195 B
JavaScript
10 lines
195 B
JavaScript
import warning from 'warning'
|
|
|
|
const warned = {}
|
|
export default (valid, message, throwError) => {
|
|
if (!valid && !warned[message]) {
|
|
warning(false, message)
|
|
warned[message] = true
|
|
}
|
|
}
|