generated from zouhangwithsweet/vue-components-lib-seed
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
renxiaofan
committed
Jan 3, 2024
1 parent
5cfaba9
commit f5c1e60
Showing
14 changed files
with
602 additions
and
337 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<template> | ||
<div class="demo-charts"> | ||
<Charts | ||
ref="charts" | ||
:data="echartData" | ||
:options="opt" | ||
chart-type="pie" | ||
sub-chart-type="pie02" | ||
/> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
export default { name: 'ChartsDemo', title: 'Pie02' } | ||
</script> | ||
<script setup lang="ts"> | ||
import Charts from 'pandora-lib/charts' | ||
import { ref } from 'vue' | ||
let opt: any = {} | ||
const charts: any = ref(null) | ||
const theme: any = ref('dark') | ||
const echartData = [ | ||
{ value: '2879', name: '北京分中心' }, | ||
{ value: '806', name: '上海分中心' }, | ||
{ value: '723', name: '天津分中心' }, | ||
{ value: '546', name: '宁夏分中心' }, | ||
{ value: '454', name: '青岛分中心' }, | ||
{ value: '344', name: '沈阳分中心' }, | ||
{ value: '244', name: '新疆分中心' }, | ||
] | ||
const handleZrClick = (...args: [any]) => { | ||
console.log('click from zrender', ...args) | ||
} | ||
const handleClick = (...args: [any]) => { | ||
console.log('click from echarts', ...args) | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.