Skip to content

Commit 0a9fc4e

Browse files
authored
fix: title of search button in vxeTable toolbar (#6046)
* 修改vxeTable工具栏里的搜索按钮的提示文案
1 parent be84046 commit 0a9fc4e

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

packages/effects/plugins/src/vxe-table/use-vxe-grid.vue

+3-1
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,9 @@ const toolbarOptions = computed(() => {
148148
icon: 'vxe-icon-search',
149149
circle: true,
150150
status: showSearchForm.value ? 'primary' : undefined,
151-
title: $t('common.search'),
151+
title: showSearchForm.value
152+
? $t('common.hideSearchPanel')
153+
: $t('common.showSearchPanel'),
152154
};
153155
// 将搜索按钮合并到用户配置的toolbarConfig.tools中
154156
const toolbarConfig: VxeGridPropTypes.ToolbarConfig = {

packages/locales/src/langs/en-US/common.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
"delete": "Delete",
1919
"create": "Create",
2020
"yes": "Yes",
21-
"no": "No"
21+
"no": "No",
22+
"showSearchPanel": "Show search panel",
23+
"hideSearchPanel": "Hide search panel"
2224
}

packages/locales/src/langs/zh-CN/common.json

+3-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,7 @@
1818
"delete": "删除",
1919
"create": "新增",
2020
"yes": "",
21-
"no": ""
21+
"no": "",
22+
"showSearchPanel": "显示搜索面板",
23+
"hideSearchPanel": "隐藏搜索面板"
2224
}

0 commit comments

Comments
 (0)