Fixed #2812 - Add new message options to PrimeVue API
parent
0da26132c8
commit
f6ee238924
|
@ -61,7 +61,11 @@ const defaultOptions = {
|
||||||
medium: 'Medium',
|
medium: 'Medium',
|
||||||
strong: 'Strong',
|
strong: 'Strong',
|
||||||
passwordPrompt: 'Enter a password',
|
passwordPrompt: 'Enter a password',
|
||||||
emptyFilterMessage: 'No results found',
|
emptyFilterMessage: 'No results found', // @deprecated Use 'emptySearchMessage' option instead.
|
||||||
|
searchMessage: '{0} results are available',
|
||||||
|
selectionMessage: '{0} items selected',
|
||||||
|
emptySelectionMessage: 'No selected item',
|
||||||
|
emptySearchMessage: 'No results found',
|
||||||
emptyMessage: 'No available options',
|
emptyMessage: 'No available options',
|
||||||
aria: {
|
aria: {
|
||||||
trueLabel: 'True',
|
trueLabel: 'True',
|
||||||
|
@ -110,8 +114,8 @@ export function usePrimeVue() {
|
||||||
const PrimeVue = inject(PrimeVueSymbol);
|
const PrimeVue = inject(PrimeVueSymbol);
|
||||||
if (!PrimeVue) {
|
if (!PrimeVue) {
|
||||||
throw new Error('PrimeVue is not installed!');
|
throw new Error('PrimeVue is not installed!');
|
||||||
}
|
}
|
||||||
|
|
||||||
return PrimeVue;
|
return PrimeVue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -124,4 +128,4 @@ export default {
|
||||||
app.config.globalProperties.$primevue = PrimeVue;
|
app.config.globalProperties.$primevue = PrimeVue;
|
||||||
app.provide(PrimeVueSymbol, PrimeVue);
|
app.provide(PrimeVueSymbol, PrimeVue);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue