# framework **Repository Path**: only-hh/framework ## Basic Information - **Project Name**: framework - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-09 - **Last Updated**: 2024-08-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: vue2, vite5 ## README 1、node版本 > 16; 2、vscode必须安装Eslint、prettier; 3、图标尽量使用iconfont,iconfont项目成员找 张明达 加入; 4、新建路由需要id,二级路由需要pid,id。方便后续做动态路由; 5、api、images、store都需要模块化; 6、全局组件【component-global】:输入框组件[GInput.vue];文件预览(图片,pdf,word,excel)组件[PreviewFile.vue]。 7、公共组件【component-common】:查询组件[SearchForm.vue],主体内容组件[MainTable.vue],echarts图表组件[EchartBox.vue],可视化组件[ScalePage.vue], 钉钉用户组件[SelectUser.vue] ,格式化金额组件[FormatMoney.vue] 8、已提取公共样式【assets-style】:优先使用global.less, 9、为统一element样式【common.less】已提取弹窗(类名:common-pop__dialog),表格(common-table__box),表单(common-form__box),涉及这三个组件,请加这三个类名;也可自行新增,保持类名一致性 10、全局指令【directive】,已注册弹窗拖拽指令 v-dialogDrag,按钮节流指令v-throttle:2000(默认2s) 11、前端精度问题已配置number-precision,页面可直接用this.$np 【加plus,减minus,乘times,除divide,保留小数round】