Skip to content

Commit 76e45e7

Browse files
authored
Merge pull request #383 from hoyo/fix-checkbox-option
Fix misspelling
2 parents 9753815 + 14cf2a1 commit 76e45e7

33 files changed

+113
-113
lines changed

examples/src/demo/index.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
:cell-style-option="cellStyleOption"
9494
:expand-option="expandOption"
9595
:radio-option="radioOption"
96-
:checkbox-optipon="checkboxOptipon"
96+
:checkbox-option="checkboxOption"
9797
/>
9898
</div>
9999
<!-- <Footer /> -->
@@ -151,7 +151,7 @@ export default {
151151
//console.log(row);
152152
}
153153
},
154-
checkboxOptipon: {
154+
checkboxOption: {
155155
// row select change event
156156
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
157157
//console.log(row, isSelected, selectedRowKeys);

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:columns="columns"
1111
:table-data="tableData"
1212
row-key-field-name="rowKey"
13-
:checkbox-optipon="checkboxOptipon"
13+
:checkbox-option="checkboxOption"
1414
/>
1515
</div>
1616
</template>
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
checkboxOptipon: {
22+
checkboxOption: {
2323
// row select change event
2424
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
2525
console.log(row, isSelected, selectedRowKeys);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::tip
2-
1、Enable the multi selection function through the `checkboxoptipon` attribute<br>
2+
1、Enable the multi selection function through the `checkboxOption` attribute<br>
33
2、By setting `type=checkbox` in `columns` as a multiple selection column<br>
44
3、The `rowKeyFieldName` property must be set<br>
55
4、`selectedRowChange` is row change event. The event receives 3 parameters,`row`:Current row data,`isSelected`Whether the current row is selected,`selectedRowKeys` all the selected rowkeys.<br>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:columns="columns"
1111
:table-data="tableData"
1212
row-key-field-name="rowKey"
13-
:checkbox-optipon="checkboxOptipon"
13+
:checkbox-option="checkboxOption"
1414
/>
1515
</div>
1616
</template>
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
checkboxOptipon: {
22+
checkboxOption: {
2323
hideSelectAll: true,
2424
// 行选择改变事件
2525
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:columns="columns"
1111
:table-data="tableData"
1212
row-key-field-name="rowKey"
13-
:checkbox-optipon="checkboxOptipon"
13+
:checkbox-option="checkboxOption"
1414
/>
1515
</div>
1616
</template>
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
checkboxOptipon: {
22+
checkboxOption: {
2323
// 行选择改变事件
2424
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {
2525
console.log(row, isSelected, selectedRowKeys);

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
:columns="columns"
1616
:table-data="tableData"
1717
row-key-field-name="rowKey"
18-
:checkbox-optipon="checkboxOptipon"
18+
:checkbox-option="checkboxOption"
1919
/>
2020
</div>
2121
</template>
@@ -24,7 +24,7 @@
2424
export default {
2525
data() {
2626
return {
27-
checkboxOptipon: {
27+
checkboxOption: {
2828
// 可控属性
2929
selectedRowKeys: [1003],
3030
// 行选择改变事件
@@ -93,11 +93,11 @@
9393
methods: {
9494
// 给可控属性重新赋值
9595
changeSelectedRowKeys(keys) {
96-
this.checkboxOptipon.selectedRowKeys = keys;
96+
this.checkboxOption.selectedRowKeys = keys;
9797
},
9898
// 切换选中行
9999
selectedSwitch(key) {
100-
let selectedRowKeys = this.checkboxOptipon.selectedRowKeys;
100+
let selectedRowKeys = this.checkboxOption.selectedRowKeys;
101101
102102
const rowKeyIndex = selectedRowKeys.indexOf(key);
103103
@@ -109,11 +109,11 @@
109109
},
110110
// 选中全部
111111
selectedAll() {
112-
this.checkboxOptipon.selectedRowKeys = this.tableData.map((x) => x.rowKey);
112+
this.checkboxOption.selectedRowKeys = this.tableData.map((x) => x.rowKey);
113113
},
114114
// 取消选中全部
115115
unselectedAll() {
116-
this.checkboxOptipon.selectedRowKeys = [];
116+
this.checkboxOption.selectedRowKeys = [];
117117
},
118118
},
119119
};

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:columns="columns"
1111
:table-data="tableData"
1212
row-key-field-name="rowKey"
13-
:checkbox-optipon="checkboxOptipon"
13+
:checkbox-option="checkboxOption"
1414
/>
1515
</div>
1616
</template>
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
checkboxOptipon: {
22+
checkboxOption: {
2323
defaultSelectedRowKeys: [1001, 1003, 1004],
2424
// 行选择改变事件
2525
selectedRowChange: ({ row, isSelected, selectedRowKeys }) => {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
:columns="columns"
1111
:table-data="tableData"
1212
row-key-field-name="rowKey"
13-
:checkbox-optipon="checkboxOptipon"
13+
:checkbox-option="checkboxOption"
1414
/>
1515
</div>
1616
</template>
@@ -19,7 +19,7 @@
1919
export default {
2020
data() {
2121
return {
22-
checkboxOptipon: {
22+
checkboxOption: {
2323
// 禁用的选择(禁止勾选或者禁止取消勾选)
2424
disableSelectedRowKeys: [1002, 1005],
2525
// 默认选择

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ This example is row click trigger selection. You can also achieve column click s
1111
:columns="columns"
1212
:table-data="tableData"
1313
row-key-field-name="rowKey"
14-
:checkbox-optipon="checkboxOptipon"
14+
:checkbox-option="checkboxOption"
1515
:event-custom-option="eventCustomOption"
1616
/>
1717
</div>
@@ -31,7 +31,7 @@ This example is row click trigger selection. You can also achieve column click s
3131
};
3232
},
3333
},
34-
checkboxOptipon: {
34+
checkboxOption: {
3535
// 可控属性
3636
selectedRowKeys: [1003],
3737
// 行选择改变事件
@@ -98,11 +98,11 @@ This example is row click trigger selection. You can also achieve column click s
9898
methods: {
9999
// 给可控属性重新赋值
100100
changeSelectedRowKeys(keys) {
101-
this.checkboxOptipon.selectedRowKeys = keys;
101+
this.checkboxOption.selectedRowKeys = keys;
102102
},
103103
// 行点击触发
104104
changeSelectedRowKeysByRowClick(currentRowKey) {
105-
const { selectedRowKeys } = this.checkboxOptipon;
105+
const { selectedRowKeys } = this.checkboxOption;
106106
107107
if (selectedRowKeys.includes(currentRowKey)) {
108108
const rowKeyIndex = selectedRowKeys.indexOf(currentRowKey);

examples/src/docs/en/ve-table/row-radio/explain.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
:::tip
2-
1、Use the `radioOptipon` attribute to enable the row radio.<br>
2+
1、Use the `radioOption` attribute to enable the row radio.<br>
33
2、Set `type=radio` in `columns` as a radio column<br>
44
3、The `rowKeyFieldName` property must be set<br>
55
4、`Selectedrowchange` is row change event.Event receives 1 parameter,`row`:current row data

0 commit comments

Comments
 (0)