1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-05 19:41:51 +08:00
2020-06-15 17:22:52 +08:00

3 lines
87 B
JavaScript

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