Skip to content

Commit 0cdb6d8

Browse files
committed
chore(richeditor,UI): 将编辑器功能按钮浮动
1 parent 963712d commit 0cdb6d8

2 files changed

Lines changed: 10 additions & 3 deletions

File tree

.vscode/launch.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
// 使用 IntelliSense 了解相关属性。
3+
// 悬停以查看现有属性的描述。
4+
// 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": []
7+
}

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,9 +370,9 @@ <h1 style="color: #000000">正在加载</h1>
370370
<div slot="headline"> 富文本编辑器 </div>
371371
<!-- 外层使用 Flex 纵向排布,内层编辑器使用纯粹的 block -->
372372
<div slot="text" style="width:100%; max-height: 60vh; display: flex; flex-direction: column;">
373-
373+
<div style="height:80px;"></div>
374374
<!-- 工具栏 -->
375-
<div style="display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center;">
375+
<div style="display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; align-items: center; position: absolute; background-color: rgba(255, 255, 255, 0.8); padding: 8px; border-radius: 8px; z-index: 1000;">
376376
<s-icon-button id="bold-btn" title="加粗">
377377
<s-icon src="/assets/bold.svg"></s-icon>
378378
</s-icon-button>
@@ -397,7 +397,7 @@ <h1 style="color: #000000">正在加载</h1>
397397
<s-picker-item value="Times New Roman">Times New Roman</s-picker-item>
398398
</s-picker>
399399
</div>
400-
<s-field>
400+
<s-field style="height:250px; width:650px; overflow:auto;">
401401
<div slot="label">请输入内容</div>
402402
<div id="rich-editor"></div>
403403
</s-field>

0 commit comments

Comments
 (0)