江西小程序管理端
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.

37 lines
611 B

12 months ago
12 months ago
  1. <template>
  2. <view>
  3. <u-swipe-action>
  4. <u-swipe-action-item
  5. @click="cancelBind"
  6. :options="options1"
  7. >
  8. <slot></slot>
  9. </u-swipe-action-item>
  10. </u-swipe-action>
  11. </view>
  12. </template>
  13. <script>
  14. export default {
  15. data() {
  16. return {
  17. options1: [{
  18. text: '解除绑定',
  19. style: {
  20. backgroundColor: '#f94242',
  21. borderRadius: '16rpx',
  22. padding: '16rpx'
  23. }
  24. }]
  25. };
  26. },
  27. methods: {
  28. cancelBind(val) {
  29. this.$emit('cancelBind')
  30. }
  31. }
  32. };
  33. </script>
  34. <style lang="scss">
  35. </style>