Skip to content

Commit

Permalink
minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
infinite-system committed Jan 28, 2023
1 parent 8a60d9a commit 587a839
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ This component does not depend on any other package, except Vue 3
| open-level | `0` | Number, String, Array | Default is `0` or folded. Number or String like (1 or '2' or 3) will open all levels up to that level. Array of levels like [2,3,5] will pre-open specifically those levels only, if 0 is not specified, it will still be folded initially. |
| open-specific | `[]` | Array | Array of elements to pre-open. For ex. `window` object, has `window.navigator` and `window.history`, history has `window.history.state` objects. To pre-open them specify [`'window'`,`'window.history'`,`'window.history.state'`] or just `['window.history.state']` as it requires all of the above objects to be open already. If objects are not descendants then specify separately like this `['window.history.state',` ` 'window.navigator']` |
| focus | `null` | String, Number | Focus element to open, similar to òpen-specific`, but just 1 item. The browser will open and scroll to that element if it is specified. |
| focus-offset-x | `-35` | Number | X plane offset when scrolling to focused element |
| focus-offset-y | `-15` | Number | Y plane offset when scrolling to focused element |
| focus-delay | `300` | Number | Delay in milliseconds, before focusing |
| focus-sticky | `false` | Boolean | Focus sticky, will keep 'sticking' to the focused element, even when object undergoes changes or you open and close levels, `false` by default. |
| focus-offset-x | `-35` | Number | X plane offset when scrolling to focused element |
| focus-offset-y | `-15` | Number | Y plane offset when scrolling to focused element |
| focus-delay | `300` | Number | Delay in milliseconds, before focusing |
| preview | `5` | Number, Boolean `false` | Number of elements to preview when viewing an object or an array. This can be made less or more depending on performance needs. Less is faster, because there is less rendering. It can also be fully turned off by setting `0` or `false` |
| preview-initial | `true` | Boolean | Initial object's preview can be turned off, to make the item take less space on the screen. Instead of `obj {1, 2, 3, 4, 5}`, it will just be `obj {...}` on the first level, when you open it, it will use `preview` value for the rest of the items. |
| escape-quotes | `false` | Boolean | Strings will have escaped double quotes, " will be converted to \\" |
Expand Down
2 changes: 1 addition & 1 deletion vue-dd/dist/index.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -1979,7 +1979,7 @@ const mn = Ke({
},
showEmit(e) {
let { type: t, pointer: i, focusElement: o } = e;
this.emitFn(this, "show", e), console.log("show", i), this.saveFocus && this.useFocus === i && this.setFocus();
this.emitFn(this, "show", e), this.saveFocus && this.useFocus === i && this.setFocus();
},
open(e) {
const { open: t, pointer: i, level: o, user: s } = e;
Expand Down
Loading

0 comments on commit 587a839

Please sign in to comment.