Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
M
msg-middle-manage
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
张超
msg-middle-manage
Commits
685036e2
提交
685036e2
authored
4月 03, 2023
作者:
zhangchao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
init
上级
b460c0c5
显示空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
74 行增加
和
14 行删除
+74
-14
components.d.ts
components.d.ts
+4
-0
App.vue
src/App.vue
+8
-1
auto-imports.d.ts
src/auto-imports.d.ts
+1
-0
BlankLayout.vue
src/layouts/BlankLayout.vue
+0
-0
DefaultHeader.vue
src/layouts/default/components/DefaultHeader.vue
+10
-4
index.vue
src/layouts/default/index.vue
+33
-6
index.vue
src/pages/index.vue
+1
-0
index.ts
src/router/index.ts
+0
-0
base.css
src/styles/base.css
+9
-1
main.css
src/styles/main.css
+2
-1
tsconfig.config.json
tsconfig.config.json
+1
-1
vite.config.ts
vite.config.ts
+5
-0
没有找到文件。
components.d.ts
浏览文件 @
685036e2
...
...
@@ -7,7 +7,11 @@ export {}
declare
module
'@vue/runtime-core'
{
export
interface
GlobalComponents
{
ElAside
:
typeof
import
(
'element-plus/es'
)[
'ElAside'
]
ElButton
:
typeof
import
(
'element-plus/es'
)[
'ElButton'
]
ElContainer
:
typeof
import
(
'element-plus/es'
)[
'ElContainer'
]
ElHeader
:
typeof
import
(
'element-plus/es'
)[
'ElHeader'
]
ElMain
:
typeof
import
(
'element-plus/es'
)[
'ElMain'
]
RouterLink
:
typeof
import
(
'vue-router'
)[
'RouterLink'
]
RouterView
:
typeof
import
(
'vue-router'
)[
'RouterView'
]
SvgIcon
:
typeof
import
(
'./src/components/sys/SvgIcon.vue'
)[
'default'
]
...
...
src/App.vue
浏览文件 @
685036e2
<
script
setup
lang=
"ts"
>
import
{
Router
Link
,
RouterView
}
from
"vue-router"
;
import
{
Router
View
}
from
"vue-router"
;
</
script
>
<
template
>
...
...
@@ -7,3 +7,10 @@ import { RouterLink, RouterView } from "vue-router";
<router-view
/>
</div>
</
template
>
<
style
lang=
"less"
>
#app {
width: 100%;
height: 100%;
flex: 1;
}
</
style
>
src/auto-imports.d.ts
浏览文件 @
685036e2
...
...
@@ -36,6 +36,7 @@ declare global {
const
readonly
:
typeof
import
(
'vue'
)[
'readonly'
]
const
ref
:
typeof
import
(
'vue'
)[
'ref'
]
const
resolveComponent
:
typeof
import
(
'vue'
)[
'resolveComponent'
]
const
resolveDirective
:
typeof
import
(
'vue'
)[
'resolveDirective'
]
const
shallowReactive
:
typeof
import
(
'vue'
)[
'shallowReactive'
]
const
shallowReadonly
:
typeof
import
(
'vue'
)[
'shallowReadonly'
]
const
shallowRef
:
typeof
import
(
'vue'
)[
'shallowRef'
]
...
...
src/layouts/BlankLayout.vue
浏览文件 @
685036e2
src/layouts/default/components/DefaultHeader.vue
浏览文件 @
685036e2
<
template
>
<
header>
头部
</header>
<
div
class=
"header-wrapper"
>
消息中台header
</div>
</
template
>
<
script
lang=
"ts"
setup
name=
"DefaultHeader"
></
script
>
<
style
scoped
>
header
{
background-color
:
antiquewhite
;
<
style
scoped
lang=
"less"
>
.header-wrapper {
background-color: var(--color-background);
height: 64px;
line-height: 64px;
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.1);
position: relative;
z-index: 9999;
padding: 0 var(--page-padding);
}
</
style
>
src/layouts/default/index.vue
浏览文件 @
685036e2
<
template
>
<div
class=
"relative"
>
<Default-header
/>
<!--
<Default-header
/>
-->
<div
class=
"main-wrapper h-full"
>
<el-container
class=
"h-full"
>
<el-header>
消息中台系统
</el-header>
<el-container
class=
"h-full"
>
<el-aside
width=
"200px"
>
Aside
</el-aside>
<el-main>
<router-view
v-slot=
"
{ Component, route }">
<keep-alive>
<component
:is=
"Component"
v-if=
"route.meta.keepAlive"
></component>
<component
:is=
"Component"
v-if=
"route.meta.keepAlive"
></component>
</keep-alive>
<component
:is=
"Component"
v-if=
"!route.meta.keepAlive"
></component>
<component
:is=
"Component"
v-if=
"!route.meta.keepAlive"
></component>
</router-view>
<Default-footer
/>
</el-main>
</el-container>
</el-container>
</div>
</div>
</
template
>
<
script
lang=
"ts"
setup
name=
"DefaultLayout"
>
import
DefaultHeader
from
"./components/DefaultHeader.vue"
;
import
DefaultFooter
from
"./components/DefaultFooter.vue"
;
// import DefaultHeader from "./components/DefaultHeader.vue";
</
script
>
<
style
lang=
"less"
>
.relative {
width: 100%;
height: 100%;
.el-header {
box-shadow: 0 0 5px 0 rgba(0, 0, 0, 0.1);
}
.el-aside {
// background-color: #79bbff;
box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.1);
}
}
</
style
>
src/pages/index.vue
浏览文件 @
685036e2
...
...
@@ -2,3 +2,4 @@
redirect:
name: home
</route>
<
template
></
template
>
src/router/index.ts
浏览文件 @
685036e2
src/styles/base.css
浏览文件 @
685036e2
...
...
@@ -36,6 +36,10 @@
--section-gap
:
160px
;
}
:root
{
--page-padding
:
20px
;
}
@media
(
prefers-color-scheme
:
dark
)
{
:root
{
--color-background
:
var
(
--vt-c-black
);
...
...
@@ -59,8 +63,12 @@
font-weight
:
normal
;
}
html
,
body
{
height
:
100%
;
}
body
{
min-height
:
100vh
;
color
:
var
(
--color-text
);
background
:
var
(
--color-background
);
transition
:
color
0.5s
,
background-color
0.5s
;
...
...
src/styles/main.css
浏览文件 @
685036e2
@import
"./base.css"
;
#app
{
max-width
:
1280px
;
/* max-width: 1280px; */
width
:
100%
;
margin
:
0
auto
;
/* padding: 2rem; */
...
...
tsconfig.config.json
浏览文件 @
685036e2
...
...
@@ -3,6 +3,6 @@
"include"
:
[
"vite.config.*"
,
"vitest.config.*"
,
"cypress.config.*"
],
"compilerOptions"
:
{
"composite"
:
true
,
"types"
:
[
"node"
]
"types"
:
[
"node"
,
"element-plus/global"
]
}
}
vite.config.ts
浏览文件 @
685036e2
...
...
@@ -98,4 +98,9 @@ export default defineConfig({
"@"
:
fileURLToPath
(
new
URL
(
"./src"
,
import
.
meta
.
url
)),
},
},
server
:
{
hmr
:
true
,
open
:
true
,
port
:
6714
,
},
});
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论