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

Vue 警告

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

解决方案

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

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

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

你可能感兴趣的:(Vue3 警告:::v-deep usage as a combinator has been deprecated. Use :deep() instead.)