feat(analysis): add analysis page

This commit is contained in:
vben
2020-10-11 22:59:44 +08:00
parent 1cd75fcf5b
commit 52ee35c4be
36 changed files with 1520 additions and 193 deletions

View File

@@ -8,17 +8,17 @@ export function useApexCharts(elRef: Ref<HTMLDivElement>) {
const chartInstanceRef = ref<Nullable<ApexCharts>>(null);
function setOptions(options: any) {
const el = unref(elRef);
if (!el || !unref(el)) {
return;
}
chartInstanceRef.value = new ApexCharts(el, options);
const chartInstance = unref(chartInstanceRef);
nextTick(() => {
useTimeout(() => {
const el = unref(elRef);
if (!el || !unref(el)) {
return;
}
chartInstanceRef.value = new ApexCharts(el, options);
const chartInstance = unref(chartInstanceRef);
chartInstance && chartInstance.render();
}, 30);
});