mirror of
https://github.com/NicolasBohn/NexQuant.git
synced 2026-07-28 16:07:46 +00:00
14395488b9
* update rdagent cmd * fix log error message * use multiProcessing.Process instead of subprocess.Popen * add traces to gitignore * add user interactor in RDLoop (finance scenarios) * add interactor (feedback, hypothesis) for quant scens * fix the test_end in qlib conf * add features init config, general instruction to qlib scenarios * set base features for based exp * fix bug when combine factors * move traces folder to git_ignore_folder * fix bug in features init * fix quant interact bug * fix logger warning error * bug fixes * modify rdagent logger, now it can set file output * adjust cli functions and fix logger bug * fix server port transport problem * update server_ui in cli * add web code * fix CI problem * black fix * update web ui README * update README * update readme
52 lines
1.1 KiB
Vue
52 lines
1.1 KiB
Vue
<template>
|
|
<div class="markdown-body" v-html="renderedHtml"></div>
|
|
</template>
|
|
<script setup>
|
|
import { ref, watch, computed, onMounted, defineProps } from "vue";
|
|
import { marked } from "marked";
|
|
import "github-markdown-css/github-markdown.css";
|
|
|
|
const props = defineProps({
|
|
markdown: String,
|
|
});
|
|
const markdown = ref(props.markdown);
|
|
watch(
|
|
() => props.markdown,
|
|
(newValue, oldValue) => {
|
|
markdown.value = newValue;
|
|
}
|
|
);
|
|
|
|
// 通过 computed 属性来动态计算渲染后的 HTML 内容
|
|
const renderedHtml = computed(() => {
|
|
return marked(markdown.value); // 使用 marked 转换为 HTML
|
|
});
|
|
</script>
|
|
|
|
<style lang="scss">
|
|
.markdown-body {
|
|
padding: 0 1.35em;
|
|
background-color: var(--bg-white-blue-color);
|
|
border-radius: 8px;
|
|
font-family: "Segoe UI";
|
|
max-height: 8.505em;
|
|
overflow: auto;
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: #fff;
|
|
}
|
|
&:hover {
|
|
&::-webkit-scrollbar-thumb {
|
|
background-color: #e4e7ff;
|
|
}
|
|
}
|
|
table {
|
|
// margin: 0 auto;
|
|
width: 100%;
|
|
display: inline-table;
|
|
tr {
|
|
background-color: var(--bg-white-blue-color);
|
|
}
|
|
}
|
|
}
|
|
</style>
|