Skip to content

Commit ba1e580

Browse files
authored
Merge pull request #285 from aojunhao123/dev
feat: add an extra button for easy access
2 parents 1490d6d + fb8533d commit ba1e580

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/components/editor/action/EditorActionAdd.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,10 @@ export const EditorActionAdd = ({
194194

195195
<div className="flex-1" />
196196

197+
<FormSubmitButton control={control} icon={isNew ? 'add' : 'edit'}>
198+
{isNew ? '添加' : '保存'}
199+
</FormSubmitButton>
200+
197201
<EditorResetButton
198202
reset={() => reset(resettingValues)}
199203
entityName="正在编辑的动作"

0 commit comments

Comments
 (0)