Vue-grid-layout: [Vue warn]: Error in nextTick: "Error: VueGridLayout: Layout[0].w must be a number!"

Created on 8 Jan 2018  路  1Comment  路  Source: jbaysolutions/vue-grid-layout

This is a weird issue - getting this error, when object's properties that hold the width/height are called other than 'w' or 'h', same for properties with min/max. Is it by design?

Also, 'i' cannot be called something elses, like 'id' or 'guid'.

 <grid-item v-for="w in widgets" v-if="w.open" :key="w.i"
                               :i="w.i"
                               :x="w.x"
                               :y="w.y"
                               :w="w.width" <- cannot use this, has to be 'w.w'
                               :h="w.height" <- cannot use this, has to be 'w.h'
                               :max-w="w.maxWidth"<- cannot use this, has to be 'w.maxW'
                               :max-h="w.maxHeight" <-cannot use this, has to be 'w.maxH'
                               :min-w="w.minWidth" <-cannot use this, has to be 'w.minW
                               :min-h="w.minHeight" <-cannot use this, has to be 'w.minH
                               drag-allow-from=".widget"
                               drag-ignore-from=".no-drag"
                               v-bind:class="{'hpanel widget': true}">
                        <div class="panel-tools">
                            <a class="closeboxx"><i class="fa fa-times" v-on:click="widgetClose(w)"></i></a>
                        </div>

                        <component :is="w.type" v-bind:widget="w">
                        </component>

 </grid-item>
question

>All comments

Yes, the properties need to have those names, because they are ase used in grid-layout.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kennethllamasares picture kennethllamasares  路  3Comments

vitorhps picture vitorhps  路  3Comments

MLongz picture MLongz  路  7Comments

victory-v picture victory-v  路  7Comments

llwinner picture llwinner  路  3Comments