Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-fe
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
poc
poc-fe
Commits
1f48755c
Commit
1f48755c
authored
Apr 30, 2025
by
tyyin lan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 代码执行块渲染
parent
406cb618
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
execute-code-render.vue
src/components/execute-code-render/execute-code-render.vue
+21
-0
No files found.
src/components/execute-code-render/execute-code-render.vue
0 → 100644
View file @
1f48755c
<
script
setup
lang=
"ts"
>
import
MarkdownRender
from
'@/components/markdown-render/markdown-render.vue'
interface
Props
{
title
:
string
rawTextContent
:
string
}
const
{
rawTextContent
,
title
}
=
defineProps
<
Props
>
()
</
script
>
<
template
>
<div
class=
"rounded-[10px] bg-[#f3f5f9] p-[14px]"
>
<div
class=
"mb-[12px]"
>
<i
class=
"iconfont icon-tongyi font-600 text-[14px] text-[#6ccb59]"
></i>
<span
class=
"ml-[5px] text-[14px] text-[#999]"
>
{{
title
}}
</span>
</div>
<MarkdownRender
ref=
"markdownRenderRef"
:raw-text-content=
"rawTextContent"
dark-theme
color=
"#fff"
/>
</div>
</
template
>
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment