01 2023 档案

摘要:1、下载 下载地址:https://github.com/coreybutler/nvm-windows/releases 2、安装 2.1、卸载已有的所有node等 2.2、安装路径最好是C:\nvm 2.3、下载完找到nvm的安装目录,打开setting.txt文件,添加上下面两个配置 node 阅读全文
posted @ 2023-01-09 16:46 王希有 阅读(127) 评论(0) 推荐(0)
摘要:"react": "^18.2.0", "antd": "^5.1.1", 先看效果(不选和多选) // 假设后端返回数据结构 const data = { fruit: [ { label: 'Apple', value: 'apple' }, { label: 'Pear', value: 'p 阅读全文
posted @ 2023-01-04 15:40 王希有 阅读(1566) 评论(0) 推荐(0)
摘要:因react-router中路由配置时,子路由为父级路由+子路由拼接而成,故当实现面包屑时需要根据当前路由获取完整的父子路由链 入参:如 /layout/list/showList 出参:如 ['/layout', '/layout/list', '/layout/list/showList'] i 阅读全文
posted @ 2023-01-03 11:27 王希有 阅读(643) 评论(0) 推荐(0)
摘要:// antd: 5.1.1 import React from "react"; // 1、自定义图片 // import Icon from '@ant-design/icons'; // import Logo from '@/assets/Logo.png' // import './ind 阅读全文
posted @ 2023-01-03 10:49 王希有 阅读(3374) 评论(0) 推荐(1)
摘要:版本: react: 18.2.0 antd:5.1.1 AnchorPage,tsx import React, { useEffect, useState } from 'react'; import { Anchor, Row, Col } from 'antd'; const AnchorP 阅读全文
posted @ 2023-01-03 10:31 王希有 阅读(1464) 评论(0) 推荐(0)