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

nested expanding not working #2

Open
kaijajan opened this issue May 9, 2017 · 1 comment
Open

nested expanding not working #2

kaijajan opened this issue May 9, 2017 · 1 comment

Comments

@kaijajan
Copy link

kaijajan commented May 9, 2017

I'm trying to create nested sidebar using expanding component.
But nested expanding components does not work.
While the inside expanding component was opened, the outside one won't expand
Any idea to make it work?
Thanks

<expanding>
   ...some list items
  <expanding>
    ..some list items
  </expanding>
</expanding>
@kaijajan
Copy link
Author

kaijajan commented May 9, 2017

here is my testing code, please help for this
thanks

<template>
    <expanding v-show="show1">
      <div>
        <div>test item 1<div>
        <div>test item 2<div>
        <div>test item 3<div>
        <div>test item 4<div>
        <div>test item 5<div>
        <div>test item 6<div>
        <expanding v-show="show2">
          <div>
            <div>test item 1<div>
            <div>test item 2<div>
            <div>test item 3<div>
            <div>test item 4<div>
            <div>test item 5<div>
            <div>test item 6<div>
          </div>
        </expanding>
      </div>
    </expanding>
    <button @click="show1 = !show1">show1</button>
    <button @click="show2 = !show2">show2</button>
  </div>
</template>

<script>
import Expanding from './Expanding'

export default {
  components: {
    Expanding
  },
  data: function () {
    return {
      show1: true,
      show2: false
    }
  }
}
</script>

<style>
</style>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant