Skip to content

Commit dd3e22d

Browse files
committed
perf:change i18n-demo to resizeable
1 parent d99cb06 commit dd3e22d

File tree

1 file changed

+17
-13
lines changed

1 file changed

+17
-13
lines changed

src/views/i18n-demo/index.vue

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
2-
<div class="app-container">
3-
<el-card class="box-card">
2+
<div>
3+
<el-card class="box-card" style="margin-top:40px;">
44
<div slot="header" class="clearfix">
55
<svg-icon icon-class="international" />
66
<span style='margin-left:10px;'>{{$t('i18nView.title')}}</span>
@@ -13,29 +13,30 @@
1313
<el-tag style='margin-top:15px;display:block;' type="info">{{$t('i18nView.note')}}</el-tag>
1414
</div>
1515
</el-card>
16-
<el-row :gutter="20" style="margin:100px 50px 50px;">
16+
17+
<el-row :gutter="20" style="margin:100px 15px 50px;">
1718
<el-col :span="12">
1819
<div class="block">
1920
<el-date-picker v-model="date" type="date" :placeholder="$t('i18nView.datePlaceholder')"></el-date-picker>
2021
</div>
2122
<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"
2324
:total="400">
2425
</el-pagination>
2526
</div>
2627
<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>
3334
</div>
3435
</el-col>
3536
<el-col :span="12">
3637
<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>
3940
<el-table-column prop="address" :label="$t('i18nView.tableAddress')"></el-table-column>
4041
</el-table>
4142
</el-col>
@@ -100,7 +101,10 @@ export default {
100101
width: 600px;
101102
margin: 20px auto;
102103
}
103-
104+
.item-btn{
105+
margin-bottom: 15px;
106+
margin-left: 0px;
107+
}
104108
.block {
105109
padding: 25px;
106110
}

0 commit comments

Comments
 (0)