mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-05-03 00:12:30 +08:00
fix(editor): 代码块列表无法滚动
This commit is contained in:
parent
9b324d17cc
commit
87a19c9bae
@ -17,6 +17,7 @@
|
||||
</slot>
|
||||
|
||||
<!-- 代码块列表 -->
|
||||
<TMagicScrollbar>
|
||||
<TMagicTree
|
||||
v-if="!isEmpty(state.codeList)"
|
||||
ref="tree"
|
||||
@ -74,6 +75,7 @@
|
||||
</div>
|
||||
</template>
|
||||
</TMagicTree>
|
||||
</TMagicScrollbar>
|
||||
|
||||
<!-- 代码块编辑区 -->
|
||||
<code-block-editor v-if="isShowCodeBlockEditor">
|
||||
@ -89,7 +91,7 @@ import { computed, inject, reactive, ref, watch } from 'vue';
|
||||
import { Close, Edit, Link, View } from '@element-plus/icons-vue';
|
||||
import { cloneDeep, forIn, isEmpty } from 'lodash-es';
|
||||
|
||||
import { TMagicButton, TMagicInput, tMagicMessage, TMagicTooltip, TMagicTree } from '@tmagic/design';
|
||||
import { TMagicButton, TMagicInput, tMagicMessage, TMagicScrollbar, TMagicTooltip, TMagicTree } from '@tmagic/design';
|
||||
import { CodeBlockContent, Id } from '@tmagic/schema';
|
||||
import StageCore from '@tmagic/stage';
|
||||
|
||||
|
@ -1,5 +1,7 @@
|
||||
.m-editor-code-block-list {
|
||||
height: 100%;
|
||||
margin-top: 5px;
|
||||
|
||||
.el-tree-node__content {
|
||||
height: auto;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user