update
This commit is contained in:
@@ -19,11 +19,11 @@
|
||||
</template>
|
||||
<Editor language="css" :font-size="size" v-model:value="css" />
|
||||
</n-tab-pane>
|
||||
<n-tab-pane disabled name="js" tab="JS(未完成)">
|
||||
<n-tab-pane name="js" tab="JS">
|
||||
<template #tab>
|
||||
<n-flex align="center">
|
||||
<Icon icon="skill-icons:javascript" :width="20" :height="20"></Icon>
|
||||
<span>JS(未完成)</span>
|
||||
<span>JS(需要刷新)</span>
|
||||
</n-flex>
|
||||
</template>
|
||||
<Editor language="js" :font-size="size" v-model:value="js" />
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
</template>
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { html, css } from "../store.ts"
|
||||
import { html, css, js } from "../store.ts"
|
||||
import { onMounted, useTemplateRef, watch } from "vue"
|
||||
|
||||
const iframe = useTemplateRef<HTMLIFrameElement>("iframe")
|
||||
@@ -23,6 +23,7 @@ function preview() {
|
||||
</head>
|
||||
<body>
|
||||
${html.value}
|
||||
<script>${js.value}<\/script>
|
||||
</body>
|
||||
</html>`)
|
||||
doc.close()
|
||||
|
||||
Reference in New Issue
Block a user