0

When I test vue-select in POC project, it works well, see screen shot below: enter image description here

However, when I use vue-select in my real project, it is disordered, see screen below, did any one have similar issue and how to fix it?

enter image description here

after @import "vue-select/src/scss/vue-select.scss"; enter image description here

Thanks George

user1456650
  • 41
  • 1
  • 6

1 Answers1

0

You of course realize that no CSS is applied to the markup, so you need to apply some cuatom CSS.

Or, see the Vue Select docs how to include their default CSS:

The component itself does not include any CSS. You'll need to include it separately:

import 'vue-select/dist/vue-select.css';

Alternatively, you can import the scss for complete control of the component styles:

@import "vue-select/src/scss/vue-select.scss";
Shaya Ulman
  • 1,299
  • 1
  • 12
  • 24