Skip to content

Commit 60a2935

Browse files
committed
新增了导入导出excel,以及做了一些优化
1 parent 8312ba1 commit 60a2935

File tree

16 files changed

+740
-507
lines changed

16 files changed

+740
-507
lines changed

components.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ declare module '@vue/runtime-core' {
2424
ElIcon: typeof import('element-plus/es')['ElIcon']
2525
ElImage: typeof import('element-plus/es')['ElImage']
2626
ElInput: typeof import('element-plus/es')['ElInput']
27+
ElLink: typeof import('element-plus/es')['ElLink']
2728
ElMenu: typeof import('element-plus/es')['ElMenu']
2829
ElMenuItem: typeof import('element-plus/es')['ElMenuItem']
2930
ElOption: typeof import('element-plus/es')['ElOption']

package-lock.json

Lines changed: 61 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@
1717
"vue-cropperjs": "^5.0.0",
1818
"vue-router": "^4.1.3",
1919
"vue-schart": "^2.0.0",
20-
"wangeditor": "^4.7.15"
20+
"wangeditor": "^4.7.15",
21+
"xlsx": "^0.18.5"
2122
},
2223
"devDependencies": {
2324
"@vitejs/plugin-vue": "^3.0.0",

public/template.xlsx

9.92 KB
Binary file not shown.

src/App.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
<template>
2-
<router-view />
2+
<el-config-provider :locale="zhCn">
3+
<router-view />
4+
</el-config-provider>
35
</template>
46

7+
<script setup lang="ts">
8+
import { ElConfigProvider } from 'element-plus';
9+
import zhCn from 'element-plus/es/locale/lang/zh-cn';
10+
</script>
511
<style>
612
@import './assets/css/main.css';
713
@import './assets/css/color-dark.css';

src/assets/css/color-dark.css

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,7 @@
1010
.plugins-tips a{
1111
color: #20a0ff;
1212
}
13-
.el-upload--text em {
14-
color: #20a0ff;
15-
}
16-
.pure-button{
17-
background: #20a0ff;
18-
}
13+
1914
.tags-li.active {
2015
border: 1px solid #409EFF;
2116
background-color: #409EFF;

src/assets/css/main.css

Lines changed: 0 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -111,70 +111,6 @@ a {
111111
padding-bottom: 0;
112112
}
113113

114-
/*Upload*/
115-
116-
.pure-button {
117-
width: 150px;
118-
height: 40px;
119-
line-height: 40px;
120-
text-align: center;
121-
color: #fff;
122-
border-radius: 3px;
123-
}
124-
125-
.g-core-image-corp-container .info-aside {
126-
height: 45px;
127-
}
128-
129-
.el-upload--text {
130-
background-color: #fff;
131-
border: 1px dashed #d9d9d9;
132-
border-radius: 6px;
133-
box-sizing: border-box;
134-
width: 360px;
135-
height: 180px;
136-
text-align: center;
137-
cursor: pointer;
138-
position: relative;
139-
overflow: hidden;
140-
}
141-
142-
.el-upload--text .el-icon-upload {
143-
font-size: 67px;
144-
color: #97a8be;
145-
margin: 40px 0 16px;
146-
line-height: 50px;
147-
}
148-
149-
.el-upload--text {
150-
color: #97a8be;
151-
font-size: 14px;
152-
text-align: center;
153-
}
154-
155-
.el-upload--text em {
156-
font-style: normal;
157-
}
158-
159-
/*VueEditor*/
160-
161-
.ql-container {
162-
min-height: 400px;
163-
}
164-
165-
.ql-snow .ql-tooltip {
166-
transform: translateX(117.5px) translateY(10px) !important;
167-
}
168-
169-
.editor-btn {
170-
margin-top: 20px;
171-
}
172-
173-
/*markdown*/
174-
175-
.v-note-wrapper .v-note-panel {
176-
min-height: 500px;
177-
}
178114

179115
[class*=" el-icon-"], [class^=el-icon-] {
180116
speak: none;

0 commit comments

Comments
 (0)