随笔分类 - ant-design
摘要:
1、components/ConfirmModel/index.tsx import React, { useState, useImperativeHandle } from 'react' import { Modal } from 'antd' import styles from './in
阅读全文

摘要:
一、MenuSearch/index.tsx import React, { useState, useEffect } from 'react' import { Select } from 'antd' import { history } from 'umi' import styles fr
阅读全文

摘要:
谷歌浏览器上可以正常出来横向滚动条: Safari浏览器上的效果(bug): 加上scroll属性后Safari浏览器正常显示: 官网中给出的提示:
阅读全文

摘要:SchoolYear.tsx /* 学年组件: 1、使用时传入onChange事件,形如:<SchoolYear onChange={onSchoolYearChange} /> 2、默认为选中当前学年,如要不需要,设置 isSelected={false} */ import React, { u
阅读全文
摘要:安装: npm i rc-tween-one 引入: import TweenOne from 'rc-tween-one' import Children from 'rc-tween-one/lib/plugin/ChildrenPlugin' TweenOne.plugins.push(Chi
阅读全文
摘要:1、下载插件: npm i react-pdf 2、PdfPreview/index.tsx /* 进入该组件时,通过路由传递path进来,形如: history.push({ pathname: '/pdfPreview', query: { path } }) */ import React,
阅读全文