feat: 调整首页组件目录结构

This commit is contained in:
duanshuwen
2025-09-21 14:26:04 +08:00
parent 55fd7c7ee6
commit d33ad9a9ce
52 changed files with 336 additions and 349 deletions

View File

@@ -0,0 +1,20 @@
<template>
<view class="chat-other">
<text>{{ text }}</text>
<slot></slot>
</view>
</template>
<script setup>
import { defineProps } from "vue";
defineProps({
text: {
type: String,
default: "",
},
});
</script>
<style lang="scss" scoped>
@import "./styles/index.scss";
</style>

View File

@@ -0,0 +1,16 @@
.chat-other {
width: 100%;
margin: 6px 0;
padding: 0 12px;
display: flex;
flex-direction: column;
max-width: 100%; // ✅ 限制最大宽度
overflow-x: hidden; // ✅ 防止横向撑开
text {
font-family: PingFang SC, PingFang SC;
font-weight: 400;
font-size: 14px;
color: #333333;
}
}