Skip to content
This repository has been archived by the owner on Apr 1, 2022. It is now read-only.

Commit

Permalink
improve src/main.js and doc about the version of BS
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Berkeley committed May 27, 2018
1 parent 9b99e43 commit db667d2
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion dist/min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion doc/en/README.md
Expand Up @@ -12,7 +12,7 @@ Under this premise, you could build the most suitable Datatable for your own sce

The dependencies of this project are shown as below:

* BootStrap + Font Awesome(must available globally)
* BootStrap 3 + Font Awesome(must available globally)
* [lodash: groupBy / throttle / debounce](https://lodash.com/docs)

P.S. *BootStrap* and *Font Awesome* can be replaced with other popular libraries.
Expand Down
2 changes: 1 addition & 1 deletion doc/zh-cn/README.md
Expand Up @@ -9,7 +9,7 @@

本 Datatable 的依赖如下:

* BootStrap + Font Awesome(全局引入)
* BootStrap 3 + Font Awesome(全局引入)
* [lodash: groupBy / throttle / debounce](https://lodash.com/docs)

注:*BootStrap* 以及 *Font Awesome* 的可替换性极强,您完全可以使用其他库替代(一般就是改一下类名即可)
1 change: 0 additions & 1 deletion examples/dist/client.a1501350.js

This file was deleted.

1 change: 1 addition & 0 deletions examples/dist/client.e34add27.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion examples/dist/index.html
Expand Up @@ -12,5 +12,5 @@

<script src="//unpkg.com/jquery@2.1.4/dist/jquery.min.js"></script>
<script src="//unpkg.com/bootstrap@3.3.5/dist/js/bootstrap.min.js"></script>
<script type="text/javascript" src="client.a1501350.js"></script></body>
<script type="text/javascript" src="client.e34add27.js"></script></body>
</html>
2 changes: 1 addition & 1 deletion package.json
@@ -1,7 +1,7 @@
{
"name": "vue2-datatable-component",
"description": "The best Datatable for Vue.js 2.x which never sucks",
"version": "2.3.0",
"version": "2.3.1",
"main": "dist/min.js",
"module": "src/main.js",
"author": "Ken Berkeley <kenberkeley@foxmail.com>",
Expand Down
2 changes: 1 addition & 1 deletion src/main.js
@@ -1,7 +1,7 @@
import Datatable from './index.vue'

Datatable.install = (Vue, options) => {
const locale = options && options.locale || {}
const locale = options ? options.locale : {}

// this might be the simplest i18n solution
Vue.prototype.$i18nForDatatable = srcTxt => locale[srcTxt] || srcTxt
Expand Down

0 comments on commit db667d2

Please sign in to comment.