diff --git a/packages/amis-ui/src/components/PickerColumn.tsx b/packages/amis-ui/src/components/PickerColumn.tsx index 75abadc9606..69f7ff2d068 100644 --- a/packages/amis-ui/src/components/PickerColumn.tsx +++ b/packages/amis-ui/src/components/PickerColumn.tsx @@ -12,7 +12,7 @@ import React, { } from 'react'; import isObject from 'lodash/isObject'; import cloneDeep from 'lodash/cloneDeep'; -import {uncontrollable, highlight} from 'amis-core'; +import {uncontrollable, highlight, labelToString} from 'amis-core'; import {useSetState, useUpdateEffect} from '../hooks'; import {range} from 'amis-core'; @@ -96,9 +96,9 @@ const PickerColumn = forwardRef<{}, PickerColumnProps>((props, ref) => { const getOptionText = (option: [] | PickerOption) => { if (isObject(option) && labelField in option) { //@ts-ignore - return option[labelField]; + return labelToString(option[labelField]); } - return option; + return labelToString(option); }; const getOptionValue = (option: [] | PickerOption) => {