perf: 增强ReTypeit组件,支持插槽以及所有typeit配置项 (#922)

* perf: 增强typeit组件

* fix: update

* fix: delete invalid code
This commit is contained in:
一万
2024-02-21 13:31:05 +08:00
committed by GitHub
parent f6eaa8d6d8
commit f762587fa7
4 changed files with 72 additions and 46 deletions

View File

@@ -166,7 +166,9 @@ watch(loginDay, value => {
<avatar class="avatar" />
<Motion>
<h2 class="outline-none">
<TypeIt :values="[title]" :cursor="false" :speed="150" />
<TypeIt
:options="{ strings: [title], cursor: false, speed: 100 }"
/>
</h2>
</Motion>