fix: title of search button in vxeTable toolbar (#6046)
* 修改vxeTable工具栏里的搜索按钮的提示文案
This commit is contained in:
parent
be840460d8
commit
0a9fc4e02d
@ -148,7 +148,9 @@ const toolbarOptions = computed(() => {
|
|||||||
icon: 'vxe-icon-search',
|
icon: 'vxe-icon-search',
|
||||||
circle: true,
|
circle: true,
|
||||||
status: showSearchForm.value ? 'primary' : undefined,
|
status: showSearchForm.value ? 'primary' : undefined,
|
||||||
title: $t('common.search'),
|
title: showSearchForm.value
|
||||||
|
? $t('common.hideSearchPanel')
|
||||||
|
: $t('common.showSearchPanel'),
|
||||||
};
|
};
|
||||||
// 将搜索按钮合并到用户配置的toolbarConfig.tools中
|
// 将搜索按钮合并到用户配置的toolbarConfig.tools中
|
||||||
const toolbarConfig: VxeGridPropTypes.ToolbarConfig = {
|
const toolbarConfig: VxeGridPropTypes.ToolbarConfig = {
|
||||||
|
@ -18,5 +18,7 @@
|
|||||||
"delete": "Delete",
|
"delete": "Delete",
|
||||||
"create": "Create",
|
"create": "Create",
|
||||||
"yes": "Yes",
|
"yes": "Yes",
|
||||||
"no": "No"
|
"no": "No",
|
||||||
|
"showSearchPanel": "Show search panel",
|
||||||
|
"hideSearchPanel": "Hide search panel"
|
||||||
}
|
}
|
||||||
|
@ -18,5 +18,7 @@
|
|||||||
"delete": "删除",
|
"delete": "删除",
|
||||||
"create": "新增",
|
"create": "新增",
|
||||||
"yes": "是",
|
"yes": "是",
|
||||||
"no": "否"
|
"no": "否",
|
||||||
|
"showSearchPanel": "显示搜索面板",
|
||||||
|
"hideSearchPanel": "隐藏搜索面板"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user