Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开源元宇宙
vue-vben-admin
提交
5e17cc88
V
vue-vben-admin
项目概览
开源元宇宙
/
vue-vben-admin
与 Fork 源项目一致
从无法访问的项目Fork
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
V
vue-vben-admin
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
5e17cc88
编写于
8月 03, 2021
作者:
V
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: refactor tailwindcss to windicss
上级
02e77560
变更
13
展开全部
隐藏空白更改
内联
并排
Showing
13 changed file
with
205 addition
and
375 deletion
+205
-375
.vscode/settings.json
.vscode/settings.json
+3
-1
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+9
-0
build/vite/plugin/index.ts
build/vite/plugin/index.ts
+4
-1
package.json
package.json
+12
-12
postcss.config.js
postcss.config.js
+0
-1
src/design/tailwind.css
src/design/tailwind.css
+0
-4
src/main.ts
src/main.ts
+3
-1
src/views/dashboard/analysis/components/GrowCard.vue
src/views/dashboard/analysis/components/GrowCard.vue
+2
-2
src/views/dashboard/analysis/index.vue
src/views/dashboard/analysis/index.vue
+1
-1
src/views/dashboard/workbench/components/ProjectCard.vue
src/views/dashboard/workbench/components/ProjectCard.vue
+1
-1
src/views/dashboard/workbench/index.vue
src/views/dashboard/workbench/index.vue
+1
-5
src/views/sys/login/LoginForm.vue
src/views/sys/login/LoginForm.vue
+2
-2
yarn.lock
yarn.lock
+167
-344
未找到文件。
.vscode/settings.json
浏览文件 @
5e17cc88
...
...
@@ -147,6 +147,8 @@
"vueuse"
,
"zxcvbn"
,
"lintstagedrc"
,
"brotli"
"brotli"
,
"tailwindcss"
,
"sider"
]
}
CHANGELOG.zh_CN.md
浏览文件 @
5e17cc88
## 2.7.0(2021-08-03)
## (破坏性更新) Breaking changes
-
将项目
`tailwindcss`
还原回
`windicss`
,尝试了
`tailwindcss`
,问题可能还挺多,先切换回
`windicss`
提高开发效率,切换成本较低。
-
目前项目不兼容地方有
-
`xl:!m-4`
之类的写法需要改为
`!xl:m-4`
,注意只有
`!`
这个不兼容,没用到则不用改
-
内存溢出问题可能还在(频率低,重启下即可,重启 vite 较快)
### ✨ Features
-
**Preview**
添加新的属性及事件
...
...
build/vite/plugin/index.ts
浏览文件 @
5e17cc88
...
...
@@ -5,7 +5,7 @@ import vueJsx from '@vitejs/plugin-vue-jsx';
import
legacy
from
'
@vitejs/plugin-legacy
'
;
import
purgeIcons
from
'
vite-plugin-purge-icons
'
;
import
windiCSS
from
'
vite-plugin-windicss
'
;
import
{
configHtmlPlugin
}
from
'
./html
'
;
import
{
configPwaConfig
}
from
'
./pwa
'
;
import
{
configMockPlugin
}
from
'
./mock
'
;
...
...
@@ -33,6 +33,9 @@ export function createVitePlugins(viteEnv: ViteEnv, isBuild: boolean) {
vueJsx
(),
];
// vite-plugin-windicss
vitePlugins
.
push
(
windiCSS
());
// TODO
!
isBuild
&&
vitePlugins
.
push
(
configHmrPlugin
());
...
...
package.json
浏览文件 @
5e17cc88
...
...
@@ -35,8 +35,8 @@
},
"dependencies"
:
{
"
@iconify/iconify
"
:
"
^2.0.3
"
,
"
@logicflow/core
"
:
"
^0.6.
5
"
,
"
@logicflow/extension
"
:
"
^0.6.
5
"
,
"
@logicflow/core
"
:
"
^0.6.
6
"
,
"
@logicflow/extension
"
:
"
^0.6.
6
"
,
"
@vueuse/core
"
:
"
^5.2.0
"
,
"
@zxcvbn-ts/core
"
:
"
^1.0.0-beta.0
"
,
"
ant-design-vue
"
:
"
2.2.2
"
,
...
...
@@ -67,7 +67,7 @@
"devDependencies"
:
{
"
@commitlint/cli
"
:
"
^13.1.0
"
,
"
@commitlint/config-conventional
"
:
"
^13.1.0
"
,
"
@iconify/json
"
:
"
^1.1.38
1
"
,
"
@iconify/json
"
:
"
^1.1.38
2
"
,
"
@purge-icons/generated
"
:
"
^0.7.0
"
,
"
@types/codemirror
"
:
"
^5.60.2
"
,
"
@types/crypto-js
"
:
"
^4.0.2
"
,
...
...
@@ -77,13 +77,13 @@
"
@types/jest
"
:
"
^26.0.24
"
,
"
@types/lodash-es
"
:
"
^4.17.4
"
,
"
@types/mockjs
"
:
"
^1.0.4
"
,
"
@types/node
"
:
"
^16.4.
9
"
,
"
@types/node
"
:
"
^16.4.
10
"
,
"
@types/nprogress
"
:
"
^0.2.0
"
,
"
@types/qrcode
"
:
"
^1.4.1
"
,
"
@types/qs
"
:
"
^6.9.7
"
,
"
@types/sortablejs
"
:
"
^1.10.7
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
8.5
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
8.5
"
,
"
@typescript-eslint/eslint-plugin
"
:
"
^4.2
9.0
"
,
"
@typescript-eslint/parser
"
:
"
^4.2
9.0
"
,
"
@vitejs/plugin-legacy
"
:
"
^1.5.0
"
,
"
@vitejs/plugin-vue
"
:
"
^1.3.0
"
,
"
@vitejs/plugin-vue-jsx
"
:
"
^1.1.7
"
,
...
...
@@ -119,20 +119,20 @@
"
stylelint-config-prettier
"
:
"
^8.0.2
"
,
"
stylelint-config-standard
"
:
"
^22.0.0
"
,
"
stylelint-order
"
:
"
^4.1.0
"
,
"
tailwindcss
"
:
"
^2.2.7
"
,
"
ts-jest
"
:
"
^27.0.4
"
,
"
ts-node
"
:
"
^10.1.0
"
,
"
typescript
"
:
"
4.3.5
"
,
"
vite
"
:
"
2.4.4
"
,
"
vite-plugin-compression
"
:
"
^0.3.
1
"
,
"
vite-plugin-compression
"
:
"
^0.3.
3
"
,
"
vite-plugin-html
"
:
"
^2.0.7
"
,
"
vite-plugin-imagemin
"
:
"
^0.4.
1
"
,
"
vite-plugin-mock
"
:
"
^2.9.
3
"
,
"
vite-plugin-imagemin
"
:
"
^0.4.
3
"
,
"
vite-plugin-mock
"
:
"
^2.9.
4
"
,
"
vite-plugin-purge-icons
"
:
"
^0.7.0
"
,
"
vite-plugin-pwa
"
:
"
^0.9.3
"
,
"
vite-plugin-style-import
"
:
"
^1.
0.1
"
,
"
vite-plugin-svg-icons
"
:
"
^1.0.
1
"
,
"
vite-plugin-style-import
"
:
"
^1.
1.0
"
,
"
vite-plugin-svg-icons
"
:
"
^1.0.
3
"
,
"
vite-plugin-theme
"
:
"
^0.8.1
"
,
"
vite-plugin-windicss
"
:
"
^1.2.7
"
,
"
vue-eslint-parser
"
:
"
^7.10.0
"
,
"
vue-tsc
"
:
"
^0.2.2
"
},
...
...
postcss.config.js
浏览文件 @
5e17cc88
module
.
exports
=
{
plugins
:
{
tailwindcss
:
{},
autoprefixer
:
{},
},
};
src/design/tailwind.css
已删除
100644 → 0
浏览文件 @
02e77560
/*! @import */
@tailwind
base
;
@tailwind
components
;
@tailwind
utilities
;
src/main.ts
浏览文件 @
5e17cc88
import
'
/@/design/index.less
'
;
import
'
/@/design/tailwind.css
'
;
// Register windi
import
'
virtual:windi.css
'
;
// Register icon sprite
import
'
virtual:svg-icons-register
'
;
import
App
from
'
./App.vue
'
;
...
...
src/views/dashboard/analysis/components/GrowCard.vue
浏览文件 @
5e17cc88
...
...
@@ -5,8 +5,8 @@
size=
"small"
:loading=
"$attrs.loading"
:title=
"item.title"
class=
"md:w-1/4 w-full
md:!
mt-0 !mt-4"
:class=
"[index + 1
<
4
&&
'
md:
!
mr-4
']"
class=
"md:w-1/4 w-full
!md:
mt-0 !mt-4"
:class=
"[index + 1
<
4
&&
'
!
md:
mr-4
']"
:canExpan=
"false"
>
<template
#extra
>
...
...
src/views/dashboard/analysis/index.vue
浏览文件 @
5e17cc88
...
...
@@ -6,7 +6,7 @@
<div
class=
"md:flex enter-y"
>
<VisitRadar
class=
"md:w-1/3 w-full"
:loading=
"loading"
/>
<VisitSource
class=
"md:w-1/3
md:!mx-4 md:!
my-0 !my-4 w-full"
:loading=
"loading"
/>
<VisitSource
class=
"md:w-1/3
!md:mx-4 !md:
my-0 !my-4 w-full"
:loading=
"loading"
/>
<SalesProductPie
class=
"md:w-1/3 w-full"
:loading=
"loading"
/>
</div>
</div>
...
...
src/views/dashboard/workbench/components/ProjectCard.vue
浏览文件 @
5e17cc88
...
...
@@ -5,7 +5,7 @@
</
template
>
<
template
v-for=
"item in items"
:key=
"item"
>
<CardGrid
class=
"
md:!
w-1/3 !w-full"
>
<CardGrid
class=
"
!md:
w-1/3 !w-full"
>
<span
class=
"flex"
>
<Icon
:icon=
"item.icon"
:color=
"item.color"
size=
"30"
/>
<span
class=
"text-lg ml-4"
>
{{
item
.
title
}}
</span>
...
...
src/views/dashboard/workbench/index.vue
浏览文件 @
5e17cc88
...
...
@@ -10,11 +10,7 @@
<QuickNav
:loading=
"loading"
class=
"enter-y"
/>
<Card
class=
"!my-4 enter-y"
:loading=
"loading"
>
<img
style=
"height: 216px"
class=
"h-20 mx-auto"
src=
"../../../assets/svg/illustration.svg"
/>
<img
class=
"xl:h-50 h-30 mx-auto"
src=
"../../../assets/svg/illustration.svg"
/>
</Card>
<SaleRadar
:loading=
"loading"
class=
"enter-y"
/>
...
...
src/views/sys/login/LoginForm.vue
浏览文件 @
5e17cc88
...
...
@@ -53,12 +53,12 @@
</Button>
-->
</FormItem>
<ARow
class=
"enter-x"
>
<ACol
:
xs=
"24"
:md=
"8
"
>
<ACol
:
md=
"8"
:xs=
"24
"
>
<Button
block
@
click=
"setLoginState(LoginStateEnum.MOBILE)"
>
{{
t
(
'
sys.login.mobileSignInFormTitle
'
)
}}
</Button>
</ACol>
<ACol
:md=
"8"
:xs=
"24"
class=
"!my-2
md:!
my-0 xs:mx-0 md:mx-2"
>
<ACol
:md=
"8"
:xs=
"24"
class=
"!my-2
!md:
my-0 xs:mx-0 md:mx-2"
>
<Button
block
@
click=
"setLoginState(LoginStateEnum.QR_CODE)"
>
{{
t
(
'
sys.login.qrSignInFormTitle
'
)
}}
</Button>
...
...
yarn.lock
浏览文件 @
5e17cc88
此差异已折叠。
点击以展开。
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录