📝(component): 优化文档
This commit is contained in:
parent
21a34143a3
commit
4536f48099
@ -241,3 +241,19 @@ body::-webkit-scrollbar {
|
|||||||
.lay-link:hover{
|
.lay-link:hover{
|
||||||
color: #5FB878;
|
color: #5FB878;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.describe-plugin {
|
||||||
|
padding-bottom: 20px;
|
||||||
|
padding-left: 30px;
|
||||||
|
padding-top: 20px;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.describe-plugin code {
|
||||||
|
margin: 0 1px;
|
||||||
|
padding: 0.2em 0.4em;
|
||||||
|
font-size: .9em;
|
||||||
|
background: #f2f4f5;
|
||||||
|
border: 1px solid rgba(0,0,0,.06);
|
||||||
|
border-radius: 3px;
|
||||||
|
}
|
@ -176,14 +176,12 @@ function handleScroll() {
|
|||||||
line-height: 26px !important;
|
line-height: 26px !important;
|
||||||
}
|
}
|
||||||
.lay-code .source .description code {
|
.lay-code .source .description code {
|
||||||
display: inline-block;
|
margin: 0 1px;
|
||||||
padding: 1px 5px;
|
padding: 0.2em 0.4em;
|
||||||
margin: 0 4px;
|
font-size: .9em;
|
||||||
height: 18px;
|
background: #f2f4f5;
|
||||||
border-radius: 2px;
|
border: 1px solid rgba(0,0,0,.06);
|
||||||
background-color: rgba(27, 31, 35, 0.05);
|
border-radius: 3px;
|
||||||
font-size: 12px;
|
|
||||||
line-height: 18px;
|
|
||||||
}
|
}
|
||||||
.lay-code .control {
|
.lay-code .control {
|
||||||
height: 44px;
|
height: 44px;
|
||||||
|
@ -38,7 +38,7 @@ export default {
|
|||||||
::: title 组件图标
|
::: title 组件图标
|
||||||
:::
|
:::
|
||||||
|
|
||||||
::: describe 使用图标组件,你需要安装 @layui/icons-vue 图标组件包。
|
::: describe 使用图标组件,你需要安装 <code>@layui/icons-vue</code> 图标组件包。
|
||||||
:::
|
:::
|
||||||
|
|
||||||
```
|
```
|
||||||
|
@ -1,9 +1,6 @@
|
|||||||
::: title 基本介绍
|
|
||||||
:::
|
|
||||||
|
|
||||||
<br>
|
<br>
|
||||||
<p>
|
<p>
|
||||||
<a href="http://www.layui-vue.com" style="margin-left:30px;">
|
<a href="http://www.layui-vue.com">
|
||||||
<img src="https://unpkg.com/outeres@0.0.6/img/layui/icon-1.png" alt="layui" width="100" style="border-radius:4px;">
|
<img src="https://unpkg.com/outeres@0.0.6/img/layui/icon-1.png" alt="layui" width="100" style="border-radius:4px;">
|
||||||
</a>
|
</a>
|
||||||
<span style="font-size:32px;color:#e2e2e2;margin:30px;">+</span>
|
<span style="font-size:32px;color:#e2e2e2;margin:30px;">+</span>
|
||||||
|
@ -16,7 +16,7 @@ export default function createContainer(klass: string): ContainerArgs {
|
|||||||
const token = tokens[idx];
|
const token = tokens[idx];
|
||||||
const info = token.info.trim().slice(klass.length).trim();
|
const info = token.info.trim().slice(klass.length).trim();
|
||||||
if (token.nesting === 1) {
|
if (token.nesting === 1) {
|
||||||
return `<p style="padding-left: 30px;padding-top: 20px;padding-bottom: 20px;">${info}`;
|
return `<p class="describe-plugin">${info}`;
|
||||||
} else {
|
} else {
|
||||||
return "</p>\n";
|
return "</p>\n";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user