mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-02 12:08:13 +08:00
修复其他主题不能预览问题
This commit is contained in:
parent
7541e513e5
commit
86fac301c1
@ -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