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 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 startPos = textarea.selectionStart
|
||||||
const endPos = textarea.selectionEnd
|
const endPos = textarea.selectionEnd
|
||||||
// 阻止默认行为(避免额外的换行符)
|
// 阻止默认行为(避免额外的换行符)
|
||||||
|
|||||||
@ -2,7 +2,6 @@
|
|||||||
<el-select
|
<el-select
|
||||||
class="m-2"
|
class="m-2"
|
||||||
multiple
|
multiple
|
||||||
collapse-tags
|
|
||||||
filterable
|
filterable
|
||||||
clearable
|
clearable
|
||||||
v-bind="$attrs"
|
v-bind="$attrs"
|
||||||
|
|||||||
@ -102,23 +102,30 @@
|
|||||||
:width="
|
:width="
|
||||||
xpackForm.show_avatar
|
xpackForm.show_avatar
|
||||||
? xpackForm.show_user_avatar
|
? xpackForm.show_user_avatar
|
||||||
? '240px'
|
? '232px'
|
||||||
: '270px'
|
: '270px'
|
||||||
: xpackForm.show_user_avatar
|
: xpackForm.show_user_avatar
|
||||||
? '270px'
|
? '260px'
|
||||||
: '300px'
|
: '300px'
|
||||||
"
|
"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex" style="justify-content: flex-end">
|
<div class="flex mt-4" style="justify-content: flex-end">
|
||||||
<img
|
<img
|
||||||
src="@/assets/display-bg3.png"
|
src="@/assets/display-bg3.png"
|
||||||
alt=""
|
alt=""
|
||||||
:width="xpackForm.show_user_avatar ? '240px' : '270px'"
|
:width="
|
||||||
class="mr-8"
|
xpackForm.show_user_avatar
|
||||||
|
? xpackForm.show_avatar
|
||||||
|
? '227px'
|
||||||
|
: '255px'
|
||||||
|
: xpackForm.show_avatar
|
||||||
|
? '265px'
|
||||||
|
: '292px'
|
||||||
|
"
|
||||||
style="object-fit: contain"
|
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
|
<el-image
|
||||||
v-if="imgUrl.user_avatar"
|
v-if="imgUrl.user_avatar"
|
||||||
:src="imgUrl.user_avatar"
|
:src="imgUrl.user_avatar"
|
||||||
|
|||||||
@ -8,7 +8,7 @@
|
|||||||
</h4>
|
</h4>
|
||||||
</template>
|
</template>
|
||||||
<div class="hit-test__main p-16" v-loading="loading">
|
<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">
|
<div class="avatar">
|
||||||
<AppAvatar>
|
<AppAvatar>
|
||||||
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
|
<img src="@/assets/user-icon.svg" style="width: 54%" alt="" />
|
||||||
@ -233,6 +233,7 @@ const {
|
|||||||
params: { id }
|
params: { id }
|
||||||
} = route as any
|
} = route as any
|
||||||
|
|
||||||
|
const quickInputRef = ref()
|
||||||
const ParagraphDialogRef = ref()
|
const ParagraphDialogRef = ref()
|
||||||
const loading = ref(false)
|
const loading = ref(false)
|
||||||
const paragraphDetail = ref<any[]>([])
|
const paragraphDetail = ref<any[]>([])
|
||||||
@ -297,7 +298,9 @@ function sendChatHandle(event: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
const insertNewlineAtCursor = (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 startPos = textarea.selectionStart
|
||||||
const endPos = textarea.selectionEnd
|
const endPos = textarea.selectionEnd
|
||||||
// 阻止默认行为(避免额外的换行符)
|
// 阻止默认行为(避免额外的换行符)
|
||||||
@ -354,6 +357,8 @@ onMounted(() => {})
|
|||||||
padding-left: 40px;
|
padding-left: 40px;
|
||||||
.text {
|
.text {
|
||||||
padding: 6px 0;
|
padding: 6px 0;
|
||||||
|
height: 34px;
|
||||||
|
box-sizing: border-box;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -402,7 +407,7 @@ onMounted(() => {})
|
|||||||
}
|
}
|
||||||
|
|
||||||
.hit-test-height {
|
.hit-test-height {
|
||||||
height: calc(var(--app-main-height) - 135px);
|
height: calc(var(--app-main-height) - 170px);
|
||||||
}
|
}
|
||||||
.document-card {
|
.document-card {
|
||||||
height: 210px;
|
height: 210px;
|
||||||
|
|||||||
@ -1,6 +1,8 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="flex-between mb-16">
|
<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>
|
<div>
|
||||||
<el-button type="primary" link @click="openChangeTitleDialog">
|
<el-button type="primary" link @click="openChangeTitleDialog">
|
||||||
<el-icon>
|
<el-icon>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user