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