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.

41 lines
1.2 KiB

8 months ago
  1. export default {
  2. props: {
  3. // 控制打开或者关闭
  4. show: {
  5. type: Boolean,
  6. default: uni.$u.props.swipeActionItem.show
  7. },
  8. // 标识符,如果是v-for,可用index索引值
  9. name: {
  10. type: [String, Number],
  11. default: uni.$u.props.swipeActionItem.name
  12. },
  13. // 是否禁用
  14. disabled: {
  15. type: Boolean,
  16. default: uni.$u.props.swipeActionItem.disabled
  17. },
  18. // 是否自动关闭其他swipe按钮组
  19. autoClose: {
  20. type: Boolean,
  21. default: uni.$u.props.swipeActionItem.autoClose
  22. },
  23. // 滑动距离阈值,只有大于此值,才被认为是要打开菜单
  24. threshold: {
  25. type: Number,
  26. default: uni.$u.props.swipeActionItem.threshold
  27. },
  28. // 右侧按钮内容
  29. options: {
  30. type: Array,
  31. default() {
  32. return uni.$u.props.swipeActionItem.rightOptions
  33. }
  34. },
  35. // 动画过渡时间,单位ms
  36. duration: {
  37. type: [String, Number],
  38. default: uni.$u.props.swipeActionItem.duration
  39. }
  40. }
  41. }