mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-09 13:53:38 +08:00
perf: 增强ReTypeit组件,支持插槽以及所有typeit配置项 (#922)
* perf: 增强typeit组件 * fix: update * fix: delete invalid code
This commit is contained in:
@@ -1,9 +1,13 @@
|
||||
<script setup lang="ts">
|
||||
import TypeIt from "@/components/ReTypeit";
|
||||
import { TypeIt, type TypeItOptions } from "@/components/ReTypeit";
|
||||
|
||||
defineOptions({
|
||||
name: "Typeit"
|
||||
});
|
||||
|
||||
const options: TypeItOptions = {
|
||||
strings: ["test1", "test2", "test3"]
|
||||
};
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@@ -13,6 +17,6 @@ defineOptions({
|
||||
<span class="font-medium"> 打字机组件 </span>
|
||||
</div>
|
||||
</template>
|
||||
<TypeIt :values="['test1', 'test2', 'test3']" />
|
||||
<TypeIt :options="options" />
|
||||
</el-card>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user