mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-30 19:21:53 +08:00
42 lines
1.2 KiB
JavaScript
42 lines
1.2 KiB
JavaScript
|
export default {
|
|||
|
props: {
|
|||
|
// 控制打开或者关闭
|
|||
|
show: {
|
|||
|
type: Boolean,
|
|||
|
default: uni.$u.props.swipeActionItem.show
|
|||
|
},
|
|||
|
// 标识符,如果是v-for,可用index索引值
|
|||
|
name: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.swipeActionItem.name
|
|||
|
},
|
|||
|
// 是否禁用
|
|||
|
disabled: {
|
|||
|
type: Boolean,
|
|||
|
default: uni.$u.props.swipeActionItem.disabled
|
|||
|
},
|
|||
|
// 是否自动关闭其他swipe按钮组
|
|||
|
autoClose: {
|
|||
|
type: Boolean,
|
|||
|
default: uni.$u.props.swipeActionItem.autoClose
|
|||
|
},
|
|||
|
// 滑动距离阈值,只有大于此值,才被认为是要打开菜单
|
|||
|
threshold: {
|
|||
|
type: Number,
|
|||
|
default: uni.$u.props.swipeActionItem.threshold
|
|||
|
},
|
|||
|
// 右侧按钮内容
|
|||
|
options: {
|
|||
|
type: Array,
|
|||
|
default() {
|
|||
|
return uni.$u.props.swipeActionItem.rightOptions
|
|||
|
}
|
|||
|
},
|
|||
|
// 动画过渡时间,单位ms
|
|||
|
duration: {
|
|||
|
type: [String, Number],
|
|||
|
default: uni.$u.props.swipeActionItem.duration
|
|||
|
}
|
|||
|
}
|
|||
|
}
|