typed.js
Vue类型的js (vue-typed-js)
A Vue.js integration for Typed.js.
用于Typed.js的Vue.js集成。
Typed.js is a library that types. Enter in any string, and watch it type at the speed you've set, backspace what it's typed, and begin a new sentence for however many strings you've set.
Typed.js是一个类型库。 输入任何字符串,并观看它以您设置的速度键入,退格所键入的内容,并为所设置的许多字符串开始一个新句子。
安装 (Installation)
npm install --save vue-typed-js
默认导入 (Default import)
Install the component:
安装组件:
import Vue from 'vue'
import { VueTypedJs } from 'vue-typed-js'
Vue.use(VueTypedJs)
⚠️ A css file is included when importing the package. You may have to setup your bundler to embed the css in your page.
import️导入软件包时包含一个css文件。 您可能需要设置捆绑程序才能将CSS嵌入到页面中。
浏览器导入 (Browser import)
<link rel="stylesheet" href="vue-typed-js/dist/vue-typed-js.css"/>
<script src="vue.js"></script>
<script src="vue-typed-js/dist/vue-typed-js.browser.js"></script>
The plugin should be auto-installed. If not, you can install it manually with the instructions below.
该插件应自动安装。 如果没有,您可以按照以下说明手动安装。
Install all the components:
安装所有组件:
Vue.use(VueTypedJ