input.ts 837 B

1234567891011121314151617181920212223242526272829303132
  1. import { VerificationType } from '$utils/verification';
  2. import {
  3. LoginType
  4. } from '../const/loginType';
  5. export default function(){
  6. return [
  7. {
  8. placeholder:'请输入手机号',
  9. key:'user_login',
  10. rules:{
  11. [VerificationType.empty]:'',
  12. [VerificationType.mobile]:'手机号格式不正确'
  13. }
  14. },
  15. {
  16. placeholder:'请输入密码',
  17. type:'password',
  18. key:'password',
  19. rules:'',
  20. show:LoginType.password
  21. },
  22. {
  23. placeholder:'请输入验证码',
  24. code:'user_login',
  25. codeType:'1',
  26. key:'sms_code',
  27. assignmentValue:false,
  28. rules:'',
  29. show:LoginType.code
  30. },
  31. ] as LibDataArray
  32. }