react hooks防抖函数
export const useDebounce = (value, delay = 1000) => { const [debounce, setDebounce] = useState(value); useEffect(() => { ...
export const useDebounce = (value, delay = 1000) => { const [debounce, setDebounce] = useState(value); useEffect(() => { ...
<Col span={5}> <Form.Item label="身份证信息" name='sfzxx' rules={[{ validator: checkL...
后端响应的数据格式文件是由后台生成,传给前端是这样的文件流。前端请求Axios({ url:'xxx', method, responseType:&#...
<Input.Password style={{ height: '46px' }} placeholder='请输入密码' prefix={<UserImg />} /> const UserImg = (props...
/* * @Description: * @Author: pang bo * @Date: 2021-06-28 16:18:17 * @LastEditTime: 2021-06-28 17:20:07 * @LastEditors: Do no...
参考了vue-admin-template中的导出excel/* eslint-disable */ import { saveAs } from 'file-saver' import XLSX from 'xlsx&#...
import React, { useReducer } from 'react'; const PathContext = React.createContext(); const pathReducer = (state, action) ...