chore: 更新typeit依赖为最新,相关兼容处理

This commit is contained in:
xiaoxian521
2024-03-06 18:16:46 +08:00
parent ac0d75cbdf
commit adae01fdc2
4 changed files with 58 additions and 52 deletions

View File

@@ -1,5 +1,5 @@
import typeIt from "./src/index";
import type { TypeItOptions } from "typeit";
import type { Options as TypeItOptions } from "typeit";
const TypeIt = typeIt;

View File

@@ -1,5 +1,5 @@
import type { El } from "typeit/dist/types";
import TypeIt, { type TypeItOptions } from "typeit";
import TypeIt, { type Options as TypeItOptions } from "typeit";
import { ref, defineComponent, onMounted, type PropType } from "vue";
// 打字机效果组件(配置项详情请查阅 https://www.typeitjs.com/docs/vanilla/usage#options