mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 01:33:05 +00:00
perf: Optimize some style issues
This commit is contained in:
parent
26946d0afb
commit
812dc142c8
|
|
@ -686,7 +686,9 @@ function sendChatHandle(event?: any) {
|
|||
}
|
||||
}
|
||||
const insertNewlineAtCursor = (event?: any) => {
|
||||
const textarea = document.querySelector('.el-textarea__inner') as HTMLTextAreaElement
|
||||
const textarea = quickInputRef.value.$el.querySelector(
|
||||
'.el-textarea__inner'
|
||||
) as HTMLTextAreaElement
|
||||
const startPos = textarea.selectionStart
|
||||
const endPos = textarea.selectionEnd
|
||||
// 阻止默认行为(避免额外的换行符)
|
||||
|
|
|
|||
|
|
@ -2,7 +2,6 @@
|
|||
<el-select
|
||||
class="m-2"
|
||||
multiple
|
||||
collapse-tags
|
||||
filterable
|
||||
clearable
|
||||
v-bind="$attrs"
|
||||
|
|
|
|||
|
|
@ -102,23 +102,30 @@
|
|||
:width="
|
||||
xpackForm.show_avatar
|
||||
? xpackForm.show_user_avatar
|
||||
? '240px'
|
||||
? '232px'
|
||||
: '270px'
|
||||
: xpackForm.show_user_avatar
|
||||
? '270px'
|
||||
? '260px'
|
||||
: '300px'
|
||||
"
|
||||
/>
|
||||
</div>
|
||||
<div class="flex" style="justify-content: flex-end">
|
||||
<div class="flex mt-4" style="justify-content: flex-end">
|
||||
<img
|
||||
src="@/assets/display-bg3.png"
|
||||
alt=""
|
||||
:width="xpackForm.show_user_avatar ? '240px' : '270px'"
|
||||
class="mr-8"
|
||||
:width="
|
||||
xpackForm.show_user_avatar
|
||||
? xpackForm.show_avatar
|
||||
? '227px'
|
||||
: '255px'
|
||||
: xpackForm.show_avatar
|
||||
? '265px'
|
||||
: '292px'
|
||||
"
|
||||
style="object-fit: contain"
|
||||
/>
|
||||
<div class="avatar" v-if="xpackForm.show_user_avatar">
|
||||
<div class="avatar ml-8" v-if="xpackForm.show_user_avatar">
|
||||
<el-image
|
||||
v-if="imgUrl.user_avatar"
|
||||
:src="imgUrl.user_avatar"
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
</h4>
|
||||
</template>
|
||||
<div class="hit-test__main p-16" v-loading="loading">
|
||||
<div class="question-title clearfix" v-if="questionTitle">
|
||||
<div class="question-title" :style="{ visibility: questionTitle ? 'visible' : 'hidden' }">
|
||||
<div class="avatar">
|
||||
<AppAvatar>
|
||||
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
|
||||
|
|
@ -233,6 +233,7 @@ const {
|
|||
params: { id }
|
||||
} = route as any
|
||||
|
||||
const quickInputRef = ref()
|
||||
const ParagraphDialogRef = ref()
|
||||
const loading = ref(false)
|
||||
const paragraphDetail = ref<any[]>([])
|
||||
|
|
@ -297,7 +298,9 @@ function sendChatHandle(event: any) {
|
|||
}
|
||||
}
|
||||
const insertNewlineAtCursor = (event?: any) => {
|
||||
const textarea = document.querySelector('.el-textarea__inner') as HTMLTextAreaElement
|
||||
const textarea = quickInputRef.value.$el.querySelector(
|
||||
'.el-textarea__inner'
|
||||
) as HTMLTextAreaElement
|
||||
const startPos = textarea.selectionStart
|
||||
const endPos = textarea.selectionEnd
|
||||
// 阻止默认行为(避免额外的换行符)
|
||||
|
|
@ -354,6 +357,8 @@ onMounted(() => {})
|
|||
padding-left: 40px;
|
||||
.text {
|
||||
padding: 6px 0;
|
||||
height: 34px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -402,7 +407,7 @@ onMounted(() => {})
|
|||
}
|
||||
|
||||
.hit-test-height {
|
||||
height: calc(var(--app-main-height) - 135px);
|
||||
height: calc(var(--app-main-height) - 170px);
|
||||
}
|
||||
.document-card {
|
||||
height: 210px;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<template>
|
||||
<div class="flex-between mb-16">
|
||||
<h5 class="lighter">{{ inputFieldConfig.title }}</h5>
|
||||
<h5 class="break-all ellipsis lighter" style="max-width:80%" :title="inputFieldConfig.title">
|
||||
{{ inputFieldConfig.title }}
|
||||
</h5>
|
||||
<div>
|
||||
<el-button type="primary" link @click="openChangeTitleDialog">
|
||||
<el-icon>
|
||||
|
|
@ -172,7 +174,7 @@ function refreshFieldTitle(data: any) {
|
|||
}
|
||||
|
||||
const getDefaultValue = (row: any) => {
|
||||
if(row.input_type === 'PasswordInput') {
|
||||
if (row.input_type === 'PasswordInput') {
|
||||
return '******'
|
||||
}
|
||||
if (row.default_value) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue