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

2.6 KiB

下拉框**

1.dropLeftList: type: Array, default: [] // 左边下拉内容名称list

2.dropRightList: type: Array, default: [] // 右边下拉内容名称list

3.@drop :drop(id,isLeft,selectData) // 监听用户选择的条目id,是否是左侧按钮的下拉,选中的数据

4.closeDrop() // 关闭下拉框

导航栏**

1.hasBack: type: Boolean,default: true // 是否有返回键

2.useDownScroll: type: Boolean,default: true // 是否支持下拉刷新

3.useUpScroll: ype: Boolean,default: true // 是否支持上拉加载 // 使用上拉加载时 需引入 // import MescrollMixin from "@/components/mescroll-uni/mescroll-mixins.js"; // mixins: [MescrollMixin]

4.text: type: String,default: "" // 导航栏标题

5.useTitleLeftBtn: type: String,default: "0" // 导航栏最右边的两个按钮其中左边的按钮 0不使用 1使用文字 2使用图片

6.useTitleRightBtn: type: String,default: "0" // 导航栏最右边的两个按钮其中右边的按钮 0不使用 1使用文字 2使用图片

7.titleLeftBtnSource: type: String,default: "" // 导航栏最右边的两个按钮其中左边的按钮文字或图片资源

8.titleRightBtnSource: type: String,default: "" // 导航栏最右边的两个按钮其中右边的按钮文字或图片资源

9.@refresh: refresh(page) // 下拉或上拉的监听 参数为当前请求的页数

10.@leftBtn: // 导航栏最右边的两个按钮其中左边的按钮点击的监听

11.@rightBtn: // 导航栏最右边的两个按钮其中右边的按钮点击的监听

12.方法: refreshFinished() // 网络请求成功后关闭下拉刷新动画与上拉加载动画 // 如果为分页请求 参数为当前接口返回list数据的长度(必须) // 否则参数可不传

13.方法: refreshError() // 网络请求失败后关闭下拉刷新动画与上拉加载动画

14.方法: resetPageOne() // 调用此方法可重置为第一页(比如说退赛需要重新刷新列表,调用此方法会响应 @refresh 监听)

15.pageBg: type: String,default: "" // 页面背景色

16.barColor: type: String,default: "" // 顶部导航栏颜色

17.isShareIn: type: Boolean,default: true // 是否是分享进入(分享进入返回键会显示主页) // h5分享时需加入 isShareIn=true 小程序分享时onShareAppMessage() 也需加入isShareIn=true

18.isInterceptBack: type: Boolean,default: false // 是否拦截返回键 // :isInterceptBack="true" @backClick = "方法名" // 点击返回时会回调到上面设置方法名的那个方法里