Skip to content

Commit 48ce265

Browse files
committed
fix: support showComma in default formatter
1 parent 8d8cbf6 commit 48ce265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/TreeNode/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default {
132132
defaultFormatter(data) {
133133
let text = data + '';
134134
if (this.dataType === 'string') text = `"${text}"`;
135-
return text;
135+
return this.node.showComma ? `${text},` : text;
136136
},
137137
138138
customFormatter(data) {

0 commit comments

Comments
 (0)