update 代码生成预览增加高亮

This commit is contained in:
lau
2025-08-20 22:09:48 +08:00
parent d23bf73a2e
commit 257ececa52

View File

@@ -104,7 +104,7 @@
<el-link v-copyText="value" v-copyText:callback="copyTextSuccess" :underline="false" icon="DocumentCopy" style="float: right">
&nbsp;复制
</el-link>
<pre>{{ value }}</pre>
<highlightjs :code="value" />
</el-tab-pane>
</el-tabs>
</el-dialog>
@@ -248,3 +248,12 @@ onMounted(() => {
getDataNameList();
});
</script>
<style lang="scss" scoped>
.el-tab-pane {
background-color: #282c34;
.el-link {
color: #fff;
}
}
</style>