Skip to content

Commit d4c0667

Browse files
author
leezng
authored
Merge pull request #46 from aburakayaz/dev
Fix typo on the word "visiable"
2 parents d37a3cc + 0bc07e4 commit d4c0667

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

src/components/brackets-left.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44

55
<!-- Expand -->
66
<span
7-
v-show="dataVisiable"
7+
v-show="dataVisible"
88
class="vjs-tree__brackets"
99
@click.stop="toggleBrackets">
1010
{{ Array.isArray(data) ? '[' : '{' }}
1111
</span>
1212

1313
<!-- Collapse -->
14-
<span v-show="!dataVisiable">
14+
<span v-show="!dataVisible">
1515
<span
1616
class="vjs-tree__brackets"
1717
@click.stop="toggleBrackets">

src/components/brackets-right.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<div v-show="dataVisiable">
2+
<div v-show="dataVisible">
33
<span
44
class="vjs-tree__brackets"
55
@click.stop="toggleBrackets">

src/mixins/brackets-mixin.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export default {
1010
showComma: Boolean
1111
},
1212
computed: {
13-
dataVisiable: {
13+
dataVisible: {
1414
get () {
1515
return this.visible
1616
},
@@ -22,7 +22,7 @@ export default {
2222
methods: {
2323
// 切换括号展开|关闭
2424
toggleBrackets () {
25-
this.dataVisiable = !this.dataVisiable
25+
this.dataVisible = !this.dataVisible
2626
},
2727
// 括号优化函数, 若不是最后一项, 自动添加逗号
2828
bracketsFormatter (brackets) {

0 commit comments

Comments
 (0)