随笔分类 -  ant-design

摘要:hooks封装ConfirmModel弹框1、components/ConfirmModel/index.tsx import React, { useState, useImperativeHandle } from 'react' import { Modal } from 'antd' import styles from './in 阅读全文
posted @ 2022-03-25 22:24 吴小明- 阅读(254) 评论(0) 推荐(0) 编辑
摘要:react+antd快捷菜单搜索组件:MenuSearch一、MenuSearch/index.tsx import React, { useState, useEffect } from 'react' import { Select } from 'antd' import { history } from 'umi' import styles fr 阅读全文
posted @ 2022-03-07 11:17 吴小明- 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2022-03-02 15:46 吴小明- 阅读(1002) 评论(0) 推荐(0) 编辑
摘要:优化(兼容):antd表格横向滚动在Safari浏览器上的bug谷歌浏览器上可以正常出来横向滚动条: Safari浏览器上的效果(bug): 加上scroll属性后Safari浏览器正常显示: 官网中给出的提示: 阅读全文
posted @ 2022-03-02 14:57 吴小明- 阅读(557) 评论(0) 推荐(0) 编辑
摘要:SchoolYear.tsx /* 学年组件: 1、使用时传入onChange事件,形如:<SchoolYear onChange={onSchoolYearChange} /> 2、默认为选中当前学年,如要不需要,设置 isSelected={false} */ import React, { u 阅读全文
posted @ 2022-02-11 18:19 吴小明- 阅读(141) 评论(0) 推荐(0) 编辑
摘要:安装: npm i rc-tween-one 引入: import TweenOne from 'rc-tween-one' import Children from 'rc-tween-one/lib/plugin/ChildrenPlugin' TweenOne.plugins.push(Chi 阅读全文
posted @ 2022-02-09 17:32 吴小明- 阅读(1006) 评论(0) 推荐(0) 编辑
摘要:1、下载插件: npm i react-pdf 2、PdfPreview/index.tsx /* 进入该组件时,通过路由传递path进来,形如: history.push({ pathname: '/pdfPreview', query: { path } }) */ import React, 阅读全文
posted @ 2021-07-14 20:33 吴小明- 阅读(1153) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示