28 lines
448 B
Vue
28 lines
448 B
Vue
<script setup>
|
|
import { Line } from '@antv/g2plot';
|
|
|
|
// hooks
|
|
import useChart from './useChart';
|
|
|
|
const props = defineProps({
|
|
className: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
style: {
|
|
type: Object,
|
|
default: () => ({}),
|
|
},
|
|
config: {
|
|
type: Object,
|
|
default: () => ({}),
|
|
},
|
|
});
|
|
|
|
const { container } = useChart(Line, props);
|
|
</script>
|
|
|
|
<template>
|
|
<div :class="className" :style="style" ref="container"></div>
|
|
</template>
|