From cf0f1af5c422fdcbc0f667bbf864c396506ade27 Mon Sep 17 00:00:00 2001 From: lizmlzhou Date: Tue, 26 Nov 2024 11:29:00 +0800 Subject: [PATCH] fix(vue): fix compoent default prop value --- driver/js/packages/hippy-vue-native-components/src/swiper.ts | 4 ++-- .../js/packages/hippy-vue-native-components/src/ul-refresh.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/driver/js/packages/hippy-vue-native-components/src/swiper.ts b/driver/js/packages/hippy-vue-native-components/src/swiper.ts index 189643c5eac..e6d2cc8b278 100644 --- a/driver/js/packages/hippy-vue-native-components/src/swiper.ts +++ b/driver/js/packages/hippy-vue-native-components/src/swiper.ts @@ -63,11 +63,11 @@ function registerSwiper(Vue: any) { props: { current: { type: Number, - defaultValue: 0, + default: 0, }, needAnimation: { type: Boolean, - defaultValue: true, + default: true, }, }, watch: { diff --git a/driver/js/packages/hippy-vue-native-components/src/ul-refresh.ts b/driver/js/packages/hippy-vue-native-components/src/ul-refresh.ts index 39d37a954c4..1e5784cff18 100644 --- a/driver/js/packages/hippy-vue-native-components/src/ul-refresh.ts +++ b/driver/js/packages/hippy-vue-native-components/src/ul-refresh.ts @@ -49,7 +49,7 @@ function registerUlRefresh(Vue: any) { props: { bounceTime: { type: Number, - defaultValue: 100, + default: 100, }, }, methods: {