From 5abdde732437fbffce8f7898b5766ee44734bc58 Mon Sep 17 00:00:00 2001 From: lhf6623 <1336955219@qq.com> Date: Sun, 30 Jul 2023 13:24:26 +0800 Subject: [PATCH] add: unocss --- .gitignore | 1 + README.md | 2 +- package.json | 2 ++ src/App.vue | 18 +++++++------- src/assets/main.css | 44 ----------------------------------- src/components/RandomTree.vue | 14 ++--------- src/main.js | 2 ++ uno.config.js | 19 +++++++++++++++ vite.config.js | 3 ++- 9 files changed, 38 insertions(+), 67 deletions(-) create mode 100644 uno.config.js diff --git a/.gitignore b/.gitignore index 66240cd..4ec50d0 100644 --- a/.gitignore +++ b/.gitignore @@ -7,6 +7,7 @@ yarn-error.log* pnpm-debug.log* lerna-debug.log* package-lock.json +pnpm-lock.yaml node_modules .DS_Store diff --git a/README.md b/README.md index 2cb2a80..e81e597 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ Vue.js 是基于 JavaScript 构建用户界面的库。该模板使用 Vite 来 ## 自定义配置 -请参阅 [[Vite配置参考](https://vitejs.dev/config/). +请参阅 [[Vite配置参考]](https://vitejs.dev/config/). ## 项目设置 diff --git a/package.json b/package.json index 2536838..1c0148b 100644 --- a/package.json +++ b/package.json @@ -7,11 +7,13 @@ "preview": "vite preview --port 4173" }, "dependencies": { + "@unocss/reset": "^0.54.0", "guess": "^1.0.2", "vue": "^3.3.4" }, "devDependencies": { "@vitejs/plugin-vue": "^4.2.3", + "unocss": "^0.54.0", "vite": "^4.3.9" } } diff --git a/src/App.vue b/src/App.vue index 7488979..dc15928 100644 --- a/src/App.vue +++ b/src/App.vue @@ -76,20 +76,20 @@ async function playChess(item, row, col) {