diff --git a/src/assets/index.sass b/src/assets/index.sass index 54eaddc..4c1c8db 100644 --- a/src/assets/index.sass +++ b/src/assets/index.sass @@ -71,3 +71,19 @@ pre border-radius: 0.4rem; background-color: $bg; white-space: pre-wrap; + +.btn-top + position: fixed; + right: 150px; + bottom: -1px; + width: 90px; + height: 50px; + text-align: center; + vertical-align: middle; + padding: 16px; + z-index: 99999; + background-color: #ffffff; + border: 1px solid #DDDDDD; + border-radius: 16px; + border-bottom-left-radius: 0; + border-bottom-right-radius: 0; \ No newline at end of file diff --git a/src/components/editor/InterfaceList.jsx b/src/components/editor/InterfaceList.jsx index b75dbb4..c1145cd 100644 --- a/src/components/editor/InterfaceList.jsx +++ b/src/components/editor/InterfaceList.jsx @@ -4,6 +4,7 @@ import { RModal, RSortable } from '../utils' import InterfaceForm from './InterfaceForm' import { GoPencil, GoTrashcan, GoRocket, GoLock } from 'react-icons/lib/go' import { getCurrentInterface } from '../../selectors/interface'; +import './InterfaceList.css' class Interface extends Component { static contextTypes = { diff --git a/src/components/editor/InterfaceList.sass b/src/components/editor/InterfaceList.sass new file mode 100644 index 0000000..44987a2 --- /dev/null +++ b/src/components/editor/InterfaceList.sass @@ -0,0 +1,3 @@ +.InterfaceList + max-height: 500px; + overflow-y: auto; \ No newline at end of file diff --git a/src/routes.jsx b/src/routes.jsx index 429eb23..95e5766 100644 --- a/src/routes.jsx +++ b/src/routes.jsx @@ -102,6 +102,9 @@ const Routes = ({ match, location }, { store }) => { } return (
+
{ console.log('hahaha'); window.scrollTo(0, 0) }}> + 回到顶部 +