diff --git a/docs/app.vue b/docs/app.vue index 93e8737..90fd2bf 100644 --- a/docs/app.vue +++ b/docs/app.vue @@ -5,11 +5,11 @@

V2 Table: A simple table component based Vue 2.x

Quick Start

Install

-
npm i --save v2-table
+
npm i --save v2-table beautify-scrollbar

OR

-
yarn add v2-table
+
yarn add v2-table beautify-scrollbar

Global Register

-
import Vue from 'vue';

import 'v2-table/dist/index.css';
import V2Table from 'v2-table';

Vue.use(V2Table);
+
import Vue from 'vue';

import 'beautify-scrollbar/dist/index.css';
import 'v2-table/dist/index.css';
import V2Table from 'v2-table';

Vue.use(V2Table);
diff --git a/docs/example.md b/docs/example.md index 3f412d7..3d8ac8b 100644 --- a/docs/example.md +++ b/docs/example.md @@ -2,6 +2,7 @@ export default { data () { return { + list5: [], loading: false, currentPage: 1, total: 198, @@ -303,6 +304,32 @@ handleSelectChange (rows) { console.log(rows); } + }, + + mounted () { + const item = { + date: '2017-12-02', + name: '', + address: 'Shenzhen,China', + birthDay: '1988-09-08', + songs: 0, + province: 'Guangdong', + city: 'Shenzhen', + country: 'China', + age: 30, + salary: 12000, + desc: 'no desc' + }; + const list5 = []; + + for(let i = 0; i < 50; i++) { + list5.push(Object.assign({}, item, { + name: `test${i+1}`, + songs: i+1 + })); + } + + this.list5 = [].concat(list5); } } @@ -331,7 +358,7 @@ ```html