fix(pull-refresh): 调整foot高度 (#1181)

* feat(pull-refresh): 调整foot高度

Signed-off-by: jacknan <zhumaonan@aliyun.com>

* feat(pull-refresh): 优化无数据初始状态

Signed-off-by: jacknan <zhumaonan@aliyun.com>

* fix(pull-refresh): 去除移动端橡皮筋效果

Signed-off-by: jacknan <zhumaonan@aliyun.com>

---------

Signed-off-by: jacknan <zhumaonan@aliyun.com>
This commit is contained in:
jacknan 2023-12-22 15:47:26 +08:00 committed by GitHub
parent 0212852422
commit cbabdca9b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 7 additions and 1 deletions

View File

@ -56,6 +56,8 @@ export const pullDownTouchMove = (state, refs, event) => {
}
if (refs.content.scrollTop <= 0) {
event.preventDefault()
state.translate3d = (event.touches[0].clientY - state.draggposition) / 2
state.pullDownReplaces =
Math.abs(state.translate3d) > state.pullDown.headHeight ? state.loosingText : state.pullDown.pullingDownText

View File

@ -66,7 +66,8 @@ export const renderless = (props, { watch, onMounted, reactive, onBeforeUnmount
if (!value) {
state.hasMore = false
}
}
},
{ immediate: true }
)
watch(

View File

@ -87,6 +87,7 @@
justify-content: center;
font-size: var(--ti-mobile-pull-refresh-font-size);
color: var(--ti-mobile-pull-refresh-text-color);
height: var(--ti-mobile-pull-refresh-foot-size-height);
}
@keyframes turn-around {

View File

@ -11,4 +11,6 @@
--ti-mobile-pull-refresh-head-loading-icon-size-inside: 14px;
// 加载圆圈背景色
--ti-mobile-pull-refresh-head-loading-icon-bg-color: #fff;
// 组件foot高度
--ti-mobile-pull-refresh-foot-size-height: 48px;
}