mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
docs: Add missing components prop to props API (#1337)
This commit is contained in:
@@ -121,6 +121,29 @@ closeOnSelect: {
|
|||||||
},
|
},
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## components <Badge text="v3.1.0+" />
|
||||||
|
|
||||||
|
API to overwrite default vue-select components with your own. This can be used to change the clear button or select chevron with your own markup.
|
||||||
|
|
||||||
|
The object provided to the components prop will be merged with Vue Select's default components.
|
||||||
|
|
||||||
|
See [Components guide](../guide/components.md) for more details.
|
||||||
|
|
||||||
|
```js
|
||||||
|
import Deselect from './Deselect';
|
||||||
|
import OpenIndicator from './OpenIndicator';
|
||||||
|
|
||||||
|
// ...
|
||||||
|
|
||||||
|
components: {
|
||||||
|
type: Object,
|
||||||
|
default: function () {
|
||||||
|
Deselect,
|
||||||
|
OpenIndicator
|
||||||
|
}
|
||||||
|
},
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## createOption
|
## createOption
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user