Skip to content

Commit

Permalink
itemHeight should support string type (#715)
Browse files Browse the repository at this point in the history
itemHeight should support string type
  • Loading branch information
rockey2020 committed May 14, 2024
1 parent 59cee2c commit cb3bd83
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/react-vant/src/components/picker/PropsType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export interface PickerCommonProps<T> extends Omit<BaseTypeProps, 'children'> {
/** 是否显示顶部栏 */
showToolbar?: boolean
/** 选项高度,支持 px vw vh rem 单位,默认 px */
itemHeight?: number
itemHeight?: number | string
/** 可见的选项个数 */
visibleItemCount?: number
/** 快速滑动时惯性滚动的时长,单位 ms */
Expand Down Expand Up @@ -103,7 +103,7 @@ export interface PickerColumnProps extends BaseTypeProps {
/** column 列索引 */
index?: number
readOnly?: boolean
itemHeight: number
itemHeight: number | string
value?: string
valueKey: string
textKey: string
Expand Down

0 comments on commit cb3bd83

Please sign in to comment.