2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-04 06:32:23 +03:00

update docs

This commit is contained in:
Jeff Sagal
2021-08-02 11:11:35 -07:00
parent 5957a4ef1a
commit f8d07b50dd
5 changed files with 60 additions and 28 deletions
+23
View File
@@ -342,6 +342,29 @@ label: {
},
```
## locale <Badge text="v3.13.0+" />
The locale function receives the default english translations object for the component. This allows
you to override the whole object, or change just the values you need. Can be used to localize the
component to different languages, or just replace text to your liking throughout the component.
See [localization guide](/guide/localization.html) for more details and examples.
```js
/**
* @since 3.13.0
* @see https://vue-select.org/guide/localization.html
*/
locale: {
type: Function,
/**
* @return {Object}
* @param localeStrings
*/
default: (localeStrings) => localeStrings,
},
```
## maxHeight