-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
baishun
committed
Apr 25, 2023
1 parent
539c931
commit cb66dec
Showing
31 changed files
with
247 additions
and
258 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,3 +3,7 @@ dist | |
pnpm-lock.yaml | ||
auto-imports.d.ts | ||
components.d.ts | ||
env.d.ts | ||
iconfont.js | ||
.DS_Store | ||
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
{ | ||
"$schema": "http://json.schemastore.org/prettierrc", | ||
"semi": false, | ||
"singleQuote": true | ||
"$schema": "http://json.schemastore.org/prettierrc" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,7 @@ | ||
{ | ||
"eslint.validate": [ | ||
"vue", | ||
"javascript", | ||
"javascriptreact" | ||
], | ||
"eslint.validate": ["vue", "javascript", "javascriptreact"], | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
}, | ||
"editor.formatOnSave": false, | ||
"editor.formatOnSave": false | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,25 @@ | ||
# UnoCSS Study Examples | ||
|
||
> 当前资料对应的UnoCSS版本为 `0.50.x` ,其他版本请参见 `package.json` 。 | ||
> 当前资料对应的 UnoCSS 版本为 `0.51.x` ,其他版本请参见 `package.json` 。 | ||
这是个人在研究学习UnoCSS过程中做的总结,也是作为公司内部培训分享用到的PPT相关演示,仅供学习参考。 | ||
这是个人在研究学习 UnoCSS 过程中做的总结,也是作为公司内部培训分享用到的 PPT 相关演示,仅供学习参考。 | ||
|
||
后期可能会整理成一份实践文档,发布出来。 | ||
|
||
该项目由 `Vite` 、 `Element-Plus` 搭建,有兴趣也可以看看[Vite-Element-Plus-UnoCSS](https://github.com/whidy/Vite-Element-Plus-UnoCSS)。 | ||
|
||
该项目适合搭建一个简单的**文档演示模板**站,我是通过Markdown来编写文档内容部分,并将结构完善,利于代码演示部分的展示,后面有空再优化整个模板的布局。 | ||
该项目适合搭建一个简单的**文档演示模板**站,我是通过 Markdown 来编写文档内容部分,并将结构完善,利于代码演示部分的展示,后面有空再优化整个模板的布局。 | ||
|
||
## 其他 | ||
|
||
### 关于markdown样式冲突问题 | ||
### 关于 markdown 样式冲突问题 | ||
|
||
问题已解决,请更新到[v0.15.0](https://github.com/antfu/vite-plugin-md/releases/tag/v0.15.0) | ||
|
||
~~因为我还没找到主题切换后, `vite-plugin-md` 插件自动注入的 `markdown样式` 覆盖了我原有的样式,导致的**代码块**颜色异常问题的方案,所以,如果本地预览想要看到较好的效果,你可能需要在安装依赖后尝试修改文件 `node_modules/vite-plugin-md/dist/index.js` 的 `6712` 行,删除该行的 `baseStyling` 。重启服务,查看效果。相关的issues:[May I disable baseStyling for a custom markdown style](https://github.com/antfu/vite-plugin-md/issues/92)~~ | ||
~~因为我还没找到主题切换后, `vite-plugin-md` 插件自动注入的 `markdown样式` 覆盖了我原有的样式,导致的**代码块**颜色异常问题的方案,所以,如果本地预览想要看到较好的效果,你可能需要在安装依赖后尝试修改文件 `node_modules/vite-plugin-md/dist/index.js` 的 `6712` 行,删除该行的 `baseStyling` 。重启服务,查看效果。相关的 issues:[May I disable baseStyling for a custom markdown style](https://github.com/antfu/vite-plugin-md/issues/92)~~ | ||
|
||
## 日志 | ||
|
||
### 2023 年 04 月 25 日 | ||
|
||
更新到 `0.51.8` ,新增了 `uno.config.ts` 文件,发现使用 `eslint` 进行自动 `fix` 时,会出现大量的空行,故引入 `prettier` ,双重处理。(当然务必注意eslint配置和prettier不要冲突!!!) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>UnoCSS Study Examples</title> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" href="/favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>UnoCSS Study Examples</title> | ||
</head> | ||
|
||
<body> | ||
<div id="app" h-full w-full absolute flex flex-col items-center></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
<script> | ||
var _hmt = _hmt || []; | ||
(function () { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?267f2c7a87bfa240ffe0e2037c6f0e9a"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
</script> | ||
</body> | ||
|
||
<body> | ||
<div id="app" h-full w-full absolute flex flex-col items-center></div> | ||
<script type="module" src="/src/main.ts"></script> | ||
<script> | ||
var _hmt = _hmt || []; | ||
(function () { | ||
var hm = document.createElement("script"); | ||
hm.src = "https://hm.baidu.com/hm.js?267f2c7a87bfa240ffe0e2037c6f0e9a"; | ||
var s = document.getElementsByTagName("script")[0]; | ||
s.parentNode.insertBefore(hm, s); | ||
})(); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.