Part4-React+Antd+TS开发后台界面
一、CMS后台管理系统创建
1、创建React项目
# 创建名为cms-manage的项目
$ npx create-react-app cms-manage --template typescript
# 或者
$ yarn create react-app cms-manage --template typescript
# 添加antd
npm install antd --save
# 或
yarn add antd
# 添加axios
npm install axios --save
# 或
yarn add axios2、Antd组件
3、解包
a. Git提交
b. 解包
4、配置Less
a. 安装Less
b. Webpack配置
c. Less测试
5、tsconfig
6、搭建基本页面结构(直接套用)
a. 布局
b. 样式
二、路由
1、路由安装
2、路由统一配置
3、入口文件配置
4、路由API
a. 获取路由地址与参数
b. 父组件展示路由对应的子组件
c. 页面跳转
三、富文本编辑器WangEditor
a. 安装
b. Editor组件封装
c. 调用
最后更新于

