Skip to content
This repository was archived by the owner on Apr 1, 2022. It is now read-only.

Commit 05f76ce

Browse files
author
Ken Berkeley
committed
[improve] shorten text of LimitSelect
1 parent fdb388d commit 05f76ce

File tree

9 files changed

+13
-17
lines changed

9 files changed

+13
-17
lines changed

dist/min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/en/i18n.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export default {
2727
',': '项,',
2828

2929
/* LimitSelect.vue */
30-
'show': '每页展示',
31-
'items per page': '',
30+
'items / page': '项 / 页',
3231

3332
/* MainTable/TableBody.vue */
3433
'No Data': '无数据'
@@ -65,12 +64,11 @@ Apply to [`src/LimitSelect.vue`](https://github.com/OneWayTech/vue2-datatable/bl
6564
```html
6665
<template>
6766
<label name="LimitSelect">
68-
{{ $i18nForDatatable('show') }}
6967
<select class="form-control input-sm -limit-select" v-model="query.limit"
7068
@change="query.offset = 0 /* reset to the first page */">
7169
<option v-for="i in options" :value="i">{{ i }}</option>
7270
</select>
73-
{{ $i18nForDatatable('items per page') }}
71+
{{ $i18nForDatatable('items / page') }}
7472
</label>
7573
</template>
7674
```

doc/zh-cn/i18n.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ export default {
2727
',': '项,',
2828

2929
/* LimitSelect.vue */
30-
'show': '每页展示',
31-
'items per page': '',
30+
'items / page': '项 / 页',
3231

3332
/* MainTable/TableBody.vue */
3433
'No Data': '无数据'
@@ -65,12 +64,11 @@ export default Datatable
6564
```html
6665
<template>
6766
<label name="LimitSelect">
68-
{{ $i18nForDatatable('show') }}
6967
<select class="form-control input-sm -limit-select" v-model="query.limit"
7068
@change="query.offset = 0 /* reset to the first page */">
7169
<option v-for="i in options" :value="i">{{ i }}</option>
7270
</select>
73-
{{ $i18nForDatatable('items per page') }}
71+
{{ $i18nForDatatable('items / page') }}
7472
</label>
7573
</template>
7674
```
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dist/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212

1313
<script src="//unpkg.com/jquery@2.1.4/dist/jquery.min.js"></script>
1414
<script src="//unpkg.com/bootstrap@3.3.5/dist/js/bootstrap.min.js"></script>
15-
<script type="text/javascript" src="client.05dc68df.js"></script></body>
15+
<script type="text/javascript" src="client.73ad0f32.js"></script></body>
1616
</html>

locale/zh-cn.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ export default {
1010
',': '项,',
1111

1212
/* LimitSelect.vue */
13-
'show': '每页展示',
14-
'items per page': '项',
13+
'items / page': '项 / 页',
1514

1615
/* MainTable/TableBody.vue */
1716
'No Data': '无数据'

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "vue2-datatable-component",
33
"description": "The best Datatable for Vue.js 2.x which never sucks",
4-
"version": "2.1.8",
4+
"version": "2.1.9",
55
"main": "dist/min.js",
66
"module": "src/index.js",
77
"author": "Ken Berkeley <kenberkeley@foxmail.com>",

src/Datatable.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111

1212
<div v-if="Pagination" class="row" style="margin-top: 10px">
1313
<div class="col-sm-6" style="white-space: nowrap">
14-
<strong>{{ $i18nForDatatable('Total') }} {{ total }} {{ $i18nForDatatable(',') }}</strong>
14+
<strong>
15+
{{ $i18nForDatatable('Total') }} {{ total }} {{ $i18nForDatatable(',') }}
16+
</strong>
1517
<limit-select :query="query" />
1618
</div>
1719
<div class="col-sm-6">

src/LimitSelect.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
<template>
22
<label name="LimitSelect">
3-
{{ $i18nForDatatable('show') }}
43
<select class="form-control input-sm -limit-select" v-model="query.limit"
54
@change="query.offset = 0 /* reset to the first page */">
65
<option v-for="i in options" :value="i">{{ i }}</option>
76
</select>
8-
{{ $i18nForDatatable('items per page') }}
7+
{{ $i18nForDatatable('items / page') }}
98
</label>
109
</template>
1110
<script>

0 commit comments

Comments
 (0)