Skip to content

Commit

Permalink
Merge branch 'hotfix/webpack'
Browse files Browse the repository at this point in the history
  • Loading branch information
wenzhixin committed Jun 24, 2019
2 parents 85a255b + b351317 commit 91afbd4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions site/docs/vuejs/webpack.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ toc: true
Import Bootstrap Table’s JavaScript by adding this line to your app’s entry point (usually `index.js` or `app.js`):

{% highlight js %}
import 'bootstrap-table'
import 'bootstrap-table/dist/bootstrap-table.js'
{% endhighlight %}

Of course, you can also import themes, locales or extensions you need:
Expand Down Expand Up @@ -96,6 +96,8 @@ export default {

## Starter template

There is an [vue-starter](https://github.com/wenzhixin/bootstrap-table-examples/tree/develop/vue-starter) example in bootstrap-table-example project.

`plugins/jquery.js`

{% highlight js %}
Expand All @@ -112,7 +114,7 @@ import 'bootstrap-table/dist/bootstrap-table.min.css'
import './jquery.js'
import Vue from 'vue'
import 'bootstrap'
import 'bootstrap-table'
import 'bootstrap-table/dist/bootstrap-table.js'
import BootstrapTable from 'bootstrap-table/dist/bootstrap-table-vue.esm.js'

Vue.component('BootstrapTable', BootstrapTable)
Expand Down

0 comments on commit 91afbd4

Please sign in to comment.