props.js
1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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
}
}
}