安装
环境要求
- Node.js >= 16.x
- Vue >= 3.x
- Element Plus >= 2.x
使用包管理器
我们建议使用包管理器(如 npm、yarn 或 pnpm)安装 directives-expand。
bash
npm install directives-expandbash
yarn add directives-expandbash
pnpm add directives-expand安装 Vue3
directives-expand 是基于 Vue3 构建的,因此你需要先安装 Vue3:
bash
npm install vuebash
yarn add vuebash
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。
