Skip to content

Commit 179c865

Browse files
authored
fix: add class to value with custom formatter
1 parent bdb5e91 commit 179c865

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
@@ -33,7 +33,7 @@
3333
@click="onBracketsClick"
3434
/>
3535

36-
<span v-else-if="customValueFormatter" v-html="customFormatter(node.content)"></span>
36+
<span v-else-if="customValueFormatter" :class="valueClass" v-html="customFormatter(node.content)"></span>
3737
<span v-else :class="valueClass" v-text="defaultFormatter(node.content)" />
3838

3939
<span v-if="showLength && collapsed" class="vjs-comment"> // {{ node.length }} items </span>

0 commit comments

Comments
 (0)