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