fix style

This commit is contained in:
Timi
2026-04-10 18:37:03 +08:00
parent 9f681c0b9c
commit e81d3058f2
3 changed files with 67 additions and 5 deletions
+14 -4
View File
@@ -1,11 +1,21 @@
<template> <template>
<div> <div class="root">
<t-loading /> <t-cell-group title="测试 cell" theme="card">
<t-cell title="title" arrow>测试</t-cell>
<t-cell title="title" arrow>测试</t-cell>
<t-cell title="title" arrow>测试</t-cell>
<t-cell title="title" arrow>测试</t-cell>
</t-cell-group>
<t-button theme="primary">按钮</t-button>
</div> </div>
</template> </template>
<script lang="ts" setup></script> <script lang="ts" setup>
</script>
<style lang="less" scoped> <style lang="less" scoped>
.root {
width: 100%;
background: lightgray;
}
</style> </style>
+4 -1
View File
@@ -1,9 +1,12 @@
import { createApp } from "vue"; import { createApp } from "vue";
import Root from "./Root.vue"; import Root from "./Root.vue";
import { axios, VPopup } from "timi-web";
import "timi-web/style.css"; import "timi-web/style.css";
import "tdesign-mobile-vue/es/style/index.css"; import "tdesign-mobile-vue/es/style/index.css";
import { axios, VPopup } from "timi-web"; import "../src/assets/style/tencent-cloud.less";
import "../src/assets/style/tencent-cloud-custom.less";
axios.defaults.baseURL = "http://localhost:8091"; axios.defaults.baseURL = "http://localhost:8091";
@@ -1,4 +1,53 @@
/* TDesign 腾讯云样式附加修改 */ /* TDesign 腾讯云样式附加修改 */
@cellPadding: 10px;
.cellStyle() {
margin: 0 16px;
}
.cellSplit() {
transform: none;
-webkit-transform: none;
}
.t-image-viewer {
.t-swiper-item {
overflow: hidden;
}
}
.t-form {
.cellStyle();
.t-form__item {
padding: @cellPadding;
&:not(:last-child)::after {
.cellSplit();
}
}
}
.t-cell,
.t-swipe-cell {
padding: @cellPadding;
&:after {
.cellSplit();
}
}
.t-divider {
&::before,
&::after {
.cellSplit();
}
&.t-divider--horizontal {
margin: 0;
}
}
.t-popup { .t-popup {
transition: all 520ms var(--tui-bezier) !important; transition: all 520ms var(--tui-bezier) !important;
} }