Skip to content

Commit

Permalink
feat: ✨ 暴露出基础图表配置
Browse files Browse the repository at this point in the history
  • Loading branch information
dizuncainiao committed Aug 7, 2023
1 parent 70c7a8e commit b18af95
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
17 changes: 15 additions & 2 deletions examples/src/views/basic/BasicBarDemo.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
<script setup lang="ts">
const type = '条形'
import { BasicChart, allEchartsOptions } from 'dz-bi-chart'
</script>

<template>基础{{ type }}图</template>
<template>
<div
style="
width: 600px;
height: 400px;
padding: 28px;
background: #fff;
border-radius: 12px;
box-shadow: 0 0 8px #eee;
"
>
<BasicChart :options="allEchartsOptions.basicBar" />
</div>
</template>
2 changes: 2 additions & 0 deletions packages/bi-chart/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ export {
} from './components/basic-business'
// 基础图表
export { default as BasicChart } from './components/basic-chart'
// 基础图表配置
export { default as allEchartsOptions } from './components/basic-chart/echarts-options'

// 请求拦截器
export { initRequestInterceptors } from './_plugins/axios-http'

0 comments on commit b18af95

Please sign in to comment.