Showing
3 changed files
with
15 additions
and
2 deletions
.husky/lintstagedrc.js
0 → 100644
1 | +module.exports = { | ||
2 | + '*.{js,jsx,ts,tsx}': ['eslint --fix', 'prettier --write'], | ||
3 | + '{!(package)*.json,*.code-snippets,.!(browserslist)*rc}': ['prettier --write--parser json'], | ||
4 | + 'package.json': ['prettier --write'], | ||
5 | + '*.vue': ['eslint --fix', 'prettier --write', 'stylelint --fix'], | ||
6 | + '*.{scss,less,styl,html}': ['stylelint --fix', 'prettier --write'], | ||
7 | + '*.md': ['prettier --write'], | ||
8 | +}; |
.husky/pre-commit
0 → 100755
@@ -44,7 +44,7 @@ | @@ -44,7 +44,7 @@ | ||
44 | </div> | 44 | </div> |
45 | </div> | 45 | </div> |
46 | <div v-else style="display: flex; justify-content: center; align-items: center"> | 46 | <div v-else style="display: flex; justify-content: center; align-items: center"> |
47 | - <div style="position: relative; left: 0rem; top: 3rem">暂无数据</div> | 47 | + <div style="position: relative; left: 0; top: 3rem">暂无数据</div> |
48 | </div> | 48 | </div> |
49 | </Spin> | 49 | </Spin> |
50 | </div> | 50 | </div> |
@@ -78,7 +78,7 @@ | @@ -78,7 +78,7 @@ | ||
78 | defineEmits(['register']); | 78 | defineEmits(['register']); |
79 | const heightNum = ref(800); | 79 | const heightNum = ref(800); |
80 | 80 | ||
81 | - let currentRecord: ExecuteReportRecord = {}; | 81 | + let currentRecord: ExecuteReportRecord = {} as unknown as ExecuteReportRecord; |
82 | 82 | ||
83 | const chartInstance = ref< | 83 | const chartInstance = ref< |
84 | { device: string; name: string; attributes: string[]; active?: string }[] | 84 | { device: string; name: string; attributes: string[]; active?: string }[] |
@@ -265,6 +265,7 @@ | @@ -265,6 +265,7 @@ | ||
265 | </script> | 265 | </script> |
266 | <style lang="less" scoped> | 266 | <style lang="less" scoped> |
267 | @import url('./ReportPreviewModal.less'); | 267 | @import url('./ReportPreviewModal.less'); |
268 | + | ||
268 | .chart-style { | 269 | .chart-style { |
269 | display: flex; | 270 | display: flex; |
270 | flex-wrap: wrap; | 271 | flex-wrap: wrap; |