Commit 99676ef3e13be2dfe4d803778a6b359309022b90
1 parent
1843fd98
1.处理用户搜索 翻译
Showing
1 changed file
with
2 additions
and
2 deletions
src/components/Common/Tree/StaticTree.js
| @@ -326,14 +326,14 @@ class TreeComponent extends Component { | @@ -326,14 +326,14 @@ class TreeComponent extends Component { | ||
| 326 | render() { | 326 | render() { |
| 327 | const treeProps = this.getTreeProps(); | 327 | const treeProps = this.getTreeProps(); |
| 328 | const PermissionContent = commonFunc.showLocalMessage(this.props, 'PermissionContent', '权限内容'); | 328 | const PermissionContent = commonFunc.showLocalMessage(this.props, 'PermissionContent', '权限内容'); |
| 329 | - | 329 | + const pleaseInputKeyWord = commonFunc.showLocalMessage(this.props, "pleaseInputKeyWord", "请输入你想要搜索的关键字"); |
| 330 | return ( | 330 | return ( |
| 331 | <FormItem className={styles.subForm}> | 331 | <FormItem className={styles.subForm}> |
| 332 | <div className={styles.tableOption}> | 332 | <div className={styles.tableOption}> |
| 333 | <div id="staticEditTree" ref={ref => { this.treeRef = ref; }}> | 333 | <div id="staticEditTree" ref={ref => { this.treeRef = ref; }}> |
| 334 | {this.props.isSearch ? | 334 | {this.props.isSearch ? |
| 335 | <SearchModule | 335 | <SearchModule |
| 336 | - placeholder="请输入你想要搜索的关键字" | 336 | + placeholder={pleaseInputKeyWord} |
| 337 | disabled={false} | 337 | disabled={false} |
| 338 | onChange={this.handleChange} | 338 | onChange={this.handleChange} |
| 339 | onSearch={this.handleSearch} | 339 | onSearch={this.handleSearch} |