Open RandyZ opened 1 year ago
I have the vueGridItems like this...
vueGridItems
import { computed } from 'vue-demi' ... const vueGridItems = computed(() => {return [{i:1}, {i:2}] })
and template
<grid-item v-for="item in vueGridItems" v-bind="item" > <WmqGridItem ref="itemRefs" :uk="childrenWmqGridItem[item.i].uk" :itemConfig="childrenWmqGridItem[item.i]" :itemDataContext="childrenDataContext[item.i]" :itemProps="childrenWmqGridItem[item.i].props" :itemOptions="childrenWmqGridItem[item.i].options" :schemaData="childrenWmqGridItem[item.i].itemData" /> </grid-item>
item.i can not predict prop i, item type is
item.i
i
item
true | { i: number; }[] | ReactiveEffect<{ i: number; }[]>
true make editor recognize prop i fail, I have no idea where predict true
true
vue: 3.3 vue-demi: 0.14.5 editor: vscode and Vue Language Features (Volar) v1.8.8
I have the
vueGridItems
like this...and template
item.i
can not predict propi
,item
type istrue | { i: number; }[] | ReactiveEffect<{ i: number; }[]>
true
make editor recognize propi
fail, I have no idea where predicttrue
vue: 3.3 vue-demi: 0.14.5 editor: vscode and Vue Language Features (Volar) v1.8.8