Skip to content

Commit

Permalink
Merge pull request #295 from YeungHoiChiu/fix-menu-ui
Browse files Browse the repository at this point in the history
fix: 公共步骤悬浮窗显示过长导致页面菜单栏显示问题
  • Loading branch information
ZhouYixun authored Aug 28, 2024
2 parents 352d6ef + a6147b1 commit 86712b5
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
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

0 comments on commit 86712b5

Please sign in to comment.