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

Commit db667d2

Browse files
author
Ken Berkeley
committed
improve src/main.js and doc about the version of BS
1 parent 9b99e43 commit db667d2

File tree

8 files changed

+7
-7
lines changed

8 files changed

+7
-7
lines changed

dist/min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/en/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Under this premise, you could build the most suitable Datatable for your own sce
1212

1313
The dependencies of this project are shown as below:
1414

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

1818
P.S. *BootStrap* and *Font Awesome* can be replaced with other popular libraries.

doc/zh-cn/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
本 Datatable 的依赖如下:
1111

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

1515
注:*BootStrap* 以及 *Font Awesome* 的可替换性极强,您完全可以使用其他库替代(一般就是改一下类名即可)

examples/dist/client.a1501350.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

examples/dist/client.e34add27.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
<script src="//unpkg.com/jquery@2.1.4/dist/jquery.min.js"></script>
1414
<script src="//unpkg.com/bootstrap@3.3.5/dist/js/bootstrap.min.js"></script>
15-
<script type="text/javascript" src="client.a1501350.js"></script></body>
15+
<script type="text/javascript" src="client.e34add27.js"></script></body>
1616
</html>

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue2-datatable-component",
33
"description": "The best Datatable for Vue.js 2.x which never sucks",
4-
"version": "2.3.0",
4+
"version": "2.3.1",
55
"main": "dist/min.js",
66
"module": "src/main.js",
77
"author": "Ken Berkeley <kenberkeley@foxmail.com>",

src/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import Datatable from './index.vue'
22

33
Datatable.install = (Vue, options) => {
4-
const locale = options && options.locale || {}
4+
const locale = options ? options.locale : {}
55

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

0 commit comments

Comments
 (0)