Browse Source

gengxin

wangqin
hui 10 months ago
parent
commit
710cff42e6
  1. 4
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue
  2. 4
      ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue

4
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardPreview.vue

@ -71,7 +71,7 @@ export default {
},
tpl:{
handler(newV){
this.contentArr = this.tpl.textContent.replace(/\+n|\+r\n/g, '&&&&&').replace(/ /g, '&nbsp').split('&&&&&');
this.contentArr = this.tpl.textContent.replace(/\\+n|\\+r\n/g, '&&&&&').replace(/ /g, '&nbsp').split('&&&&&');
this.setStyle();
},
deep:true,
@ -125,7 +125,7 @@ export default {
display: flex;
overflow: hidden;
flex-direction: column;
justify-content: flex-start;
justify-content: center;
.boardTxt{
color: #f00;
line-height: 1;

4
ruoyi-ui/src/views/JiHeExpressway/components/infoBoard/BoardTplPreview.vue

@ -56,7 +56,7 @@ export default {
},
tpl:{
handler(newV){
this.contentArr = this.tpl.content.replace(/\n|\r\n/g, '&&&&&').replace(/ /g, '&nbsp').split('&&&&&');
this.contentArr = this.tpl.content.replace(/\\+n|\\+r\n/g, '&&&&&').replace(/ /g, '&nbsp').split('&&&&&');
this.setStyle();
},
deep:true,
@ -107,7 +107,7 @@ export default {
display: flex;
overflow: hidden;
flex-direction: column;
justify-content: flex-start;
justify-content: center;
.boardTxt{
color: #f00;
line-height: 1;

Loading…
Cancel
Save