data.tsx 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. import { FormSchema } from '/@/components/Form';
  2. export const step1Schemas: FormSchema[] = [
  3. {
  4. field: 'account',
  5. component: 'Select',
  6. label: '付款账户',
  7. required: true,
  8. defaultValue: '1',
  9. componentProps: {
  10. options: [
  11. {
  12. label: 'anncwb@126.com',
  13. value: '1',
  14. },
  15. ],
  16. },
  17. colProps: {
  18. span: 24,
  19. },
  20. },
  21. {
  22. field: 'fac',
  23. component: 'InputGroup',
  24. label: '收款账户',
  25. required: true,
  26. defaultValue: 'test@example.com',
  27. slot: 'fac',
  28. colProps: {
  29. span: 24,
  30. },
  31. },
  32. {
  33. field: 'pay',
  34. component: 'Input',
  35. label: '',
  36. defaultValue: 'zfb',
  37. show: false,
  38. },
  39. {
  40. field: 'payeeName',
  41. component: 'Input',
  42. label: '收款人姓名',
  43. defaultValue: 'Vben',
  44. required: true,
  45. colProps: {
  46. span: 24,
  47. },
  48. },
  49. {
  50. field: 'money',
  51. component: 'Input',
  52. label: '转账金额',
  53. defaultValue: '500',
  54. required: true,
  55. renderComponentContent: () => {
  56. return {
  57. prefix: () => '¥',
  58. };
  59. },
  60. colProps: {
  61. span: 24,
  62. },
  63. },
  64. ];
  65. export const step2Schemas: FormSchema[] = [
  66. {
  67. field: 'pwd',
  68. component: 'InputPassword',
  69. label: '支付密码',
  70. required: true,
  71. defaultValue: '123456',
  72. colProps: {
  73. span: 24,
  74. },
  75. },
  76. ];