mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-11-03 13:44:47 +08:00
feat: 添加打字机组件demo
This commit is contained in:
18
src/views/components/typeit/index.vue
Normal file
18
src/views/components/typeit/index.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import TypeIt from "/@/components/ReTypeit";
|
||||
|
||||
defineOptions({
|
||||
name: "Typeit"
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<el-card>
|
||||
<template #header>
|
||||
<div class="card-header">
|
||||
<span class="font-medium"> 打字机组件 </span>
|
||||
</div>
|
||||
</template>
|
||||
<TypeIt :values="['test1', 'test2', 'test3']" />
|
||||
</el-card>
|
||||
</template>
|
||||
@@ -4,6 +4,7 @@ import Motion from "./utils/motion";
|
||||
import { useRouter } from "vue-router";
|
||||
import { loginRules } from "./utils/rule";
|
||||
import phone from "./components/phone.vue";
|
||||
import TypeIt from "/@/components/ReTypeit";
|
||||
import qrCode from "./components/qrCode.vue";
|
||||
import regist from "./components/regist.vue";
|
||||
import update from "./components/update.vue";
|
||||
@@ -162,7 +163,9 @@ onBeforeUnmount(() => {
|
||||
<div class="login-form">
|
||||
<avatar class="avatar" />
|
||||
<Motion>
|
||||
<h2 class="outline-none">{{ title }}</h2>
|
||||
<h2 class="outline-none">
|
||||
<TypeIt :values="[title]" :cursor="false" :speed="150" />
|
||||
</h2>
|
||||
</Motion>
|
||||
|
||||
<el-form
|
||||
|
||||
Reference in New Issue
Block a user