Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
B
basic-vue-admin
概览
概览
详情
活动
周期分析
版本库
存储库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
Basic
basic-vue-admin
Commits
5e17cc88
提交
5e17cc88
authored
8月 03, 2021
作者:
Vben
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
refactor: refactor tailwindcss to windicss
上级
02e77560
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
38 行增加
和
31 行删除
+38
-31
settings.json
.vscode/settings.json
+3
-1
CHANGELOG.zh_CN.md
CHANGELOG.zh_CN.md
+9
-0
index.ts
build/vite/plugin/index.ts
+4
-1
package.json
package.json
+12
-12
postcss.config.js
postcss.config.js
+0
-1
tailwind.css
src/design/tailwind.css
+0
-4
main.ts
src/main.ts
+3
-1
GrowCard.vue
src/views/dashboard/analysis/components/GrowCard.vue
+2
-2
index.vue
src/views/dashboard/analysis/index.vue
+1
-1
ProjectCard.vue
src/views/dashboard/workbench/components/ProjectCard.vue
+1
-1
index.vue
src/views/dashboard/workbench/index.vue
+1
-5
LoginForm.vue
src/views/sys/login/LoginForm.vue
+2
-2
yarn.lock
yarn.lock
+0
-0
没有找到文件。
.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
deleted
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
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论