mirror of
https://github.com/element-plus/element-plus.git
synced 2025-08-26 12:32:17 +08:00
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:
@ -1,6 +1,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { computed } from 'vue'
|
import { computed } from 'vue'
|
||||||
import { inBrowser, useData } from 'vitepress'
|
import { inBrowser, useData } from 'vitepress'
|
||||||
|
import { version as epVersion } from 'element-plus'
|
||||||
import VPNavbarSearch from './navbar/vp-search.vue'
|
import VPNavbarSearch from './navbar/vp-search.vue'
|
||||||
import VPNavbarMenu from './navbar/vp-menu.vue'
|
import VPNavbarMenu from './navbar/vp-menu.vue'
|
||||||
import VPNavbarThemeToggler from './navbar/vp-theme-toggler.vue'
|
import VPNavbarThemeToggler from './navbar/vp-theme-toggler.vue'
|
||||||
@ -39,6 +40,9 @@ const currentLink = computed(() => {
|
|||||||
alt="Element Plus Logo"
|
alt="Element Plus Logo"
|
||||||
/>
|
/>
|
||||||
</a>
|
</a>
|
||||||
|
<el-tag round size="small" title="latest version">{{
|
||||||
|
epVersion.replace('0.0.0-staging.', '')
|
||||||
|
}}</el-tag>
|
||||||
</div>
|
</div>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<VPNavbarSearch class="search" :options="theme.agolia" multilang />
|
<VPNavbarSearch class="search" :options="theme.agolia" multilang />
|
||||||
|
Reference in New Issue
Block a user