-
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.
Signed-off-by: Tenny <joel.shu@qq.com>
- Loading branch information
Tenny
committed
Jan 21, 2024
1 parent
3aa6a5c
commit d447376
Showing
18 changed files
with
519 additions
and
52 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<template></template> | ||
<script setup lang="ts"></script> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,12 @@ | ||
import { createApp } from 'vue'; | ||
import '../style/reset.css'; | ||
import '../style/vars.css'; | ||
import '../style/layout.css'; | ||
import '../style/container.css'; | ||
import '../style/icon/index.css'; | ||
import '../style/input/index.css'; | ||
import '../style/util/transition.css'; | ||
import '../style/util/scrollbar.css'; | ||
import '../style/table/index.css'; | ||
import App from './App.vue'; | ||
|
||
createApp(App).mount('#app'); |
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 |
---|---|---|
@@ -0,0 +1,187 @@ | ||
<div id="Container" class="doc-wrapper"> | ||
<div class="nt-scrollbar doc-main"> | ||
<p> | ||
容器布局,采用了 flex | ||
布局,一般用于后台管理项目的一些常用排版,方便快速搭建页面的基本结构: | ||
</p> | ||
<ul class="ul-list"> | ||
<li> | ||
nt-container:外层容器,一般用于 section | ||
标签,基本排版为水平左右排列,可以通过设置 nt-layou-verticle | ||
调整为垂直上下排列。可以嵌套 | ||
</li> | ||
<li>nt-header:顶栏容器,一般用于 header 标签。</li> | ||
<li>nt-aside: 侧边栏容器,一般用于 aside 标签。</li> | ||
<li>nt-main: 主要区域容器,一般用于 main 标签。</li> | ||
<li>nt-footer: 底部,一般用于 footer 标签。</li> | ||
</ul> | ||
<p>通常在做后台管理系统的首页排版上</p> | ||
<h2>引入</h2> | ||
<p>由于使用不是特别频繁,所以没有封装为组件</p> | ||
<p>样式需要单独引入</p> | ||
<pre><code class="language-js">import 'neatui-vue/style/container.css'</code></pre> | ||
<p>在使用时,需要手动引入</p> | ||
<h2>常见布局</h2> | ||
<h3>1. 上下两栏排版</h3> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</div> | ||
</div> | ||
<h3>2. 左右两列布局</h3> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</div> | ||
</div> | ||
<h3>3. 上下两栏,下栏又包含左右两列排版</h3> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</div> | ||
</div> | ||
<h3>4. 后台管理系统模板</h3> | ||
<p> | ||
在 header 里面放点东西就成了,就成了经典的后台管理系统的模板, | ||
左右是图标,右边是登录用户 | ||
</p> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header"> | ||
<a href="#">NEATUI</a> | ||
<div>登录用户</div> | ||
</header> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header"> | ||
<a href="#">NEATUI</a> | ||
<div>admin</div> | ||
</header> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</div> | ||
</div> | ||
<h3>5. 左右两列,右边又包含上下两栏排版</h3> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container"> | ||
<aside class="nt-aside">Aside</aside> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
</section> | ||
</section> | ||
</div> | ||
</div> | ||
<h3>6. 上中下三栏</h3> | ||
<div class="pc-doc-previewer"> | ||
<div class="pc-doc"> | ||
<script type="text/plain" class="language-html"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
<footer class="nt-footer">Footer</footer> | ||
</section> | ||
</script> | ||
</div> | ||
<div class="pc-previewer"> | ||
<section class="nt-container nt-layout-vertical"> | ||
<header class="nt-header">Header</header> | ||
<main class="nt-main">Main</main> | ||
<footer class="nt-footer">Footer</footer> | ||
</section> | ||
</div> | ||
</div> | ||
<h2>主题定制</h2> | ||
<h3>样式变量</h3> | ||
<p>组件提供了下列 CSS 变量,可用于自定义样式,</p> | ||
<table class="nt-table"> | ||
<thead> | ||
<tr> | ||
<th>名称</th> | ||
<th>描述</th> | ||
<th>默认值</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>--nt-header-height</td> | ||
<td>header高度</td> | ||
<td>50px</td> | ||
</tr> | ||
<tr> | ||
<td>--nt-footer-height</td> | ||
<td>footer高度</td> | ||
<td>var(--nt-header-height, 50px)</td> | ||
</tr> | ||
<tr> | ||
<td>--nt-aside-width</td> | ||
<td>侧边栏宽度</td> | ||
<td>240px</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> |
Oops, something went wrong.