fix:修复显示与编辑不一致的问题
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
toolbar:[
|
toolbar:[
|
||||||
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
[{ 'header': [1, 2, 3, 4, 5, 6, false] }],
|
||||||
['bold', 'italic', 'underline', 'strike'],
|
['bold', 'italic', 'underline', 'strike'],
|
||||||
['link'],
|
['link','code-block'],
|
||||||
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
[{ 'list': 'ordered'}, { 'list': 'bullet' }],
|
||||||
[{ 'color': [] }, { 'background': [] }],
|
[{ 'color': [] }, { 'background': [] }],
|
||||||
[{ 'align': [] }],
|
[{ 'align': [] }],
|
||||||
@@ -54,7 +54,7 @@
|
|||||||
},
|
},
|
||||||
getHtml:function(){
|
getHtml:function(){
|
||||||
let html=this.quill.root.innerHTML;
|
let html=this.quill.root.innerHTML;
|
||||||
return html;
|
return `<div class="editor-core ql-container ql-snow"><div class="ql-editor">${html}</div></div>`;
|
||||||
},
|
},
|
||||||
guid() {
|
guid() {
|
||||||
function S4() {
|
function S4() {
|
||||||
|
|||||||
@@ -43,7 +43,11 @@
|
|||||||
<span class="nz-dialog-title">{{data.title}}</span>
|
<span class="nz-dialog-title">{{data.title}}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="rich-text-screen-container" >
|
<div class="rich-text-screen-container" >
|
||||||
<div id="chartScreenContainer" ref="chartScreenContainer" class="text-content" v-html="screenText" v-scrollBar></div>
|
<div id="chartScreenContainer" ref="chartScreenContainer" class="text-content" >
|
||||||
|
<el-scrollbar style="height: 100%;" class="el-scrollbar-normal">
|
||||||
|
<div style="height: 100%;" v-html="screenText" ></div>
|
||||||
|
</el-scrollbar>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<loading :ref="'localLoadingScreen'+chartIndex"></loading>
|
<loading :ref="'localLoadingScreen'+chartIndex"></loading>
|
||||||
</el-dialog>
|
</el-dialog>
|
||||||
@@ -54,12 +58,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
import bus from '../../libs/bus';
|
|
||||||
import {Loading} from 'element-ui';
|
|
||||||
import chartDataFormat from './chartDataFormat'
|
|
||||||
import loading from "../common/loading";
|
import loading from "../common/loading";
|
||||||
import timePicker from '../common/timePicker'
|
import timePicker from '../common/timePicker'
|
||||||
|
import 'quill/dist/quill.snow.css'
|
||||||
export default {
|
export default {
|
||||||
name: 'chartSingleStat',
|
name: 'chartSingleStat',
|
||||||
components: {
|
components: {
|
||||||
|
|||||||
Reference in New Issue
Block a user