为什么我不能在Vuetify中使用v-skeleton-loader?

huangapple go评论64阅读模式
英文:

Why i can't use v-skeleton-loader with vuetify

问题

我不知道为什么我不能使用 v-skeleton-loader。每当我使用这个组件时,控制台会抛出以下警告:无法解析组件:v-skeleton-loader。

我使用的是 vuetify 版本 3.1.4。


<Suspense>
          <template #default>
            <boutique_data />
          </template>
          <template #fallback>
            <v-sheet class="px-3 pt-3 pb-3">
              <v-skeleton-loader type="table" :loading="true"></v-skeleton-loader>
            </v-sheet>
          </template>

</Suspense> 

当我移除这个组件并在回退模板中放入一些随机内容时,一切都正常工作。
希望有人可以帮助我。

提前感谢。

英文:

i don't know why i cant use v-skeleton-loader. anytime i use the component the console throw me this warning : Failed to resolve component: v-skeleton-loader.

i use vuetify": 3.1.4


<Suspense>
          <template #default>
            <boutique_data />
          </template>
          <template #fallback>
            <v-sheet class="px-3 pt-3 pb-3">
              <v-skeleton-loader type="table" :loading="true"></v-skeleton-loader>
            </v-sheet>
          </template>

</Suspense> 

when i remove the component and i put some random stuff inside my fallback template , everything works fine.
i hope somebody can help me

thanks in advance

答案1

得分: 6

v-skeleton-loader 可用于 v3.1.13+,我们应该从 Labs 引入。

英文:

v-skeleton-loader is available for v3.1.13+ and we should import it from Labs.

huangapple
  • 本文由 发表于 2023年2月27日 08:04:45
  • 转载请务必保留本文链接:https://go.coder-hub.com/75575781.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定