1.0.6 • Published 12 months ago

wangyp-components v1.0.6

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

wangyp-components

version

Install

npm install wangyp-components

Usage

vue2
全局引入  main.js
import  Chart  from 'wangyp-components';
import '../node_modules/wangyp-components/style.css'
Vue.use(Chart);
vue2
按需引入  A.vue
import  {BaseBarChar}  from 'wangyp-components';
import '../node_modules/wangyp-components/style.css' // 放在全局比较好

<template>
    <BaseBarChar/>
</template>

参数说明

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

使用

// 默认 完全覆盖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.6

12 months ago

1.0.5

12 months ago

1.0.4

12 months ago

1.0.3

12 months ago

1.0.2

12 months ago

1.0.1

12 months ago