0.0.2 • Published 4 months ago

typed-vue3 v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

简体中文 | English

安装

# npm
npm install typed-vue3
# pnpm
pnpm add typed-vue3
# npm
yarn add typed-vue3

使用

<template>
  <TypedComponent :options="options" />
</template>

<script setup lang="ts">
import { TypedComponent, type TypedOptions } from "typed-vue3";

const options: TypedOptions = {
  strings: ["云想衣裳花想容", "春风拂槛露华浓"]
};
</script>
<template>
  <TypedComponent :options="options">
    <span>李白白:</span><span class="typing" />
  </TypedComponent>
</template>

<script setup lang="ts">
import { TypedComponent, type TypedOptions } from "typed-vue3";

const options: TypedOptions = {
  strings: ["云想衣裳花想容,春风拂槛露华浓"],
  typeSpeed: 50,
  loop: true,
  onComplete(self) {
    console.log("onComplete", self);
  }
};
</script>

配置

详细配置请查看 Typed.js

0.0.2

4 months ago

0.0.1

4 months ago