mirror of
https://github.com/Tencent/tdesign-vue-next-starter.git
synced 2024-12-23 05:16:33 +08:00
chore: card detail style (#475)
This commit is contained in:
parent
4ead1c6654
commit
cd2939cd4f
|
@ -1,7 +1,4 @@
|
||||||
import 'tdesign-vue-next/es/style/index.css';
|
/* eslint-disable simple-import-sort/imports */
|
||||||
import '@/style/index.less';
|
|
||||||
import './permission';
|
|
||||||
|
|
||||||
import TDesign from 'tdesign-vue-next';
|
import TDesign from 'tdesign-vue-next';
|
||||||
import { createApp } from 'vue';
|
import { createApp } from 'vue';
|
||||||
|
|
||||||
|
@ -9,6 +6,10 @@ import App from './App.vue';
|
||||||
import router from './router';
|
import router from './router';
|
||||||
import { store } from './store';
|
import { store } from './store';
|
||||||
|
|
||||||
|
import 'tdesign-vue-next/es/style/index.css';
|
||||||
|
import '@/style/index.less';
|
||||||
|
import './permission';
|
||||||
|
|
||||||
const app = createApp(App);
|
const app = createApp(App);
|
||||||
|
|
||||||
app.use(TDesign);
|
app.use(TDesign);
|
||||||
|
|
|
@ -37,7 +37,7 @@
|
||||||
v-for="(item, index) in PRODUCT_LIST"
|
v-for="(item, index) in PRODUCT_LIST"
|
||||||
:key="index"
|
:key="index"
|
||||||
:product="item"
|
:product="item"
|
||||||
:class="{ 'row-margin': index !== 0 }"
|
:class="{ 'row-margin': index !== 0, 'product-card': true }"
|
||||||
/>
|
/>
|
||||||
</t-col>
|
</t-col>
|
||||||
</t-row>
|
</t-row>
|
||||||
|
@ -166,6 +166,23 @@ const onMaterialChange = (value: string[]) => {
|
||||||
margin-top: 16px;
|
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;
|
// 统一增加8px;
|
||||||
.dashboard-detail-card {
|
.dashboard-detail-card {
|
||||||
padding: var(--td-comp-paddingTB-xxl) var(--td-comp-paddingLR-xxl);
|
padding: var(--td-comp-paddingTB-xxl) var(--td-comp-paddingLR-xxl);
|
||||||
|
|
|
@ -55,14 +55,6 @@
|
||||||
background: var(--td-gray-color-13);
|
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} {
|
.@{starter-prefix} {
|
||||||
// 布局元素调整
|
// 布局元素调整
|
||||||
&-wrapper {
|
&-wrapper {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user