mock.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. // 表单数据选项(自行扩展)
  2. export const formData = [
  3. {
  4. label: '姓名',
  5. prop: 'name',
  6. placeholder: '请输入姓名',
  7. clearable: true,
  8. disabled: false,
  9. required: true,
  10. type: 'input',
  11. i18n: false,
  12. i18nText: '',
  13. isShow: true,
  14. xs: 24,
  15. sm: 12,
  16. md: 8,
  17. lg: 6,
  18. xl: 4,
  19. },
  20. {
  21. label: '邮箱',
  22. prop: 'email',
  23. placeholder: '请输入用户邮箱',
  24. clearable: true,
  25. disabled: false,
  26. required: true,
  27. type: 'input',
  28. i18n: false,
  29. i18nText: '',
  30. isShow: true,
  31. xs: 24,
  32. sm: 12,
  33. md: 8,
  34. lg: 6,
  35. xl: 4,
  36. },
  37. {
  38. label: '登陆时间',
  39. prop: 'autograph',
  40. placeholder: '选择时间',
  41. clearable: true,
  42. disabled: false,
  43. required: true,
  44. type: 'date',
  45. i18n: false,
  46. i18nText: '',
  47. isShow: true,
  48. xs: 24,
  49. sm: 12,
  50. md: 8,
  51. lg: 6,
  52. xl: 4,
  53. },
  54. {
  55. label: '职务',
  56. prop: 'occupation',
  57. placeholder: '请选择职务',
  58. clearable: true,
  59. disabled: false,
  60. required: true,
  61. type: 'select',
  62. i18n: false,
  63. i18nText: '',
  64. options: [
  65. {
  66. label: '计算机 / 互联网 / 通信',
  67. value: '1',
  68. },
  69. {
  70. label: '生产 / 工艺 / 制造',
  71. value: '2',
  72. },
  73. {
  74. label: '医疗 / 护理 / 制药',
  75. value: '3',
  76. },
  77. ],
  78. isShow: true,
  79. xs: 24,
  80. sm: 12,
  81. md: 8,
  82. lg: 6,
  83. xl: 4,
  84. },
  85. {
  86. label: '',
  87. prop: '',
  88. placeholder: '',
  89. clearable: true,
  90. disabled: false,
  91. required: true,
  92. type: '',
  93. i18n: false,
  94. i18nText: '',
  95. isShow: true,
  96. xs: 24,
  97. sm: 24,
  98. md: 24,
  99. lg: 24,
  100. xl: 24,
  101. },
  102. {
  103. label: '备注',
  104. prop: 'remarks',
  105. placeholder: '请输入',
  106. clearable: true,
  107. disabled: false,
  108. required: true,
  109. type: 'textarea',
  110. i18n: false,
  111. i18nText: '',
  112. isShow: true,
  113. xs: 24,
  114. sm: 24,
  115. md: 24,
  116. lg: 24,
  117. xl: 24,
  118. },
  119. ]