Browse Source

gengxin

wangqin
hui 11 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:{ tpl:{
handler(newV){ 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(); this.setStyle();
}, },
deep:true, deep:true,
@ -125,7 +125,7 @@ export default {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: center;
.boardTxt{ .boardTxt{
color: #f00; color: #f00;
line-height: 1; line-height: 1;

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

@ -56,7 +56,7 @@ export default {
}, },
tpl:{ tpl:{
handler(newV){ 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(); this.setStyle();
}, },
deep:true, deep:true,
@ -107,7 +107,7 @@ export default {
display: flex; display: flex;
overflow: hidden; overflow: hidden;
flex-direction: column; flex-direction: column;
justify-content: flex-start; justify-content: center;
.boardTxt{ .boardTxt{
color: #f00; color: #f00;
line-height: 1; line-height: 1;

Loading…
Cancel
Save