mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
准备补充样式
This commit is contained in:
parent
b332b6f2a0
commit
8f02eabd61
@ -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
|
||||
|
5
examples/components/Style/index.tsx
Normal file
5
examples/components/Style/index.tsx
Normal file
@ -0,0 +1,5 @@
|
||||
import React from 'react';
|
||||
|
||||
export default function () {
|
||||
return <p>Todo</p>;
|
||||
}
|
Loading…
Reference in New Issue
Block a user