Skip to content

Commit 7566dc5

Browse files
updated README.md
1 parent b78fe82 commit 7566dc5

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ const instance = getCurrentInstance()
1616
```
1717
In `<template>` add:
1818
```html
19-
<vue-dd name="setupState" v-model="instance.setupState" max-height="300px" />
19+
<vue-dd name="setupState" v-model="instance.setupState" :deep="false" max-height="300px" />
2020
```
21-
21+
> In the example above `:deep="false"` means, disable deep watching. Deep watching is `true` by default, but watching Vue instance or `instance.setupState` deeply can create a flood of Vue.js warnings because we start watching Vue itself. To prevent flooding, set `:deep="false"` otherwise that is optional
2222
## About
2323
The component renders object as a tree that can be expanded to display nested values, very similar to inspecting JavaScript objects using the Developer Tools, but with full reactivity & advanced UI and UX designed specifically for ease of use and joy for the developer.
2424

vue-dd/src/NodeComplex.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ export default {
587587
},
588588
longTextInline () {
589589
590-
let text = this.modelValue.substring(0, this.longText)
590+
let text = this.modelValue.toString().substring(0, this.longText)
591591
text = this.escapeQuotesFn(text)
592592
text = `"${text}..."`
593593

vue3/src/components/VueDdTest.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ const set = reactive(new Set())
6666
Window object displayed:
6767
<br />
6868
dark: <base-checkbox v-model="dark" /><br />
69-
<vue-dd name="setupState" :dark="dark" v-model="instance.setupState" max-height="300px" :deep="false" />
69+
<vue-dd name="setupState" :dark="dark" v-model="instance.setupState" :deep="false" max-height="300px" />
7070
<!-- <vue-dd name="test" delimiter="$" :dark="dark" v-model="bool" />-->
7171
<!-- <vue-dd name="ref" :dark="dark" v-model="text" />-->
7272
<!-- <vue-dd name="refObject" :dark="dark" v-model="refObject" />-->

0 commit comments

Comments
 (0)