update styles
This commit is contained in:
1 parent
32fd986555
commit
83b9afcd33
7 files changed
+70
-28
No files matched your search
+1
-1
@@ -7,7 +7,7 @@
|
||||
<title>知数云</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="app"></div>
|
||||
<div id="app" class="h-screen"></div>
|
||||
<script type="module" src="/src/main.ts"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -10,4 +10,21 @@ body {
|
||||
|
||||
#app {
|
||||
background-color: #f5f5f5;
|
||||
.el-menu {
|
||||
border-right: none;
|
||||
}
|
||||
|
||||
.el-card {
|
||||
border: none;
|
||||
border-radius: 12px;
|
||||
}
|
||||
|
||||
.el-menu-item.is-active {
|
||||
background-color: var(--el-menu-item-hover-fill);
|
||||
}
|
||||
|
||||
.el-breadcrumb__inner a,
|
||||
.el-breadcrumb__inner.is-link {
|
||||
color: var(--el-text-color-regular);
|
||||
}
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<el-breadcrumb separator="/">
|
||||
<el-breadcrumb separator="/" class="breadcrumb">
|
||||
<el-breadcrumb-item :to="{ path: '/' }">{{ $t('common.nav.home') }}</el-breadcrumb-item>
|
||||
<el-breadcrumb-item v-for="item in items" :to="{ name: item.name }">{{ item.meta.title }}</el-breadcrumb-item>
|
||||
</el-breadcrumb>
|
||||
@@ -17,3 +17,9 @@ export default {
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
.breadcrumb {
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
@@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<el-container id="header" class="header">
|
||||
<el-aside width="200px">
|
||||
<el-aside width="250px">
|
||||
<img src="@/assets/images/logo.png" class="logo" />
|
||||
</el-aside>
|
||||
<el-main>
|
||||
@@ -48,7 +48,6 @@ export default {
|
||||
width: 100%;
|
||||
height: 60px;
|
||||
background: #fff;
|
||||
border-bottom: 1px solid #e8e8e8;
|
||||
.logo {
|
||||
width: 130px;
|
||||
margin-left: 30px;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
<template>
|
||||
<el-menu class="h-full" router>
|
||||
<el-menu-item index="/content/article">
|
||||
<el-menu class="h-full" router :default-active="$route.name">
|
||||
<el-menu-item index="article" @select="onSelect">
|
||||
<el-icon class="mr-2">
|
||||
<document />
|
||||
</el-icon>
|
||||
<template #title>{{ $t('content.nav.article') }}</template>
|
||||
</el-menu-item>
|
||||
<el-menu-item index="/content/platform">
|
||||
<el-menu-item index="platform">
|
||||
<el-icon class="mr-2">
|
||||
<box />
|
||||
</el-icon>
|
||||
@@ -30,7 +30,14 @@ export default {
|
||||
};
|
||||
},
|
||||
mounted() {
|
||||
console.log(routes);
|
||||
console.log(this.$route);
|
||||
},
|
||||
methods: {
|
||||
onSelect(val) {
|
||||
this.$router.push({
|
||||
name: val
|
||||
});
|
||||
}
|
||||
}
|
||||
};
|
||||
</script>
|
||||
@@ -1,10 +1,10 @@
|
||||
<template>
|
||||
<el-container>
|
||||
<el-container class="h-screen">
|
||||
<el-header>
|
||||
<top-header />
|
||||
</el-header>
|
||||
<el-container>
|
||||
<el-aside width="200px">
|
||||
<el-aside width="250px">
|
||||
<sidebar />
|
||||
</el-aside>
|
||||
<el-main>
|
||||
|
||||
@@ -1,24 +1,34 @@
|
||||
<template>
|
||||
<el-card shadow="hover">
|
||||
<el-table :data="items" v-loading="loading">
|
||||
<el-table-column prop="icon" :label="$t('common.entity.icon')">
|
||||
<template #default="scope">
|
||||
<img :src="scope.row.icon" class="w-10" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" :label="$t('common.entity.platform')"> </el-table-column>
|
||||
<el-table-column prop="description" :label="$t('common.entity.description')"> </el-table-column>
|
||||
<el-table-column :label="$t('common.entity.status')"> </el-table-column>
|
||||
<el-table-column :label="$t('common.entity.operation')">
|
||||
<el-button @click="onSetup" round type="primary" size="small">
|
||||
{{ $t('common.button.setup') }}
|
||||
</el-button>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
<el-row :gutter="20">
|
||||
<el-col :span="24">
|
||||
<div class="px-4 pt-4">
|
||||
<el-card shadow="hover">
|
||||
<div class="mb-5">
|
||||
<breadcrumb />
|
||||
</div>
|
||||
<el-table :data="items" v-loading="loading">
|
||||
<el-table-column prop="icon" :label="$t('common.entity.icon')">
|
||||
<template #default="scope">
|
||||
<img :src="scope.row.icon" class="w-10" />
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="name" :label="$t('common.entity.platform')"> </el-table-column>
|
||||
<el-table-column prop="description" :label="$t('common.entity.description')"> </el-table-column>
|
||||
<el-table-column :label="$t('common.entity.status')"> </el-table-column>
|
||||
<el-table-column :label="$t('common.entity.operation')">
|
||||
<el-button @click="onSetup" round type="primary" size="small">
|
||||
{{ $t('common.button.setup') }}
|
||||
</el-button>
|
||||
</el-table-column>
|
||||
</el-table>
|
||||
</el-card>
|
||||
</div>
|
||||
</el-col>
|
||||
</el-row>
|
||||
</template>
|
||||
|
||||
<script lang="ts">
|
||||
import { Breadcrumb } from '@/components/common/index';
|
||||
import PlatformService from '@/services/platform/service';
|
||||
import { IPlatform, IPlatformListResponse } from '@/services/platform/types';
|
||||
import { defineComponent } from 'vue';
|
||||
@@ -29,6 +39,9 @@ interface IData {
|
||||
}
|
||||
|
||||
export default defineComponent({
|
||||
components: {
|
||||
Breadcrumb
|
||||
},
|
||||
data(): IData {
|
||||
return {
|
||||
items: [],
|
||||
@@ -49,4 +62,4 @@ export default defineComponent({
|
||||
}
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</script>
|
||||
Reference in new issue
Block a user