Skip to content

安装

环境要求

  • Node.js >= 16.x
  • Vue >= 3.x
  • Element Plus >= 2.x

使用包管理器

我们建议使用包管理器(如 npm、yarn 或 pnpm)安装 directives-expand。

bash
npm install directives-expand
bash
yarn add directives-expand
bash
pnpm add directives-expand

安装 Vue3

directives-expand 是基于 Vue3 构建的,因此你需要先安装 Vue3:

bash
npm install vue
bash
yarn add vue
bash
pnpm add vue

从源码构建

如果你想从源码构建 directives-expand:

bash
# 克隆仓库
git clone https://github.com/jiayc4215/directives-expand.git

# 进入项目目录
cd directives-expand

# 安装依赖
pnpm install

# 构建项目
pnpm build

构建完成后,产物将输出到 dist 目录。

开发环境

如果你想参与 directives-expand 的开发:

bash
# 安装依赖
pnpm install

# 启动文档服务器
pnpm docs:dev

下一步

安装完成后,请查看 快速开始 了解如何在项目中使用 directives-expand。