components.php 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. return [
  3. 'shop_goods' => [
  4. 'title' => get_lang('dict_diy_poster.shop_goods_component_type_basic'),
  5. 'support' => [], // 支持的插件
  6. 'list' => [
  7. 'GoodsImage' => [
  8. 'title' => "商品图片",
  9. 'type' => 'image',
  10. 'icon' => "iconfont iconshangpintupian",
  11. 'path' => "goods-image", // 属性编辑
  12. 'uses' => 1,
  13. 'sort' => 10006,
  14. 'relate' => 'goods_img', // 关联字段,空为不处理
  15. 'value' => '',
  16. 'template' => [
  17. "width" => 400, // 宽度
  18. 'height' => 400, // 高度
  19. 'minWidth' => 60, // 最小宽度
  20. 'minHeight' => 60, // 最小高度
  21. ],
  22. ],
  23. 'GoodsName' => [
  24. 'title' => "商品名称",
  25. 'type' => 'text',
  26. 'icon' => "iconfont iconjinbi",
  27. 'path' => "goods-name",
  28. 'uses' => 1,
  29. 'sort' => 10007,
  30. 'relate' => 'goods_name', // 关联字段,空为不处理
  31. 'value' => '',
  32. 'template' => [
  33. "width" => 164, // 宽度
  34. 'height' => 55, // 高度
  35. ]
  36. ],
  37. 'GoodsPrice' => [
  38. 'title' => "销售价",
  39. 'type' => 'text',
  40. 'icon' => "iconfont iconshoujia",
  41. 'path' => "goods-price",
  42. 'uses' => 1,
  43. 'sort' => 10008,
  44. 'relate' => 'goods_price', // 关联字段,空为不处理
  45. 'value' => '',
  46. 'template' => [
  47. "fontFamily" => 'static/font/price.ttf', // 字体
  48. 'width' => 151, // 宽度
  49. 'height' => 49, // 高度
  50. ],
  51. ],
  52. 'GoodsMarketPrice' => [
  53. 'title' => "划线价",
  54. 'type' => 'text',
  55. 'icon' => "iconfont iconhuajiaqian",
  56. 'path' => "goods-market-price",
  57. 'uses' => 1,
  58. 'sort' => 10009,
  59. 'relate' => 'goods_market_price', // 关联字段,空为不处理
  60. 'value' => '',
  61. 'template' => [
  62. "fontFamily" => 'static/font/price.ttf', // 字体
  63. 'width' => 170, // 宽度
  64. 'height' => 48, // 高度
  65. ],
  66. ]
  67. ]
  68. ],
  69. ];