fix(docs):部分文档适配 playground

This commit is contained in:
sight 2022-01-29 06:46:35 +08:00
parent 735b6d32bb
commit 53146924aa
11 changed files with 236 additions and 52 deletions

View File

@ -71,6 +71,113 @@ export default {
} }
} }
</script> </script>
<style>
.site-doc-icon {
margin-bottom: 50px;
font-size: 0;
}
.site-doc-icon li .doc-icon-name,
.site-doc-icon li .doc-icon-code {
color: #c2c2c2;
}
.site-doc-icon li .doc-icon-fontclass {
height: 40px;
line-height: 20px;
padding: 0 5px;
font-size: 13px;
color: #333;
}
.site-doc-icon li {
display: inline-block;
vertical-align: middle;
width: 16.5%;
height: 105px;
line-height: 25px;
padding: 20px 0;
margin-right: -1px;
margin-bottom: -1px;
border: 1px solid #e2e2e2;
font-size: 14px;
text-align: center;
color: #666;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.site-doc-icon li .layui-icon {
display: inline-block;
font-size: 32px;
}
.site-doc-color {
margin: 15px 0;
}
.site-doc-necolor li div {
border-radius: 0;
color: #000 !important;
}
.site-doc-color li div {
padding: 20px 10px;
color: #fff;
text-align: center;
line-height: 1.6;
font-size: 14px;
}
.site-doc-bgcolor li {
padding: 20px 10px;
}
.anim .site-doc-icon {
margin-bottom: 50px;
font-size: 0;
}
.anim .site-doc-icon li {
width: 50%;
}
.anim .site-doc-anim li {
height: auto;
}
.anim .site-doc-icon li {
display: inline-block;
vertical-align: middle;
width: 16.5%;
height: 105px;
line-height: 25px;
padding: 20px 0;
margin-right: -1px;
margin-bottom: -1px;
border: 1px solid #e2e2e2;
font-size: 14px;
text-align: center;
color: #666;
transition: all 0.3s;
-webkit-transition: all 0.3s;
}
.anim .site-doc-icon li .layui-anim {
width: 125px;
height: 125px;
line-height: 125px;
margin: 0 auto 10px;
text-align: center;
background-color: #009688;
cursor: pointer;
color: #fff;
border-radius: 50%;
}
.anim .site-doc-icon li .code {
white-space: nowrap;
}
</style>
::: :::

View File

@ -11,6 +11,9 @@
<lay-backtop></lay-backtop> <lay-backtop></lay-backtop>
</template> </template>
<script>
</script>
::: :::
:::title 自定义 :::title 自定义
@ -35,7 +38,7 @@
<script> <script>
import { ref } from 'vue' import { ref } from 'vue'
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {

View File

@ -11,7 +11,7 @@
</template> </template>
<script> <script>
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -39,7 +39,7 @@ export default {
</template> </template>
<script> <script>
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {

View File

@ -90,7 +90,7 @@ export default {
<script> <script>
import { ref } from 'vue' import { ref } from 'vue'
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -125,7 +125,7 @@ export default {
<script> <script>
import { ref } from 'vue' import { ref } from 'vue'
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {

View File

@ -105,6 +105,19 @@ export default {
} }
} }
</script> </script>
<style>
.grid-demo-bg1 {
background-color: #63BA79;
}
.grid-demo {
padding: 10px;
line-height: 50px;
border-radius: 2px;
text-align: center;
background-color: #79C48C;
color: #fff;
}
</style>
::: :::
@ -136,6 +149,19 @@ export default {
} }
} }
</script> </script>
<style>
.grid-demo-bg1 {
background-color: #63BA79;
}
.grid-demo {
padding: 10px;
line-height: 50px;
border-radius: 2px;
text-align: center;
background-color: #79C48C;
color: #fff;
}
</style>
::: :::

View File

@ -7,7 +7,7 @@
::: demo ::: demo
<template> <template>
<lay-layout> <lay-layout class="example">
<lay-header>header</lay-header> <lay-header>header</lay-header>
<lay-body>content</lay-body> <lay-body>content</lay-body>
<lay-footer>footer</lay-footer> <lay-footer>footer</lay-footer>
@ -27,21 +27,21 @@ export default {
</script> </script>
<style> <style>
.lay-code .layui-footer, .example .layui-footer,
.lay-code .layui-header { .example .layui-header {
line-height: 60px; line-height: 60px;
text-align: center; text-align: center;
background: #87ca9a; background: #87ca9a;
color: white; color: white;
} }
.lay-code .layui-side { .example .layui-side {
display: flex; display: flex;
background: #77c38c; background: #77c38c;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
color: white; color: white;
} }
.lay-code .layui-body { .example .layui-body {
display: flex; display: flex;
background: #5FB878; background: #5FB878;
align-items: center; align-items: center;
@ -58,7 +58,7 @@ export default {
::: demo ::: demo
<template> <template>
<lay-layout> <lay-layout class="example">
<lay-side>left</lay-side> <lay-side>left</lay-side>
<lay-body>content</lay-body> <lay-body>content</lay-body>
<lay-side>right</lay-side> <lay-side>right</lay-side>
@ -76,6 +76,29 @@ export default {
} }
} }
</script> </script>
<style>
.example .layui-footer,
.example .layui-header {
line-height: 60px;
text-align: center;
background: #87ca9a;
color: white;
}
.example .layui-side {
display: flex;
background: #77c38c;
align-items: center;
justify-content: center;
color: white;
}
.example .layui-body {
display: flex;
background: #5FB878;
align-items: center;
justify-content: center;
color: white;
}
</style>
::: :::
@ -85,7 +108,7 @@ export default {
::: demo ::: demo
<template> <template>
<lay-layout> <lay-layout class="example">
<lay-header>header</lay-header> <lay-header>header</lay-header>
<lay-layout> <lay-layout>
<lay-side>side</lay-side> <lay-side>side</lay-side>
@ -105,6 +128,29 @@ export default {
} }
} }
</script> </script>
<style>
.example .layui-footer,
.example .layui-header {
line-height: 60px;
text-align: center;
background: #87ca9a;
color: white;
}
.example .layui-side {
display: flex;
background: #77c38c;
align-items: center;
justify-content: center;
color: white;
}
.example .layui-body {
display: flex;
background: #5FB878;
align-items: center;
justify-content: center;
color: white;
}
</style>
::: :::
@ -114,7 +160,7 @@ export default {
::: demo ::: demo
<template> <template>
<lay-layout> <lay-layout class="example">
<lay-side>side</lay-side> <lay-side>side</lay-side>
<lay-layout> <lay-layout>
<lay-header>header</lay-header> <lay-header>header</lay-header>
@ -123,7 +169,7 @@ export default {
</lay-layout> </lay-layout>
</lay-layout> </lay-layout>
<hr> <hr>
<lay-layout> <lay-layout class="example">
<lay-layout> <lay-layout>
<lay-header>header</lay-header> <lay-header>header</lay-header>
<lay-body>body</lay-body> <lay-body>body</lay-body>
@ -132,7 +178,7 @@ export default {
<lay-side>side</lay-side> <lay-side>side</lay-side>
</lay-layout> </lay-layout>
<hr> <hr>
<lay-layout> <lay-layout class="example">
<lay-header>Header</lay-header> <lay-header>Header</lay-header>
<lay-body> <lay-body>
<lay-layout> <lay-layout>
@ -143,7 +189,7 @@ export default {
<lay-footer>Footer</lay-footer> <lay-footer>Footer</lay-footer>
</lay-layout> </lay-layout>
<hr> <hr>
<lay-layout> <lay-layout class="example">
<lay-header>Header</lay-header> <lay-header>Header</lay-header>
<lay-body> <lay-body>
<lay-layout> <lay-layout>
@ -166,6 +212,29 @@ export default {
} }
} }
</script> </script>
<style>
.example .layui-footer,
.example .layui-header {
line-height: 60px;
text-align: center;
background: #87ca9a;
color: white;
}
.example .layui-side {
display: flex;
background: #77c38c;
align-items: center;
justify-content: center;
color: white;
}
.example .layui-body {
display: flex;
background: #5FB878;
align-items: center;
justify-content: center;
color: white;
}
</style>
::: :::

View File

@ -16,7 +16,7 @@
<script> <script>
import { ref } from 'vue' import { ref } from 'vue'
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -54,7 +54,7 @@ export default {
</template> </template>
<script> <script>
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -85,7 +85,7 @@ export default {
<script> <script>
import { ref } from 'vue' import { ref } from 'vue'
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {

View File

@ -28,7 +28,7 @@ export default {
return { return {
visible1 visible1
}; };
}, }
}; };
</script> </script>
@ -61,7 +61,7 @@ export default {
return { return {
visible2 visible2
}; };
}, }
}; };
</script> </script>
@ -94,7 +94,7 @@ export default {
return { return {
visible3 visible3
}; };
}, }
}; };
</script> </script>
@ -127,7 +127,7 @@ export default {
return { return {
visible4 visible4
}; };
}, }
}; };
</script> </script>
@ -160,7 +160,7 @@ export default {
return { return {
visible8 visible8
}; };
}, }
}; };
</script> </script>
@ -193,7 +193,7 @@ export default {
type5, type5,
visible5 visible5
}; };
}, }
}; };
</script> </script>
@ -231,7 +231,7 @@ export default {
btn6, btn6,
visible6 visible6
}; };
}, }
}; };
</script> </script>
@ -264,7 +264,7 @@ export default {
return { return {
visible7 visible7
}; };
}, }
}; };
</script> </script>
@ -283,7 +283,7 @@ export default {
<script> <script>
import { ref, watch } from "vue"; import { ref, watch } from "vue";
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
import { useRoute, useRouter } from "vue-router"; import { useRoute, useRouter } from "vue-router";
export default { export default {
setup() { setup() {
@ -307,7 +307,7 @@ export default {
close, close,
closeAll closeAll
}; };
}, }
}; };
</script> </script>

View File

@ -11,7 +11,7 @@
</template> </template>
<script> <script>
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {
@ -42,7 +42,7 @@ export default {
</template> </template>
<script> <script>
import { layer } from "../../../../src/index.ts" import { layer } from "@layui/layer-vue"
export default { export default {
setup() { setup() {

View File

@ -46,7 +46,6 @@ export default {
import { ref } from 'vue' import { ref } from 'vue'
export default { export default {
name:'selectChange',
setup() { setup() {
const value = ref(null); const value = ref(null);
var i = 1; var i = 1;

View File

@ -18,11 +18,6 @@
</template> </template>
<script> <script>
export default {
setup() {
}
}
</script> </script>
::: :::
@ -44,11 +39,6 @@ export default {
</template> </template>
<script> <script>
export default {
setup() {
}
}
</script> </script>
::: :::
@ -70,11 +60,6 @@ export default {
</template> </template>
<script> <script>
export default {
setup() {
}
}
</script> </script>
::: :::
@ -100,11 +85,6 @@ export default {
</template> </template>
<script> <script>
export default {
setup() {
}
}
</script> </script>
::: :::