Skip to content

Commit 9ffc378

Browse files
committed
revise doc and set en doc's lang
1 parent 4dabdb2 commit 9ffc378

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

README.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,19 @@
2828
Vue.use(DataTables)
2929
```
3030

31+
If you don't want import the whole `element-ui`, you can just load corresponding components refer to `On demand` section of [element-ui doc](http://element.eleme.io/#/en-US/component/quickstart)
32+
33+
This lib depends on the following components:
34+
- el-table
35+
- el-row
36+
- el-col
37+
- el-input
38+
- el-button
39+
- el-pagination
40+
- el-checkbox
41+
- el-checkbox-group
42+
43+
3144
2. use in your project.
3245
3346
```html

example/docs/en.vue

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,10 @@
155155
import DataTables from '../../src/index.js'
156156
import {en} from '../mock'
157157
import CsvExport from '../utils/CsvExport'
158+
import lang from 'element-ui/lib/locale/lang/en'
159+
import locale from 'element-ui/lib/locale'
160+
161+
locale.use(lang)
158162
159163
export default {
160164
name: 'app',

0 commit comments

Comments
 (0)