import { useJumpDate } from '../useDate' ; import useData from '../data/useData' ; import { useExportParamFunc } from '../useParam' ; export default ( ) => { const { GtData } = useData ( ) ; const { handleJumpTo } = useJumpDate ( ) ; const { updateGanttHeaderUnit } = useExportParamFunc ( ) ; param data function setSelected ( data ) { GtData . setSelectedByData ( data ) ; } return { setSelected , jumpToDate : handleJumpTo , setHeaderUnit : updateGanttHeaderUnit } ; } ;