mt-qj-wms-ui/plop-templates/utils.js
2021-10-20 16:25:18 +08:00

10 lines
154 B
JavaScript

exports.notEmpty = name => {
return v => {
if (!v || v.trim === '') {
return `${name} is required`
} else {
return true
}
}
}