Open chenfei-hnu opened 3 years ago
编码规范
前端编码规范在此项目实践中需注意的规范点
api 所有后台接口声明 assets 所有图片、文件等静态资源 styles 公共样式 components 公共组件、公共容器 router 路由 icon 所有icon图标 config 常量,固定配置 lang 国际化 utils 公共工具类或函数 pages 页面,对应路由 redux 公共仓库 types TS类型声明
模块容器
编码规范
前端编码规范在此项目实践中需注意的规范点
目录和文件命名
文件夹分类
api 所有后台接口声明 assets 所有图片、文件等静态资源 styles 公共样式 components 公共组件、公共容器 router 路由 icon 所有icon图标 config 常量,固定配置 lang 国际化 utils 公共工具类或函数 pages 页面,对应路由 redux 公共仓库 types TS类型声明
代码格式
语义化标签
模块容器