如何查看element-plus 以前版本的文档?

背景:第三方的框架使用的是element-plus 2.7.4的版本;框架的开发文档提示不建议升级插件,避免自动更新错误。

搜索:搜索相关的问题,结果都是最新的文档。在github上有一个提问提供了线索:点击查看

思路:克隆 element-plus 的 gh-pages 分支;拉取全部历史记录;查询对应的时间版本;切换至该版本;vscode 安装Live Server 插件;右键 index.html Open Live Server。
 
// 拉取ghpages分支;默认为最新版本
// git clone -b gh-pages --depth=1 https://gitee.com/element-plus/element-plus.git element-plus-ghpages


// 拉取全部提交记录
// git fetch --unshallow

// 查看全部提交记录(选择对应的版本,版本需要查看element-plus的版本号tag)
// git log --format="%h %ad %s" --date=short



// 拿到对应的commit id 切换到对应的版本
// git checkout <commit-id>


// vscode 安装Live Server插件
// 安装Live Server插件后, 右键点击html文件,选择Open with Live Server
posted @ 2026-05-30 11:35  红色的风  阅读(32)  评论(0)    收藏  举报