Skip to content

Commit 312b5c3

Browse files
committed
prettier
1 parent 00cdb45 commit 312b5c3

Some content is hidden

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

43 files changed

+84
-376
lines changed

examples/src/docs/en/ve-table/row-checkbox/selected-default.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,7 @@
2222
checkboxOption: {
2323
defaultSelectedRowKeys: [1001, 1003, 1004],
2424
// 行选择改变事件
25-
selectedRowChange: ({
26-
row,
27-
isSelected,
28-
selectedRowKeys,
29-
}) => {
25+
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
3026
console.log(row, isSelected, selectedRowKeys);
3127
},
3228
// 全选改变事件

examples/src/docs/en/ve-table/row-checkbox/selected-disable.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,7 @@
2525
// 默认选择
2626
defaultSelectedRowKeys: [1001, 1003, 1004, 1005],
2727
// 行选择改变事件
28-
selectedRowChange: ({
29-
row,
30-
isSelected,
31-
selectedRowKeys,
32-
}) => {
28+
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
3329
console.log(row, isSelected, selectedRowKeys);
3430
},
3531
// 全选改变事件

examples/src/docs/en/ve-table/row-checkbox/selected-row-click.md

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ This example is row click trigger selection. You can also achieve column click s
2626
return {
2727
click: (event) => {
2828
const currentRowKey = row["rowKey"];
29-
this.changeSelectedRowKeysByRowClick(
30-
currentRowKey,
31-
);
29+
this.changeSelectedRowKeysByRowClick(currentRowKey);
3230
},
3331
};
3432
},
@@ -37,11 +35,7 @@ This example is row click trigger selection. You can also achieve column click s
3735
// 可控属性
3836
selectedRowKeys: [1003],
3937
// 行选择改变事件
40-
selectedRowChange: ({
41-
row,
42-
isSelected,
43-
selectedRowKeys,
44-
}) => {},
38+
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {},
4539
// 全选改变事件
4640
selectedAllChange: ({ isSelected, selectedRowKeys }) => {
4741
this.changeSelectedRowKeys(selectedRowKeys);

examples/src/docs/en/ve-table/row-expand/base.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
2121
render: ({ row, column, rowIndex }, h) => {
2222
return (
2323
<p>
24-
My name is{" "}
25-
<span style="color:#1890ff;">{row.name}</span>
24+
My name is <span style="color:#1890ff;">{row.name}</span>
2625
,I'm living in {row.address}
2726
</p>
2827
);

examples/src/docs/en/ve-table/row-expand/default-expand.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
render: ({ row, column, rowIndex }, h) => {
3131
return (
3232
<p>
33-
My name is{" "}
34-
<span style="color:#1890ff;">{row.name}</span>
33+
My name is <span style="color:#1890ff;">{row.name}</span>
3534
,I'm living in {row.address}
3635
</p>
3736
);

examples/src/docs/en/ve-table/row-expand/expand-chart.md

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,11 @@
2222
defaultExpandedRowKeys: [1001, 1002],
2323
render: ({ row, column, rowIndex }, h) => {
2424
if (row["rowKey"] === 1001) {
25-
return (
26-
<div
27-
id="chart-container"
28-
style="width:800px;height:300px;"
29-
/>
30-
);
25+
return <div id="chart-container" style="width:800px;height:300px;" />;
3126
} else {
3227
return (
3328
<p>
34-
My name is{" "}
35-
<span style="color:#1890ff;">
36-
{row.name}
37-
</span>
29+
My name is <span style="color:#1890ff;">{row.name}</span>
3830
,I'm living in {row.address}
3931
</p>
4032
);
@@ -185,33 +177,28 @@
185177
name: "蒸发量",
186178
type: "bar",
187179
data: [
188-
2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2,
189-
32.6, 20.0, 6.4, 3.3,
180+
2.0, 4.9, 7.0, 23.2, 25.6, 76.7, 135.6, 162.2, 32.6, 20.0, 6.4, 3.3,
190181
],
191182
},
192183
{
193184
name: "降水量",
194185
type: "bar",
195186
data: [
196-
2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2,
197-
48.7, 18.8, 6.0, 2.3,
187+
2.6, 5.9, 9.0, 26.4, 28.7, 70.7, 175.6, 182.2, 48.7, 18.8, 6.0, 2.3,
198188
],
199189
},
200190
{
201191
name: "平均温度",
202192
type: "line",
203193
yAxisIndex: 1,
204194
data: [
205-
2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0,
206-
16.5, 12.0, 6.2,
195+
2.0, 2.2, 3.3, 4.5, 6.3, 10.2, 20.3, 23.4, 23.0, 16.5, 12.0, 6.2,
207196
],
208197
},
209198
],
210199
};
211200
212-
let chartInstance = echarts.init(
213-
document.getElementById("chart-container"),
214-
);
201+
let chartInstance = echarts.init(document.getElementById("chart-container"));
215202
chartInstance.setOption(chartOption);
216203
},
217204
},

examples/src/docs/en/ve-table/row-expand/expand-column.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
render: ({ row, column, rowIndex }, h) => {
2323
return (
2424
<p>
25-
My name is{" "}
26-
<span style="color:#1890ff;">{row.name}</span>
25+
My name is <span style="color:#1890ff;">{row.name}</span>
2726
,I'm living in {row.address}
2827
</p>
2928
);

examples/src/docs/en/ve-table/row-expand/expand-control.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@
55
```html
66
<template>
77
<div>
8-
<button class="button-demo" @click="expandSwitch(1003)">
9-
Row 3 expand switch
10-
</button>
8+
<button class="button-demo" @click="expandSwitch(1003)">Row 3 expand switch</button>
119
<button class="button-demo" @click="expandAll()">Expand all</button>
1210
<button class="button-demo" @click="foldAll()">Fold all</button>
1311
<br />
@@ -31,18 +29,13 @@
3129
render: ({ row, column, rowIndex }, h) => {
3230
return (
3331
<p>
34-
My name is{" "}
35-
<span style="color:#1890ff;">{row.name}</span>
32+
My name is <span style="color:#1890ff;">{row.name}</span>
3633
,I'm living in {row.address}
3734
</p>
3835
);
3936
},
4037
// 重新赋值处理
41-
afterExpandRowChange: ({
42-
afterExpandedRowKeys,
43-
row,
44-
rowIndex,
45-
}) => {
38+
afterExpandRowChange: ({ afterExpandedRowKeys, row, rowIndex }) => {
4639
this.changeExpandedRowKeys(afterExpandedRowKeys);
4740
},
4841
},
@@ -124,8 +117,7 @@
124117
},
125118
// 切换展开行
126119
expandSwitch(key) {
127-
const rowKeyIndex =
128-
this.expandOption.expandedRowKeys.indexOf(key);
120+
const rowKeyIndex = this.expandOption.expandedRowKeys.indexOf(key);
129121
130122
if (rowKeyIndex > -1) {
131123
this.expandOption.expandedRowKeys.splice(rowKeyIndex, 1);
@@ -135,9 +127,7 @@
135127
},
136128
// 展开全部
137129
expandAll() {
138-
this.expandOption.expandedRowKeys = this.tableData.map(
139-
(x) => x.rowKey,
140-
);
130+
this.expandOption.expandedRowKeys = this.tableData.map((x) => x.rowKey);
141131
},
142132
// 折叠全部
143133
foldAll() {

examples/src/docs/en/ve-table/row-expand/expand-event.md

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,19 @@
2626
render: ({ row, column, rowIndex }, h) => {
2727
return (
2828
<p>
29-
My name is{" "}
30-
<span style="color:#1890ff;">{row.name}</span>
29+
My name is <span style="color:#1890ff;">{row.name}</span>
3130
,I'm living in {row.address}
3231
</p>
3332
);
3433
},
35-
beforeExpandRowChange: ({
36-
beforeExpandedRowKeys,
37-
row,
38-
rowIndex,
39-
}) => {
34+
beforeExpandRowChange: ({ beforeExpandedRowKeys, row, rowIndex }) => {
4035
if (row["rowKey"] === 1001) {
4136
alert("切换前的事件。返回false可中断展开切换");
4237
return false;
4338
}
4439
return true;
4540
},
46-
afterExpandRowChange: ({
47-
afterExpandedRowKeys,
48-
row,
49-
rowIndex,
50-
}) => {
41+
afterExpandRowChange: ({ afterExpandedRowKeys, row, rowIndex }) => {
5142
alert("切换后的事件");
5243
},
5344
},

examples/src/docs/en/ve-table/row-expand/expand-trigger.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,7 @@
2222
render: ({ row, column, rowIndex }, h) => {
2323
return (
2424
<p>
25-
My name is{" "}
26-
<span style="color:#1890ff;">{row.name}</span>
25+
My name is <span style="color:#1890ff;">{row.name}</span>
2726
,I'm living in {row.address}
2827
</p>
2928
);

0 commit comments

Comments
 (0)