cnd-components-mcp
Version:
An MCP service for Cnd components query | 一个减少 Cnd 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
30 lines (20 loc) • 699 B
Markdown
# 日志编辑器
## 代码库地址
https://code.alibaba-inc.com/cn-lowcode/cn-material-codemirror
基础演示
```jsx preview
import React from 'react';
import { LogEditor } from '@ali/cnd';
const demoLogValue = `2023-05-30 10:11:05 INFO xxx-xxxx-xx-xxx-xxxx - FC Invoke Start RequestId: xxx-xxxx-xx-xxx-xxxx
2023-05-30 10:11:05 INFO xxx-xxxx-xx-xxx-xxxx - Begin to setup Serverless Devs...
`
export default function App () {
return (<LogEditor value={demoLogValue} />)
}
```
## API
| 属性 | 说明 | 类型 | 默认值 |
| -------- | -------------------- | --------------- | ------ |
| value | log日志内容 | string | - |