准备补充样式

This commit is contained in:
2betop 2020-11-27 17:48:03 +08:00
parent b332b6f2a0
commit 8f02eabd61
2 changed files with 11 additions and 0 deletions

View File

@ -24,6 +24,7 @@ import Select from '../../src/components/Select';
import DocSearch from './DocSearch';
import Doc, {docs} from './Doc';
import Example, {examples} from './Example';
import Style from './Style';
let ExamplePathPrefix = '/examples';
let DocPathPrefix = '/docs';
@ -225,6 +226,9 @@ export class App extends React.PureComponent {
<Link to={`${ContextPath}/examples`} activeClassName="is-active">
</Link>
<Link to={`${ContextPath}/style`} activeClassName="is-active">
</Link>
<a
href="https://github.com/fex-team/amis-editor-demo"
target="_blank"
@ -458,6 +462,8 @@ export default function entry({pathPrefix}) {
// PathPrefix = pathPrefix || DocPathPrefix;
return (
<Router history={browserHistory}>
<Route path={`${ContextPath}/style`} component={Style}></Route>
<Route component={App}>
<Redirect from={`${ContextPath}/`} to={`${ContextPath}/docs/index`} />
<Redirect

View File

@ -0,0 +1,5 @@
import React from 'react';
export default function () {
return <p>Todo</p>;
}