Skip to content

从 v0 迁移

🌐 Migration from v0

查看 Lucide for Vue v1 中的更改内容以及如何从 v0 迁移到 v1。有关 v1 的所有详细信息,请参见 版本 1

🌐 See what is changed in v1 and how to migrate from v0 to v1 of Lucide for Vue. For all the details about v1 see Version 1

lucide-vue-next@lucide/vue

🌐 From lucide-vue-next to @lucide/vue

Vue 的 Lucide 包在 v1 中已移至 @lucide/vue

🌐 Lucide package for Vue is moved to @lucide/vue in v1.

主要是将 lucide-vue-next 替换为 @lucide/vue。API 是相同的,因此不需要其他更改。

🌐 Mostly a find-and-replace of lucide-vue-next to @lucide/vue. The API is the same, so no other changes are required.

已移除品牌图标

🌐 Removed Brand Icons

品牌图标在 v1 中已被移除。如果你正在使用以下任何图标,你将需要用自定义 SVG 或替代图标来替换它们:

🌐 Brand icons are removed in v1. If you are using any of the following icons, you will need to replace them with a custom SVG or an alternative icon:

  • Chromium
  • Codepen
  • 代码沙箱
  • Dribbble
  • 脸书
  • Figma
  • Framer
  • Github
  • Gitlab
  • Instagram
  • LinkedIn
  • Pocket
  • RailSymbol(基于英国 Rail 图标)
  • Slack

我们建议使用各个品牌提供的官方 SVG 图标,大多数可以在它们的网站或品牌指南中找到。或者,你也可以使用 Simple Icons 提供的图标,该网站提供大量品牌图标,并附有官方品牌指南和 SVG 图标的链接。

🌐 We recommend to use the official SVG icons provided by the respective brands, most of them can be found on their websites or in their brand guidelines. Alternatively, you can use the icons from Simple Icons, which provides a large collection of brand icons. Also with links to the official Brand Guidelines and SVG icons.