mirror of
https://github.com/tenrok/vue-select.git
synced 2026-06-22 10:30:34 +03:00
V3/update list items slot (#799)
* add tests for slots, add normalized function for passing options to slots * update active class * update active class
This commit is contained in:
+10
-5
@@ -28,15 +28,20 @@ export const selectWithProps = (propsData = {}) => {
|
||||
|
||||
/**
|
||||
* Returns a Wrapper with a v-select component.
|
||||
* @param props
|
||||
* @param options
|
||||
* @return {Wrapper<Vue>}
|
||||
*/
|
||||
export const mountDefault = (options = {}) =>
|
||||
shallowMount(VueSelect, {
|
||||
propsData: { options: ["one", "two", "three"],
|
||||
...options
|
||||
}
|
||||
export const mountDefault = (props = {}, options = {}) => {
|
||||
return shallowMount(VueSelect, {
|
||||
propsData: {
|
||||
options: ['one', 'two', 'three'],
|
||||
...props,
|
||||
},
|
||||
...options,
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Returns a v-select component directly.
|
||||
|
||||
Reference in New Issue
Block a user