37 lines
606 B
Vue
37 lines
606 B
Vue
<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>
|
|
.chat-other {
|
|
display: flex;
|
|
justify-content: center;
|
|
background-color: white;
|
|
margin: 6px 12px;
|
|
padding: 8px 24px;
|
|
border-radius: 4px;
|
|
font-size: 14px;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
|
|
text {
|
|
font-family: PingFang SC, PingFang SC;
|
|
font-weight: 400;
|
|
font-size: 14px;
|
|
color: #333333;
|
|
}
|
|
|
|
}
|
|
</style> |