# yz **Repository Path**: youkaisteve/yz ## Basic Information - **Project Name**: yz - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2018-04-01 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # project-template 项目模板 ## GuideLine - js使用es6版本 - 所有的js采用flow语法 - 所有的异步操作全部使用async/await - 对于异步方法必须添加后缀`Async`,同步方法可以加`Sync`也可以不加 - 所有复杂的业务或者功能都需要添加注释 ### react - component的定义,尽量一个文件一个component.文件名和component的名字保持一致 - component的名称所有首字母大写 - 引用的component的名称和定义的名称保持一致 - 所有的页面都定义在`portal/pages`文件夹 ### style - 所有的样式尽量都采用sass - 功能相似或者样式相似的style定义在同一个文件中 ## How To? ### DataTable [react-component-data-table](https://github.com/m860/react-component-data-table) ### css grid/form/button/table/menu [purecss](https://purecss.io/) ### git registry npm config set registry https://registry.npm.taobao.org ### visual studio code config - 安装插件:Flow Language Support - 执行 npm install flow-bin -g 接下来就可以使用Flow语法以及vscode提供的强大只能提示了!