- 源码 316 文件收编为 rusto-rs/ 文件夹,随本仓库管理 - 移除内部 .git(补丁已存档 docs/rusto-rs-metal-patch-20260912.patch,上游可随时 re-clone) - target/ 与 docs/.yarn 缓存不入库;本地改动:ROCR_* 环境变量调优 + Metal 链接修复 + 预处理测试脚本
42 lines
606 B
Vue
42 lines
606 B
Vue
<template>
|
|
<Mermaid v-if="language === 'mermaid'" :code="code" />
|
|
<pre v-else :class="$props.class"><slot /></pre>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import Mermaid from './Mermaid.vue';
|
|
|
|
defineProps({
|
|
code: {
|
|
type: String,
|
|
default: '',
|
|
},
|
|
language: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
filename: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
highlights: {
|
|
type: Array,
|
|
default: () => [],
|
|
},
|
|
meta: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
class: {
|
|
type: String,
|
|
default: null,
|
|
},
|
|
});
|
|
</script>
|
|
|
|
<style>
|
|
pre code .line {
|
|
display: block;
|
|
}
|
|
</style>
|