From 004df33b53a82d7610164507eb7ffb2cbf90b999 Mon Sep 17 00:00:00 2001 From: baiyaaaaa Date: Mon, 19 Sep 2016 17:55:44 +0800 Subject: [PATCH] table docs update --- examples/docs/table.md | 200 ++++++++++++++++++++++++++++++----------- 1 file changed, 148 insertions(+), 52 deletions(-) diff --git a/examples/docs/table.md b/examples/docs/table.md index 1c5af4bb..2dd84edf 100644 --- a/examples/docs/table.md +++ b/examples/docs/table.md @@ -4,21 +4,33 @@ data() { return { tableData: [{ + date: '2016-05-03', + name: '王小虎', + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 + }, { date: '2016-05-02', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-04', name: '王小虎', - address: '上海市普陀区金沙江路 1517 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-01', name: '王小虎', - address: '上海市普陀区金沙江路 1519 弄' - }, { - date: '2016-05-03', - name: '王小虎', - address: '上海市普陀区金沙江路 1516 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }], tableData2: [{ date: '2016-05-02', @@ -42,31 +54,52 @@ tableData3: [{ date: '2016-05-03', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-02', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-04', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-01', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-08', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-06', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-07', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }], singleSelection: {}, multipleSelection: [] @@ -112,16 +145,16 @@ @@ -431,21 +479,33 @@ data() { return { tableData: [{ + date: '2016-05-03', + name: '王小虎', + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 + }, { date: '2016-05-02', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-04', name: '王小虎', - address: '上海市普陀区金沙江路 1517 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-01', name: '王小虎', - address: '上海市普陀区金沙江路 1519 弄' - }, { - date: '2016-05-03', - name: '王小虎', - address: '上海市普陀区金沙江路 1516 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }] } } @@ -465,7 +525,7 @@ :data="tableData3" :fixed-column-count="1" border - style="width: 500px" + style="width: 100%" height="250"> + width="120"> + + + + + + @@ -492,31 +567,52 @@ tableData3: [{ date: '2016-05-03', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-02', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-04', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-01', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-08', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-06', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }, { date: '2016-05-07', name: '王小虎', - address: '上海市普陀区金沙江路 1518 弄' + province: '上海', + city: '普陀区', + address: '上海市普陀区金沙江路 1518 弄', + zip: 200333 }] } } @@ -536,7 +632,7 @@ :data="tableData" selection-mode="single" @selectionchange="handleSelectionChange" - style="width: 520px" + style="width: 100%" allow-no-selection> + style="width: 100%"> + width="180"> + width="180">