chore: chatgpt prompts

This commit is contained in:
lencx
2022-12-15 21:46:15 +08:00
parent 0649723c3c
commit 7da70733a3
7 changed files with 76 additions and 11 deletions

23
src/view/ChatGPTPrompts/config.tsx vendored Normal file
View File

@@ -0,0 +1,23 @@
import { Tag, Tooltip } from 'antd';
export const columns = [
{
title: 'Command',
dataIndex: 'cmd',
key: 'cmd',
},
{
title: 'Type',
dataIndex: 'type',
key: 'type',
render: (v: string) => <Tag>{v}</Tag>
},
{
title: 'Content',
dataIndex: 'content',
key: 'content',
render: (v: string) => (
<Tooltip overlayInnerStyle={{ width: 350 }} title={v}><span className="chat-prompts-val">{v}</span></Tooltip>
),
},
];