diff --git a/src/select/util/helper.ts b/src/select/util/helper.ts index 4025c6136..4d51d493a 100644 --- a/src/select/util/helper.ts +++ b/src/select/util/helper.ts @@ -4,7 +4,7 @@ import get from 'lodash/get'; import OptionGroup from '../base/OptionGroup'; import Option from '../base/Option'; -import { SelectValue, TdOptionProps, SelectKeysType, TdSelectProps } from '../type'; +import { SelectValue, TdOptionProps, SelectKeysType, TdSelectProps, SelectOption } from '../type'; type SelectLabeledValue = Required>; @@ -198,7 +198,7 @@ export const getSelectedOptions = ( // 当前所有选中的选项 let currentSelectedOptions = []; // 当前选中的选项 - let currentOption: SelectValue; + let currentOption: SelectOption; if (multiple) { currentSelectedOptions = isObjectType ? (value as Array)