1
0
mirror of https://github.com/PanJiaChen/vue-element-admin.git synced 2025-04-05 03:04:59 +08:00
2020-06-15 12:00:17 +08:00

3 lines
87 B
JavaScript

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