ComponentInfo.vue 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <template>
  2. <div id="component-info-fragment">
  3. <div class="component-info">
  4. <div class="head">
  5. <span class="tab">产品参数<b class="tip">(仅供参考,以实际产品为准)</b></span>
  6. </div>
  7. <ul class="list-unstyled list-inline" style="margin-left: 0px;" v-if="component.properties">
  8. <li v-for="property in component.properties" v-if="property.value">
  9. <div class="property-name">
  10. <span v-text="property.property.labelCn"></span>:
  11. </div>
  12. <div class="property-value" v-text="property.value"></div>
  13. </li>
  14. <li v-if="!component.properties || component.properties.length === 0" class="text-center">
  15. <i class="fa fa-smile-o fa-lg"></i> 暂无参数信息
  16. </li>
  17. </ul>
  18. </div>
  19. </div>
  20. </template>
  21. <script>
  22. export default {
  23. name: 'component-info',
  24. computed: {
  25. component () {
  26. return this.$store.state.shop.storeInfo.component.data
  27. }
  28. }
  29. }
  30. </script>
  31. <style scoped>
  32. .component-info {
  33. width: 906px;
  34. margin-bottom: 16px;
  35. }
  36. .component-info .head {
  37. background-color: rgb(236, 242, 253);
  38. height: 40px;
  39. }
  40. .component-info ul .tab {
  41. width: 130px;
  42. }
  43. .component-info ul{
  44. padding-top: 15px;
  45. padding-bottom: 15px;
  46. }
  47. .component-info ul li {
  48. line-height: 30px;
  49. }
  50. .component-info .head {
  51. font-size: 14px;
  52. font-weight: 600;
  53. }
  54. .component-info .head .tab {
  55. line-height: 40px;
  56. margin-left: 10px;
  57. text-align: center;
  58. display: inline-block;
  59. }
  60. .component-info ul {
  61. border: 1px solid #D6D3CE;;
  62. }
  63. .component-info ul li {
  64. line-height: 30px;
  65. font-size: 12px;
  66. padding-left: 20px;
  67. }
  68. .component-info .property-name {
  69. width: 130px;
  70. float: left;
  71. overflow: hidden;
  72. text-overflow: ellipsis;
  73. white-space: nowrap;
  74. }
  75. .component-info .property-value {
  76. float: left;
  77. width: 740px;
  78. }
  79. .tip {
  80. font-size: 12px;
  81. color: rgba(168, 181, 181, 0.79);
  82. margin-left: 5px;
  83. }
  84. .ng-hide{
  85. display: block !important;
  86. }
  87. </style>