mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
修复其他主题不能预览问题
This commit is contained in:
parent
f3cb2d7ab4
commit
ad3bd63594
@ -385,6 +385,7 @@ export class App extends React.PureComponent {
|
||||
</div>
|
||||
|
||||
{React.cloneElement(this.props.children, {
|
||||
key: theme.value,
|
||||
...this.props.children.props,
|
||||
setNavigations: this.setNavigations,
|
||||
setAsideFolded: this.setAsideFolded,
|
||||
|
@ -46,6 +46,7 @@ class CodePreview extends React.Component {
|
||||
show
|
||||
>
|
||||
<PopOver
|
||||
theme={(rest as any).theme}
|
||||
offset={{x: 0, y: -height}}
|
||||
style={{height}}
|
||||
className=":MDPreview-shcema-preview-popover"
|
||||
|
@ -85,6 +85,7 @@ export default class PlayGround extends React.Component {
|
||||
}
|
||||
};
|
||||
this.env = {
|
||||
session: 'doc',
|
||||
updateLocation: () => {},
|
||||
fetcher: config => {
|
||||
config = {
|
||||
@ -182,7 +183,9 @@ export default class PlayGround extends React.Component {
|
||||
const props = {
|
||||
...this.schemaProps,
|
||||
theme: this.props.theme,
|
||||
locale: this.props.locale
|
||||
locale: this.props.locale,
|
||||
affixHeader: false,
|
||||
affixFooter: false
|
||||
};
|
||||
|
||||
if (!this.props.useIFrame) {
|
||||
|
Loading…
Reference in New Issue
Block a user