![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
react-router
文章平均质量分 62
菜鸟小佳
小菜佳
展开
-
实现点击按钮A,隐藏或显示弹出表格A,点击空白区域,隐藏A
/** hidden other link box (on top right of topNavBar) */ private hiddenBox(e: MouseEvent) { const target = e.target as Node; const gearIcon = document.getElementById("tes-topNavBar-gear"); const {showBox} = this.state; if (gearIcon?.c...原创 2021-08-13 14:09:31 · 575 阅读 · 0 评论 -
ts+react 单元测试 测react-route
组件如下 import {Link, Route, Switch, Redirect, withRouter, RouteComponentProps} from "react-router-dom"; /** path of router */ export interface IRoutePath { a: string; b: string; c: string; d: string; e: string; f: string; } //在组件的Prop接口中加 ex原创 2020-07-01 10:57:48 · 487 阅读 · 0 评论