lxui-uni 0.0.7 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -36,7 +36,7 @@ const props = withDefaults(defineProps<headerInt>(), {
|
|
|
36
36
|
// 是否显示左侧内容
|
|
37
37
|
leftIconShow: true,
|
|
38
38
|
// 样式部分
|
|
39
|
-
backgroundColor: '
|
|
39
|
+
backgroundColor: '#ffffff', //linear-gradient(90deg, rgba(10, 207, 254, 1) 0%, rgba(74, 92, 255, 1) 100%)
|
|
40
40
|
backgroundColor2: '#ffffff',
|
|
41
41
|
textColor: '#000',
|
|
42
42
|
textFontSize: 34,
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @fileName: List.vue
|
|
5
5
|
* @params {Function} api : 数据请求的接口API
|
|
6
6
|
* @params {Function} afterLoadData : 数据请求完毕前置处理方法
|
|
7
|
-
* @params {Boolean} isNeedSearch :
|
|
7
|
+
* @params {Boolean} isNeedSearch : 是否需要搜索---(暂不可用,>待优化)
|
|
8
8
|
* @params {Boolean} isFixedSearch : 是否需要固定定位搜索框(仅listType:'default'有效)
|
|
9
9
|
* @params {object: any} options : 数据请求的额外参数
|
|
10
10
|
* @params {'default' | 'scrollView'} listType : scrollView为scroll-view包裹的分页
|
|
@@ -73,7 +73,8 @@ const setListParams = (obj: any, isClear = true) => {
|
|
|
73
73
|
}
|
|
74
74
|
defineExpose({
|
|
75
75
|
list,
|
|
76
|
-
setListParams
|
|
76
|
+
setListParams,
|
|
77
|
+
LoadMore
|
|
77
78
|
})
|
|
78
79
|
// 页面滚动相关
|
|
79
80
|
const scrollTop = ref(0)
|
|
@@ -122,13 +122,13 @@ interface LoadDataInt {
|
|
|
122
122
|
export function LoadData({ api, afterLoadData, options, isNeedReachBottom = true }: LoadDataInt) {
|
|
123
123
|
const data = new LoadDataClass(api, afterLoadData, options)
|
|
124
124
|
|
|
125
|
-
//
|
|
126
|
-
if (isNeedReachBottom) {
|
|
127
|
-
onReachBottom(() => {
|
|
128
|
-
console.log('onReachBottom')
|
|
129
|
-
data.LoadMore()
|
|
130
|
-
})
|
|
131
|
-
}
|
|
125
|
+
// 下拉加载---暂时注释通过ref直接调用 >待优化
|
|
126
|
+
// if (isNeedReachBottom) {
|
|
127
|
+
// onReachBottom(() => {
|
|
128
|
+
// console.log('onReachBottom')
|
|
129
|
+
// data.LoadMore()
|
|
130
|
+
// })
|
|
131
|
+
// }
|
|
132
132
|
|
|
133
133
|
return {
|
|
134
134
|
list: data.list,
|
package/package.json
CHANGED
package/theme.scss
CHANGED
|
@@ -21,22 +21,27 @@ image {
|
|
|
21
21
|
@mixin btn-line {
|
|
22
22
|
font-size: $font-size-32;
|
|
23
23
|
color: $main-color;
|
|
24
|
-
padding:
|
|
24
|
+
padding: 0rpx 26rpx;
|
|
25
25
|
border: 2rpx solid $main-color;
|
|
26
26
|
text-align: center;
|
|
27
27
|
border-radius: 180rpx;
|
|
28
28
|
box-sizing: border-box;
|
|
29
|
+
height: 60rpx;
|
|
30
|
+
line-height: 60rpx;
|
|
31
|
+
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
@mixin btn-solid {
|
|
32
35
|
font-size: $font-size-32;
|
|
33
36
|
color: #fff;
|
|
34
37
|
background-color: $main-color;
|
|
35
|
-
padding:
|
|
38
|
+
padding: 0rpx 26rpx;
|
|
36
39
|
border: 2rpx solid $main-color;
|
|
37
40
|
text-align: center;
|
|
38
41
|
border-radius: 8rpx;
|
|
39
42
|
box-sizing: border-box;
|
|
43
|
+
height: 60rpx;
|
|
44
|
+
line-height: 60rpx;
|
|
40
45
|
}
|
|
41
46
|
|
|
42
47
|
// 间隔线
|