1.0.9 • Published 1 year ago

wang-chart-library v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

wang-chart-library

version

Install

npm install wang-chart-library

Usage

vue3 main.js
import  Chart  from 'wang-chart-library';
import '../node_modules/wang-chart-library/style.css'
app.use(Chart);
vue3 A.vue
import  {BaseBarChart}  from 'wang-chart-library';

<template>
    <BaseBarChart  :options="options"></BaseBarChart>
<template>
propsdefault说明
isOptionstrue是否使用options
fullyCoverfalse是否完全覆盖 false 代表解构数据更新 true 代表完全覆盖
options{}true 必须要传递数据 为false 不能传递数据
dataset{}false 必须要传递数据 为true 不能传递数据

Demo

// 默认 完全覆盖options 只能传递 options
<template>
    <div class="chart-container">
        <BaseBarChart  :options="options"></BaseBarChart>
    </div>
</template>
//isOptions:false 只能传递 dataset
<template>
    <div class="chart-container">
        <BaseBarChart  :isOptions="false" :dataset="dataset"></BaseBarChart>
    </div>
</template>
1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago