Skip to content

Commit 00cdb45

Browse files
committed
prettier
1 parent 21252c0 commit 00cdb45

39 files changed

+70
-346
lines changed

.prettierrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ module.exports = {
1919
{
2020
files: "*.md",
2121
options: {
22+
printWidth: 100,
2223
proseWrap: "preserve",
2324
},
2425
},

examples/src/docs/en/QA.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ A:Too much text in a cell destroys the layout,This can be controlled by style [w
3535

3636
```html
3737
<template>
38-
<ve-table
39-
style="word-break: break-all"
40-
:columns="columns"
41-
:table-data="tableData"
42-
/>
38+
<ve-table style="word-break: break-all" :columns="columns" :table-data="tableData" />
4339
</template>
4440
```

examples/src/docs/en/start.md

Lines changed: 1 addition & 7 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);

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

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,7 @@
4747
{ disabled: false, label: "水蜜桃2" },
4848
],
4949
50-
checkboxGroupDefaultValue: [
51-
"南瓜",
52-
"哈密瓜",
53-
"水蜜桃",
54-
"哈密瓜2",
55-
],
50+
checkboxGroupDefaultValue: ["南瓜", "哈密瓜", "水蜜桃", "哈密瓜2"],
5651
5752
indeterminate: true,
5853
checkedAllModel: false,
@@ -79,10 +74,7 @@
7974
let result = [];
8075
8176
this.checkboxGroupInitValues.filter((x) => {
82-
if (
83-
x.disabled &&
84-
this.checkboxGroupDefaultValue.indexOf(x.label) > -1
85-
) {
77+
if (x.disabled && this.checkboxGroupDefaultValue.indexOf(x.label) > -1) {
8678
result.push(x.label);
8779
}
8880
});
@@ -94,10 +86,7 @@
9486
let result = [];
9587
9688
this.checkboxGroupInitValues.filter((x) => {
97-
if (
98-
x.disabled &&
99-
this.checkboxGroupDefaultValue.indexOf(x.label) === -1
100-
) {
89+
if (x.disabled && this.checkboxGroupDefaultValue.indexOf(x.label) === -1) {
10190
result.push(x.label);
10291
}
10392
});

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,14 @@
6969
// 是否全部选中
7070
hasAllChecked() {
7171
return this.checkboxGroupInitValues.every((x) => {
72-
return (
73-
this.checkboxGroupDefaultValue2.indexOf(x.label) > -1
74-
);
72+
return this.checkboxGroupDefaultValue2.indexOf(x.label) > -1;
7573
});
7674
},
7775
7876
// 判断是否有部分选中
7977
hasPartChecked() {
8078
return this.checkboxGroupInitValues.some((x) => {
81-
return (
82-
this.checkboxGroupDefaultValue2.indexOf(x.label) > -1
83-
);
79+
return this.checkboxGroupDefaultValue2.indexOf(x.label) > -1;
8480
});
8581
},
8682
},

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

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,7 @@ Display the Loading effect in containers such as tables
1010
<button class="button-demo" @click="close()">Close</button>
1111
<br />
1212
<br />
13-
<ve-table
14-
id="loading-container"
15-
:columns="columns"
16-
:table-data="tableData"
17-
/>
13+
<ve-table id="loading-container" :columns="columns" :table-data="tableData" />
1814
</div>
1915
</template>
2016
<script>

examples/src/docs/en/ve-locale/cover-lang.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,7 @@ Use Locale.update method to modify the default configs.
77
<template>
88
<div>
99
<div>
10-
<button class="button-demo" @click="coverLang()">
11-
Override Config
12-
</button>
10+
<button class="button-demo" @click="coverLang()">Override Config</button>
1311
<br />
1412
<br />
1513
</div>

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,7 @@
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>

examples/src/docs/en/ve-radio/base.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
<div>
66
<div>
77
<div class="bold">单选</div>
8-
<ve-radio @on-radio-change="radioChange" v-model="radioVal">
9-
Radio
10-
</ve-radio>
8+
<ve-radio @on-radio-change="radioChange" v-model="radioVal">Radio</ve-radio>
119
<div>{{radioVal}}</div>
1210
</div>
1311

examples/src/docs/en/ve-radio/controlled.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,7 @@
77
<div class="bold">受控单选</div>
88
<button class="button-demo" @click="test()">测试</button>
99
<br />
10-
<ve-radio
11-
isControlled
12-
@on-radio-change="radioChange"
13-
:isSelected="radioVal"
14-
>
10+
<ve-radio isControlled @on-radio-change="radioChange" :isSelected="radioVal">
1511
Radio
1612
</ve-radio>
1713
<div>{{radioVal}}</div>

0 commit comments

Comments
 (0)