history.ts 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. import { CommonInfoModel } from "@/api/inhert/VillageInfoApi";
  2. import { villageCommonContent } from "./common";
  3. import type { SingleForm } from "../forms";
  4. export const villageInfoStoryFormItems: SingleForm = [CommonInfoModel, (r) => ({
  5. formItems: [
  6. {
  7. label: '标题',
  8. name: 'name',
  9. type: 'text',
  10. defaultValue: '',
  11. additionalProps: {
  12. placeholder: '请输入标题',
  13. },
  14. rules: [{
  15. required: true,
  16. message: '请输入标题',
  17. }]
  18. },
  19. ...villageCommonContent(r, {
  20. title: '掌故轶事',
  21. showTitle: false,
  22. }).formItems
  23. ]
  24. }), { title: '掌故轶事', typeName: '', }]
  25. export const villageInfoFigureFormItems: SingleForm = [CommonInfoModel, (r) => ({
  26. formItems: [
  27. {
  28. label: '历史人物名称',
  29. name: 'name',
  30. type: 'text',
  31. defaultValue: '',
  32. additionalProps: {
  33. placeholder: '请输入标题',
  34. },
  35. rules: [{
  36. required: true,
  37. message: '请输入标题',
  38. }]
  39. },
  40. ...villageCommonContent(r, {
  41. title: '历史人物',
  42. showTitle: false,
  43. }).formItems
  44. ]
  45. }), { title: '历史人物', typeName: '', }]