easy-typer-js icon indicating copy to clipboard operation
easy-typer-js copied to clipboard

不支持Vue3

Open estoi opened this issue 2 years ago • 1 comments

estoi avatar Apr 02 '22 02:04 estoi

支持哦

pengqiangsheng avatar Apr 23 '22 11:04 pengqiangsheng

<script setup>
import { reactive, onMounted  } from 'vue'
// 引入
import EasyTyper from 'easy-typer-js'

// 计算属性
const obj = reactive({
  output: '',
  isEnd: false,
  speed: 80,
  singleBack: true,
  sleep: 0,
  type: 'normal',
  backSpeed: 40,
  sentencePause: false
})

// 实例化
onMounted(() => {
  const typed = new EasyTyper(obj, `我是Vue3输出的内容`)
})

</script>

<template>
  <div>{{ obj.output }}</div>
</template>

<style scoped>
</style>

pengqiangsheng avatar Aug 19 '22 11:08 pengqiangsheng