feat:text chart 增加长度校验

This commit is contained in:
wangwenrui
2020-10-21 12:00:30 +08:00
parent 4c5d9aa11c
commit 0840040fbd
6 changed files with 70 additions and 11 deletions

View File

@@ -162,7 +162,11 @@
<chart-alert-list v-if="chart.type === 'alertList'" ref="alertListChart" id="chartAlertListPreview" :chart-info="chart"></chart-alert-list>
<template v-if="chart.type==='text'">
<div v-html="chart.param.text" id="chartTextPreview"></div>
<div id="chartTextPreview" class="chart-text-preview">
<el-scrollbar style="height: 100%;" class="el-scrollbar-normal">
<div style="height: 100%;" v-html="chart.param.text" ></div>
</el-scrollbar>
</div>
</template>
<loading ref="loadingPreview"></loading>