Laravel Vuejs combat: almost known development (10) using the selected topic optimization Select2

1. Add Select Topic

Use Select2 , how to install Select2 , using specific examples Select2 and Laravel: Ajax Autocomplete and Loading data remotely in Select2 - Laravel

Using the command line:

  1 composer require select2/select2

After the completion of open resources \ app.scss, add Select2:

  1 // Fonts
  2 @import url('https://fonts.googleapis.com/css?family=Nunito');
  3 
  4 // Variables
  5 @import 'variables';
  6 
  7 // Bootstrap
  8 @import '~bootstrap/scss/bootstrap';
  9 
 10 // Select2
 11 @import 'vendor/select2/select2/src/scss/core.scss';
 12 
 13 

Then execute the command:

  1 npm install & npm run dev

After the complete package:

Guess you like

Origin www.cnblogs.com/dzkjz/p/12377481.html