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