From ae37c84f3ee2959b7ee63dfa5bc37672cb983eee Mon Sep 17 00:00:00 2001 From: liteng <930372551@qq.com> Date: Wed, 31 Jul 2019 07:33:46 +0800 Subject: [PATCH] TextureProperty --- ShadowEditor.Web/src/ui/form/Input.jsx | 6 ++++-- ShadowEditor.Web/src/ui/form/css/Input.css | 4 ++++ .../src/ui/property/TextureProperty.jsx | 14 ++++++++------ .../src/ui/property/css/TextureProperty.css | 3 +++ 4 files changed, 19 insertions(+), 8 deletions(-) diff --git a/ShadowEditor.Web/src/ui/form/Input.jsx b/ShadowEditor.Web/src/ui/form/Input.jsx index 6cb4f514..c906013f 100644 --- a/ShadowEditor.Web/src/ui/form/Input.jsx +++ b/ShadowEditor.Web/src/ui/form/Input.jsx @@ -15,12 +15,12 @@ class Input extends React.Component { } render() { - const { className, style, name, type, value, min, max, step, disabled } = this.props; + const { className, style, name, type, value, min, max, step, show, disabled } = this.props; let val = value === undefined || value === null ? '' : value; return ; + return
+ + ; + +
; } componentDidMount() { diff --git a/ShadowEditor.Web/src/ui/property/css/TextureProperty.css b/ShadowEditor.Web/src/ui/property/css/TextureProperty.css index 175daa6d..70b64812 100644 --- a/ShadowEditor.Web/src/ui/property/css/TextureProperty.css +++ b/ShadowEditor.Web/src/ui/property/css/TextureProperty.css @@ -6,6 +6,9 @@ position: absolute; width: 100%; height: 48px; + display: flex; + align-items: center; + justify-content: flex-start; box-sizing: border-box; cursor: pointer; } \ No newline at end of file