@@ -153,8 +153,9 @@ const OptionItem = (props: {
153153 popoverTitle ?: string ;
154154 draggable ?: boolean ;
155155 optionExtra ?: React . ReactNode ;
156+ scrollable ?: boolean ;
156157} ) => {
157- const { content, config, title, popoverTitle, draggable = true , optionExtra } = props ;
158+ const { content, config, title, popoverTitle, draggable = true , optionExtra, scrollable } = props ;
158159 const [ visible , setVisible ] = useState ( false ) ;
159160 const { attributes, listeners, setNodeRef, transform, transition } = useSortable ( {
160161 id : config . dataIndex ,
@@ -182,6 +183,7 @@ const OptionItem = (props: {
182183 setVisible = { ( vis ) => {
183184 setVisible ( vis ) ;
184185 } }
186+ scrollable = { scrollable }
185187 >
186188 { optionRow }
187189 </ SimplePopover >
@@ -204,6 +206,7 @@ function Option<T extends ConstructorToComp<MultiCompConstructor>>(props: {
204206 optionToolbar ?: React . ReactNode ;
205207 headerItem ?: React . ReactNode ;
206208 itemExtra ?: ( comp : T ) => React . ReactNode ;
209+ scrollable ?: boolean ;
207210} ) {
208211 const { items, uniqVal, headerItem, optionToolbar, itemExtra } = props ;
209212 const itemsDistinctValCount = uniqVal
@@ -286,6 +289,7 @@ function Option<T extends ConstructorToComp<MultiCompConstructor>>(props: {
286289 title = { props . itemTitle ( item ) }
287290 config = { { dataIndex : dataIndex } }
288291 optionExtra = { optionExtra }
292+ scrollable = { props . scrollable }
289293 />
290294 ) ;
291295 } ) }
0 commit comments