Skip to content

Commit

Permalink
perf(components): 设置面板组件兼容 v2.9.4 | Settings panel component compat…
Browse files Browse the repository at this point in the history
…ible with `v2.9.4`.
  • Loading branch information
Zuoqiu-Yingyi committed Jul 4, 2023
1 parent 5f42635 commit 2829ee9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- 修复在非安全上下文中无法使用 `crypto.randomUUID` 的问题 | Fix the issue that `crypto.randomUUID` cannot be used in an insecure context.
- REF: https://github.com/Zuoqiu-Yingyi/siyuan-plugin-webview/issues/7
- 新增网页背景设置项介绍 | Add web page background setting item introduction.
- 设置面板组件兼容 `v2.9.4` | Settings panel component compatible with `v2.9.4`.

## 2023-07-03

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,14 @@

<script lang="ts">
export let display = true; // 是否显示该面板
export let top = true; // 是否移除保留面板上下边距
export let name = ""; // 面板名称
</script>

<div
data-name={name}
class:fn__none={!display}
class:config__tab-container--top={top}
class="config__tab-container"
>
<slot />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@
</ul>

<!-- 面板主体 -->
<slot {focus}>Container</slot>
<div class="config__tab-wrap">
<slot {focus}>Container</slot>
</div>
</div>

<style lang="less">
Expand Down

0 comments on commit 2829ee9

Please # to comment.