mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-20 10:06:00 +00:00
chart popup menu
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
<script lang="ts">
|
||||
import { onMount, afterUpdate, onDestroy } from 'svelte';
|
||||
import Chart from 'chart.js';
|
||||
import contextMenu from '../utility/contextMenu';
|
||||
|
||||
export let data;
|
||||
export let type = 'line';
|
||||
export let options = {};
|
||||
export let plugins = {};
|
||||
export let menu;
|
||||
|
||||
let chart = null;
|
||||
let domChart;
|
||||
@@ -31,4 +33,4 @@
|
||||
});
|
||||
</script>
|
||||
|
||||
<canvas bind:this={domChart} {...$$restProps} />
|
||||
<canvas bind:this={domChart} {...$$restProps} use:contextMenu={menu} />
|
||||
|
||||
Reference in New Issue
Block a user