Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change scope of ref with v-scope #181

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Commits on Jul 16, 2022

  1. Configuration menu
    Copy the full SHA
    2525578 View commit details
    Browse the repository at this point in the history

Commits on Aug 29, 2022

  1. Add $root refer to component root element

    Some times like in dialogs we need access to root component from child nodes, also it is a way to access root element from `v-scope` . the next snippet from another PR to expose `$el` to scope, but this PR can solve the same problem also
    
    ```html
    <textarea
      v-scope="{width: $root.offsetWidth, height: $root.offsetHeight}"
      @click="width = $el.offsetWidth; height = $el.offsetHeight;"
    >
    {{ width }} &times; {{ height }}
    </textarea>
    ```
    wusaby-rush committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    b66a6dd View commit details
    Browse the repository at this point in the history
  2. Change scope of ref with v-scope

    wusaby-rush committed Aug 29, 2022
    Configuration menu
    Copy the full SHA
    980daf5 View commit details
    Browse the repository at this point in the history