dattn / dnd-grid

A vuejs grid with draggable and resizable boxes
307 stars 48 forks source link

Unable to use #26

Closed ThaDaVos closed 6 years ago

ThaDaVos commented 6 years ago

When following the instructions to setup the component import { Container, Box} from '@dattn/dnd-grid'; Both imported objects "Container" and "Box" are both undefined. When checking de .js it looks like it's been minified and I can't find any reference to Container and Box.

So atm of writing this - I can't use your plugin...

ThaDaVos commented 6 years ago

fixed it by doing the following: import DndGrid from '@dattn/dnd-grid'; and using components: { DndGridContainer: DndGrid.Container, DndGridBox: DndGrid.Box }

dattn commented 6 years ago

This commit should fix you issue: https://github.com/dattn/dnd-grid/commit/7b9e32c9215bc183c4d9571de25900b82a7c9465 I will release a new version soon

ThaDaVos commented 6 years ago

Thanks - I'll check it once the update is out

dattn commented 6 years ago

Fixed in v0.0.13 release

ThaDaVos commented 6 years ago

Thanks - it's fixed now :D