File tree 6 files changed +26
-11
lines changed
6 files changed +26
-11
lines changed Original file line number Diff line number Diff line change 6
6
< meta name ="viewport " content ="width=device-width, initial-scale=1.0 " />
7
7
< title > Vite App</ title >
8
8
</ head >
9
+
10
+ < style type ="text/css ">
11
+ html , body {
12
+ height : 100% ;
13
+ margin : 0 ;
14
+ }
15
+
16
+ </ style >
17
+
9
18
< body >
10
- < div id ="app "> </ div >
19
+ < div id ="app " style =" height:100%; " > </ div >
11
20
< script type ="module " src ="/src/main.js "> </ script >
12
21
</ body >
13
22
</ html >
Original file line number Diff line number Diff line change 23
23
},
24
24
"dependencies" : {
25
25
"@babel/parser" : " ^7.11.5" ,
26
+ "@element-plus/icons" : " 0.0.11" ,
26
27
"@originjs/vite-plugin-require-context" : " ^1.0.9" ,
27
28
"@vitejs/plugin-vue" : " ^1.10.0" ,
28
29
"@vue/compat" : " ^3.2.22" ,
Original file line number Diff line number Diff line change 11
11
< noscript >
12
12
< strong > We're sorry but < %= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</ strong >
13
13
</ noscript >
14
- < div id ="app "> </ div >
14
+ < div id ="app " style =" height:100%; " > </ div >
15
15
<!-- built files will be auto injected -->
16
16
</ body >
17
17
</ html >
Original file line number Diff line number Diff line change 19
19
<div >
20
20
<el-dropdown @command =" handleCommand" >
21
21
<span class =" el-dropdown-link" >
22
- <i ref = " help " class = " el-icon-question " style =" font-size :22px ;color :#4dba87 ;" ></ i >
22
+ <el-icon style =" font-size :22px ;color :#4dba87 ;" ><question-filled /></ el-icon >
23
23
</span >
24
- <el-dropdown-menu slot =" dropdown" >
25
- <el-dropdown-item icon =" el-icon-circle-check" >基础组件数: {{ componentUnitNum }}
26
- </el-dropdown-item >
27
- <el-dropdown-item icon =" el-icon-document" command =" lcg" >LCG平台</el-dropdown-item >
28
- <el-dropdown-item icon =" el-icon-document" command =" help" >说明文档</el-dropdown-item >
29
- <el-dropdown-item icon =" el-icon-chat-line-round" command =" chat" >在线沟通</el-dropdown-item >
30
- </el-dropdown-menu >
24
+ <template #dropdown >
25
+ <el-dropdown-menu >
26
+ <el-dropdown-item icon =" el-icon-circle-check" >基础组件数: {{ componentUnitNum }}
27
+ </el-dropdown-item >
28
+ <el-dropdown-item icon =" el-icon-document" command =" lcg" >LCG平台</el-dropdown-item >
29
+ <el-dropdown-item icon =" el-icon-document" command =" help" >说明文档</el-dropdown-item >
30
+ <el-dropdown-item icon =" el-icon-chat-line-round" command =" chat" >在线沟通</el-dropdown-item >
31
+ </el-dropdown-menu >
32
+ </template >
31
33
</el-dropdown >
32
34
</div >
33
35
</div >
Original file line number Diff line number Diff line change 1
1
import { createApp , compile } from "vue" ;
2
2
import ElementPlus from "element-plus" ;
3
+ import { QuestionFilled } from "@element-plus/icons" ;
4
+
3
5
import "element-plus/dist/index.css" ;
4
6
import APP from "./App.vue" ;
5
7
6
8
function createBaseApp ( renderComponent = { } ) {
7
9
const app = createApp ( renderComponent ) ;
8
10
app . use ( ElementPlus ) ;
11
+ app . component ( "question-filled" , QuestionFilled )
9
12
return app ;
10
13
}
11
14
You can’t perform that action at this time.
0 commit comments