|
我这运行正常,没有什么空白啊
- <template>
- <scroll-view class="main" scroll-y>
- <rich-text nodes={nodes}></rich-text>
- </scroll-view>
- </template>
- <style>
- .main {
- width: 100%;
- height: 100%;
- }
- </style>
- <script>
- export default {
- name: 'test',
- data(){
- return {
- nodes: ''
- }
- },
- methods:{
- apiready(){
- this.data.nodes = `
- <img src="https://t7**.**/it/u=825057118,3516313570&fm=193&f=GIF" width="242" >
- <img src="https://t7**.**/it/u=3908717,2002330211&fm=193&f=GIF" width="242" >
- `;
- }
- }
- }
- </script>
复制代码 |
|