# vue3-admin-2305 **Repository Path**: connerljlx_admin/vue3-admin-2305 ## Basic Information - **Project Name**: vue3-admin-2305 - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2023-12-26 - **Last Updated**: 2024-01-14 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 项目启动 + 安装开发依赖 ```sh npm i element-plus axios js-cookie -S ``` + 项目目录 ```js src + api // 接口请求 + assets // 静态资源 + components // 组件 + layout // 布局 + router // 路由 + stores // pinia + utils // 工具 + views // 页面 + types // 类型 ts 接口 ``` + 基础开发配置 服务器相关 路径别名 + 工具函数封装 # 封装组件思路 + 复用性 易用性 不能在子组件中 管理业务 (业务 一定要在父组件中管理) 处理业务时。触发子组件事件 告诉父组件来处理(携带需要参数) 定义合理props (定义合理默认值), 定义合理插槽 表单相关数据 在子组件data中管理(双向绑定,如果 通过 props传递,则破坏单向数据流)