File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @modelscope-studio/antd ' : patch
3+ ---
4+
5+ fix: ensure the load_data event returns a Proimse
Original file line number Diff line number Diff line change @@ -63,7 +63,8 @@ export const TreeSelect = sveltify<
6363 const componentProps : TreeSelectProps = useMemo ( ( ) => {
6464 return {
6565 ...props ,
66- loadData : onLoadData ,
66+ // eslint-disable-next-line require-await
67+ loadData : async ( ...args ) => onLoadData ?.( ...args ) ,
6768 treeData :
6869 treeData ||
6970 renderItems < NonNullable < TreeSelectProps [ 'treeData' ] > [ number ] > (
Original file line number Diff line number Diff line change @@ -101,7 +101,8 @@ export const Tree = sveltify<
101101 nodeDraggable : draggableNodeDraggableFunction ,
102102 }
103103 : draggableFunction || draggable ,
104- loadData : onLoadData ,
104+ // eslint-disable-next-line require-await
105+ loadData : async ( ...args : any [ ] ) => onLoadData ?.( ...args ) ,
105106 } ;
106107 } , [
107108 props ,
You can’t perform that action at this time.
0 commit comments