add polyline chart

This commit is contained in:
jiaming 2018-12-08 19:06:13 +08:00
parent 087dbeae23
commit 17c7631967
1 changed files with 20 additions and 1 deletions

View File

@ -1,6 +1,10 @@
<template>
<div class="polyline-chart">
<canvas :ref="ref" />
<div class="for-slot">
<slot></slot>
</div>
</div>
</template>
@ -46,6 +50,21 @@ export default {
}
</script>
<style>
<style lang="less">
.polyline-chart {
position: relative;
canvas {
width: 100%;
height: 100%;
}
.for-slot {
position: absolute;
top: 0px;
left: 0px;
width: 100%;
height: 100%;
}
}
</style>