Skip to content

Commit 9a4ceb2

Browse files
author
xuqingkai
committed
feat: ✨ Swiper轮播为image-mode增加ts类型标注
1 parent 9ab370e commit 9a4ceb2

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • src/uni_modules/wot-design-uni/components/wd-swiper

src/uni_modules/wot-design-uni/components/wd-swiper/types.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import type { ExtractPropTypes, PropType } from 'vue'
22
import { baseProps, makeBooleanProp, makeNumberProp, makeNumericProp, makeStringProp } from '../common/props'
33
import type { SwiperNavProps } from '../wd-swiper-nav/types'
4+
import type { ImageMode } from '../wd-img/types'
45

56
/**
67
* 轮播滑动方向
@@ -141,7 +142,7 @@ export const swiperProps = {
141142
* 类型:string
142143
* 默认值:'aspectFill'
143144
*/
144-
imageMode: makeStringProp('aspectFill'),
145+
imageMode: makeStringProp<ImageMode>('aspectFill'),
145146

146147
/**
147148
* 自定义指示器类名

0 commit comments

Comments
 (0)