|
1 | 1 | <template>
|
2 |
| - <div class="app-container"> |
3 |
| - <el-card class="box-card"> |
| 2 | + <div> |
| 3 | + <el-card class="box-card" style="margin-top:40px;"> |
4 | 4 | <div slot="header" class="clearfix">
|
5 | 5 | <svg-icon icon-class="international" />
|
6 | 6 | <span style='margin-left:10px;'>{{$t('i18nView.title')}}</span>
|
|
13 | 13 | <el-tag style='margin-top:15px;display:block;' type="info">{{$t('i18nView.note')}}</el-tag>
|
14 | 14 | </div>
|
15 | 15 | </el-card>
|
16 |
| - <el-row :gutter="20" style="margin:100px 50px 50px;"> |
| 16 | + |
| 17 | + <el-row :gutter="20" style="margin:100px 15px 50px;"> |
17 | 18 | <el-col :span="12">
|
18 | 19 | <div class="block">
|
19 | 20 | <el-date-picker v-model="date" type="date" :placeholder="$t('i18nView.datePlaceholder')"></el-date-picker>
|
20 | 21 | </div>
|
21 | 22 | <div class="block">
|
22 |
| - <el-pagination :current-page="currentPage" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next, jumper" |
| 23 | + <el-pagination :current-page="currentPage" :page-sizes="[100, 200, 300, 400]" :page-size="100" layout="total, sizes, prev, pager, next" |
23 | 24 | :total="400">
|
24 | 25 | </el-pagination>
|
25 | 26 | </div>
|
26 | 27 | <div class="block">
|
27 |
| - <el-button size="small">{{$t('i18nView.default')}}</el-button> |
28 |
| - <el-button size="small" type="primary">{{$t('i18nView.primary')}}</el-button> |
29 |
| - <el-button size="small" type="success">{{$t('i18nView.success')}}</el-button> |
30 |
| - <el-button size="small" type="info">{{$t('i18nView.info')}}</el-button> |
31 |
| - <el-button size="small" type="warning">{{$t('i18nView.warning')}}</el-button> |
32 |
| - <el-button size="small" type="danger">{{$t('i18nView.danger')}}</el-button> |
| 28 | + <el-button class="item-btn" size="small">{{$t('i18nView.default')}}</el-button> |
| 29 | + <el-button class="item-btn" size="small" type="primary">{{$t('i18nView.primary')}}</el-button> |
| 30 | + <el-button class="item-btn" size="small" type="success">{{$t('i18nView.success')}}</el-button> |
| 31 | + <el-button class="item-btn" size="small" type="info">{{$t('i18nView.info')}}</el-button> |
| 32 | + <el-button class="item-btn" size="small" type="warning">{{$t('i18nView.warning')}}</el-button> |
| 33 | + <el-button class="item-btn" size="small" type="danger">{{$t('i18nView.danger')}}</el-button> |
33 | 34 | </div>
|
34 | 35 | </el-col>
|
35 | 36 | <el-col :span="12">
|
36 | 37 | <el-table :data="tableData" fit highlight-current-row border style="width: 100%">
|
37 |
| - <el-table-column prop="date" :label="$t('i18nView.tableDate')" width="180"></el-table-column> |
38 |
| - <el-table-column prop="name" :label="$t('i18nView.tableName')" width="180"></el-table-column> |
| 38 | + <el-table-column prop="name" :label="$t('i18nView.tableName')" width="100" align="center"></el-table-column> |
| 39 | + <el-table-column prop="date" :label="$t('i18nView.tableDate')" width="120" align="center"></el-table-column> |
39 | 40 | <el-table-column prop="address" :label="$t('i18nView.tableAddress')"></el-table-column>
|
40 | 41 | </el-table>
|
41 | 42 | </el-col>
|
@@ -100,7 +101,10 @@ export default {
|
100 | 101 | width: 600px;
|
101 | 102 | margin: 20px auto;
|
102 | 103 | }
|
103 |
| -
|
| 104 | +.item-btn{ |
| 105 | + margin-bottom: 15px; |
| 106 | + margin-left: 0px; |
| 107 | +} |
104 | 108 | .block {
|
105 | 109 | padding: 25px;
|
106 | 110 | }
|
|
0 commit comments