Browse Source

下拉刷新

1
mo 2 years ago
parent
commit
3d2f999fac
1 changed files with 2 additions and 5 deletions
  1. 2 5
      src/components/o-full-refresh/index.tsx

+ 2 - 5
src/components/o-full-refresh/index.tsx

@@ -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>