Commit ebaf3c1d891a5b67e5c1cd8882b8c3dc2a5a89d1
1 parent
47638ad8
table test
Showing
1 changed file
with
2 additions
and
16 deletions
Show diff stats
examples/routers/table.vue
1 | -<style> | |
2 | - .table{ | |
3 | - margin:20px 0px; | |
4 | - } | |
5 | - .table .iview-table-cell{ | |
6 | - padding-left: 2px !important; | |
7 | - padding-right: 2px !important; | |
8 | - | |
9 | - } | |
10 | - .table .iview-table-small td { | |
11 | - height: 30px !important; | |
12 | - } | |
13 | -</style> | |
14 | - | |
15 | 1 | <template> |
16 | 2 | <div> |
17 | 3 | <Table border ref="selection" :columns="columns4" :data="data1"></Table> |
... | ... | @@ -20,7 +6,7 @@ |
20 | 6 | <Button @click="handleSelectAll(true)">Set all selected</Button> |
21 | 7 | <Button @click="handleSelectAll(false)">Cancel all selected</Button> |
22 | 8 | |
23 | - <div class="table1"> | |
9 | + <div style='margin:20px 0px;'> | |
24 | 10 | <Table :data="tableData1" :columns="tableColumns1" :height='500' stripe size='small'></Table> |
25 | 11 | <div style="margin: 10px;overflow: hidden"> |
26 | 12 | <div style="float: right;"> |
... | ... | @@ -80,7 +66,7 @@ |
80 | 66 | key: 'data5' |
81 | 67 | }, |
82 | 68 | { |
83 | - title: '一二三四一二三四一二三四一二三四', | |
69 | + title: 'Data6Data6Data6Data6Data6Data6Data6Data6Data6Data6Data6', | |
84 | 70 | key: 'data6' |
85 | 71 | }, |
86 | 72 | ] |
... | ... |