diff --git a/packages/semi-ui/select/index.tsx b/packages/semi-ui/select/index.tsx index 3d7fd2cc6a..aee29906f7 100644 --- a/packages/semi-ui/select/index.tsx +++ b/packages/semi-ui/select/index.tsx @@ -170,7 +170,7 @@ export type SelectProps = { onDeselect?: (value: SelectProps['value'], option: Record) => void; onSelect?: (value: SelectProps['value'], option: Record) => void; allowCreate?: boolean; - triggerRender?: (props?: TriggerRenderProps) => React.ReactNode; + triggerRender?: (props: TriggerRenderProps) => React.ReactNode; onClear?: () => void; virtualize?: virtualListProps; onFocus?: (e: React.FocusEvent) => void; diff --git a/packages/semi-ui/treeSelect/index.tsx b/packages/semi-ui/treeSelect/index.tsx index dbdd6f7adc..2749943186 100644 --- a/packages/semi-ui/treeSelect/index.tsx +++ b/packages/semi-ui/treeSelect/index.tsx @@ -143,7 +143,7 @@ export interface TreeSelectProps extends Omit void; renderSelectedItem?: RenderSelectedItem; getPopupContainer?: () => HTMLElement; - triggerRender?: (props?: TriggerRenderProps) => React.ReactNode; + triggerRender?: (props: TriggerRenderProps) => React.ReactNode; onBlur?: (e: React.MouseEvent) => void; onChange?: OnChange; onFocus?: (e: React.MouseEvent) => void;