generated from lobehub/chat-plugin-template
-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
44 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
import { Steps } from 'antd'; | ||
import { createStyles } from 'antd-style'; | ||
import { memo } from 'react'; | ||
|
||
const useStyles = createStyles(({ css }) => ({ | ||
step: css` | ||
.ant-steps-item-content { | ||
padding-bottom: 24px; | ||
} | ||
`, | ||
})); | ||
|
||
const Guide = memo(() => { | ||
const { styles } = useStyles(); | ||
return ( | ||
<Steps | ||
className={styles.step} | ||
current={-1} | ||
direction="vertical" | ||
items={[ | ||
{ | ||
description: '进入设置,填写 Midjourney API 代理地址', | ||
title: '绑定 Midjourney API 服务', | ||
}, | ||
{ | ||
description: '输入框中输入提示词,点击生成按钮开始生成', | ||
title: '开始出图', | ||
}, | ||
]} | ||
style={{ gap: 24, width: 'fit-content' }} | ||
/> | ||
); | ||
}); | ||
|
||
export default Guide; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters