Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Not working with Nuxt #108

@MickL

Description

@MickL

Is it working with Vue 3? The example code seems very oldish and is hard to find. There is a npm package but no github repo / docs / readme? The example in the npm repo doesnt use setup function composition API. I tried:

<script setup lang="ts">
import {
  MasonryGrid,
  JustifiedGrid,
  FrameGrid,
  PackingGrid,
} from '@egjs/vue-grid';
</script>

<template>
  <masonry-grid>
    <div class="item">1</div>
    <div class="item">2</div>
    <div class="item">3</div>
    <div class="item">4</div>
    <div class="item">5</div>
    <div class="item">6</div>
    <div class="item">7</div>
    <div class="item">8</div>
    <div class="item">9</div>
    <div class="item">10</div>
  </masonry-grid>
</template>

But I get multiple warnings and errors:
Image

Reproduction:
https://github.com/MickL/egjs-grid-vue-bug

Stackblitz:
https://stackblitz.com/~/github.com/MickL/egjs-grid-vue-bug

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions