Não pode escolher mais do que 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 
 
 
 
 

76 linhas
1.5 KiB

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