1.0.17 • Published 7 years ago

vue2-strap v1.0.17

Weekly downloads
26
License
-
Repository
-
Last release
7 years ago

vue2-strap

Bootstrap 3 as Vue2 component

You don't have to learn another syntax to use bootstrap in your vue2 app !

Just wrap your standard bootstrap html with vue2-strap and hit run.

<html>
<head></head>
<body>
<div id="app">
  <button v-tooltip type="button" class="btn btn-default" data-toggle="tooltip" data-placement="top" title="Tooltip on bottom">Tooltip on bottom</button>
  
  <dropdown>
    <button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown"> Drop down <span class="caret"></span></button>
    <ul class="dropdown-menu">
      <li><a href="#"> Action</a></li>
      <li><a href="#"> Another action</a></li>
      <li><a href="#"> Something else here</a></li>
    </ul>
  </dropdown>
</div>
</body>
</html>
// main.js

import Vue from 'vue';
import bootstrapcss from 'bootstrap/css/bootstrap.min.css';

import tooltip from 'bootstrap/tooltip.vue';
import dropdown from 'bootstrap/dropdown.vue';

new Vue({
  el: '#app'.
  render: h => h(App),
  components: {
    dropdown: dropdown,
  },
  directives: {
    tooltip: tooltip
  }
});

install

Note: Those components only works with vue> 2.1.8

  1. download the source
npm install --save vue2-strap
  1. add resolve In your webpack.config.js (or webpack.base.conf.js), add resolve alias for vue2-strap
module.exports = {
  entry: ...
  output: ...
  module: ...
  resolve: {
    alias: {
      'vue$': ...,
	  'bootstrap': 'bootstrap': path.resolve(__dirname, '../node_modules/vue2-strap/dist')
    }
  },
  ...
}

Process

Standard

  • ? Transitions
  • Modal
  • Dropdown
  • Scrollspy
  • Tab
  • ? Tooltip
  • Popover
  • Alert
  • Button
  • Carousel
  • Collapse
  • Affix

Extension

  • Dropdown Hover
  • Typehead
1.0.17

7 years ago

1.0.15

7 years ago

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago