view-button-item.vue 826 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <template>
  2. <view class="ui-flex-column text-center ui-p bottom-btn-item" @click="onClick">
  3. <image :src="src" style="width: 40px;height: 40px;" mode=""></image>
  4. <view style="line-height: 1;">
  5. <text class="txt-white f24">{{title}}</text>
  6. </view>
  7. </view>
  8. </template>
  9. <script>
  10. export default {
  11. props : {
  12. src : '',
  13. title : ''
  14. },
  15. methods : {
  16. onClick(e){
  17. this.$emit('click')
  18. }
  19. }
  20. }
  21. </script>
  22. <style>
  23. .bottom-btn-item,
  24. .bottom-btn-item-disabled{
  25. position: relative;
  26. }
  27. .bottom-btn-item-disabled{
  28. opacity: 0.5;
  29. }
  30. .bottom-btn-item:hover {
  31. cursor: pointer;
  32. background-color: #ffffff3b;
  33. border-radius: 8px;
  34. }
  35. </style>