mirror of
https://gitee.com/bootx/dax-pay-ui.git
synced 2025-09-25 21:28:13 +00:00
feat(analysis): add analysis page
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
Reference in New Issue
Block a user