docs: add latest ep version info (#21290)

* docs: add latest ep version info

* chore: test

* chore: test

* chore: test git head

* Revert "chore: test git head"

This reverts commit 18d80355f91be627399ce39d1f3b865cd903d0fc.

* chore: use commit hash

* chore: test

* chore: test

* chore: test

* chore: remove test

* chore: set final

* chore: only get commit in staging
This commit is contained in:
Noblet Ouways
2025-07-21 10:02:59 +02:00
committed by GitHub
parent c7a2812c91
commit 937c6f4a4d

View File

@ -1,6 +1,7 @@
<script setup lang="ts">
import { computed } from 'vue'
import { inBrowser, useData } from 'vitepress'
import { version as epVersion } from 'element-plus'
import VPNavbarSearch from './navbar/vp-search.vue'
import VPNavbarMenu from './navbar/vp-menu.vue'
import VPNavbarThemeToggler from './navbar/vp-theme-toggler.vue'
@ -39,6 +40,9 @@ const currentLink = computed(() => {
alt="Element Plus Logo"
/>
</a>
<el-tag round size="small" title="latest version">{{
epVersion.replace('0.0.0-staging.', '')
}}</el-tag>
</div>
<div class="content">
<VPNavbarSearch class="search" :options="theme.agolia" multilang />