小当家
后端开发
·01-21 17:56
记一个小问题,面试鸭项目中,在header搜索框中输入内容跳转到题目大全时,源码中使用title传入defaultSearchParams,但是表格在展示时默认隐藏了标题搜索输入框,所以想在搜索框中显示查询的内容需要在题目列表页面传入searchText而非title ```typescript return ( <div id="questionsPage" className="max-width-content"> <Title level={3}>题目大全</Title> <QuestionTable defaultQuestionList={questionList} defaultTotal={total} defaultSearchParams={{ searchText: searchText, }} /> </div> ); ```
0个评论
点击登录,快来和大家讨论吧~
表情
图片
暂无评论
下载 APP