mirror of
https://github.com/PanJiaChen/vue-element-admin.git
synced 2025-04-05 03:04:59 +08:00
3 lines
87 B
JavaScript
3 lines
87 B
JavaScript
exports.notEmpty = name => v =>
|
|
!v || v.trim() === '' ? `${name} is required` : true
|