v3.6.0 封装iframe组件

This commit is contained in:
YunaiV
2022-02-15 22:24:48 +08:00
parent 833ac54a2f
commit 4a8129bffa
8 changed files with 66 additions and 88 deletions

View File

@@ -10,15 +10,17 @@
<!-- 展示文档 -->
<div v-loading="loading" :style="'height:'+ height">
<iframe :src="src" frameborder="no" style="width: 100%;height: 100%" scrolling="auto" />
<i-frame :src="src" />
</div>
</div>
</template>
<script>
import { exportHtml, exportWord, exportMarkdown} from "@/api/tool/dbDoc";
import iFrame from "@/components/iFrame/index";
export default {
name: "DBDoc",
components: { iFrame },
data() {
return {
height: document.documentElement.clientHeight - 94.5 + "px;",