画布工具添加滚动条功能

This commit is contained in:
李志鹏
2025-09-24 11:53:25 +08:00
parent 05e9bada5a
commit 0f7e0f2e96
3 changed files with 52 additions and 10 deletions

View File

@@ -173,7 +173,8 @@ const normalToolsList = ref([
icon: { name: "CHelp", size: "30" },
class: "text-btn",
style: {
'margin-top': 'auto',
'position': 'absolute',
'bottom': '0',
},
},
]);
@@ -369,6 +370,7 @@ const handleToolClick = (tool) => {
:can-undo="canUndo"
:can-redo="canRedo"
@click="handleToolClick"
tip-body
/>
<!-- 自定义工具栏按钮插槽 -->
@@ -389,6 +391,7 @@ const handleToolClick = (tool) => {
min-width: 5.8rem;
height: 100%;
padding-top: .5rem;
padding-bottom: 4rem;
/* overflow-y: auto; */
/* overflow-x: hidden; */
}
@@ -397,6 +400,8 @@ const handleToolClick = (tool) => {
flex-direction: column;
gap: 1.0rem;
flex: 1;
overflow-y: auto;
overflow-x: hidden;
}
.red-green-mode {
background-color: #fff4f4;