Skip to content

Commit c018560

Browse files
fix: 🐛 修复 GridItem 徽标属性类型标注错误的问题
Closes: #766
1 parent 402f73f commit c018560

File tree

1 file changed

+2
-2
lines changed
  • src/uni_modules/wot-design-uni/components/wd-grid-item

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { ExtractPropTypes, PropType } from 'vue'
2-
import { baseProps, makeBooleanProp, makeStringProp } from '../common/props'
2+
import { baseProps, makeBooleanProp, makeStringProp, numericProp } from '../common/props'
33
import type { BadgeProps, BadgeType } from '../wd-badge/types'
44

55
export type LinkType = 'navigateTo' | 'switchTab' | 'reLaunch' | 'redirectTo'
@@ -60,7 +60,7 @@ export const gridItemProps = {
6060
/**
6161
* 图标右上角 badge 显示值
6262
*/
63-
value: Number,
63+
value: numericProp,
6464
/**
6565
* 图标右上角 badge 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型
6666
*/

0 commit comments

Comments
 (0)