ulivz / vt

🖼️ A "Post-VuePress Era" Documentation Theme (Deprecation Warning: For a next-gen SSG, please check out Rspress.)
https://vt.insx.dev
MIT License
136 stars 10 forks source link

feat: ability to close status #94

Closed ulivz closed 1 year ago

ulivz commented 1 year ago

Closing Status

You can use a global method $closeCurrentStatus to close status:

<template>
  <span>
    This is page status &nbsp;
    <a style="cursor: pointer" @click="$closeCurrentStatus">x</a>
  </span>
</template>

and using statusVersion to control the status version:

---
status: <GlobalStatus />
statusVersion: v2
---
// .vuepress/config.js
module.exports = {
  theme: "vt",
  themeConfig: {
    status: '<GlobalStatus />',
    statusVersion: 'v2'
  },
};

You need bump statusVersion when you released new status.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated
vuepress-docs ✅ Ready (Inspect) Visit Preview 💬 Add your feedback Mar 9, 2023 at 0:24AM (UTC)