Skip to content

Commit 950ac90

Browse files
author
huangshuwei
committed
代码格式化
1 parent a219dbd commit 950ac90

File tree

206 files changed

+680
-3704
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+680
-3704
lines changed

examples/src/docs/en/start.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,7 @@ Write the following in mian.js:
4141
import Vue from "vue";
4242
import "vue-easytable/libs/theme-default/index.css"; // import style
4343

44-
import {
45-
VeTable,
46-
VePagination,
47-
VeIcon,
48-
VeLoading,
49-
VeLocale,
50-
} from "vue-easytable"; // import library
44+
import { VeTable, VePagination, VeIcon, VeLoading, VeLocale } from "vue-easytable"; // import library
5145

5246
Vue.use(VeTable);
5347
Vue.use(VePagination);
@@ -143,10 +137,7 @@ Through [https://unpkg.com/vue-easytable/](https://unpkg.com/vue-easytable/), yo
143137
<head>
144138
<meta charset="UTF-8" />
145139
<!-- import style -->
146-
<link
147-
rel="stylesheet"
148-
href="https://unpkg.com/vue-easytable/libs/theme-default/index.css"
149-
/>
140+
<link rel="stylesheet" href="https://unpkg.com/vue-easytable/libs/theme-default/index.css" />
150141
</head>
151142
<body>
152143
<div id="app">

examples/src/docs/en/theme.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ example:
1616
#### Use Dark Theme
1717

1818
import dark theme style
19+
1920
```
2021
import "vue-easytable/libs/theme-dark/index.css";
2122
```

examples/src/docs/en/ve-checkbox/checkbox-multiple-advanced.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@
7373
let result = [];
7474
7575
this.checkboxGroupInitValues.filter((x) => {
76-
if (
77-
x.disabled &&
78-
this.checkboxGroupDefaultValue.indexOf(x.label) > -1
79-
) {
76+
if (x.disabled && this.checkboxGroupDefaultValue.indexOf(x.label) > -1) {
8077
result.push(x.label);
8178
}
8279
});
@@ -88,10 +85,7 @@
8885
let result = [];
8986
9087
this.checkboxGroupInitValues.filter((x) => {
91-
if (
92-
x.disabled &&
93-
this.checkboxGroupDefaultValue.indexOf(x.label) === -1
94-
) {
88+
if (x.disabled && this.checkboxGroupDefaultValue.indexOf(x.label) === -1) {
9589
result.push(x.label);
9690
}
9791
});

examples/src/docs/en/ve-checkbox/checkbox-single.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,7 @@
55
<div>
66
<div>
77
<div class="bold">单选</div>
8-
<ve-checkbox
9-
@on-checked-change="checkedChange"
10-
v-model="checkboxValue1"
11-
label="哈密瓜"
12-
/>
8+
<ve-checkbox @on-checked-change="checkedChange" v-model="checkboxValue1" label="哈密瓜" />
139
<div>{{checkboxValue1}}</div>
1410
</div>
1511

@@ -35,10 +31,7 @@
3531
<div class="bold">
3632
受控属性
3733
</div>
38-
<ve-checkbox
39-
isControlled
40-
:isSelected="isSelected"
41-
@on-checked-change="checkedChangeControl"
34+
<ve-checkbox isControlled :isSelected="isSelected" @on-checked-change="checkedChangeControl"
4235
>哈密瓜</ve-checkbox
4336
>
4437
<div>{{isSelected}}</div>

examples/src/docs/en/ve-icon/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import `VeIcon`
44

55
```javascript
6-
import Vue from 'vue';
6+
import Vue from "vue";
77
import { VeIcon } from "vue-easytable";
88

99
Vue.use(VeIcon);

examples/src/docs/en/ve-loading/container.md

Lines changed: 4 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,7 @@ Display the Loading effect in containers such as tables
88
<div>
99
<button class="button-demo" @click="show()">Open</button>
1010
<button class="button-demo" @click="close()">Close</button><br /><br />
11-
<ve-table
12-
id="loading-container"
13-
:columns="columns"
14-
:table-data="tableData"
15-
/>
11+
<ve-table id="loading-container" :columns="columns" :table-data="tableData" />
1612
</div>
1713
</template>
1814
<script>
@@ -21,21 +17,9 @@ Display the Loading effect in containers such as tables
2117
return {
2218
loadingInstance: null,
2319
columns: [
24-
{field: "name",
25-
key: "a",
26-
title: "Name",
27-
align: "center",
28-
},
29-
{field: "date",
30-
key: "b",
31-
title: "Date",
32-
align: "left",
33-
},
34-
{field: "hobby",
35-
key: "c",
36-
title: "Hobby",
37-
align: "right",
38-
},
20+
{ field: "name", key: "a", title: "Name", align: "center" },
21+
{ field: "date", key: "b", title: "Date", align: "left" },
22+
{ field: "hobby", key: "c", title: "Hobby", align: "right" },
3923
{ field: "address", key: "d", title: "Address" },
4024
],
4125
tableData: [

examples/src/docs/en/ve-loading/custom.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,7 @@ You can also customize the loading text, background color and size
88
<div>
99
<button class="button-demo" @click="show()">Open</button>
1010
<button class="button-demo" @click="close()">Close</button><br /><br />
11-
<div
12-
id="custom-loading-container"
13-
style="width:100%;height:250px;background-color:#2980b9;"
14-
/>
11+
<div id="custom-loading-container" style="width:100%;height:250px;background-color:#2980b9;" />
1512
</div>
1613
</template>
1714
<script>

examples/src/docs/en/ve-locale/usage.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<anchor label="Usage"/>
22

33
```javascript
4-
import Vue from 'vue';
4+
import Vue from "vue";
55
import { VeLocale } from "vue-easytable";
66
// import language config
77
import enUS from "vue-easytable/libs/locale/lang/en-US.js";

examples/src/docs/en/ve-pagination/layout-settings.md

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,19 @@
77
<div>
88
<div>
99
<div class="mb20 bold">Don't display page number button</div>
10-
<ve-pagination
11-
:total="600"
12-
:layout="['total', 'prev', 'next', 'sizer', 'jumper']"
13-
/>
10+
<ve-pagination :total="600" :layout="['total', 'prev', 'next', 'sizer', 'jumper']" />
1411
</div>
1512
<div>
1613
<div class="mt30 mb20 bold">Adjust display order</div>
17-
<ve-pagination
18-
:total="600"
19-
:layout="['total', 'sizer', 'prev', 'pager', 'next', 'jumper']"
20-
/>
14+
<ve-pagination :total="600" :layout="['total', 'sizer', 'prev', 'pager', 'next', 'jumper']" />
2115
</div>
2216

2317
<div>
2418
<div class="mt30 mb20 bold">All layout</div>
25-
<ve-pagination
26-
:total="600"
27-
:layout="['total', 'prev', 'pager', 'next', 'sizer', 'jumper']"
28-
/>
19+
<ve-pagination :total="600" :layout="['total', 'prev', 'pager', 'next', 'sizer', 'jumper']" />
2920
</div>
3021
</div>
3122
</template>
3223
```
3324

34-
:::
25+
:::

examples/src/docs/en/ve-pagination/page-index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@
77
</template>
88
```
99

10-
:::
10+
:::

0 commit comments

Comments
 (0)