Vue3 警告:::v-deep usage as a combinator has been deprecated. Use :deep() instead.

全能 AI 聚合平台 免费

一站式接入主流 AI 大模型,支持对话 · 生图 · 生视频,即开即用

ChatGPT Claude Gemini Grok DeepSeek 通义千问 Ollama
AI对话 AI生图 AI视频
免费使用 →

Vue 警告

::v-deep usage as a combinator has been deprecated. Use :deep(<inner-selector>) instead.

解决方案

使用 :deep() 替换 ::v-deep

.carousel {
  // Vue 2.0 写法
  // ::v-deep .carousel-btn.prev {
  //    left: 270px;
  //  }

  // Vue 3.0 更改为以下写法
  :deep(.carousel-btn.prev) {
    left: 270px;
  }
}

© 版权声明

相关文章

暂无评论

none
暂无评论...