From e4ea7a173acacfda5ed899ef2756cc2d05c0c393 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Wed, 12 Jun 2019 20:26:40 +0800 Subject: [PATCH] HistoryPanel --- ShadowEditor.UI/src/editor/sidebar/HistoryPanel.jsx | 9 ++++++++- .../src/editor/sidebar/css/HistoryPanel.css | 12 ++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) diff --git a/ShadowEditor.UI/src/editor/sidebar/HistoryPanel.jsx b/ShadowEditor.UI/src/editor/sidebar/HistoryPanel.jsx index f68427b9..0f1b15be 100644 --- a/ShadowEditor.UI/src/editor/sidebar/HistoryPanel.jsx +++ b/ShadowEditor.UI/src/editor/sidebar/HistoryPanel.jsx @@ -2,6 +2,8 @@ import './css/HistoryPanel.css'; import classNames from 'classnames/bind'; import PropTypes from 'prop-types'; +import Content from '../../layout/Content.jsx'; + /** * 历史面板 * @author tengge / https://github.com/tengge1 @@ -12,7 +14,12 @@ class HistoryPanel extends React.Component { } render() { - return
History
; + return +
Add Object:Box
+
Set Position
+
Set Position
+
Set Position
+
; } } diff --git a/ShadowEditor.UI/src/editor/sidebar/css/HistoryPanel.css b/ShadowEditor.UI/src/editor/sidebar/css/HistoryPanel.css index e69de29b..a74c5a43 100644 --- a/ShadowEditor.UI/src/editor/sidebar/css/HistoryPanel.css +++ b/ShadowEditor.UI/src/editor/sidebar/css/HistoryPanel.css @@ -0,0 +1,12 @@ +.HistoryPanel { + border: 1px solid #ccc; + box-sizing: border-box; +} + +.HistoryPanel .item { + padding-left: 4px; +} + +.HistoryPanel .item.undo { + opacity: .3; +} \ No newline at end of file