项目作者: wovosoft

项目描述 :
Bootstrap Vue icon picker for Font-Awesome 5
高级语言: Vue
项目地址: git://github.com/wovosoft/bootstrap-vue-font-awesome-picker.git




Wovosoft Software Development Compnay

Bootstrap Vue Font-Awesome Icon Picker


This is a simple vuejs plugin for picking font-awesome 5 Icons.


It Supports Font Awesome 5 Icons.

Installation

  1. yarn add bootstrap-vue-font-awesome-picker
  2. or
  3. npm install bootstrap-vue-font-awesome-picker

Project setup

  1. yarn install

Compiles and hot-reloads for development

  1. yarn serve

Compiles and minifies for production

  1. yarn build

Lints and fixes files

  1. yarn lint

Quick start

Several quick start options are available:

  • Download the latest release.
  • Clone the repo: git clone https://github.com/wovosoft/bootstrap-vue-font-awesome-picker.git
  • Install with npm: npm install bootstrap-vue-font-awesome-picker
  • Install with yarn: yarn add bootstrap-vue-font-awesome-picker

Status

npm version

What’s included

Within the download you’ll find the following directories and files, logically grouping common assets and providing both compiled and minified variations. You’ll see something like this:

  1. bootstrap-vue-font-awesome-picker
  2. └── dist/
  3. ├── css/
  4. ├── app.css
  5. └── js/
  6. ├── app.js
  7. ├── app.map
  8. ├── chunk-vendors.js
  9. ├── chunk-vendors.js.map

Documentation

You Can Use the Plugin as a compnent directly to your vuejs application as the example written below.
No need to import additional CSS, the plugin will load the required CSS styles automatically.

  1. <template>
  2. <div>
  3. <font-awesome-picker v-model="icon"></font-awesome-picker>
  4. </div>
  5. </template>
  6. <script>
  7. import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";
  8. export default {
  9. name: "MyComponent",
  10. components: {
  11. FontAwesomePicker
  12. },
  13. data() {
  14. return {
  15. icon: "fas fa-user-cog"
  16. };
  17. }
  18. }
  19. </script>

If you want to use it as a global plugin, then in your app.js use it as written below.

  1. import Vue from "vue";
  2. import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";
  3. Vue.use(FontAwesomePicker);
  4. new Vue({
  5. el: '#main',
  6. router,
  7. store,
  8. template: '<Main></Main>',
  9. components: {
  10. Main
  11. },
  12. }

Another Method is,

  1. import Vue from "vue";
  2. import FontAwesomePicker from "bootstrap-vue-font-awesome-picker";
  3. new Vue({
  4. el: '#main',
  5. router,
  6. store,
  7. template: '<Main></Main>',
  8. components: {
  9. Main,
  10. FontAwesomePicker
  11. },
  12. }

Creators

Narayan Adhikary

Code and documentation copyright 2015-2020 the [Wovosoft Authors] . Code released under the MIT License.