We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 402f73f commit c018560Copy full SHA for c018560
src/uni_modules/wot-design-uni/components/wd-grid-item/types.ts
@@ -1,5 +1,5 @@
1
import type { ExtractPropTypes, PropType } from 'vue'
2
-import { baseProps, makeBooleanProp, makeStringProp } from '../common/props'
+import { baseProps, makeBooleanProp, makeStringProp, numericProp } from '../common/props'
3
import type { BadgeProps, BadgeType } from '../wd-badge/types'
4
5
export type LinkType = 'navigateTo' | 'switchTab' | 'reLaunch' | 'redirectTo'
@@ -60,7 +60,7 @@ export const gridItemProps = {
60
/**
61
* 图标右上角 badge 显示值
62
*/
63
- value: Number,
+ value: numericProp,
64
65
* 图标右上角 badge 最大值,超过最大值会显示 '{max}+',要求 value 是 Number 类型
66
0 commit comments