# documentV9 **Repository Path**: aipanshi_com/document-v9 ## Basic Information - **Project Name**: documentV9 - **Description**: 在线学习系统 - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-05-13 - **Last Updated**: 2023-05-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # document-v9 ## Project setup ``` npm install ``` ### Compiles and hot-reloads for development ``` npm run serve ``` ### Compiles and minifies for production ``` npm run build ``` ### Lints and fixes files ``` npm run lint ``` # 组件命名 1. 拆分单文件组件命名时:要么单词首字母都大写(大驼峰),要么都小写用短横线连接 2. 基础组件-应用特定样式和约定的基础组件 (也就是展示类的、无逻辑的或无状态的组件) 应该全部以一个特定的前缀开头,比如 Base、App 或 V。像button icon 这类的 BaseButton 3. 只应该拥有单个活跃实例的组件应该以 The 前缀命名,以示其唯一性。TheHeader 4. 紧密耦合的组件名,和父组件紧密耦合的子组件应该以父组件名作为前缀命名。因为编辑器通常会按字母顺序组织文件,所以这样做可以把相关联的文件排在一起 TodoList TodoListItem TodoListButtom