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