feat: 编辑器只读模式的subEditor支持返回 (#10959)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2024-09-25 10:18:46 +08:00 committed by GitHub
parent 625d36c82a
commit 1ad9481ae3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -136,6 +136,11 @@
height: 100%;
margin: 0;
}
&-back {
position: absolute;
bottom: 46px;
left: 20px;
}
}
// 弹窗编辑器面板

View File

@ -195,8 +195,14 @@ export class SubEditor extends React.Component<SubEditorProps> {
readonly={readonly}
/>
)
},
readonly && {
type: 'button',
label: '返回编辑器',
className: 'subEditor-container-back',
onClick: () => store.closeSubEditor()
}
]
].filter(Boolean)
}
: {
type: 'tpl',