From 03b6025d07e4df99474f80d3fa57e8b5238ba40c Mon Sep 17 00:00:00 2001 From: nebv Date: Sun, 11 Oct 2020 00:05:29 +0800 Subject: [PATCH] refactor(style): remove tailwind css --- .env | 2 +- README.md | 2 + package.json | 1 - postcss.config.js | 2 +- src/components/Basic/src/BasicArrow.vue | 9 +- .../src/collapse/CollapseContainer.vue | 3 +- src/components/ContextMenu/src/index.tsx | 4 +- src/components/Icon/index.tsx | 1 + src/components/Loading/BasicLoading.vue | 10 +- src/components/Loading/FullLoading.vue | 15 +- src/design/global.less | 50 ++++ src/design/helper/distance.less | 38 ++++ src/design/helper/loop.less | 67 ++++++ src/design/index.less | 1 + src/design/main.postcss | 3 - src/design/mixins.less | 58 ++++- src/layouts/Logo.vue | 25 +- src/layouts/default/LayoutBreadcrumb.tsx | 2 +- src/layouts/default/LayoutHeader.tsx | 12 +- src/layouts/default/index.less | 10 + src/layouts/default/setting/index.vue | 20 +- src/layouts/iframe/useFrameKeepAlive.ts | 7 +- src/main.ts | 1 - src/router/menus/modules/demo/comp.ts | 2 +- src/router/routes/modules/demo/comp.ts | 2 +- src/router/routes/modules/demo/permission.ts | 2 +- src/settings/asyncComponentSetting.ts | 24 -- src/views/dashboard/welcome/index.vue | 11 +- src/views/demo/comp/click-out-side/index.vue | 21 +- src/views/demo/comp/scroll/Action.vue | 11 +- src/views/demo/comp/scroll/VirtualScroll.vue | 4 +- src/views/demo/comp/scroll/index.vue | 11 +- src/views/demo/comp/strength-meter/index.vue | 9 +- src/views/demo/comp/verify/Rotate.vue | 5 + src/views/demo/comp/verify/index.vue | 5 + src/views/demo/feat/tabs/index.vue | 7 +- src/views/demo/permission/back/Btn.vue | 7 +- src/views/demo/permission/back/index.vue | 7 +- src/views/demo/permission/front/AuthPageA.vue | 16 +- src/views/demo/permission/front/AuthPageB.vue | 16 +- src/views/demo/permission/front/Btn.vue | 7 +- src/views/demo/permission/front/index.vue | 7 +- src/views/demo/tree/ActionTree.vue | 2 +- src/views/demo/tree/EditTree.vue | 4 +- src/views/demo/tree/index.vue | 6 +- src/views/index.vue | 110 --------- src/views/sys/exception/Exception.tsx | 3 +- src/views/sys/exception/exception.less | 5 + src/views/sys/login/Login.vue | 80 ++++++- tailwind.config.js | 74 ------ tsconfig.json | 3 - yarn.lock | 214 ++---------------- 52 files changed, 513 insertions(+), 505 deletions(-) create mode 100644 src/design/global.less create mode 100644 src/design/helper/distance.less create mode 100644 src/design/helper/loop.less delete mode 100644 src/design/main.postcss delete mode 100644 src/settings/asyncComponentSetting.ts delete mode 100644 src/views/index.vue create mode 100644 src/views/sys/exception/exception.less delete mode 100644 tailwind.config.js diff --git a/.env b/.env index f5fa246e..51d5db51 100644 --- a/.env +++ b/.env @@ -2,7 +2,7 @@ VITE_PORT = 3100 # spa-title -VITE_GLOB_APP_TITLE = vben admin 2.0 +VITE_GLOB_APP_TITLE = Vben Admin 2.0 # spa shortname VITE_GLOB_APP_SHORT_NAME = vue_vben_admin_2x diff --git a/README.md b/README.md index 8c133fdf..93a3588b 100644 --- a/README.md +++ b/README.md @@ -47,6 +47,8 @@ [2.0 在线预览](https://vvbin.cn/next/) +测试账号: vben/123456 +

VbenAdmin Logo VbenAdmin Logo diff --git a/package.json b/package.json index 44b56a85..43e7bcc2 100644 --- a/package.json +++ b/package.json @@ -82,7 +82,6 @@ "stylelint-config-prettier": "^8.0.2", "stylelint-config-standard": "^20.0.0", "stylelint-order": "^4.1.0", - "tailwindcss": "^1.8.13", "tasksfile": "^5.1.1", "ts-node": "^9.0.0", "typescript": "^4.0.3", diff --git a/postcss.config.js b/postcss.config.js index c0544b48..501d0498 100755 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,4 +1,4 @@ const path = require('path'); module.exports = { - plugins: [require('tailwindcss'), require('autoprefixer'), require('postcss-import')], + plugins: [require('autoprefixer'), require('postcss-import')], }; diff --git a/src/components/Basic/src/BasicArrow.vue b/src/components/Basic/src/BasicArrow.vue index eb816d5e..00f5ad23 100644 --- a/src/components/Basic/src/BasicArrow.vue +++ b/src/components/Basic/src/BasicArrow.vue @@ -37,7 +37,7 @@ diff --git a/src/components/Container/src/collapse/CollapseContainer.vue b/src/components/Container/src/collapse/CollapseContainer.vue index a3eb13bd..dfb5a271 100644 --- a/src/components/Container/src/collapse/CollapseContainer.vue +++ b/src/components/Container/src/collapse/CollapseContainer.vue @@ -1,5 +1,5 @@