pet/uni_modules/uview-next/components/u-draggable/props.js

55 lines
1.1 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.

export default {
props: {
// 数据列表
list: {
type: Array,
default: ()=> uni.$u.props.draggable.list
},
// 列数
column: {
type: Number,
default: ()=> uni.$u.props.draggable.column
},
// 宽高比填写这项时gridHeight失效
aspectRatio: {
type: Number,
default: ()=> uni.$u.props.draggable.aspectRatio
},
// 项目高度
itemHeight: {
type: [Number, String],
default: ()=> uni.$u.props.draggable.itemHeight
},
// 阻尼系数
damping: {
type: Number,
default: ()=> uni.$u.props.draggable.damping
},
// 摩擦系数
friction: {
type: Number,
default: ()=> uni.$u.props.draggable.friction
},
// 是否使用手柄拖拽
handle: {
type: Boolean,
default: ()=> uni.$u.props.draggable.handle
},
// 是否禁用
disabled: {
type: Boolean,
default: ()=> uni.$u.props.draggable.disabled
},
// 是否长按拖拽
longpress: {
type: Boolean,
default: ()=> uni.$u.props.draggable.longpress
},
// 是否显示关闭按钮
closeable: {
type: Boolean,
default: ()=> uni.$u.props.draggable.closeable
}
},
}