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

moveable-control-box only one #187

Closed
MrHzq opened this issue Feb 26, 2020 · 8 comments
Closed

moveable-control-box only one #187

MrHzq opened this issue Feb 26, 2020 · 8 comments
Labels
bug Something isn't working complete question Further information is requested Vue
Milestone

Comments

@MrHzq
Copy link

MrHzq commented Feb 26, 2020

Environments

  • Framework name: Vue
  • Framework version: 2.6.10
  • Moveable Component version: > 0.13.4

Description

When Moveable Component version > 0.13.4

moveable-control-box only one:Belongs to the last

image

When Moveable Component version <= 0.13.4

moveable-control-box has three:is normal

image

Cannot upgrade version now

@daybrush
Copy link
Owner

@MrHzq

It looks like a bug, but the moveable version is now 0.14.1. Would you like to update it?

@daybrush daybrush added question Further information is requested Vue labels Feb 26, 2020
@MrHzq
Copy link
Author

MrHzq commented Feb 26, 2020

When Moveable Component version is higher than 0.13.4,exist the bug.
that means 0.14.0, 0.14.1 also exist the bug.
I've updated the latest version before

@daybrush
Copy link
Owner

@MrHzq

How can I know how to set the target of a moveable in vue?

@MrHzq
Copy link
Author

MrHzq commented Feb 26, 2020

@daybrush

all codes in component file ( moveable-item.vue ),It's a vue component

html

  <div class="moveable-item">
    <!-- one moveable target start  -->
    <div
      ref="moveableDom"
      class="moveable"
    >
      <slot />
    </div>
    <!-- one moveable target end -->
  </div>

js

import Moveable from 'moveable'

// use
this.moveableObj = new Moveable(this.moveableConfig.container, {
        ...this.moveableConfig,
        target: this.$refs.moveableDom,
        className: `my-custom-controlbox-classname-${item.uuid}`
}).on('drag', e => {
        // ...
})

Sorry, my English is limited. I wonder if you can understand

@daybrush daybrush added the bug Something isn't working label Mar 1, 2020
@daybrush daybrush added this to the 0.15.0 milestone Mar 1, 2020
@daybrush
Copy link
Owner

daybrush commented Mar 1, 2020

@MrHzq

I found the reason for the bug. I'll release a bug fix this week. Thank you.

@daybrush
Copy link
Owner

daybrush commented Mar 4, 2020

@leeboo

moveable 0.15.1 is released. Check it again.

@Fisujon
Copy link

Fisujon commented Aug 21, 2023

@daybrush I am experiencing the same issue. Still persists in "vue3-moveable": "^0.26.1" and "moveable": "^0.51.1".

@allenxie888
Copy link

@Fisujon Is your problem solved? I also encountered the same problem

#1106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working complete question Further information is requested Vue
Projects
None yet
Development

No branches or pull requests

4 participants