You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.6 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

export default {
props: {
// 控制是否出现滚动条仅nvue有效
showScrollbar: {
type: Boolean,
default: uni.$u.props.list.showScrollbar
},
// 距底部多少时触发scrolltolower事件
lowerThreshold: {
type: [String, Number],
default: uni.$u.props.list.lowerThreshold
},
// 距顶部多少时触发scrolltoupper事件非nvue有效
upperThreshold: {
type: [String, Number],
default: uni.$u.props.list.upperThreshold
},
// 设置竖向滚动条位置
scrollTop: {
type: [String, Number],
default: uni.$u.props.list.scrollTop
},
// 控制 onscroll 事件触发的频率仅nvue有效
offsetAccuracy: {
type: [String, Number],
default: uni.$u.props.list.offsetAccuracy
},
// 启用 flexbox 布局。开启后当前节点声明了display: flex就会成为flex container并作用于其孩子节点仅微信小程序有效
enableFlex: {
type: Boolean,
default: uni.$u.props.list.enableFlex
},
// 是否按分页模式显示List默认值false
pagingEnabled: {
type: Boolean,
default: uni.$u.props.list.pagingEnabled
},
// 是否允许List滚动
scrollable: {
type: Boolean,
default: uni.$u.props.list.scrollable
},
// 值应为某子元素idid不能以数字开头
scrollIntoView: {
type: String,
default: uni.$u.props.list.scrollIntoView
},
// 在设置滚动条位置时使用动画过渡
scrollWithAnimation: {
type: Boolean,
default: uni.$u.props.list.scrollWithAnimation
},
// iOS点击顶部状态栏、安卓双击标题栏时滚动条返回顶部只对微信小程序有效
enableBackToTop: {
type: Boolean,
default: uni.$u.props.list.enableBackToTop
},
// 列表的高度
height: {
type: [String, Number],
default: uni.$u.props.list.height
},
// 列表宽度
width: {
type: [String, Number],
default: uni.$u.props.list.width
},
// 列表前后预渲染的屏数1代表一个屏幕的高度1.5代表1个半屏幕高度
preLoadScreen: {
type: [String, Number],
default: uni.$u.props.list.preLoadScreen
}
// vue下是否开启虚拟列表
}
}