forked from github/dataease
perf(仪表板-过滤器): 过滤器提示文案
This commit is contained in:
parent
f38b0023ca
commit
70f423a6fc
@ -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 + ')'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -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',
|
||||||
|
@ -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: '下拉樹',
|
||||||
|
@ -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: '下拉树',
|
||||||
|
Loading…
Reference in New Issue
Block a user