File tree 3 files changed +9
-3
lines changed
effects/plugins/src/vxe-table
3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -148,7 +148,9 @@ const toolbarOptions = computed(() => {
148
148
icon: ' vxe-icon-search' ,
149
149
circle: true ,
150
150
status: showSearchForm .value ? ' primary' : undefined ,
151
- title: $t (' common.search' ),
151
+ title: showSearchForm .value
152
+ ? $t (' common.hideSearchPanel' )
153
+ : $t (' common.showSearchPanel' ),
152
154
};
153
155
// 将搜索按钮合并到用户配置的toolbarConfig.tools中
154
156
const toolbarConfig: VxeGridPropTypes .ToolbarConfig = {
Original file line number Diff line number Diff line change 18
18
"delete" : " Delete" ,
19
19
"create" : " Create" ,
20
20
"yes" : " Yes" ,
21
- "no" : " No"
21
+ "no" : " No" ,
22
+ "showSearchPanel" : " Show search panel" ,
23
+ "hideSearchPanel" : " Hide search panel"
22
24
}
Original file line number Diff line number Diff line change 18
18
"delete" : " 删除" ,
19
19
"create" : " 新增" ,
20
20
"yes" : " 是" ,
21
- "no" : " 否"
21
+ "no" : " 否" ,
22
+ "showSearchPanel" : " 显示搜索面板" ,
23
+ "hideSearchPanel" : " 隐藏搜索面板"
22
24
}
You can’t perform that action at this time.
0 commit comments