Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DiDi
nightingale
提交
4845a8e8
N
nightingale
项目概览
DiDi
/
nightingale
11 个月 前同步成功
通知
46
Star
7053
Fork
1161
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
N
nightingale
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4845a8e8
编写于
4月 14, 2020
作者:
J
jsers
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: Complete translation
上级
0769b025
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
5 deletion
+13
-5
web/src/components/Layout/NsTree.tsx
web/src/components/Layout/NsTree.tsx
+8
-2
web/src/components/Layout/index.tsx
web/src/components/Layout/index.tsx
+4
-2
web/src/pages/Monitor/History/List.tsx
web/src/pages/Monitor/History/List.tsx
+1
-1
未找到文件。
web/src/components/Layout/NsTree.tsx
浏览文件 @
4845a8e8
...
...
@@ -2,6 +2,7 @@ import React, { Component } from 'react';
import
{
Tree
,
Spin
,
Input
}
from
'
antd
'
;
import
PropTypes
from
'
prop-types
'
;
import
_
from
'
lodash
'
;
import
{
injectIntl
,
WrappedComponentProps
}
from
'
react-intl
'
;
import
*
as
config
from
'
@common/config
'
;
import
{
TreeNode
}
from
'
@interface
'
;
import
{
renderTreeNodes
}
from
'
./utils
'
;
...
...
@@ -15,7 +16,7 @@ interface Props {
onExpandedKeys
:
(
expandedKeys
:
string
[])
=>
void
,
}
export
default
class
NsTree
extends
Component
<
Props
>
{
class
NsTree
extends
Component
<
Props
&
WrappedComponent
Props
>
{
static
defaultProps
=
{
treeData
:
[],
originTreeData
:
[],
...
...
@@ -42,7 +43,10 @@ export default class NsTree extends Component<Props> {
return
(
<
div
className
=
{
`
${
prefixCls
}
-nsTree`
}
>
<
div
className
=
{
`
${
prefixCls
}
-nsTree-header`
}
>
<
Input
.
Search
onSearch
=
{
this
.
props
.
onSearchValue
}
placeholder
=
"搜节点(空格分割)"
/>
<
Input
.
Search
onSearch
=
{
this
.
props
.
onSearchValue
}
placeholder
=
{
this
.
props
.
intl
.
formatMessage
({
id
:
'
tree.search
'
})
}
/>
</
div
>
<
Spin
spinning
=
{
loading
}
>
<
div
>
...
...
@@ -77,3 +81,5 @@ export default class NsTree extends Component<Props> {
);
}
}
export
default
injectIntl
(
NsTree
);
web/src/components/Layout/index.tsx
浏览文件 @
4845a8e8
...
...
@@ -317,11 +317,13 @@ class NILayout extends Component<Props & RouteComponentProps & WrappedComponentP
<
Menu
.
Item
>
<
Link
to
=
{
{
pathname
:
'
/profile
'
}
}
>
<
Icon
type
=
"setting"
className
=
"mr10"
/>
个人设置
{
language
===
'
zh
'
?
'
个人设置
'
:
'
setting
'
}
</
Link
>
</
Menu
.
Item
>
<
Menu
.
Item
>
<
a
onClick
=
{
this
.
handleLogoutLinkClick
}
><
Icon
type
=
"logout"
className
=
"mr10"
/>
退出登录
</
a
>
<
a
onClick
=
{
this
.
handleLogoutLinkClick
}
><
Icon
type
=
"logout"
className
=
"mr10"
/>
{
language
===
'
zh
'
?
'
退出登录
'
:
'
logout
'
}
</
a
>
</
Menu
.
Item
>
</
Menu
>
}
>
...
...
web/src/pages/Monitor/History/List.tsx
浏览文件 @
4845a8e8
...
...
@@ -358,7 +358,7 @@ class index extends Component<Props & WrappedComponentProps, State> {
}
</
Select
>
<
Search
placeholder
=
"
搜索
"
placeholder
=
"
Search
"
style
=
{
{
width
:
200
}
}
onSearch
=
{
(
value
)
=>
{
this
.
setState
({
searchValue
:
value
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录