Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 公共步骤悬浮窗显示过长导致页面菜单栏显示问题 #295

Merged
merged 2 commits into from
Aug 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/assets/common.css
Original file line number Diff line number Diff line change
Expand Up @@ -360,3 +360,8 @@ body,
.remote-header .el-page-header__left{
align-items: center;
}

.public-step-popover {
max-height: 500px;
overflow: auto;
}
8 changes: 7 additions & 1 deletion src/components/StepShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -829,7 +829,13 @@ const getNotes = (text, type) => {
<el-tag type="info" size="small" style="margin-left: 10px">{{
step.content
}}</el-tag>
<el-popover placement="bottom" :width="700" trigger="click">
<el-popover
placement="bottom"
:fallback-placements="['bottom', 'top', 'right', 'left']"
popper-class="public-step-popover"
:width="700"
trigger="click"
>
<child-step-list-view :steps="childStep" />
<template #reference>
<el-button
Expand Down
8 changes: 7 additions & 1 deletion src/views/PublicStep.vue
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,13 @@ onMounted(() => {
align="center"
>
<template #default="scope">
<el-popover placement="left" :width="700" trigger="click">
<el-popover
placement="left"
popper-class="public-step-popover"
:fallback-placements="['bottom', 'top', 'right', 'left']"
:width="700"
trigger="click"
>
<child-step-list-view :steps="curShowPublicStep.steps" />
<template #reference>
<el-button size="mini" @click="getPublicStepInfo(scope.row.id)">{{
Expand Down
2 changes: 1 addition & 1 deletion vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ export default defineConfig({
port: 3002,
},
build: {
chunkSizeWarningLimit: 600 * 1024, // 设置警告阈值为600KiB,因为element-plus超过500kb导致打包失败
chunkSizeWarningLimit: 600, // 设置警告阈值为600KiB
rollupOptions: {
output: {
manualChunks(id) {
Expand Down
Loading