-
Notifications
You must be signed in to change notification settings - Fork 412
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* dev: chore(release): v0.8.30 feat: #642 修改配置的默认值为false(与旧版本效果保持一致) feat: #642 在调用setMarkdown/setValue时保持页面的滚动位置 docs(cherry): custom render (#661) feat: #642 close 增加配置,是否在初始化时保持页面的滚动位置 feat: 优化处理base64数据的时机和正则,确保base64数据能够及时被替换成占位符 feat: 增加字数统计功能 (#659) fix: 修复formatFullWidthMark函数 (#655) refactor(client): add sidebar tags (#644) fix: #650 修复切换主题时原始class被改错的问题 feat: #653 增加新的配置开关,打开后cherry完成初始化后会根据hash进行 滚动定位 在demo里默认打开 feat: #653 增加新的配置开关,打开后cherry完成初始化后会根据hash进行 滚动定位 fix: #650 switchModel()API切换预览模式时隐藏工具栏
- Loading branch information
Showing
68 changed files
with
198,980 additions
and
541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<template> | ||
<div class="files" v-show="storeSidePanel.checkedSidePanel.id === 'files'">files //todo</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import { useStoreSidePanel } from "@/store/storeSidePanel"; | ||
const storeSidePanel = useStoreSidePanel(); | ||
</script> | ||
<style scoped lang="scss"> | ||
.files { | ||
width: 300px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
<template> | ||
<div class="toc" v-show="storeSidePanel.checkedSidePanel.id === 'toc'"> | ||
<div class="toc__item" v-for="item in storeCherry.cherryToc " :key="item.id" | ||
:style="{ fontSize: 22 - item.level + 'px' }"> | ||
<span class="toc-level" :style="{ marginLeft: 4 * item.level - 1 + 'px' }">{{ `h${item.level} ` }}</span> | ||
<div class="toc-text" v-html="item.text"></div> | ||
</div> | ||
</div> | ||
</template> | ||
<script setup lang="ts"> | ||
import { useStoreCherry } from "@/store/storeCherry"; | ||
import { useStoreSidePanel } from "@/store/storeSidePanel"; | ||
const storeCherry = useStoreCherry(); | ||
const storeSidePanel = useStoreSidePanel(); | ||
</script> | ||
|
||
<style scoped lang="scss"> | ||
.toc { | ||
width: 300px; | ||
&__item { | ||
user-select: none; | ||
display: flex; | ||
align-items: center; | ||
border-bottom: 1px solid #9a9a9a; | ||
margin: 12px; | ||
.toc-text { | ||
font-weight: bold; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
white-space: nowrap; | ||
cursor: pointer; | ||
position: relative; | ||
&:hover { | ||
color: #00a2ff96; | ||
} | ||
&:active { | ||
color: #00a2ff; | ||
} | ||
} | ||
.toc-level { | ||
margin: 0 5px; | ||
color: #182a00; | ||
font-size: 12px; | ||
} | ||
} | ||
} | ||
:deep(.anchor) { | ||
position: absolute; | ||
width: 100%; | ||
height: 100%; | ||
top: 0; | ||
left: 0; | ||
} | ||
</style> |
Oops, something went wrong.