feat: add graph, widget config

This commit is contained in:
Qiuxia Fan
2022-01-05 16:20:25 +08:00
parent 6ce7265d3e
commit eab32b305a
14 changed files with 432 additions and 219 deletions

View File

@@ -32,9 +32,9 @@ const props = defineProps({
type: Object as PropType<{
theme: string;
showBackground: boolean;
barMaxWidth: number;
barWidth: number;
}>,
default: () => ({ theme: "light", showBackground: true, barMaxWidth: 30 }),
default: () => ({ theme: "light", showBackground: true, barWidth: 20 }),
},
});
/*global Nullable */
@@ -80,7 +80,7 @@ function getOption() {
name: i,
type: "bar",
symbol: "none",
barWidth: props.config.barMaxWidth,
barWidth: props.config.barWidth,
stack: "sum",
lineStyle: {
width: 1.5,

View File

@@ -19,7 +19,7 @@ import Area from "./Area.vue";
import Line from "./Line.vue";
import Bar from "./Bar.vue";
import Heatmap from "./Heatmap.vue";
import ProgressBar from "./ProgressBar.vue";
import TopList from "./TopList.vue";
import Table from "./Table.vue";
import Pie from "./Pie.vue";
import Card from "./Card.vue";
@@ -28,7 +28,7 @@ export default {
Line,
Bar,
Heatmap,
ProgressBar,
TopList,
Area,
Table,
Pie,