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

7 months ago
5 months ago
7 months ago
5 months ago
4 months ago
5 months ago
7 months ago
5 months ago
7 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. <userItem :item="keyName ? item[keyName] : item"
  12. @click="$utils.navigateTo('/pages_order/work/userDetail?id=' +
  13. (keyName ? item[keyName] : item).id)"
  14. :createTime="item.createTime"/>
  15. </uv-swipe-action-item>
  16. </view>
  17. </uv-swipe-action>
  18. </template>
  19. <script>
  20. import userItem from './userItem.vue'
  21. export default {
  22. components : {
  23. userItem
  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. default : ''
  41. },
  42. },
  43. data() {
  44. return {
  45. }
  46. },
  47. methods: {
  48. clickSwipeAction(e, item){
  49. this.$emit('clickSwipeAction', {e, item})
  50. },
  51. }
  52. }
  53. </script>
  54. <style scoped lang="scss">
  55. .item{
  56. margin: 20rpx;
  57. border-radius: 20rpx;
  58. overflow: hidden;
  59. }
  60. </style>