chartItem.vue 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. <template>
  2. <view class="chart-item" :data-id="itemData.dragId" @click.stop="itemClick">
  3. <view class="van-multi-ellipsis--l2 title">{{itemData.title}}就发动机上课了发觉得凯撒尽快发动机卡JFK的撒尽快付款的撒娇离开了</view>
  4. <image lazy-load class="img" src="" mode="aspectFill"/>
  5. </view>
  6. </template>
  7. <script>
  8. export default {
  9. name:"chartItem",
  10. props: {
  11. itemData:{
  12. type: Object,
  13. value: {}
  14. }
  15. },
  16. methods: {
  17. itemClick(){
  18. this.$emit('click')
  19. }
  20. }
  21. }
  22. </script>
  23. <style lang='scss' scoped>
  24. .chart-item{
  25. height: 380rpx;
  26. background: #FFFFFF;
  27. box-shadow: 0px 0px 12rpx rgba(154, 141, 123, 0.16);
  28. border-radius: 8rpx;
  29. margin-left: 10rpx;
  30. margin-right: 10rpx;
  31. margin-bottom: 20rpx;
  32. padding: 20rpx 20rpx 33rpx 20rpx;
  33. .title{
  34. font-size: 26rpx;
  35. min-height: 60rpx;
  36. }
  37. .img{
  38. margin-top: 10rpx;
  39. width: 100%;
  40. height: 261rpx;
  41. display: block;
  42. margin-left: auto;
  43. margin-right: auto;
  44. background-color: #f6f6f6;
  45. }
  46. }
  47. </style>