From 47f875665bbf56ea9ca7ded4b78ee3be799373b3 Mon Sep 17 00:00:00 2001 From: tengge1 <930372551@qq.com> Date: Sun, 14 Jul 2019 09:24:05 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E8=BE=91=E5=88=A0=E9=99=A4=E8=84=9A?= =?UTF-8?q?=E6=9C=AC=E6=8F=90=E7=A4=BA=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ShadowEditor.UI/src/icon/Icon.jsx | 5 ++++- ShadowEditor.Web/lang/zh-CN.js | 4 +++- ShadowEditor.Web/src/editor2/sidebar/ScriptPanel.jsx | 4 ++-- ShadowEditor.Web/src/language/Language.js | 2 ++ 4 files changed, 11 insertions(+), 4 deletions(-) diff --git a/ShadowEditor.UI/src/icon/Icon.jsx b/ShadowEditor.UI/src/icon/Icon.jsx index e05c91b7..b7cf8cd1 100644 --- a/ShadowEditor.UI/src/icon/Icon.jsx +++ b/ShadowEditor.UI/src/icon/Icon.jsx @@ -14,13 +14,14 @@ class Icon extends React.Component { } render() { - const { className, style, name, icon } = this.props; + const { className, style, name, icon, title } = this.props; return ; } @@ -35,6 +36,7 @@ Icon.propTypes = { style: PropTypes.object, name: PropTypes.string, icon: PropTypes.string, + title: PropTypes.string, onClick: PropTypes.func, }; @@ -43,6 +45,7 @@ Icon.defaultProps = { style: null, name: null, icon: null, + title: null, onClick: null, }; diff --git a/ShadowEditor.Web/lang/zh-CN.js b/ShadowEditor.Web/lang/zh-CN.js index 2cbaefc5..728789c4 100644 --- a/ShadowEditor.Web/lang/zh-CN.js +++ b/ShadowEditor.Web/lang/zh-CN.js @@ -631,4 +631,6 @@ L_TREE_DIAGRAM = '树状图'; L_CLUSTER_DIAGRAM = '集群图'; L_PACK_DIAGRAM = '包图'; L_PARTITION_DIAGRAM = '分区图'; -L_DIG = '挖坑'; \ No newline at end of file +L_DIG = '挖坑'; +L_EDIT_SCRIPT = '编辑脚本'; +L_DELETE_SCRIPT = '删除脚本'; \ No newline at end of file diff --git a/ShadowEditor.Web/src/editor2/sidebar/ScriptPanel.jsx b/ShadowEditor.Web/src/editor2/sidebar/ScriptPanel.jsx index b29c9563..6a0dd3c0 100644 --- a/ShadowEditor.Web/src/editor2/sidebar/ScriptPanel.jsx +++ b/ShadowEditor.Web/src/editor2/sidebar/ScriptPanel.jsx @@ -31,8 +31,8 @@ class ScriptPanel extends React.Component { {Object.values(scripts).map(n => { return
  • {`${n.name}.${this.getExtension(n.type)}`} - - + +
  • ; })} diff --git a/ShadowEditor.Web/src/language/Language.js b/ShadowEditor.Web/src/language/Language.js index b15ba8f5..469ad6d0 100644 --- a/ShadowEditor.Web/src/language/Language.js +++ b/ShadowEditor.Web/src/language/Language.js @@ -630,4 +630,6 @@ Object.assign(window, { L_PACK_DIAGRAM: 'Pack Diagram', L_PARTITION_DIAGRAM: 'Partition Diagram', L_DIG: 'Dig', + L_EDIT_SCRIPT: 'Edit Script', + L_DELETE_SCRIPT: 'Delete Script', }); \ No newline at end of file