Houjie
4 天以前 30590221cd34912a61f4734ea474859a0df98be6
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<template>
  <web-view :src="previewUrl"></web-view>
</template>
 
<script>
export default {
  name: 'PrintPreview',
  data() {
    return {
      previewUrl: ''
    };
  },
  onLoad(options) {
    // 接收 HTML 内容的临时 URL
    this.previewUrl = options.previewUrl;
  }
};
</script>
 
<style scoped>
web-view {
  width: 100%;
  height: 100vh;
}
</style>