Merge pull request #3120 from dataease/pr@dev@perf_filter_placeholder

perf(仪表板-过滤器): 过滤器提示文案
This commit is contained in:
xuwei-fit2cloud 2022-09-20 16:03:38 +08:00 committed by GitHub
commit b5f70711e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 21 additions and 16 deletions

View File

@ -8,7 +8,7 @@
:collapse-tags="showNumber" :collapse-tags="showNumber"
:clearable="!element.options.attrs.multiple" :clearable="!element.options.attrs.multiple"
:multiple="element.options.attrs.multiple" :multiple="element.options.attrs.multiple"
:placeholder="$t(element.options.attrs.placeholder)" :placeholder="$t(element.options.attrs.placeholder) + placeholderSuffix"
:popper-append-to-body="inScreen" :popper-append-to-body="inScreen"
:size="size" :size="size"
:filterable="true" :filterable="true"
@ -110,6 +110,11 @@ export default {
customStyle() { customStyle() {
const { brColor, wordColor, innerBgColor } = this.element.style const { brColor, wordColor, innerBgColor } = this.element.style
return { brColor, wordColor, innerBgColor } return { brColor, wordColor, innerBgColor }
},
placeholderSuffix() {
const i18nKey = this.element.options.attrs.multiple ? 'panel.multiple_choice' : 'panel.single_choice'
const i18nValue = this.$t(i18nKey)
return '(' + i18nValue + ')'
} }
}, },

View File

@ -131,7 +131,7 @@ export default {
default_login: 'Normal' default_login: 'Normal'
}, },
commons: { commons: {
uninstall:'Uninstall', uninstall: 'Uninstall',
no_result: 'No Result', no_result: 'No Result',
manage_member: 'Managing members', manage_member: 'Managing members',
confirm_remove_cancel: 'Are you sure to delete the role?', confirm_remove_cancel: 'Are you sure to delete the role?',
@ -2339,7 +2339,7 @@ export default {
}, },
denumberselect: { denumberselect: {
label: 'Number selector', label: 'Number selector',
placeholder: 'Please select' placeholder: 'Please select number'
}, },
deinputsearch: { deinputsearch: {
label: 'Text search', label: 'Text search',
@ -2347,7 +2347,7 @@ export default {
}, },
detextselect: { detextselect: {
label: 'Text selector', label: 'Text selector',
placeholder: 'Please select' placeholder: 'Please select text'
}, },
detextselectTree: { detextselectTree: {
label: 'Tree selector', label: 'Tree selector',
@ -2564,8 +2564,8 @@ export default {
no_apps: 'No apps', no_apps: 'No apps',
app_group_icon: 'Cover icon', app_group_icon: 'Cover icon',
app_name: 'Application name', app_name: 'Application name',
search_by_keyword:'Search by keyword', search_by_keyword: 'Search by keyword',
apply_logs:'Apply logs', apply_logs: 'Apply logs',
app_group_delete_tips: 'Are you sure to delete this application category?', app_group_delete_tips: 'Are you sure to delete this application category?',
app_group_delete_content: 'After deletion, all application templates in this category will also be deleted.' app_group_delete_content: 'After deletion, all application templates in this category will also be deleted.'
} }

View File

@ -131,7 +131,7 @@ export default {
default_login: '普通登錄' default_login: '普通登錄'
}, },
commons: { commons: {
uninstall:'卸载', uninstall: '卸载',
no_result: '没有找到相关内容', no_result: '没有找到相关内容',
manage_member: '管理成員', manage_member: '管理成員',
user_confirm_remove_cancel: '確定將該用戶從角色中移除嗎?', user_confirm_remove_cancel: '確定將該用戶從角色中移除嗎?',
@ -2340,7 +2340,7 @@ export default {
}, },
denumberselect: { denumberselect: {
label: '數字下拉', label: '數字下拉',
placeholder: '請選擇' placeholder: '請選擇數字'
}, },
deinputsearch: { deinputsearch: {
label: '文本搜索', label: '文本搜索',
@ -2348,7 +2348,7 @@ export default {
}, },
detextselect: { detextselect: {
label: '文本下拉', label: '文本下拉',
placeholder: '請選擇' placeholder: '請選擇文本'
}, },
detextselectTree: { detextselectTree: {
label: '下拉樹', label: '下拉樹',
@ -2565,8 +2565,8 @@ export default {
no_apps: '暫無應用', no_apps: '暫無應用',
app_group_icon: '封面圖標', app_group_icon: '封面圖標',
app_name: '應用名稱', app_name: '應用名稱',
search_by_keyword:'通過關鍵字搜索', search_by_keyword: '通過關鍵字搜索',
apply_logs:'應用記錄', apply_logs: '應用記錄',
app_group_delete_tips: '確定刪除該應用分類嗎?', app_group_delete_tips: '確定刪除該應用分類嗎?',
app_group_delete_content: '刪除後,該分類中所有的應用模闆也將被刪除。' app_group_delete_content: '刪除後,該分類中所有的應用模闆也將被刪除。'
} }

View File

@ -131,7 +131,7 @@ export default {
default_login: '普通登录' default_login: '普通登录'
}, },
commons: { commons: {
uninstall:'卸载', uninstall: '卸载',
no_result: '没有找到相关内容', no_result: '没有找到相关内容',
manage_member: '管理成员', manage_member: '管理成员',
confirm_remove_cancel: '确定删除该角色吗?', confirm_remove_cancel: '确定删除该角色吗?',
@ -2341,7 +2341,7 @@ export default {
}, },
denumberselect: { denumberselect: {
label: '数字下拉', label: '数字下拉',
placeholder: '请选择' placeholder: '请选择数字'
}, },
deinputsearch: { deinputsearch: {
label: '文本搜索', label: '文本搜索',
@ -2349,7 +2349,7 @@ export default {
}, },
detextselect: { detextselect: {
label: '文本下拉', label: '文本下拉',
placeholder: '请选择' placeholder: '请选择文本'
}, },
detextselectTree: { detextselectTree: {
label: '下拉树', label: '下拉树',
@ -2566,8 +2566,8 @@ export default {
no_apps: '暂无应用', no_apps: '暂无应用',
app_group_icon: '封面图标', app_group_icon: '封面图标',
app_name: '应用名称', app_name: '应用名称',
search_by_keyword:'通过关键字搜索', search_by_keyword: '通过关键字搜索',
apply_logs:'应用记录', apply_logs: '应用记录',
app_group_delete_tips: '确定删除该应用分类吗?', app_group_delete_tips: '确定删除该应用分类吗?',
app_group_delete_content: '删除后,该分类中所有的应用模板也将被删除。' app_group_delete_content: '删除后,该分类中所有的应用模板也将被删除。'
} }