feat: ui update

This commit is contained in:
tim
2025-07-08 12:02:16 +08:00
parent 89ea778f13
commit 4bbc8c6e4d
4 changed files with 24 additions and 8 deletions

View File

@@ -1,16 +1,29 @@
<template> <template>
<div class="base-input"> <div class="base-input">
<i v-if="icon" :class="['base-input-icon', icon]"></i> <i v-if="icon" :class="['base-input-icon', icon]" />
<component
:is="textarea ? 'textarea' : 'input'" <!-- 普通输入框 -->
<input
v-if="!textarea"
class="base-input-text" class="base-input-text"
:type="type" :type="type"
v-model="innerValue"
v-bind="$attrs" v-bind="$attrs"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
/>
<!-- 多行输入框 -->
<textarea
v-else
class="base-input-text"
v-bind="$attrs"
:value="modelValue"
@input="$emit('update:modelValue', $event.target.value)"
/> />
</div> </div>
</template> </template>
<script> <script>
export default { export default {
name: 'BaseInput', name: 'BaseInput',

View File

@@ -80,9 +80,7 @@ export default {
<style scoped> <style scoped>
.post-editor-container { .post-editor-container {
border-right: 1px solid #e2e2e2; border: 1px solid #e2e2e2;
border-top: 1px solid #e2e2e2;
border-bottom: 1px solid #e2e2e2;
} }
</style> </style>

View File

@@ -162,7 +162,9 @@ export default {
} }
.message-page { .message-page {
background-color: var(--background-color);
padding: 20px; padding: 20px;
height: calc(100vh - var(--header-height) - 40px);
} }
.notif-content { .notif-content {

View File

@@ -174,6 +174,10 @@ export default {
.new-post-page { .new-post-page {
display: flex; display: flex;
justify-content: center; justify-content: center;
background-color: var(--background-color);
height: calc(100vh - var(--header-height));
padding-right: 20px;
padding-left: 20px;
} }
.new-post-form { .new-post-form {
@@ -242,7 +246,6 @@ export default {
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
margin-left: 20px;
margin-top: 20px; margin-top: 20px;
} }