component.js 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. export const config = {
  2. "name": "评论展示",
  3. "icon": "el-icon-chat-line-square",
  4. "fields": {
  5. "dataVal": {
  6. "label": "组价内容",
  7. "type": "array",
  8. "child": {
  9. "avatar": {
  10. "label": "头像",
  11. "type": "upload",
  12. "value": ""
  13. },
  14. "title": {
  15. "label": "标题",
  16. "type": "input",
  17. "value": "标题"
  18. },
  19. "content": {
  20. "label": "内容",
  21. "type": "input",
  22. "value": "内容",
  23. "maxlength":"300",
  24. },
  25. "imgs": {
  26. "label": "图片",
  27. "type": "upload",
  28. "limit":20,
  29. "value": [],
  30. }
  31. }
  32. },
  33. "attrs": {
  34. "label": "设置",
  35. "type": "object",
  36. "child": {
  37. "singleSize": {
  38. "label": "图片长度(单图,单位rpx)",
  39. "type": "inputNumber",
  40. "value": 320
  41. },
  42. "multipleSize":{
  43. "label": "图片长度(多图,单位rpx)",
  44. "type": "inputNumber",
  45. "value": 140
  46. },
  47. "space":{
  48. "label": "间隔(多图)",
  49. "type": "inputNumber",
  50. "value": 6
  51. },
  52. "rowCount":{
  53. "label": "每行展示图片数量",
  54. "type": "inputNumber",
  55. "value": 3
  56. },
  57. }
  58. },
  59. "styles": {
  60. "label": "样式",
  61. "type": "object",
  62. "child": {
  63. // "outPad": {
  64. // "label": "边框内边距",
  65. // "type": "number",
  66. // "value": 10
  67. // },
  68. // "backgroundColor": {
  69. // "label": "颜色",
  70. // "type": "color",
  71. // "value": "#3c9cff"
  72. // }
  73. }
  74. }
  75. }
  76. }