@cloudinary/vue

中文文档
1.13.4发布于 2026/02/12MITES Module近 30 天下载 3.1万

Cloudinary Vue SDK

原始使用文档
文档目录16 节
  1. About
  2. Table of Contents
  3. Key Features
  4. Version Support
  5. Installation
  6. Install using your favorite package manager (yarn, npm)
  7. Usage Example
  8. Setup
  9. Generate Image and Video elements
  10. Advanced Plugin Features
  11. File upload
  12. Contributions
  13. Get Help
  14. About Cloudinary
  15. Additional Resources
  16. License

Cloudinary Vue SDK

About

The Cloudinary Vue SDK allows you to quickly and easily integrate your application with Cloudinary. Effortlessly optimize and transform your cloud's assets.

Note

This Readme provides basic installation and usage information.

Table of Contents

Key Features

Version Support

SDK VersionVue 3.x
1.0.0 & upV

Installation

Install using your favorite package manager (yarn, npm)

npm i @cloudinary/url-gen @cloudinary/vue

Or

yarn add @cloudinary/url-gen @cloudinary/vue

Usage Example

Setup

<script type="module">
import { AdvancedImage, responsive } from "@cloudinary/vue"
import { CloudinaryImage } from "@cloudinary/url-gen/assets/CloudinaryImage";

export default {
  components: {
    AdvancedImage
  },
  data() {
    return {
      plugins: [responsive({steps: 100})],
      cldImg: new CloudinaryImage(
          "sample",
          {cloudName: "demo"}
      )
    };
  }
};
</script>

<template>
  <div>
    <p>text</p>
    <AdvancedImage :cldImg="cldImg" :plugins="plugins" />
  </div>
</template>

Generate Image and Video elements

  • Use to generate image tags
  • Use to generate image tags

Advanced Plugin Features

We recommend the following order when using our plugins to achieve the best results:

[lazyload(), responsive(), accessibility(), placeholder()]

You can omit any plugin, but the order from above should remain.

File upload

This SDK does not provide file upload functionality, however there are several methods of uploading from the client side.

Contributions

  • Ensure tests run locally (npm run test)
  • Open a PR and ensure Travis tests pass

Get Help

If you run into an issue or have a question, you can either:

About Cloudinary

Cloudinary is a powerful media API for websites and mobile apps alike, Cloudinary enables developers to efficiently manage, transform, optimize, and deliver images and videos through multiple CDNs. Ultimately, viewers enjoy responsive and personalized visual-media experiences—irrespective of the viewing device.

Additional Resources

License

Released under the MIT license.

版本与发布记录

@cloudinary/vue 共发布 16 个版本,首次发布于 2022/12/12;过去 12 个月发布了 1 个版本。

版本发布日期距今
1.13.4latest2026/02/128 个月前
1.13.32025/05/141.5 年前
1.13.22025/05/141.5 年前
1.13.12025/02/251.7 年前
1.13.02024/11/042 年前
1.12.12024/02/162 年前

关于 @cloudinary/vue 的常见问题

@cloudinary/vue 是什么?

Cloudinary Vue SDK

如何安装 @cloudinary/vue?

在项目目录运行 npm install @cloudinary/vue,或使用 pnpm add / yarn add / bun add。

@cloudinary/vue 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/cloudinary__vue 是否存在。

@cloudinary/vue 支持 ESM 还是 CommonJS?

以 ES Module 形式发布,推荐使用 import 引入。在 CommonJS 项目中,Node.js 20.19+ / 22.12+ 可以直接 require() 不含顶层 await 的 ES Module,更早的版本需要改用动态 import()。

@cloudinary/vue 可以商用吗?

@cloudinary/vue 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@cloudinary/vue 的下载量有多少?

根据 npm 官方下载统计,@cloudinary/vue 在 2026/10/10 – 2026/11/08 这 30 天内被下载 30,612 次,日均约 1,020 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@cloudinary/vue 还在维护吗?

最新版本 1.13.4 发布于 2026/02/12(8 个月前);至今共发布 16 个版本,其中过去 12 个月发布了 1 个;首次发布于 2022/12/12。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。