feat: 商品详情图片宽度兜底
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<view class="detail-content-card ss-p-b-20">
|
||||
<view class="card-content">
|
||||
<mp-html :content="content"></mp-html>
|
||||
<mp-html :content="content" :tag-style="tagStyle"></mp-html>
|
||||
</view>
|
||||
</view>
|
||||
</template>
|
||||
@@ -13,6 +13,10 @@
|
||||
default: '',
|
||||
},
|
||||
});
|
||||
|
||||
const tagStyle = {
|
||||
img: 'display:block;width:100%;height:auto;',
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
||||
Reference in New Issue
Block a user