Blocks.ts 930 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. // 单元定义
  2. import type { IHomeCommonCategoryDynamicData } from "../CommonCategoryDynamicData"
  3. /**
  4. * 首页统计栏目名称配置
  5. */
  6. export interface IHomeCommonCategoryBlockStatsProps {
  7. statsNameConfig: {
  8. /**
  9. * 统计项名称
  10. */
  11. name: string,
  12. /**
  13. * 统计项标题
  14. */
  15. title: string,
  16. /**
  17. * 是否显示
  18. * @default true
  19. */
  20. visible?: boolean,
  21. /**
  22. * 显示总数文本
  23. * @default "1"
  24. */
  25. showTotalText?: "1"|"2";
  26. }[]
  27. }
  28. /**
  29. * 首页地图栏目名称配置
  30. */
  31. export interface IHomeCommonCategoryBlockMapProps {
  32. mapPage?: string,
  33. mapConfigItems: {
  34. /**
  35. * 地图项名称
  36. */
  37. title: string,
  38. /**
  39. * 地图项图标
  40. */
  41. icon: string,
  42. /**
  43. * 是否显示
  44. * @default true
  45. */
  46. visible?: boolean,
  47. /**
  48. * 地图项数据
  49. */
  50. data: IHomeCommonCategoryDynamicData
  51. }[],
  52. }