From c3fab912ee18f6ee56b8ba5efc1abd8bddc1faaa Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Thu, 16 May 2019 21:06:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A0=B7=E5=BC=8F=E7=BE=8E=E5=8C=96=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.UI/src/property/PropertyGrid.jsx | 4 ++++ ShadowEditor.UI/src/property/css/PropertyGrid.css | 2 ++ ShadowEditor.UI/src/tree/css/Tree.css | 2 ++ 3 files changed, 8 insertions(+) diff --git a/ShadowEditor.UI/src/property/PropertyGrid.jsx b/ShadowEditor.UI/src/property/PropertyGrid.jsx index f62593ea..40640474 100644 --- a/ShadowEditor.UI/src/property/PropertyGrid.jsx +++ b/ShadowEditor.UI/src/property/PropertyGrid.jsx @@ -10,6 +10,10 @@ import PropTypes from 'prop-types'; * @property {Object} data 数据 */ class PropertyGrid extends React.Component { + constructor(props) { + super(props); + } + render() { const { className, style, data } = this.props; diff --git a/ShadowEditor.UI/src/property/css/PropertyGrid.css b/ShadowEditor.UI/src/property/css/PropertyGrid.css index 8bd17413..1fef1489 100644 --- a/ShadowEditor.UI/src/property/css/PropertyGrid.css +++ b/ShadowEditor.UI/src/property/css/PropertyGrid.css @@ -5,6 +5,8 @@ box-sizing: border-box; overflow-x: hidden; overflow-y: auto; + cursor: default; + user-select: none; } .PropertyGrid .group { diff --git a/ShadowEditor.UI/src/tree/css/Tree.css b/ShadowEditor.UI/src/tree/css/Tree.css index 8adc61a8..a24f330d 100644 --- a/ShadowEditor.UI/src/tree/css/Tree.css +++ b/ShadowEditor.UI/src/tree/css/Tree.css @@ -2,6 +2,8 @@ list-style: none; margin: 0; padding: 0; + font: 12px 'Microsoft YaHei'; + line-height: 18px; } .Tree .node i {