特易招,招聘小程序
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.

61 lines
1004 B

6 months ago
6 months ago
3 months ago
6 months ago
2 months ago
6 months ago
4 months ago
6 months ago
6 months ago
6 months ago
  1. <template>
  2. <uv-swipe-action>
  3. <view
  4. v-for="(item, index) in list"
  5. class="item"
  6. :key="item.id"
  7. >
  8. <uv-swipe-action-item
  9. @click="e => clickSwipeAction(e, item)"
  10. :options="options">
  11. <workItem
  12. @click="$utils.navigateTo('/pages_order/work/workDetail?id=' +
  13. (keyName ? item[keyName] : item).id)"
  14. :item="keyName ? item[keyName] : item"/>
  15. </uv-swipe-action-item>
  16. </view>
  17. </uv-swipe-action>
  18. </template>
  19. <script>
  20. import workItem from './workItem.vue'
  21. export default {
  22. components : {
  23. workItem
  24. },
  25. props : {
  26. options : {
  27. default : [
  28. {
  29. text: '删除',
  30. style: {
  31. backgroundColor: '#FA5A0A'
  32. }
  33. },
  34. ],
  35. },
  36. list : {
  37. default : []
  38. },
  39. keyName : {}
  40. },
  41. data() {
  42. return {
  43. }
  44. },
  45. methods: {
  46. clickSwipeAction(e, item){
  47. this.$emit('clickSwipeAction', {e, item})
  48. },
  49. }
  50. }
  51. </script>
  52. <style scoped lang="scss">
  53. .item{
  54. margin: 20rpx;
  55. border-radius: 20rpx;
  56. overflow: hidden;
  57. }
  58. </style>