mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-16 09:10:33 +03:00
41 lines
613 B
JavaScript
41 lines
613 B
JavaScript
export const text = {
|
|
spinner: {
|
|
text: 'Loading...',
|
|
},
|
|
noOptions: {
|
|
text: 'Sorry, no matching options.',
|
|
},
|
|
search: {
|
|
ariaLabel: 'Search for options',
|
|
},
|
|
selectedOption: {},
|
|
deselectButton: {
|
|
ariaLabel: (label) => 'Deselect Option',
|
|
},
|
|
clearButton: {
|
|
ariaLabel: 'Clear Selection',
|
|
},
|
|
}
|
|
|
|
/**
|
|
* @this VueSelect
|
|
* @mixin
|
|
*/
|
|
export default {
|
|
props: {
|
|
text: {
|
|
type: Function,
|
|
/**
|
|
* @param text {Object}
|
|
* @return {*}
|
|
*/
|
|
default: (text) => text,
|
|
},
|
|
},
|
|
computed: {
|
|
i18n() {
|
|
return this.text(text)
|
|
},
|
|
},
|
|
}
|