InventoryItem.vue 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <!--
  2. * @Author: your name
  3. * @Date: 2021-10-11 09:55:34
  4. * @LastEditTime: 2021-10-11 11:07:37
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: \hyyfClient\src\components\erp\InventoryItem.vue
  8. -->
  9. <template>
  10. <div class="inventory-item">
  11. <div class="picture">
  12. <slot name="picture"></slot>
  13. </div>
  14. <div class="data">
  15. <div class="center">
  16. <div class="title">
  17. <slot name="dataName"></slot>
  18. </div>
  19. <div class="num">
  20. <slot name="dataNum"></slot>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </template>
  26. <script>
  27. export default {
  28. }
  29. </script>
  30. <style scoped>
  31. .inventory-item {
  32. width: 30%;
  33. height: 100px;
  34. border: 1px solid rgba(235, 238, 245, 1);
  35. margin: 5px;
  36. display: flex;
  37. }
  38. .picture {
  39. width: 150px;
  40. height: 100px;
  41. }
  42. .data {
  43. width: 60%;
  44. height: 100px;
  45. text-align: center;
  46. display: flex;
  47. flex-direction: column;
  48. justify-content: center;
  49. }
  50. .title {
  51. color: #bbb;
  52. font-size: 16px;
  53. }
  54. .num {
  55. font-size: 18px;
  56. }
  57. </style>