|
@@ -28,26 +28,23 @@ export default defineComponent({
|
|
|
() => props.modelValue,
|
|
|
(val: boolean) => {
|
|
|
state.fullState = val
|
|
|
- // console.log('刷新结束')
|
|
|
- // emit('update:modelValue', val)
|
|
|
}
|
|
|
)
|
|
|
watch(
|
|
|
() => state.fullState,
|
|
|
(val: boolean) => {
|
|
|
- console.log('刷新结束')
|
|
|
emit('update:modelValue', val)
|
|
|
}
|
|
|
)
|
|
|
return () => (
|
|
|
<PullRefresh v-model:modelValue={state.fullState} onRefresh={props.onRefresh}>
|
|
|
{{
|
|
|
- pulling: () => (
|
|
|
+ loading: () => (
|
|
|
<div>
|
|
|
{<Vue3Lottie class={styles.animateWrap} animationData={AstronautJSON}></Vue3Lottie>}
|
|
|
</div>
|
|
|
),
|
|
|
- loading: () => (
|
|
|
+ pulling: () => (
|
|
|
<div>
|
|
|
{<Vue3Lottie class={styles.animateWrap} animationData={AstronautJSON}></Vue3Lottie>}
|
|
|
</div>
|