There is no jQuery, or no third-party plugins are needed.
This repository contains a set of native components based on Bootstrap's markup and CSS. As a result no dependency on jQuery or Bootstrap's JavaScript is required. The only required dependencies are:
(required ^0.12, test with 0.12.10).
Bootstrap CSS (required , test with 3.3.5). VueStrap doesn't depend on a very precise version of Bootstrap. Just pull the latest.
CommonJS
$ npm install vue-strap var alert = require('vue-strap/src/alert'); // or var alert = require('vue-strap').alert; new Vue({ components: { 'alert': alert } })
ES6
$ npm install vue-strap import alert from 'vue-strap/src/alert' // or import { alert } from 'vue-strap' new Vue({ components: { alert }`` })
AMD
$ bower install vue-strap define(['vue-strap'], function(VueStrap) { var alert = ; ... });
This article has been compiled intoFront-end component learning tutorial》, everyone is welcome to learn and read.
The above is all the content of this article. I hope it will be helpful to everyone's study and I hope everyone will support me more.