cnd-components-mcp
Version:
An MCP service for Cnd components query | 一个减少 Cnd 组件代码生成幻觉的 MCP 服务,包含系统提示词、组件文档、API 文档、代码示例和更新日志查询
30 lines (26 loc) • 671 B
Markdown
## 示例
```tsx
import React from 'react';
import { Button, Dialog } from '@alicloud/console-components';
const popupConfirm = () => {
Dialog.confirm({
title: '正常提示',
content: '详细文本信息或状态描述',
onOk: () => console.log('ok'),
onCancel: () => console.log('cancel'),
closeable: false,
hasMask: false,
});
};
export default () => {
return (
<div>
<Button onClick={popupConfirm}>正常提示</Button>
</div>
);
};
export const meta = {
title: '非模态遮罩',
describe: '对话框唤起后默认自带模态遮罩,通过hasMask属性控制遮罩是否显示',
};
```