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 {