mkm
/
yanzhiAPP
Template
2
0
Fork 0
yanzhiAPP/node_modules/uview-plus/components/u-swipe-action-item/props.js

43 lines
1.2 KiB
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import defprops from '../../libs/config/props';
export default {
props: {
// 控制打开或者关闭
show: {
type: Boolean,
default: defprops.swipeActionItem.show
},
// 标识符如果是v-for可用index索引值
name: {
type: [String, Number],
default: defprops.swipeActionItem.name
},
// 是否禁用
disabled: {
type: Boolean,
default: defprops.swipeActionItem.disabled
},
// 是否自动关闭其他swipe按钮组
autoClose: {
type: Boolean,
default: defprops.swipeActionItem.autoClose
},
// 滑动距离阈值,只有大于此值,才被认为是要打开菜单
threshold: {
type: Number,
default: defprops.swipeActionItem.threshold
},
// 右侧按钮内容
options: {
type: Array,
default() {
return uni.$u.props.swipeActionItem.rightOptions
}
},
// 动画过渡时间单位ms
duration: {
type: [String, Number],
default: defprops.swipeActionItem.duration
}
}
}