1.0.0 • Published 3 years ago

vue-waterball v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

vue-waterball

Vue module for creating chart like echarts-liquidfill by SVG in your application.

npm.io npm.io npm.io npm.io npm.io npm.io npm.io npm.io

Examples

npm.io npm.io npm.io

Requirements

Vue.js 2.x

Installation

npm

$ npm i vue-waterball -S

yarn

$ yarn add vue-waterball

Usage

main.js

import Vue from 'vue';
import WaterBall from 'vue-waterball';

Vue.component('WaterBall', WaterBall);

template:

<WaterBall />

Attributes

AttributeDescriptionTypeAccepted ValuesDefault
sizewidth and height of componentnumber-200
percentagevalue from 0 to 1number0 to 10.5
border-widthwidth of bordernumber-5
border-colorcolor of borderstring-'#F00'
paddingthe distance between border and waternumber-2
background-colorbackground color of componentstring-'#FFF'
water-colorcolor of waterstring-'#F00'
duron animation cycle duration, millisecondnumber-5000
amplitudetimes of half size, from 0 to 1, bigger number represents bigger amplitudenumber-0.3
wave-lengthwave length, just use when type is 'horizontal'number-200
font-sizefont sizenumber-20
font-colorfont colorstring-'#000'
typewave directionstring'horizontal' / 'vertical''vertical'

Slot

default slot will replace the center text.

1.0.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago