chore: card detail style (#475)

This commit is contained in:
yuyang 2023-04-18 16:20:51 +08:00 committed by GitHub
parent 4ead1c6654
commit cd2939cd4f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 23 additions and 13 deletions

View File

@ -1,7 +1,4 @@
import 'tdesign-vue-next/es/style/index.css';
import '@/style/index.less';
import './permission';
/* eslint-disable simple-import-sort/imports */
import TDesign from 'tdesign-vue-next';
import { createApp } from 'vue';
@ -9,6 +6,10 @@ import App from './App.vue';
import router from './router';
import { store } from './store';
import 'tdesign-vue-next/es/style/index.css';
import '@/style/index.less';
import './permission';
const app = createApp(App);
app.use(TDesign);

View File

@ -37,7 +37,7 @@
v-for="(item, index) in PRODUCT_LIST"
:key="index"
:product="item"
:class="{ 'row-margin': index !== 0 }"
:class="{ 'row-margin': index !== 0, 'product-card': true }"
/>
</t-col>
</t-row>
@ -166,6 +166,23 @@ const onMaterialChange = (value: string[]) => {
margin-top: 16px;
}
.product-card {
padding: var(--td-comp-paddingTB-xl) var(--td-comp-paddingTB-xl);
:deep(.t-card__header) {
padding: 0;
}
:deep(.t-card__body) {
padding: 0;
margin-top: var(--td-comp-margin-xxl);
margin-bottom: var(--td-comp-margin-xxl);
}
:deep(.t-card__footer) {
padding: 0;
}
}
// 8px;
.dashboard-detail-card {
padding: var(--td-comp-paddingTB-xxl) var(--td-comp-paddingLR-xxl);

View File

@ -55,14 +55,6 @@
background: var(--td-gray-color-13);
}
.t-default-menu:not(.t-menu--dark) .t-menu__item.t-is-active:not(.t-is-opened) {
background-color: var(--td-brand-color-1);
color: var(--td-brand-color);
.t-icon {
color: var(--td-brand-color);
}
}
.@{starter-prefix} {
// 布局元素调整
&-wrapper {