diff --git a/components/wd-button/wd-button.vue b/components/wd-button/wd-button.vue index 8b2610d90c8ebe78e2726179bb83f2b688ec0d96..c25b26965ccfb9470cc3c2ab9e3b2a1576c3220d 100644 --- a/components/wd-button/wd-button.vue +++ b/components/wd-button/wd-button.vue @@ -18,7 +18,7 @@ ]" :hover-start-time="hoverStartTime" :hover-stay-time="hoverStayTime" - :open-type="openTypeValue" + :open-type="openTypeValue as UniHelper.ButtonOpenType" :send-message-title="sendMessageTitle" :send-message-path="sendMessagePath" :send-message-img="sendMessageImg" diff --git a/components/wd-fab/types.ts b/components/wd-fab/types.ts index 50ca94f1a95a54c95fe68d9ed3535b45f1e36bcc..57b5ceb1143a0e9385cc280fe8054ed87f255807 100644 --- a/components/wd-fab/types.ts +++ b/components/wd-fab/types.ts @@ -87,7 +87,7 @@ export const fabProps = { */ gap: { type: Object as PropType, - default: () => ({}) + default: (): FabGap => ({}) }, /** * 点击时是否展开菜单 diff --git a/components/wd-swiper/wd-swiper.vue b/components/wd-swiper/wd-swiper.vue index c662e565171dad9c350b7215dddd3e8fc11320ab..54a5260a40ed1d6554a7e1b2158f94d8598b1c10 100644 --- a/components/wd-swiper/wd-swiper.vue +++ b/components/wd-swiper/wd-swiper.vue @@ -158,9 +158,9 @@ const swiperIndicator = computed(() => { indicatorPosition: indicatorPosition || 'bottom' } if (isObj(indicator)) { - swiperIndicator.type = indicator.type || 'dots' - swiperIndicator.minShowNum = indicator.minShowNum || 2 - swiperIndicator.showControls = indicator.showControls || false + swiperIndicator.type = (indicator as Partial).type || 'dots' + swiperIndicator.minShowNum = (indicator as Partial).minShowNum || 2 + swiperIndicator.showControls = (indicator as Partial).showControls || false } return swiperIndicator }) diff --git a/components/wd-tour/wd-tour.vue b/components/wd-tour/wd-tour.vue index d1c6e895a819a4e15178930c3869a7034d741887..2eacba3bb4b20621d94465d17a94d88ccea6195e 100644 --- a/components/wd-tour/wd-tour.vue +++ b/components/wd-tour/wd-tour.vue @@ -69,7 +69,7 @@ export default {