Merge pull request #302 from 1Panel-dev/fix-bugs

前端样式优化
This commit is contained in:
wangdan-fit2cloud 2024-04-28 19:02:56 +08:00 committed by GitHub
commit e52d425517
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 13 additions and 4 deletions

View File

@ -5,6 +5,7 @@
v-model="dialogVisible" v-model="dialogVisible"
destroy-on-close destroy-on-close
append-to-body append-to-body
align-center
> >
<div class="paragraph-source-height"> <div class="paragraph-source-height">
<el-scrollbar> <el-scrollbar>
@ -63,7 +64,7 @@
</el-dialog> </el-dialog>
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, watch, nextTick } from 'vue' import { ref, watch, onBeforeUnmount } from 'vue'
import { cloneDeep } from 'lodash' import { cloneDeep } from 'lodash'
import { arraySort } from '@/utils/utils' import { arraySort } from '@/utils/utils'
const emit = defineEmits(['refresh']) const emit = defineEmits(['refresh'])
@ -86,12 +87,15 @@ const open = (data: any, id?: string) => {
detail.value.paragraph_list = arraySort(detail.value.paragraph_list, 'similarity', true) detail.value.paragraph_list = arraySort(detail.value.paragraph_list, 'similarity', true)
dialogVisible.value = true dialogVisible.value = true
} }
onBeforeUnmount(() => {
dialogVisible.value = false
})
defineExpose({ open }) defineExpose({ open })
</script> </script>
<style lang="scss"> <style lang="scss">
.paragraph-source { .paragraph-source {
padding: 0; padding: 0;
.el-dialog__header { .el-dialog__header {
padding: 24px 24px 0 24px; padding: 24px 24px 0 24px;
} }
@ -102,4 +106,9 @@ defineExpose({ open })
height: calc(100vh - 260px); height: calc(100vh - 260px);
} }
} }
@media only screen and (max-width: 768px) {
.paragraph-source {
width: 90% !important;
}
}
</style> </style>

View File

@ -35,7 +35,7 @@
accept="image/*" accept="image/*"
:on-change="onChange" :on-change="onChange"
> >
<el-button icon="Upload">上传</el-button> <el-button icon="Upload" :disabled="radioType !== 'custom'">上传</el-button>
</el-upload> </el-upload>
</div> </div>
<div class="el-upload__tip info mt-16"> <div class="el-upload__tip info mt-16">

View File

@ -251,7 +251,7 @@ defineExpose({ open })
padding: 0 !important; padding: 0 !important;
} }
.dialog-max-height { .dialog-max-height {
height: calc(100vh - 180px); height: 550px;
} }
.custom-slider { .custom-slider {
.el-input-number.is-without-controls .el-input__wrapper { .el-input-number.is-without-controls .el-input__wrapper {