diff --git a/README.md b/README.md index fb74f536c4..3faae384d3 100644 --- a/README.md +++ b/README.md @@ -12,14 +12,16 @@ English | [简体中文](README.zh-CN.md) 🌈 Features: -- 📦 40 high-quality components that are simple, easy to use, and flexible. +- 📦 55 high-quality components that are simple, easy to use, and flexible. - 🔑 Support for TypeScript. - ⛰️ Support for Nuxt3. - ⚡ Support for on-demand import. - 🌍 Support internationalization. - 🎨 Support theme customization, and built-in seven beautiful themes such as `Galaxy`, `Sweet` and `Provence`. -## 🌐 Installation +## 🔧 Usage + +First install vue-devui with npm, yarn or pnpm. Install with npm @@ -39,7 +41,6 @@ Install with pnpm pnpm add vue-devui ``` -## 🔧 Usage Then import `DevUI` in the `main.ts` file: @@ -68,7 +69,7 @@ Then you can use the vue devui component(such as ``) in the `App.vue` git clone git@github.com:DevCloudFE/vue-devui.git cd vue-devui pnpm install -pnpm scripts run dev +pnpm dev ``` Open your browser and visit: [http://localhost:3000/](http://localhost:3000/). diff --git a/README.zh-CN.md b/README.zh-CN.md index 9a26544655..c8300e2005 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -12,7 +12,7 @@ 🌈 特性: -- 📦 包含 40 个简洁、易用、灵活的高质量组件 +- 📦 包含 55 个简洁、易用、灵活的高质量组件 - 🔑 支持 TypeScript - ⛰️ 支持 Nuxt3 - ⚡ 支持按需引入 @@ -63,6 +63,12 @@ pnpm dev 打开浏览器访问:[http://localhost:3000/](http://localhost:3000/) +或者你也可以运行以下命令: + +```sh +pnpm scripts +``` + ## 🤝 参与贡献 欢迎你参与到 Vue DevUI 项目的建设中来!🎉 @@ -138,6 +144,21 @@ pnpm dev
daviForevel

💻
lj1990111

💻
newer2333

💻 +
哈士奇-黄

💻 +

💻 +
Anthonio OuYang

💻 +
FlingYP

💻 + + +
xzxldl55

💻 +
79

💻 +
wailen

💻 +
jenson

💻 +
dbsdaicheng

⚠️ +
qinwencheng

💻 +
Angelanana

💻 +
joo1es

💻 +
handsomezyw

💻 diff --git a/packages/devui-vue/docs/.vitepress/devui-theme/const.ts b/packages/devui-vue/docs/.vitepress/devui-theme/const.ts index 0ed7ffb421..46a248ec2a 100644 --- a/packages/devui-vue/docs/.vitepress/devui-theme/const.ts +++ b/packages/devui-vue/docs/.vitepress/devui-theme/const.ts @@ -1,5 +1,7 @@ +import { inBrowser } from 'vitepress'; + export const ZH_CN = 'zh-CN'; export const EN_US = 'en-US'; export const DEFAULT_LANG = ZH_CN; export const LANG_KEY = 'vue-devui-preferred-lang'; -export const CURRENT_LANG = localStorage.getItem(LANG_KEY) || DEFAULT_LANG; +export const CURRENT_LANG = (inBrowser && localStorage.getItem(LANG_KEY)) || DEFAULT_LANG;