搜索结果列表页面开发

This commit is contained in:
付民康
2025-03-12 18:41:20 +08:00
commit 7cebe8fc00
739 changed files with 88149 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
```
mock数据地址: renderer-yaml/mock/data.ts
```
### 预览组件
1. 使用方式
```js
import rendererPreview from '@/components/renderer-yaml/mode/preview'
```
2. Props
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| content | yaml文件内容 | string | empty |
### Form提交组件
1. 使用方式
```js
import rendererPreview from '@/components/renderer-yaml/mode/form'
```
2. Props
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
### Yaml 转换成 markdown协议字符串
1. 使用方式
```js
import toMarkdown from '@/components/renderer-yaml/helper/toMarkdown';
const markdown = toMarkdown(yamlContent);
console.log(markdown)
```