Skip to content

Commit

Permalink
fix(picker): 修复ts类型错误 (#241)
Browse files Browse the repository at this point in the history
  • Loading branch information
RJQingHuan committed Mar 9, 2024
1 parent fa425f7 commit 1e83035
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/nutui/components/picker/picker.ts
Expand Up @@ -8,7 +8,7 @@ export const pickerProps = {
/**
* @description 默认选中项
*/
modelValue: makeArrayProp<(string | number)[]>([]),
modelValue: makeArrayProp<(string | number)>([]),
/**
* @description 设置标题
*/
Expand All @@ -24,7 +24,7 @@ export const pickerProps = {
/**
* @description 对象数组,配置每一列显示的数据
*/
columns: makeArrayProp<(PickerOption | PickerOption[])[]>([]),
columns: makeArrayProp<(PickerOption | PickerOption[])>([]),
/**
* @description 是否开启3D效果
*/
Expand Down
1 change: 1 addition & 0 deletions packages/nutui/components/picker/use-picker.ts
Expand Up @@ -7,6 +7,7 @@ const DEFAULT_FILED_NAMES = {
text: 'text',
value: 'value',
children: 'children',
className: '',
}

export const componentName = `${PREFIX}-picker`
Expand Down
2 changes: 1 addition & 1 deletion packages/nutui/components/pickercolumn/types.ts
Expand Up @@ -27,5 +27,5 @@ export interface PickerFieldNames {
text?: string
value?: string
children?: string
className: string
className?: string
}

0 comments on commit 1e83035

Please sign in to comment.