You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

63 lines
1.2 KiB

  1. <template>
  2. <view class="customlist-banner-action">
  3. <view
  4. v-if="showDelete"
  5. @click="$emit('delete')"
  6. class="customlist-banner-action-btn line-red text-sm"
  7. style="border: currentColor 1px solid"
  8. >
  9. <l-icon type="delete" />
  10. 删除
  11. </view>
  12. <view
  13. v-if="showEdit"
  14. @click="$emit('edit')"
  15. class="customlist-banner-action-btn line-blue text-sm"
  16. style="border: currentColor 1px solid"
  17. >
  18. <l-icon type="edit" />
  19. 编辑
  20. </view>
  21. <view
  22. @click="$emit('view')"
  23. class="customlist-banner-action-btn line-blue text-sm"
  24. style="border: currentColor 1px solid;min-width: 160rpx;"
  25. >
  26. 查看
  27. <l-icon type="right" />
  28. </view>
  29. </view>
  30. </template>
  31. <script>
  32. export default {
  33. name: 'l-customlist-banner',
  34. props: {
  35. showDelete: {},
  36. showEdit: {}
  37. }
  38. }
  39. </script>
  40. <style lang="less" scoped>
  41. .customlist-banner-action {
  42. margin-top: 20rpx;
  43. text-align: right;
  44. .customlist-banner-action-btn {
  45. display: inline-block;
  46. padding: 4px 6px;
  47. margin: 0 3px;
  48. border-radius: 3px;
  49. text-align: center;
  50. }
  51. }
  52. </style>
  53. <style lang="less">
  54. :host {
  55. display: block;
  56. }
  57. </style>