1.0.9 • Published 11 months ago

wang-chart-library v1.0.9

Weekly downloads
-
License
ISC
Repository
-
Last release
11 months 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

11 months ago

1.0.8

11 months ago

1.0.7

11 months ago

1.0.6

11 months ago

1.0.5

11 months ago

1.0.4

11 months ago

1.0.2

12 months ago

1.0.1

12 months ago

1.0.0

12 months ago