Browse Source

fix: title of search button in vxeTable toolbar (#6046)

* 修改vxeTable工具栏里的搜索按钮的提示文案
pull/6047/head
Netfan 10 months ago
committed by GitHub
parent
commit
0a9fc4e02d
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      packages/effects/plugins/src/vxe-table/use-vxe-grid.vue
  2. 4
      packages/locales/src/langs/en-US/common.json
  3. 4
      packages/locales/src/langs/zh-CN/common.json

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

@ -148,7 +148,9 @@ const toolbarOptions = computed(() => {
icon: 'vxe-icon-search',
circle: true,
status: showSearchForm.value ? 'primary' : undefined,
title: $t('common.search'),
title: showSearchForm.value
? $t('common.hideSearchPanel')
: $t('common.showSearchPanel'),
};
// toolbarConfig.tools
const toolbarConfig: VxeGridPropTypes.ToolbarConfig = {

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

@ -18,5 +18,7 @@
"delete": "Delete",
"create": "Create",
"yes": "Yes",
"no": "No"
"no": "No",
"showSearchPanel": "Show search panel",
"hideSearchPanel": "Hide search panel"
}

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

@ -18,5 +18,7 @@
"delete": "删除",
"create": "新增",
"yes": "是",
"no": "否"
"no": "否",
"showSearchPanel": "显示搜索面板",
"hideSearchPanel": "隐藏搜索面板"
}

Loading…
Cancel
Save