We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0277a0f commit 6a2ae64Copy full SHA for 6a2ae64
src/components/brackets-left.vue
@@ -28,15 +28,15 @@
28
// 双括号内容生成器
29
doubleBracketsGenerator (data) {
30
const isArray = Array.isArray(data)
31
- const brackets = isArray ? '[...]' : '{...}'
+ let brackets = isArray ? '[...]' : '{...}'
32
if (this.showLength) {
33
// 若展示长度, 形如 [...] // 3 items
34
const text = isArray
35
? `${data.length} items`
36
: `${Object.keys(data).length} keys`
37
brackets += ` // ${text}`
38
}
39
- return bracketsFormatter(brackets)
+ return this.bracketsFormatter(brackets)
40
41
42
0 commit comments