0.1.4 • Published 10 months ago

vue-fun-rain v0.1.4

Weekly downloads
-
License
ISC
Repository
-
Last release
10 months ago

vue-fun-rain

Install & Use

pnpm i vue-fun-rain
# or
npm install vue-fun-rain
# or
yarn add vue-fun-rain

Import and register component

Global

import { createApp } from 'vue'
import App from './App.vue'

import VueFunRain from 'vue-fun-rain'
import 'vue-fun-rain/css'

const app = createApp(App)
app.use(VueFunRain)
<ts-view :textCon="这是代码雨" :width="100" :height="100" />

Attention

注:如果在Ts下提示:无法找到模块“vue-fun-rain”的声明文件, 隐式拥有 "any" 类型, 添加一个包含 declare module 'vue-fun-rain'; 的新声明(.d.ts) 。直接在项目project的根目录,新建一个 .d.ts 文件, declare module 'vue-fun-rain'对模块进行声明,如果存在env.d.ts文件,可以定义在里面,没有可以新建一个此文件。

Components

Component nameDescriptions
TsView代码雨

Parameter

Parameter nameTypeDefault valueother
widthnumber100宽度
heightnumber100高度
textConstring这是canva下代码雨插件哦标题内容
textSizenumber18标题字体大小
canvasTxtConstringdudusaxxdhaizi010101代码雨的内容
speedsnumber10000下雨的速度
backgroundColorstringrgba(0,0,0,.05)背景颜色
rainColorstring#0f0雨的颜色
0.1.4

10 months ago

0.1.3

10 months ago

0.1.2

10 months ago

0.0.10

10 months ago