export default {
data() {
return {}
},
computed:{
text(){
return this.dataIntroduce.replace(/<img([\s]+)/ig, '<img class="img" style="max-width:100%!important;display:block" ')
}
},
props:['dataIntroduce'],
onReady: function (res) {},
created(){},
methods: { }
}
text为:<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no"/>
<style>
.xgx-editor *{
cursor: text;
font-size: 16px!important;
font-family:'PingFangSC','STHeiti','Microsoft YaHei','Helvetica','Arial',sans-serif;
}
.xgx-editor ol,.xgx-editor p,.xgx-editor ul{
margin: 1em 0;
line-height: 1.5;
}
.xgx-editor hr{
margin: 3em 0 0 0;
border: 1px solid #e9e9e9;
border-width: 1px 0 0;
}
.xgx-editor blockquote{
padding: 12px 8px;
color: #999;
background-color: #f3f4f5;
margin: 10px 0;
border:none!important;
}
.xgx-editor blockquote span{
color:#999;
}
.xgx-editor blockquote p{
margin:0!important;
line-height: 1.4em!important;
}
.xgx-editor h1{
display:inline-block;
font-size: 1em;
line-height: 1.25em;
padding-left: 12px;
font-weight: 700;
border-left: 4px solid #f85959;
margin: 1em 0;
}
.xgx-editor img{
max-width:100%;
}
.xgx-editor h1 strong{
line-height:1.25em;
}
.xgx-editor h1 span{
font-size: 1em;
line-height: 1em;
}
.xgx-editor pre{
background: #f0f0f0!important;
color:#222!important;
border-radius: 3px;
}
.xgx-editor p{
word-wrap:break-word;
}
.xgx-editor ol li:not(.ql-direction-rtl),.xgx-editor ul li:not(.ql-direction-rtl){
padding-left:1.5em;
}
.xgx-editor ol > li{
list-style:none;
}
.xgx-editor ol,.xgx-editor ul{
padding:0px!important;
}
.xgx-editor ol > li::before{
content:counter(list-0, decimal) '. ';
display: inline-block;
white-space: nowrap;
}
.xgx-editor li:not(.ql-direction-rtl)::before{
margin-left: -1.6em;
margin-right: 0.3em;
text-align: right;
}
.xgx-editor ul > li::before{
content:'·';
}
.xgx-editor blockquote, .xgx-editor h1, .xgx-editor h2, .xgx-editor h3, .xgx-editor h4, .xgx-editor h5, .xgx-editor h6, .xgx-editor ol, .xgx-editor p, .xgx-editor pre, .xgx-editor ul{
counter-reset:list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
}
.xgx-editor ol li{
counter-reset: list-1 list-2 list-3 list-4 list-5 list-6 list-7 list-8 list-9;
counter-increment: list-0
}
</style><div class="xgx-editor"><p><span style="color: rgb(34, 34, 34);"><img class="img" style="max-width:100%!important;display:block" width="100%!important" src="https://xgxw-pic.oss-cn-beijing.aliyuncs.com/xgxw/c3ec461e-3aa4-42c4-bac1-cda489872c8a.jpg"></span></p></div>
<image :src="objs.surfacePlot" @touchmove='touchmoveEven($event,1)' @touchstart="touchstartEven($event,1)" @touchend='touchendEven($event,1)'/>
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。