mirror of
https://github.com/nagisa77/OpenIsle.git
synced 2026-05-11 05:07:28 +08:00
feat: ui update
This commit is contained in:
@@ -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',
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user