Unverified 提交 41479705 authored 作者: 王嘉豪's avatar 王嘉豪 提交者: GitHub

Merge pull request #1283 from dataease/dev

Dev
<template>
<div>
<canvas id="canvas" width="500" height="500" />
<canvas :id="'complex_canvas'+element.id" width="500" height="500" />
</div>
</template>
......@@ -30,7 +30,7 @@ export default {
}
},
mounted() {
this.canvas = document.getElementById('canvas')
this.canvas = document.getElementById('complex_canvas' + this.element.id)
this.initCtx()
this.initCtxBack()
this.initNumBack()
......
......@@ -2,7 +2,7 @@
<div :style="{ 'height': containerHeight}">
<div ref="canvasContainer" class="time-s-class" style="height: calc(100% - 50px);" :style="{'margin':timeMargin +'px'}">
<canvas
id="canvas"
:id="'simple-canvas'+element.id"
class="de-canvas"
:width="canvas_width"
:height="canvas_height"
......@@ -47,7 +47,7 @@ export default {
}
},
mounted() {
this.canvas = document.getElementById('canvas')
this.canvas = document.getElementById('simple-canvas' + this.element.id)
this.draw = this.canvas.getContext('2d')
this.canvas_width = this.element.style.width
this.canvas_height = this.element.style.height
......
<template>
<el-row class="slider-container">
<div
style="height: 40px; line-height: 40px; padding-left: 15px; text-align: left; white-space: pre; text-overflow: ellipsis; left: 0px; right: 0px; top: 0px; font-weight: 700"
style="height: 40px; padding-left: 15px; text-align: left; white-space: pre; text-overflow: ellipsis; left: 0px; right: 0px; top: 0px; font-weight: 700"
>
{{ $t('panel.dashboard_theme') }}
</div>
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论