add docs
0
docs/.nojekyll
Normal file
12
docs/_coverpage.md
Normal file
@ -0,0 +1,12 @@
|
||||

|
||||
|
||||
# koTime <small>v1.8@Huoyo</small>
|
||||
|
||||
> springboot方法调用链路追踪和运行时长统计工具
|
||||
|
||||
- web展示方法调用链路,瓶颈可视化追踪
|
||||
- 实时监听方法,统计运行时长
|
||||
|
||||
|
||||
[Gitee](https://gitee.com/huoyo/ko-time)
|
||||
[文档教程](introduce)
|
||||
3
docs/_sidebar.md
Normal file
@ -0,0 +1,3 @@
|
||||
* [简介](introduce)
|
||||
* [快速上手](getstart)
|
||||
* [常见问题](questions)
|
||||
98
docs/example/config.js
Normal file
@ -0,0 +1,98 @@
|
||||
function getOption(data){
|
||||
return {
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
triggerOn: 'mousemove'
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'tree',
|
||||
// initialTreeDepth: 3,
|
||||
data: [data],
|
||||
top: '1%',
|
||||
left: '15%',
|
||||
bottom: '1%',
|
||||
right: '10%',
|
||||
roam: true,
|
||||
symbolSize: 20,
|
||||
itemStyle: {
|
||||
borderColor: 'green'
|
||||
},
|
||||
|
||||
label: {
|
||||
position: 'right',
|
||||
formatter: function(params){
|
||||
var bg = "titleBgGreen"
|
||||
if (params.value>800) {
|
||||
bg = "titleBgRed"
|
||||
}
|
||||
return [
|
||||
'{'+bg+'| 指标}',
|
||||
' {aa|}方法:'+params.name+" ",
|
||||
'{hr|}',
|
||||
' {aa|}耗时: '+params.data.avgRunTime+" ms ",
|
||||
'{hr|}',
|
||||
' {aa|}类型: '+params.data.methodType+" "
|
||||
].join('\n');
|
||||
},
|
||||
backgroundColor: '#ddd',
|
||||
borderColor: '#88e781',
|
||||
borderWidth: 1,
|
||||
borderRadius: 5,
|
||||
color: '#000',
|
||||
fontSize: 12,
|
||||
rich: {
|
||||
titleBgGreen: {
|
||||
align: 'left',
|
||||
backgroundColor: '#59977e',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '100%',
|
||||
color: '#eee'
|
||||
},
|
||||
titleBgRed: {
|
||||
align: 'left',
|
||||
backgroundColor: '#dc1d16',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '100%',
|
||||
color: '#eee'
|
||||
},
|
||||
hr: {
|
||||
borderColor: '#777',
|
||||
width: '100%',
|
||||
borderWidth: 0.5,
|
||||
height: 0
|
||||
},
|
||||
aa: {
|
||||
lineHeight: 20,
|
||||
borderColor: '#111111',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '0%'
|
||||
|
||||
},
|
||||
t: {
|
||||
align: 'center'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
leaves: {
|
||||
label: {
|
||||
position: 'right',
|
||||
verticalAlign: 'middle',
|
||||
align: 'left'
|
||||
}
|
||||
},
|
||||
expandAndCollapse: true,
|
||||
animationDuration: 550,
|
||||
animationDurationUpdate: 750
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
1
docs/example/data.json
Normal file
@ -0,0 +1 @@
|
||||
{"name":"DemoController.getUserId","className":"cn.langpy.demo.controller.DemoController","methodName":"getUserId","avgRunTime":3843.575073,"value":3843.575073,"avgRunTimeUnit":"ms","methodType":"Controller","children":[{"name":"DemoServiceImpl.getUserId","className":"cn.langpy.demo.service.impl.DemoServiceImpl","methodName":"getUserId","avgRunTime":207.638572,"value":207.638572,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"ParamServiceImpl.getValue","className":"cn.langpy.demo.service.impl.ParamServiceImpl","methodName":"getValue","avgRunTime":2.910068,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]}]},{"name":"UserDeptServiceImpl.getUserInfo","className":"cn.langpy.demo.service.impl.UserDeptServiceImpl","methodName":"getUserInfo","avgRunTime":735.946441,"value":735.946441,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"DemoServiceImpl.getUserInfo","className":"cn.langpy.demo.service.impl.DemoServiceImpl","methodName":"getUserInfo","avgRunTime":166.761531,"value":166.761531,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"ParamServiceImpl.getValue","className":"cn.langpy.demo.service.impl.ParamServiceImpl","methodName":"getValue","avgRunTime":3.142955,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]}]},{"name":"DemoServiceImpl.getDeptInfo","className":"cn.langpy.demo.service.impl.DemoServiceImpl","methodName":"getDeptInfo","avgRunTime":202.616141,"value":202.616141,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"ParamServiceImpl.getValue","className":"cn.langpy.demo.service.impl.ParamServiceImpl","methodName":"getValue","avgRunTime":2.442348,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]}]},{"name":"DemoServiceImpl.getUpperDeptInfo","className":"cn.langpy.demo.service.impl.DemoServiceImpl","methodName":"getUpperDeptInfo","avgRunTime":362.005192,"value":362.005192,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"ParamServiceImpl.getValue","className":"cn.langpy.demo.service.impl.ParamServiceImpl","methodName":"getValue","avgRunTime":2.574558,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]}]}]},{"name":"UserInfoServiceImpl.findById","className":"cn.langpy.demo.service.impl.UserInfoServiceImpl","methodName":"findById","avgRunTime":7.082683,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]},{"name":"DemoServiceImpl.getToken","className":"cn.langpy.demo.service.impl.DemoServiceImpl","methodName":"getToken","avgRunTime":177.511598,"value":177.511598,"avgRunTimeUnit":"ms","methodType":"Service","children":[{"name":"ParamServiceImpl.getValue","className":"cn.langpy.demo.service.impl.ParamServiceImpl","methodName":"getValue","avgRunTime":403.888465,"value":0.0,"avgRunTimeUnit":"ms","methodType":"Service","children":[]}]}]}
|
||||
22
docs/example/echarts.min.js
vendored
Normal file
464
docs/example/global.css
Normal file
@ -0,0 +1,464 @@
|
||||
/**
|
||||
|
||||
layui官网
|
||||
By 贤心
|
||||
|
||||
*/
|
||||
|
||||
|
||||
h1,h2,h3{font-size: 14px;}
|
||||
::-webkit-input-placeholder{color: #999}
|
||||
|
||||
/* 布局 */
|
||||
.site-inline{font-size: 0;}
|
||||
.site-tree, .site-content{display: inline-block; *display:inline; *zoom:1; vertical-align: top; font-size: 14px;}
|
||||
.site-tree{width: 220px; min-height: 900px; padding: 5px 0 20px;}
|
||||
.site-content{width: 899px; min-height: 900px; padding: 20px 0 10px 20px;}
|
||||
|
||||
/* 头部 */
|
||||
.header{height: 59px; border-bottom: 1px solid #404553; background-color: #393D49;}
|
||||
.logo{position: absolute; left: 0; top: 16px;}
|
||||
.logo img{width: 82px; height: 31px;}
|
||||
|
||||
.header .layui-nav{position: absolute; right: 0; top: 0; padding: 0; background: none;}
|
||||
.header .layui-nav .layui-nav-item{margin: 0 20px; }
|
||||
.header .layui-nav .layui-nav-item[mobile]{display: none;}
|
||||
|
||||
.header .layui-container .logo{left: 15px;}
|
||||
.header .layui-container .layui-nav{right: 15px;}
|
||||
.header .layui-nav .layui-badge,
|
||||
.header .layui-nav .layui-badge-dot{right: 0;}
|
||||
|
||||
.menu{position: absolute; right: 0; top: 0; line-height: 65px;}
|
||||
.menu a{display:inline-block; *display:inline; *zoom:1; vertical-align:top;}
|
||||
.menu a{position: relative; padding: 0 20px; margin: 0 20px; color: #c2c2c2; font-size: 14px;}
|
||||
.menu a:hover{color: #fff; transition: all .5s; -webkit-transition: all .5s}
|
||||
.menu a.this{color: #fff}
|
||||
.menu a.this::after{content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 5px; background-color: #5FB878;}
|
||||
|
||||
.header-index{}
|
||||
.header-index .site-banner-bg{}
|
||||
.header-index[spring]{border: none; background-color: #0D1206}
|
||||
.header-index[summer]{border: none; background-color: #0A0E11}
|
||||
.header-index[autumn]{border: none; background-color: #100903}
|
||||
.header-index[winter]{border: none; background-color: #110F25/*#06041C*/}
|
||||
|
||||
.header-demo{height: 60px; border-bottom: none;}
|
||||
.header-demo .logo{left: 40px;}
|
||||
.header-demo .layui-nav{top: 0;}
|
||||
.header-demo .layui-nav .layui-nav-item{margin: 0 10px;}
|
||||
|
||||
.header-demo .layui-nav .layui-this a{padding: 0 30px;}
|
||||
|
||||
|
||||
.component{position: absolute; width: 160px; left: 120px; top: 16px; }
|
||||
.component .layui-input{height: 30px; padding-left: 12px; background-color: #424652; background-color: rgba(255,255,255,.05); border: none 0; color: #fff; color: rgba(255,255,255,.5); font-size: 12px;}
|
||||
.component .layui-form-select .layui-edge{display: none; border-top-color: #999;}
|
||||
.component .layui-form-select dl{top: 36px; background-color: rgba(255,255,255,.9)}
|
||||
.header-demo .component{left: 185px;}
|
||||
|
||||
|
||||
/* 子侧边 */
|
||||
.layui-side-child{width: 160px!important; left: 200px; bottom: 60px!important; border-right: 1px solid #eee; background-color: #fff;}
|
||||
.layui-side-child .layui-side-scroll{width: 170px;}
|
||||
.layui-side-child .layui-nav{padding: 10px 0; width: 160px; border-radius: 0; background: none}
|
||||
.layui-side-child .layui-nav-child{border-radius: 0;}
|
||||
.layui-side-child .layui-nav .layui-nav-title a,
|
||||
.layui-side-child .layui-nav .layui-nav-title a:hover,
|
||||
.layui-side-child .layui-nav-itemed>a{color: #666 !important;}
|
||||
.layui-side-child .layui-nav-itemed .layui-nav-child{margin-bottom: 10px; background: none !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-item a{height: 30px; line-height: 30px; color: #666;}
|
||||
.layui-side-child .layui-nav .layui-nav-item a:hover{background: none !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-child a{color: #999 !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-more{display: none;}
|
||||
.layui-side-child .layui-nav-tree .layui-this,
|
||||
.layui-side-child .layui-nav-tree .layui-this>a,
|
||||
.layui-side-child .layui-nav-tree .layui-nav-child dd.layui-this,
|
||||
.layui-side-child .layui-nav-tree .layui-nav-child dd.layui-this a{background: none; color: #5FB878 !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-child a:hover{color: #009688 !important}
|
||||
.layui-side-child .layui-nav-bar{background-color: #5FB878;}
|
||||
|
||||
|
||||
/* 底部 */
|
||||
.footer{padding: 30px 0; line-height: 30px; text-align: center; color: #666; font-weight: 300;}
|
||||
body .layui-layout-admin .footer-demo{height: 50px; line-height: 50px; padding: 5px 0;}
|
||||
.footer a{padding: 0 5px;}
|
||||
.site-union{color: #999;}
|
||||
.site-union>*{display: inline-block; vertical-align: middle;}
|
||||
.site-union a[sponsor] img{width: 80px;}
|
||||
.site-union span{position: relative; top: 5px;}
|
||||
.site-union span a{padding: 0; display: inline; color: #999;}
|
||||
.site-union span a:hover{text-decoration: underline;}
|
||||
.site-union .site-union-desc{display: block; margin-bottom: 10px;}
|
||||
|
||||
.footer-demo p,
|
||||
.footer-demo .site-union,
|
||||
.footer-demo .site-union p{display: inline-block; vertical-align: middle; padding-right: 10px;}
|
||||
.footer-demo .site-union{position: relative; top: -5px;}
|
||||
.footer-demo .site-union .site-union-desc{margin-bottom: 0; padding-right: 0;}
|
||||
.footer-demo .site-union a[sponsor] img{position: relative; top: 3px;}
|
||||
|
||||
/* 首页banner部分 */
|
||||
.site-banner{position: relative; height: 600px; text-align: center; overflow: hidden; background-color: #393D49;}
|
||||
.site-banner-bg
|
||||
,.site-banner-main{position: absolute; left: 0; top: 0; width: 100%; height: 100%;}
|
||||
.site-banner-bg{background-position: center 0;}
|
||||
|
||||
|
||||
.site-zfj{padding-top: 25px; height: 220px;}
|
||||
.site-zfj i{position: absolute; left: 50%; top: 50px; width: 200px; height: 200px; margin-left: -100px; font-size: 180px; color: #c2c2c2;}
|
||||
|
||||
@keyframes site-zfj {
|
||||
0% {opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1);}
|
||||
10% {opacity: 0.8; transform: translate3d(-100px, 0px, 0) rotate(10deg) scale(0.7);}
|
||||
35% {opacity: 0.6; transform: translate3d(100px, 0px, 0) rotate(30deg) scale(0.4);}
|
||||
50% {opacity: 0.4; transform: translate3d(0, 0, 0) rotate(360deg) scale(0);}
|
||||
80% {opacity: 0.2; transform: translate3d(0, 0, 0) rotate(720deg) scale(1);}
|
||||
90% {opacity: 0.1; transform: translate3d(0, 0, 0) rotate(3600deg) scale(6);}
|
||||
100% {opacity: 1; transform: translate3d(0, 0, 0) rotate(3600deg) scale(1);}
|
||||
}
|
||||
|
||||
@keyframes site-desc {
|
||||
0% { transform: scale(1.1);}
|
||||
100% {transform: scale(1);}
|
||||
}
|
||||
|
||||
.site-zfj-anim i{-webkit-animation-name: site-zfj; animation-name: site-zfj; -webkit-animation-duration: 5s; animation-duration: 5s; -webkit-animation-timing-function: linear; animation-timing-function: linear;}
|
||||
|
||||
|
||||
/* 描述字体 */
|
||||
@font-face {font-family: 'webfont-desc';
|
||||
src: url('//at.alicdn.com/t/webfont_eovt4pxxy5.eot'); /* IE9*/
|
||||
src: url('//at.alicdn.com/t/webfont_eovt4pxxy5.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.woff') format('woff'), /* chrome、firefox */
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.svg#思源黑体-极细') format('svg'); /* iOS 4.1- */
|
||||
}
|
||||
.web-font-desc{
|
||||
font-family:"webfont-desc" !important;
|
||||
font-size:16px;font-style:normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
|
||||
.site-desc{position: relative; height: 70px; margin-top: 20px;}
|
||||
.site-desc .web-font-desc{color: #fff; color: rgba(255,255,255,.8); font-size: 61px;}
|
||||
|
||||
.site-desc-anim{-webkit-animation-name: site-desc; animation-name: site-desc;}
|
||||
.site-desc cite{position: absolute; bottom: -40px; left: 0; width: 100%; color: #c2c2c2; font-style: normal;}
|
||||
|
||||
.site-download{margin-top: 80px; font-size: 0;}
|
||||
.site-download a{position: relative; padding: 0 55px 0 95px; height: 65px; line-height: 65px; border: 1px solid #c2c2c2; border-color: rgba(255,255,255,.2); font-size: 24px; color: #ccc; transition: all .5s; -webkit-transition: all .5s;}
|
||||
.site-download a:hover{border-color: rgba(255,255,255,.3); color: #fff; background-color: rgba(255,255,255,.05); border-radius: 30px;}
|
||||
.site-download a cite{position: absolute; left: 55px; top: 2px; font-size: 30px;}
|
||||
.site-version{position: relative; margin-top: 15px; color: #ccc; font-size: 12px;}
|
||||
.site-version span{padding: 0 3px;}
|
||||
.site-version *{font-style: normal;}
|
||||
.site-version a{color: #e2e2e2; text-decoration: underline;}
|
||||
|
||||
.site-banner-other{position: absolute; left: 0; bottom: 35px; width: 100%; text-align: center; font-size: 0;}
|
||||
.site-banner-other iframe{border: none;}
|
||||
.site-banner-other a{display: inline-block; vertical-align: middle; height: 28px; line-height: 28px; margin: 0 6px; padding: 0 10px; border-radius: 2px; color: #c2c2c2; color: rgba(255,255,255,.8); border: 1px solid #c2c2c2; border-color: rgba(255,255,255,.2); font-size: 14px; transition: all .5s; -webkit-transition: all .5s;}
|
||||
.site-banner-other a:hover{color: #fff; background-color: rgba(255,255,255,.1);}
|
||||
|
||||
|
||||
.site-idea{margin: 50px 0; font-size: 0; text-align: center; font-weight: 300;}
|
||||
.site-idea li{display: inline-block; vertical-align: top; *display: inline; *zoom:1; font-size: 14px; }
|
||||
.site-idea li{width: 298px; height: 150px; padding: 30px; line-height: 24px; margin-left: 30px; border: 1px solid #d2d2d2; text-align: left;}
|
||||
.site-idea li:first-child{margin-left: 0}
|
||||
.site-idea .layui-field-title{border-color: #d2d2d2}
|
||||
.site-idea .layui-field-title legend{margin: 0 20px 20px 0; padding: 0 20px; text-align: center;}
|
||||
|
||||
/* 赞助商 */
|
||||
.site-sponsor-home{margin-top: 40px; text-align: center;}
|
||||
.site-sponsor-home .layui-btn{position: relative; width: 248px; height: 60px; line-height: 60px; background: none; border-color: #212121; font-size: 20px; border-radius: 6px;}
|
||||
.site-sponsor-home .layui-btn:hover{background: #4A4855; color: #BAB8C3;}
|
||||
|
||||
.site-sponsor-home p{position: relative; padding-top: 15px; font-size: 22px; color: #212121;}
|
||||
.site-sponsor-home p:before{content: ''; position: relative; top: -2px; display: inline-block; vertical-align: middle; width: 30px; height: 30px; margin-right: 10px; background: url(http://cdn.layui.com/upload/2018_1/168_1514869467160_26113.png) center; background-repeat: no-repeat; background-size: contain;}
|
||||
@media screen and (max-width: 750px) {
|
||||
.site-sponsor-home .layui-btn{width: 180px; height: 45px; line-height: 45px; font-size: 20px;}
|
||||
.site-sponsor-home p{font-size: 16px;}
|
||||
.site-sponsor-home p:before{width: 20px; height: 20px;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 辅助 */
|
||||
.site-tips{margin-bottom: 10px; padding: 15px; line-height: 22px; border-left: 5px solid #0078AD; background-color: #f2f2f2;}
|
||||
body .site-tips p{margin: 0;}
|
||||
body .layui-layer-notice .layui-layer-content{padding: 20px; line-height: 26px; background-color: #393D49; color: #fff; font-weight: 300;}
|
||||
.layui-layer-notice .layui-text{color: #f8f8f8;}
|
||||
.layui-layer-notice .layui-text a{color: #009688;}
|
||||
|
||||
/* 目录 */
|
||||
.site-dir{display: none;}
|
||||
.site-dir li{line-height: 26px; margin-left: 20px; overflow: visible; list-style-type: disc;}
|
||||
.site-dir li a{display: block;}
|
||||
.site-dir li a:active{color: #01AAED;}
|
||||
.site-dir li a.layui-this{color: #01AAED;}
|
||||
body .layui-layer-dir{box-shadow: none; border: 1px solid #d2d2d2;}
|
||||
body .layui-layer-dir .layui-layer-content{padding: 10px;}
|
||||
.site-dir a em{padding-left: 5px; font-size: 12px; color: #c2c2c2; font-style: normal;}
|
||||
|
||||
/* 文档 */
|
||||
.site-tree{border-right: 1px solid #eee; }
|
||||
.site-tree .layui-tree{line-height: 32px;}
|
||||
.site-tree .layui-tree li i{position: relative; font-size: 22px; color: #000}
|
||||
.site-tree .layui-tree li a cite{padding: 0 8px;}
|
||||
.site-tree .layui-tree .site-tree-noicon a cite{padding-left: 15px;}
|
||||
.site-tree .layui-tree li a em{font-size: 12px; color: #bbb; padding-right: 5px; font-style: normal;}
|
||||
.site-tree .layui-tree li h2{line-height: 36px; border-left: 5px solid #009E94; margin: 15px 0 5px; padding: 0 10px; background-color: #f2f2f2;}
|
||||
.site-tree .layui-tree li ul{margin-left: 27px; line-height: 28px;}
|
||||
.site-tree .layui-tree li ul a,
|
||||
.site-tree .layui-tree li ul a i{color: #777;}
|
||||
.site-tree .layui-tree li ul a:hover{color: #333;}
|
||||
.site-tree .layui-tree li ul li{margin-left: 25px; overflow: visible; list-style-type: disc; /*list-style-position: inside;*/}
|
||||
.site-tree .layui-tree li ul li cite,
|
||||
.site-tree .layui-tree .site-tree-noicon ul li cite{padding-left: 0;}
|
||||
|
||||
.site-tree .layui-tree .layui-this a{color: #01AAED;}
|
||||
.site-tree .layui-tree .layui-this .layui-icon{color: #01AAED;}
|
||||
|
||||
.site-fix .site-tree{position: fixed; top: 0; bottom: 0; z-index: 666; min-height: 0; overflow: auto; background-color: #fff;}
|
||||
.site-fix .site-content{margin-left: 220px;}
|
||||
.site-fix-footer .site-tree{/*margin-bottom: 120px;*/}
|
||||
|
||||
|
||||
.site-title{ margin: 30px 0 20px;}
|
||||
.site-title fieldset{border: none; padding: 0; border-top: 1px solid #eee;}
|
||||
.site-title fieldset legend{margin-left: 20px; padding: 0 10px; font-size: 22px; font-weight: 300;}
|
||||
|
||||
.site-text a{color: #01AAED;}
|
||||
.site-h1{margin-bottom: 20px; line-height: 60px; padding-bottom: 10px; color: #393D49; border-bottom: 1px solid #eee; font-size: 28px; font-weight: 300;}
|
||||
.site-h1 .layui-icon{position: relative; top: 5px; font-size: 35px; margin-right: 10px;}
|
||||
.site-text{position:relative;}
|
||||
.site-text p{margin-bottom: 10px; line-height:22px;}
|
||||
.site-text em{padding: 0 3px; font-weight: 500; font-style: italic; color: #666;}
|
||||
.site-text code{margin:0 5px; padding: 3px 10px; border: 1px solid #e2e2e2; background-color: #fbfbfb; color: #666; border-radius: 2px;}
|
||||
|
||||
|
||||
.site-table{width: 100%; margin: 10px 0;}
|
||||
.site-table thead{background-color:#f2f2f2; }
|
||||
.site-table th,
|
||||
.site-table td{padding: 6px 15px; min-height: 20px; line-height: 20px; border:1px solid #ddd; font-size: 14px; font-weight: 400;}
|
||||
.site-table tr:nth-child(even){background: #fbfbfb;}
|
||||
|
||||
.site-block{padding: 20px; border: 1px solid #eee;}
|
||||
.site-block .layui-form{margin-right: 200px;}
|
||||
|
||||
/* 更新日志 */
|
||||
.site-changelog .layui-timeline-title h2{display: inline-block;}
|
||||
.site-changelog .layui-timeline-title .layui-badge-rim{top: -2px; left: 10px;}
|
||||
|
||||
/* 颜色 */
|
||||
.site-doc-color{font-size: 0;}
|
||||
.site-doc-color li{display: inline-block; vertical-align: middle; width: 180px; margin-left: 20px; margin-bottom: 20px; padding: 20px 10px; color: #fff; text-align: center; border-radius: 2px; line-height: 22px; font-size: 14px;}
|
||||
.site-doc-color li p[tips]{opacity: 0.8; font-size: 12px;}
|
||||
|
||||
.site-doc-necolor li{width: 108px; margin-top: 15px; margin-left: 0; border-radius: 0;}
|
||||
|
||||
.site-doc-bgcolor li{padding: 10px;}
|
||||
|
||||
/* 宫格 */
|
||||
.site-doc-icon{margin-bottom: 50px; font-size: 0;}
|
||||
.site-doc-icon li{display: inline-block; vertical-align: middle; width: 127px; 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 .3s; -webkit-transition: all .3s;}
|
||||
.site-doc-anim li{height: auto;}
|
||||
.site-doc-icon li .layui-icon{display: inline-block; font-size: 36px;}
|
||||
|
||||
.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:hover{background-color: #f2f2f2; color: #000;}
|
||||
|
||||
/* 栅格示例 */
|
||||
.grid-demo{padding: 10px; line-height: 50px; text-align: center; background-color: #79C48C; color: #fff;}
|
||||
.grid-demo-bg1{background-color: #63BA79;}
|
||||
.grid-demo-bg2{background-color: #49A761;}
|
||||
.grid-demo-bg3{background-color: #38814A;}
|
||||
|
||||
|
||||
/* 演示 */
|
||||
body .layui-layout-admin .site-demo{bottom: 60px; padding: 0;}
|
||||
body .site-demo-nav .layui-nav-item{line-height: 40px}
|
||||
.layui-nav-item .layui-icon{position: relative; font-size: 20px;}
|
||||
.layui-nav-item a cite{padding: 0 10px;}
|
||||
.site-demo .layui-main{margin: 15px; line-height: 22px;}
|
||||
.site-demo-editor{position: absolute; top: 0; bottom: 0; left: 0; width: 50%; }
|
||||
.site-demo-area{position: absolute; top: 0; bottom: 0; width: 100%;}
|
||||
.site-demo-editor textarea{position: absolute; width: 100%; height: 100%; padding: 10px; border: none; resize: none; background-color: #F7FBFF; background-color: #13151A; color: #999; font-family: Courier New; font-size: 12px; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
||||
.site-demo-btn{position: absolute; bottom: 15px; right: 20px;}
|
||||
.site-demo-zanzhu{position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; text-align: center; background-color: #e2e2e2; overflow: hidden;}
|
||||
.site-demo-zanzhu>*{position: relative; z-index: 1;}
|
||||
.site-demo-zanzhu:before{content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 120px; margin: -10px 0px 0px -60px; text-align: center; color: rgb(170, 170, 170); font-size: 18px; font-weight: 300; }
|
||||
|
||||
.site-demo-result{position: absolute; right: 0; top: 0; bottom: 0; width: 50%;}
|
||||
.site-demo-result iframe{position: absolute; width: 100%; height: 100%;}
|
||||
|
||||
.site-demo-button{margin-bottom: 30px;}
|
||||
.site-demo-button div{margin: 20px 30px 10px;}
|
||||
.site-demo-button .layui-btn+.layui-btn{margin-left: 0;}
|
||||
.site-demo-button .layui-btn{margin: 0 7px 10px 0; }
|
||||
|
||||
.site-demo-text a{color: #01AAED;}
|
||||
|
||||
.site-demo-laytpl{text-align: center;}
|
||||
.site-demo-laytpl textarea,
|
||||
.site-demo-laytpl div span{width: 40%; padding: 15px; margin: 0 15px;}
|
||||
.site-demo-laytpl textarea{height: 300px; border: none; background-color: #3F3F3F; color: #E3CEAB; font-family: Courier New; resize: none;}
|
||||
.site-demo-laytpl div span{display: inline-block; text-align: center; background: #101010; color: #fff;}
|
||||
.site-demo-tplres{margin: 10px 0; text-align: center}
|
||||
.site-demo-tplres .site-demo-tplh2,
|
||||
.site-demo-tplres .site-demo-tplview{display: inline-block; width: 50%;}
|
||||
.site-demo-tplres h2{padding: 15px; background: #e2e2e2;}
|
||||
.site-demo-tplres h3{font-weight: 700;}
|
||||
.site-demo-tplres div{padding: 14px; border: 1px solid #e2e2e2; text-align: left;}
|
||||
|
||||
.site-demo-upload,
|
||||
.site-demo-upload img{width: 200px; height: 200px; border-radius: 100%;}
|
||||
.site-demo-upload{position: relative; background: #e2e2e2;}
|
||||
.site-demo-upload .site-demo-upbar{position: absolute; top: 50%; left: 50%; margin: -18px 0 0 -56px;}
|
||||
.site-demo-upload .layui-upload-button{background-color: rgba(0,0,0,.2); color: rgba(255,255,255,1);}
|
||||
|
||||
.site-demo-util{position: relative; width: 300px;}
|
||||
.site-demo-util img{width: 300px; border-radius: 100%;}
|
||||
.site-demo-util span{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #333; cursor: pointer;}
|
||||
@-webkit-keyframes demo-fengjie {
|
||||
0% {-webkit-filter: blur(0); opacity: 1; background: #fff; height: 300px; border-radius: 100%;}
|
||||
80% {-webkit-filter: blur(50px); opacity: 0.95;}
|
||||
100% {-webkit-filter: blur(20px); opacity: 0; background: #fff;}
|
||||
}
|
||||
@keyframes demo-fengjie {
|
||||
0% {filter: blur(0); opacity: 1; background: #fff; height: 300px; border-radius: 100%;}
|
||||
80% {filter: blur(50px); opacity: 0.95;}
|
||||
100% {filter: blur(20px); opacity: 0; background: #fff;}
|
||||
}
|
||||
.site-demo-fengjie{-webkit-animation-name: demo-fengjie; animation-name: demo-fengjie; -webkit-animation-duration: 5s; animation-duration: 5s;}
|
||||
|
||||
.layui-layout-admin .site-demo-body{top: 106px;}
|
||||
.site-demo-title{position: fixed; left: 200px; right: 0; top: 65px;}
|
||||
.site-demo-code{position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; padding: 10px; resize: none; font-size: 12px; background-color: #F7FBFF; color: #881280; font-family: Courier New;}
|
||||
|
||||
.site-demo-overflow{overflow: hidden;}
|
||||
|
||||
/* 其它 */
|
||||
#trans-tooltip,
|
||||
#tip-arrow-bottom,
|
||||
#tip-arrow-top{display: none !important;}
|
||||
|
||||
|
||||
/* 独立组件 与 主页 */
|
||||
.alone{text-align: center; background-color: #009688; color: #fff; font-weight: 300; transition: all .3s; -webkit-transition: all .3s;}
|
||||
.alone:hover{background-color: #5FB878;}
|
||||
.alone a{display: block; padding: 50px 20px; color: #fff; font-size: 30px;}
|
||||
.alone a cite{display: block; padding-top: 10px; font-size: 14px;}
|
||||
|
||||
|
||||
.alone-banner{height: 190px; text-align: center; font-weight: 300; background-color: #009688; color:#fff;}
|
||||
.alone-banner h1{padding-top: 60px; line-height: 32px; font-size: 30px; font-weight: 300;}
|
||||
.alone-banner p{padding-top: 20px; color: #e2e2e2; color: rgba(255,255,255,.8);}
|
||||
|
||||
.alone-nav .layui-tab-title li{margin-right: 30px; padding: 0; color: #666;}
|
||||
.alone-nav .layui-tab-title li a{ padding: 0 20px;}
|
||||
|
||||
.alone-download{margin: 30px 0;}
|
||||
.alone-download .layui-btn{margin-right: 10px;}
|
||||
.alone-download span{display: inline-block; line-height: 44px; padding-right: 20px;}
|
||||
.alone-download span em{color: #999;}
|
||||
|
||||
.alone-title{margin-top: 20px;}
|
||||
|
||||
.alone-download-btn{text-align: center; margin-top: 50px; font-size: 0;}
|
||||
.alone-download-btn .layui-btn{position: relative; width: 206px; height: 60px; line-height: 60px; font-size: 26px; font-weight: 300;}
|
||||
.alone-download-btn .layui-btn+.layui-btn{margin: 0;}
|
||||
.alone-download-btn .alone-download-right{margin-left: 20px !important; border-color: #009688; background: none; color: #009688;}
|
||||
.alone-download-btn .layui-btn img{position: relative; top: -3px; width: 118px;}
|
||||
|
||||
|
||||
|
||||
/* 适配多设备 */
|
||||
@media screen and (max-width: 750px) {
|
||||
.layui-main{width: auto; margin: 0 10px;}
|
||||
.logo,
|
||||
.header-demo .logo{left: 10px;}
|
||||
.component{display: none}
|
||||
|
||||
.header .layui-nav-child{left: auto!important; right: 0!important;}
|
||||
.site-demo-overflow{overflow: auto;}
|
||||
|
||||
.site-nav-layim{display: none !important;}
|
||||
.header .layui-nav .layui-nav-item{margin: 0;}
|
||||
.header .layui-nav .layui-nav-item a{padding: 0 20px;}
|
||||
.header .layui-nav .layui-nav-item[pc]{display: none;}
|
||||
.header .layui-nav .layui-nav-item[mobile]{display: inline-block;}
|
||||
.site-banner{height: 300px;}
|
||||
.site-banner-bg{background-size: cover;}
|
||||
.site-zfj{height: 100px; padding-top: 5px;}
|
||||
.site-zfj i{top: 10px; width: 100px; height: 100px; margin-left: -50px; font-size: 100px;}
|
||||
.site-desc{background-size: 70%; margin: 0;}
|
||||
.site-desc .web-font-desc{padding-top: 20px; font-size: 30px;}
|
||||
.site-desc cite{display: none;}
|
||||
.site-download{margin-top: 0; }
|
||||
.site-download a{height: 40px; line-height: 40px; padding: 0 25px 0 60px; border-radius: 30px; color: #fff; font-size: 16px;}
|
||||
.site-download a cite{left: 20px;}
|
||||
.site-banner-other{bottom: 10px;}
|
||||
|
||||
.site-idea{margin: 20px 0;}
|
||||
.site-idea li{margin: 0 0 20px 0; width: 100%; height: auto; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
||||
.site-hengfu img{max-width: 100%}
|
||||
|
||||
.site-block .layui-form{margin-right: 0;}
|
||||
|
||||
.layui-layer-dir{display: none;}
|
||||
.site-tree{position: fixed; top: 0; bottom: 0; min-height: 0; overflow: auto; z-index: 1000; left: -260px; background-color: #fff; transition: all .3s; -webkit-transition: all .3s;}
|
||||
.site-content{width: 100%; padding: 0; overflow: auto;}
|
||||
.site-content img{max-width: 100%;}
|
||||
.site-tree-mobile{display: block!important; position: fixed; z-index: 100000; bottom: 15px; left: 15px; width: 50px; height: 50px; line-height: 50px; border-radius: 2px; text-align: center; background-color: rgba(0,0,0,.7); color: #fff;}
|
||||
.site-home .site-tree-mobile{display: none!important;}
|
||||
.site-mobile .site-tree-mobile{display: none !important;}
|
||||
.site-mobile .site-tree{left: 0;}
|
||||
.site-mobile .site-mobile-shade{content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.8); z-index: 999;}
|
||||
.site-tree-mobile i{font-size: 20px;}
|
||||
.layui-code-view{-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
||||
|
||||
.layui-layout-admin .layui-side{position: fixed; top: 0; left: -260px; transition: all .3s; -webkit-transition: all .3s; z-index: 10000;}
|
||||
.layui-body{position: static; bottom: 0; left: 0;}
|
||||
.site-mobile .layui-side{left: 0;}
|
||||
.site-mobile .layui-side-child{top: 50%; left: 200px; height: 300px; margin-top: -100px;}
|
||||
|
||||
body .layui-layout-admin .footer-demo{position: static; height: auto; padding: 15px 0; line-height: 30px;}
|
||||
.footer-demo p,
|
||||
.footer-demo .site-union{height: auto; padding-right: 0;}
|
||||
.footer-demo .site-union{top: 0;}
|
||||
.footer-demo .site-union span{top:0 ;}
|
||||
|
||||
.site-demo-area,
|
||||
.site-demo-editor,
|
||||
.site-demo-result,
|
||||
.site-demo-editor textarea,
|
||||
.site-demo-result iframe{position: static; width: 100%;}
|
||||
.site-demo-editor textarea{height: 350px;}
|
||||
.site-demo-zanzhu{display: none;}
|
||||
.site-demo-btn{bottom: auto; top: 370px;}
|
||||
.site-demo-result iframe{height: 500px;}
|
||||
|
||||
.site-demo-laytpl textarea, .site-demo-laytpl div span{margin: 0;}
|
||||
.site-demo-tplres .site-demo-tplh2, .site-demo-tplres .site-demo-tplview{width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
||||
|
||||
.site-demo-title{position: static; left: 0;}
|
||||
body .layui-layout-admin .site-demo{position: static;}
|
||||
.site-demo-code{position: static; height: 350px;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@-webkit-keyframes site-anim-closeup{ /* 特写 */
|
||||
from {-webkit-transform: translate3d(0, 0, 0) scale(1); opacity: 1;}
|
||||
to { -webkit-transform: translate3d(0, 400px, 0) scale(2); opacity: 0.5;}
|
||||
}
|
||||
@keyframes site-anim-closeup{
|
||||
from {transform: translate3d(0, 0, 0) scale(1); opacity: 1;}
|
||||
to {transform: translate3d(0, 400px, 0) scale(2); opacity: 0.5;}
|
||||
}
|
||||
.site-out-up{-webkit-animation-duration: 3s; animation-duration: 3s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-name: site-anim-closeup; animation-name: site-anim-closeup; overflow: hidden;}
|
||||
362
docs/example/index.html
Normal file
@ -0,0 +1,362 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>koTime</title>
|
||||
<meta name="keywords" content="链路追踪,方法调用链路,springboot,性能分析,调用可视化,耗时统计,运行时长">
|
||||
<meta name="description" content="koTime是一个springboot项目性能分析工具,通过追踪方法调用链路以及对应的运行时长快速定位性能瓶颈">
|
||||
<meta name="renderer" content="webkit">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<link rel="stylesheet" href="layui/css/layui.css" media="all">
|
||||
<link rel="stylesheet" href="layui/css/global.css" media="all">
|
||||
<style>
|
||||
.site-doc-icon li{width: 222px;}
|
||||
.site-doc-icon li .layui-anim{width: 80px; height: 80px; line-height: 80px; margin: 0 auto 10px; text-align: center; background-color: #009688; cursor: pointer; color: #fff; border-radius: 50%;}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
|
||||
<legend>koTime调用链路追踪</legend>
|
||||
</fieldset>
|
||||
|
||||
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
|
||||
<ul class="layui-tab-title">
|
||||
<li class="layui-this">总览</li>
|
||||
<li>接口列表</li>
|
||||
<li>联系我</li>
|
||||
</ul>
|
||||
<div class="layui-tab-content" style="height: 100px;">
|
||||
<div class="layui-tab-item layui-show">
|
||||
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
|
||||
<legend>接口统计</legend>
|
||||
</fieldset>
|
||||
<ul class="site-doc-icon site-doc-anim">
|
||||
<li>
|
||||
<div class="layui-anim" data-anim="layui-anim-up">15</div>
|
||||
<div class="code">接口数</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="layui-anim" style=" background-color: #da3f0b;" data-anim="layui-anim-upbit">1</div>
|
||||
<div class="code">延迟响应数</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="layui-anim" data-anim="layui-anim-scale">14</div>
|
||||
<div class="code">正常响应数</div>
|
||||
</li>
|
||||
</ul>
|
||||
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 30px;">
|
||||
<legend>响应统计</legend>
|
||||
</fieldset>
|
||||
<ul class="site-doc-icon site-doc-anim">
|
||||
<li>
|
||||
<div class="layui-anim" style=" " data-anim="layui-anim-up">73.309</div>
|
||||
<div class="code">平均响应(ms)</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="layui-anim" style=" background-color: #da3f0b;" data-anim="layui-anim-upbit">3843.575</div>
|
||||
<div class="code">最大响应(ms)</div>
|
||||
</li>
|
||||
<li>
|
||||
<div class="layui-anim" style=" " data-anim="layui-anim-scale">0</div>
|
||||
<div class="code">最小响应(ms)</div>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
<div class="layui-tab-item">
|
||||
<div class="layui-collapse" lay-filter="test">
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.AuthController.getUserId">
|
||||
cn.langpy.demo.controller.AuthController#getUserId 
|
||||
<span class="layui-badge layui-bg-red
|
||||
">平均响应 3843.575 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.AuthController.getJsapi">
|
||||
cn.langpy.demo.controller.AuthController#getJsapi 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 187.908 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getDraftDetail">
|
||||
cn.langpy.demo.controller.DemoInfoController#getDraftDetail 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 17.465 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getRenewings">
|
||||
cn.langpy.demo.controller.DemoInfoController#getRenewings 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 9.046 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getRunnings">
|
||||
cn.langpy.demo.controller.DemoInfoController#getRunnings 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.79 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.statistic">
|
||||
cn.langpy.demo.controller.DemoInfoController#statistic 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.672 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getEarlyStops">
|
||||
cn.langpy.demo.controller.DemoInfoController#getEarlyStops 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.332 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getWaitConfirms">
|
||||
cn.langpy.demo.controller.DemoInfoController#getWaitConfirms 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.284 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getDemoInfos">
|
||||
cn.langpy.demo.controller.DemoInfoController#getDemoInfos 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.196 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getRunneds">
|
||||
cn.langpy.demo.controller.DemoInfoController#getRunneds 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 5.049 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.ApproveProcessController.getProcesses">
|
||||
cn.langpy.demo.controller.ApproveProcessController#getProcesses 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 4.55 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoInfoController.getDrafts">
|
||||
cn.langpy.demo.controller.DemoInfoController#getDrafts 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 3.551 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoTypeController.getTree">
|
||||
cn.langpy.demo.controller.DemoTypeController#getTree 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 1.22 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoTypeController.lambda$getTree$1">
|
||||
cn.langpy.demo.controller.DemoTypeController#lambda$getTree$1 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 0 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
<div class="layui-colla-item" >
|
||||
<h2 class="layui-colla-title" id="cn.langpy.demo.controller.DemoTypeController.lambda$null$0">
|
||||
cn.langpy.demo.controller.DemoTypeController#lambda$null$0 
|
||||
<span class="layui-badge layui-bg-green
|
||||
">平均响应 0 毫秒</span>
|
||||
</h2>
|
||||
<div class="layui-colla-content viewer" style="width: 1500px;height:600px;">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!--联系我-->
|
||||
<div class="layui-tab-item">
|
||||
|
||||
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 50px;">
|
||||
<legend>@zhangchang#1729913829@qq.com</legend>
|
||||
</fieldset>
|
||||
<script src='https://gitee.com/huoyo/ko-time/widget_preview' async defer></script>
|
||||
<div id="osc-gitee-widget-tag"></div>
|
||||
<style>
|
||||
.osc_pro_color {color: #ffffff !important;}
|
||||
.osc_panel_color {background-color: #1e252b !important;}
|
||||
.osc_background_color {background-color: #323d47 !important;}
|
||||
.osc_border_color {border-color: #455059 !important;}
|
||||
.osc_desc_color {color: #d7deea !important;}
|
||||
.osc_link_color * {color: #99a0ae !important;}
|
||||
</style>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="layui/layui.js" charset="utf-8"></script>
|
||||
<script src="jquery.min.js"></script>
|
||||
<script src="echarts.min.js"></script>
|
||||
<script >
|
||||
$(document).ready(function() {
|
||||
|
||||
layui.use(['element', 'layer'], function () {
|
||||
var element = layui.element;
|
||||
var layer = layui.layer;
|
||||
|
||||
//监听折叠
|
||||
element.on('collapse(test)', function (data) {
|
||||
id = data.title['0'].id
|
||||
show(data.content['0'],id)
|
||||
});
|
||||
});
|
||||
|
||||
function show(element,name) {
|
||||
var myChart = echarts.init(element);
|
||||
myChart.showLoading();
|
||||
$.get('data.json', function (data) {
|
||||
console.log(data)
|
||||
myChart.hideLoading();
|
||||
echarts.util.each(data.children, function (datum, index) {
|
||||
index % 2 === 0 && (datum.collapsed = true);
|
||||
});
|
||||
myChart.setOption(option = getOption(data));
|
||||
});
|
||||
}
|
||||
|
||||
$('.site-doc-icon').delegate("li",'click', function(data){
|
||||
});
|
||||
function getOption(data){
|
||||
return {
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
triggerOn: 'mousemove'
|
||||
},
|
||||
series: [
|
||||
{
|
||||
type: 'tree',
|
||||
// initialTreeDepth: 3,
|
||||
data: [data],
|
||||
top: '1%',
|
||||
left: '15%',
|
||||
bottom: '1%',
|
||||
right: '10%',
|
||||
roam: true,
|
||||
symbolSize: 20,
|
||||
itemStyle: {
|
||||
borderColor: 'green'
|
||||
},
|
||||
|
||||
label: {
|
||||
position: 'right',
|
||||
formatter: function(params){
|
||||
var bg = "titleBgGreen"
|
||||
if (params.value>800) {
|
||||
bg = "titleBgRed"
|
||||
}
|
||||
return [
|
||||
'{'+bg+'| 指标}',
|
||||
' {aa|}方法:'+params.name+" ",
|
||||
'{hr|}',
|
||||
' {aa|}耗时: '+params.data.avgRunTime+" ms ",
|
||||
'{hr|}',
|
||||
' {aa|}类型: '+params.data.methodType+" "
|
||||
].join('\n');
|
||||
},
|
||||
backgroundColor: '#ddd',
|
||||
borderColor: '#88e781',
|
||||
borderWidth: 1,
|
||||
borderRadius: 5,
|
||||
color: '#000',
|
||||
fontSize: 12,
|
||||
rich: {
|
||||
titleBgGreen: {
|
||||
align: 'left',
|
||||
backgroundColor: '#59977e',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '100%',
|
||||
color: '#eee'
|
||||
},
|
||||
titleBgRed: {
|
||||
align: 'left',
|
||||
backgroundColor: '#dc1d16',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '100%',
|
||||
color: '#eee'
|
||||
},
|
||||
hr: {
|
||||
borderColor: '#777',
|
||||
width: '100%',
|
||||
borderWidth: 0.5,
|
||||
height: 0
|
||||
},
|
||||
aa: {
|
||||
lineHeight: 20,
|
||||
borderColor: '#111111',
|
||||
height: 20,
|
||||
borderRadius: [5, 5, 0, 0],
|
||||
padding: [0, 0, 0, 0],
|
||||
width: '0%'
|
||||
|
||||
},
|
||||
t: {
|
||||
align: 'center'
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
leaves: {
|
||||
label: {
|
||||
position: 'right',
|
||||
verticalAlign: 'middle',
|
||||
align: 'left'
|
||||
}
|
||||
},
|
||||
expandAndCollapse: true,
|
||||
animationDuration: 550,
|
||||
animationDurationUpdate: 750
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
6
docs/example/jquery.min.js
vendored
Normal file
464
docs/example/layui/css/global.css
Normal file
@ -0,0 +1,464 @@
|
||||
/**
|
||||
|
||||
layui官网
|
||||
By 贤心
|
||||
|
||||
*/
|
||||
|
||||
|
||||
h1,h2,h3{font-size: 14px;}
|
||||
::-webkit-input-placeholder{color: #999}
|
||||
|
||||
/* 布局 */
|
||||
.site-inline{font-size: 0;}
|
||||
.site-tree, .site-content{display: inline-block; *display:inline; *zoom:1; vertical-align: top; font-size: 14px;}
|
||||
.site-tree{width: 220px; min-height: 900px; padding: 5px 0 20px;}
|
||||
.site-content{width: 899px; min-height: 900px; padding: 20px 0 10px 20px;}
|
||||
|
||||
/* 头部 */
|
||||
.header{height: 59px; border-bottom: 1px solid #404553; background-color: #393D49;}
|
||||
.logo{position: absolute; left: 0; top: 16px;}
|
||||
.logo img{width: 82px; height: 31px;}
|
||||
|
||||
.header .layui-nav{position: absolute; right: 0; top: 0; padding: 0; background: none;}
|
||||
.header .layui-nav .layui-nav-item{margin: 0 20px; }
|
||||
.header .layui-nav .layui-nav-item[mobile]{display: none;}
|
||||
|
||||
.header .layui-container .logo{left: 15px;}
|
||||
.header .layui-container .layui-nav{right: 15px;}
|
||||
.header .layui-nav .layui-badge,
|
||||
.header .layui-nav .layui-badge-dot{right: 0;}
|
||||
|
||||
.menu{position: absolute; right: 0; top: 0; line-height: 65px;}
|
||||
.menu a{display:inline-block; *display:inline; *zoom:1; vertical-align:top;}
|
||||
.menu a{position: relative; padding: 0 20px; margin: 0 20px; color: #c2c2c2; font-size: 14px;}
|
||||
.menu a:hover{color: #fff; transition: all .5s; -webkit-transition: all .5s}
|
||||
.menu a.this{color: #fff}
|
||||
.menu a.this::after{content: ''; position: absolute; left: 0; bottom: -1px; width: 100%; height: 5px; background-color: #5FB878;}
|
||||
|
||||
.header-index{}
|
||||
.header-index .site-banner-bg{}
|
||||
.header-index[spring]{border: none; background-color: #0D1206}
|
||||
.header-index[summer]{border: none; background-color: #0A0E11}
|
||||
.header-index[autumn]{border: none; background-color: #100903}
|
||||
.header-index[winter]{border: none; background-color: #110F25/*#06041C*/}
|
||||
|
||||
.header-demo{height: 60px; border-bottom: none;}
|
||||
.header-demo .logo{left: 40px;}
|
||||
.header-demo .layui-nav{top: 0;}
|
||||
.header-demo .layui-nav .layui-nav-item{margin: 0 10px;}
|
||||
|
||||
.header-demo .layui-nav .layui-this a{padding: 0 30px;}
|
||||
|
||||
|
||||
.component{position: absolute; width: 160px; left: 120px; top: 16px; }
|
||||
.component .layui-input{height: 30px; padding-left: 12px; background-color: #424652; background-color: rgba(255,255,255,.05); border: none 0; color: #fff; color: rgba(255,255,255,.5); font-size: 12px;}
|
||||
.component .layui-form-select .layui-edge{display: none; border-top-color: #999;}
|
||||
.component .layui-form-select dl{top: 36px; background-color: rgba(255,255,255,.9)}
|
||||
.header-demo .component{left: 185px;}
|
||||
|
||||
|
||||
/* 子侧边 */
|
||||
.layui-side-child{width: 160px!important; left: 200px; bottom: 60px!important; border-right: 1px solid #eee; background-color: #fff;}
|
||||
.layui-side-child .layui-side-scroll{width: 170px;}
|
||||
.layui-side-child .layui-nav{padding: 10px 0; width: 160px; border-radius: 0; background: none}
|
||||
.layui-side-child .layui-nav-child{border-radius: 0;}
|
||||
.layui-side-child .layui-nav .layui-nav-title a,
|
||||
.layui-side-child .layui-nav .layui-nav-title a:hover,
|
||||
.layui-side-child .layui-nav-itemed>a{color: #666 !important;}
|
||||
.layui-side-child .layui-nav-itemed .layui-nav-child{margin-bottom: 10px; background: none !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-item a{height: 30px; line-height: 30px; color: #666;}
|
||||
.layui-side-child .layui-nav .layui-nav-item a:hover{background: none !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-child a{color: #999 !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-more{display: none;}
|
||||
.layui-side-child .layui-nav-tree .layui-this,
|
||||
.layui-side-child .layui-nav-tree .layui-this>a,
|
||||
.layui-side-child .layui-nav-tree .layui-nav-child dd.layui-this,
|
||||
.layui-side-child .layui-nav-tree .layui-nav-child dd.layui-this a{background: none; color: #5FB878 !important;}
|
||||
.layui-side-child .layui-nav .layui-nav-child a:hover{color: #009688 !important}
|
||||
.layui-side-child .layui-nav-bar{background-color: #5FB878;}
|
||||
|
||||
|
||||
/* 底部 */
|
||||
.footer{padding: 30px 0; line-height: 30px; text-align: center; color: #666; font-weight: 300;}
|
||||
body .layui-layout-admin .footer-demo{height: 50px; line-height: 50px; padding: 5px 0;}
|
||||
.footer a{padding: 0 5px;}
|
||||
.site-union{color: #999;}
|
||||
.site-union>*{display: inline-block; vertical-align: middle;}
|
||||
.site-union a[sponsor] img{width: 80px;}
|
||||
.site-union span{position: relative; top: 5px;}
|
||||
.site-union span a{padding: 0; display: inline; color: #999;}
|
||||
.site-union span a:hover{text-decoration: underline;}
|
||||
.site-union .site-union-desc{display: block; margin-bottom: 10px;}
|
||||
|
||||
.footer-demo p,
|
||||
.footer-demo .site-union,
|
||||
.footer-demo .site-union p{display: inline-block; vertical-align: middle; padding-right: 10px;}
|
||||
.footer-demo .site-union{position: relative; top: -5px;}
|
||||
.footer-demo .site-union .site-union-desc{margin-bottom: 0; padding-right: 0;}
|
||||
.footer-demo .site-union a[sponsor] img{position: relative; top: 3px;}
|
||||
|
||||
/* 首页banner部分 */
|
||||
.site-banner{position: relative; height: 600px; text-align: center; overflow: hidden; background-color: #393D49;}
|
||||
.site-banner-bg
|
||||
,.site-banner-main{position: absolute; left: 0; top: 0; width: 100%; height: 100%;}
|
||||
.site-banner-bg{background-position: center 0;}
|
||||
|
||||
|
||||
.site-zfj{padding-top: 25px; height: 220px;}
|
||||
.site-zfj i{position: absolute; left: 50%; top: 50px; width: 200px; height: 200px; margin-left: -100px; font-size: 180px; color: #c2c2c2;}
|
||||
|
||||
@keyframes site-zfj {
|
||||
0% {opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg) scale(1);}
|
||||
10% {opacity: 0.8; transform: translate3d(-100px, 0px, 0) rotate(10deg) scale(0.7);}
|
||||
35% {opacity: 0.6; transform: translate3d(100px, 0px, 0) rotate(30deg) scale(0.4);}
|
||||
50% {opacity: 0.4; transform: translate3d(0, 0, 0) rotate(360deg) scale(0);}
|
||||
80% {opacity: 0.2; transform: translate3d(0, 0, 0) rotate(720deg) scale(1);}
|
||||
90% {opacity: 0.1; transform: translate3d(0, 0, 0) rotate(3600deg) scale(6);}
|
||||
100% {opacity: 1; transform: translate3d(0, 0, 0) rotate(3600deg) scale(1);}
|
||||
}
|
||||
|
||||
@keyframes site-desc {
|
||||
0% { transform: scale(1.1);}
|
||||
100% {transform: scale(1);}
|
||||
}
|
||||
|
||||
.site-zfj-anim i{-webkit-animation-name: site-zfj; animation-name: site-zfj; -webkit-animation-duration: 5s; animation-duration: 5s; -webkit-animation-timing-function: linear; animation-timing-function: linear;}
|
||||
|
||||
|
||||
/* 描述字体 */
|
||||
@font-face {font-family: 'webfont-desc';
|
||||
src: url('//at.alicdn.com/t/webfont_eovt4pxxy5.eot'); /* IE9*/
|
||||
src: url('//at.alicdn.com/t/webfont_eovt4pxxy5.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.woff') format('woff'), /* chrome、firefox */
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.ttf') format('truetype'), /* chrome、firefox、opera、Safari, Android, iOS 4.2+*/
|
||||
url('//at.alicdn.com/t/webfont_eovt4pxxy5.svg#思源黑体-极细') format('svg'); /* iOS 4.1- */
|
||||
}
|
||||
.web-font-desc{
|
||||
font-family:"webfont-desc" !important;
|
||||
font-size:16px;font-style:normal;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-osx-font-smoothing: grayscale;
|
||||
}
|
||||
|
||||
|
||||
.site-desc{position: relative; height: 70px; margin-top: 20px;}
|
||||
.site-desc .web-font-desc{color: #fff; color: rgba(255,255,255,.8); font-size: 61px;}
|
||||
|
||||
.site-desc-anim{-webkit-animation-name: site-desc; animation-name: site-desc;}
|
||||
.site-desc cite{position: absolute; bottom: -40px; left: 0; width: 100%; color: #c2c2c2; font-style: normal;}
|
||||
|
||||
.site-download{margin-top: 80px; font-size: 0;}
|
||||
.site-download a{position: relative; padding: 0 55px 0 95px; height: 65px; line-height: 65px; border: 1px solid #c2c2c2; border-color: rgba(255,255,255,.2); font-size: 24px; color: #ccc; transition: all .5s; -webkit-transition: all .5s;}
|
||||
.site-download a:hover{border-color: rgba(255,255,255,.3); color: #fff; background-color: rgba(255,255,255,.05); border-radius: 30px;}
|
||||
.site-download a cite{position: absolute; left: 55px; top: 2px; font-size: 30px;}
|
||||
.site-version{position: relative; margin-top: 15px; color: #ccc; font-size: 12px;}
|
||||
.site-version span{padding: 0 3px;}
|
||||
.site-version *{font-style: normal;}
|
||||
.site-version a{color: #e2e2e2; text-decoration: underline;}
|
||||
|
||||
.site-banner-other{position: absolute; left: 0; bottom: 35px; width: 100%; text-align: center; font-size: 0;}
|
||||
.site-banner-other iframe{border: none;}
|
||||
.site-banner-other a{display: inline-block; vertical-align: middle; height: 28px; line-height: 28px; margin: 0 6px; padding: 0 10px; border-radius: 2px; color: #c2c2c2; color: rgba(255,255,255,.8); border: 1px solid #c2c2c2; border-color: rgba(255,255,255,.2); font-size: 14px; transition: all .5s; -webkit-transition: all .5s;}
|
||||
.site-banner-other a:hover{color: #fff; background-color: rgba(255,255,255,.1);}
|
||||
|
||||
|
||||
.site-idea{margin: 50px 0; font-size: 0; text-align: center; font-weight: 300;}
|
||||
.site-idea li{display: inline-block; vertical-align: top; *display: inline; *zoom:1; font-size: 14px; }
|
||||
.site-idea li{width: 298px; height: 150px; padding: 30px; line-height: 24px; margin-left: 30px; border: 1px solid #d2d2d2; text-align: left;}
|
||||
.site-idea li:first-child{margin-left: 0}
|
||||
.site-idea .layui-field-title{border-color: #d2d2d2}
|
||||
.site-idea .layui-field-title legend{margin: 0 20px 20px 0; padding: 0 20px; text-align: center;}
|
||||
|
||||
/* 赞助商 */
|
||||
.site-sponsor-home{margin-top: 40px; text-align: center;}
|
||||
.site-sponsor-home .layui-btn{position: relative; width: 248px; height: 60px; line-height: 60px; background: none; border-color: #212121; font-size: 20px; border-radius: 6px;}
|
||||
.site-sponsor-home .layui-btn:hover{background: #4A4855; color: #BAB8C3;}
|
||||
|
||||
.site-sponsor-home p{position: relative; padding-top: 15px; font-size: 22px; color: #212121;}
|
||||
.site-sponsor-home p:before{content: ''; position: relative; top: -2px; display: inline-block; vertical-align: middle; width: 30px; height: 30px; margin-right: 10px; background: url(http://cdn.layui.com/upload/2018_1/168_1514869467160_26113.png) center; background-repeat: no-repeat; background-size: contain;}
|
||||
@media screen and (max-width: 750px) {
|
||||
.site-sponsor-home .layui-btn{width: 180px; height: 45px; line-height: 45px; font-size: 20px;}
|
||||
.site-sponsor-home p{font-size: 16px;}
|
||||
.site-sponsor-home p:before{width: 20px; height: 20px;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 辅助 */
|
||||
.site-tips{margin-bottom: 10px; padding: 15px; line-height: 22px; border-left: 5px solid #0078AD; background-color: #f2f2f2;}
|
||||
body .site-tips p{margin: 0;}
|
||||
body .layui-layer-notice .layui-layer-content{padding: 20px; line-height: 26px; background-color: #393D49; color: #fff; font-weight: 300;}
|
||||
.layui-layer-notice .layui-text{color: #f8f8f8;}
|
||||
.layui-layer-notice .layui-text a{color: #009688;}
|
||||
|
||||
/* 目录 */
|
||||
.site-dir{display: none;}
|
||||
.site-dir li{line-height: 26px; margin-left: 20px; overflow: visible; list-style-type: disc;}
|
||||
.site-dir li a{display: block;}
|
||||
.site-dir li a:active{color: #01AAED;}
|
||||
.site-dir li a.layui-this{color: #01AAED;}
|
||||
body .layui-layer-dir{box-shadow: none; border: 1px solid #d2d2d2;}
|
||||
body .layui-layer-dir .layui-layer-content{padding: 10px;}
|
||||
.site-dir a em{padding-left: 5px; font-size: 12px; color: #c2c2c2; font-style: normal;}
|
||||
|
||||
/* 文档 */
|
||||
.site-tree{border-right: 1px solid #eee; }
|
||||
.site-tree .layui-tree{line-height: 32px;}
|
||||
.site-tree .layui-tree li i{position: relative; font-size: 22px; color: #000}
|
||||
.site-tree .layui-tree li a cite{padding: 0 8px;}
|
||||
.site-tree .layui-tree .site-tree-noicon a cite{padding-left: 15px;}
|
||||
.site-tree .layui-tree li a em{font-size: 12px; color: #bbb; padding-right: 5px; font-style: normal;}
|
||||
.site-tree .layui-tree li h2{line-height: 36px; border-left: 5px solid #009E94; margin: 15px 0 5px; padding: 0 10px; background-color: #f2f2f2;}
|
||||
.site-tree .layui-tree li ul{margin-left: 27px; line-height: 28px;}
|
||||
.site-tree .layui-tree li ul a,
|
||||
.site-tree .layui-tree li ul a i{color: #777;}
|
||||
.site-tree .layui-tree li ul a:hover{color: #333;}
|
||||
.site-tree .layui-tree li ul li{margin-left: 25px; overflow: visible; list-style-type: disc; /*list-style-position: inside;*/}
|
||||
.site-tree .layui-tree li ul li cite,
|
||||
.site-tree .layui-tree .site-tree-noicon ul li cite{padding-left: 0;}
|
||||
|
||||
.site-tree .layui-tree .layui-this a{color: #01AAED;}
|
||||
.site-tree .layui-tree .layui-this .layui-icon{color: #01AAED;}
|
||||
|
||||
.site-fix .site-tree{position: fixed; top: 0; bottom: 0; z-index: 666; min-height: 0; overflow: auto; background-color: #fff;}
|
||||
.site-fix .site-content{margin-left: 220px;}
|
||||
.site-fix-footer .site-tree{/*margin-bottom: 120px;*/}
|
||||
|
||||
|
||||
.site-title{ margin: 30px 0 20px;}
|
||||
.site-title fieldset{border: none; padding: 0; border-top: 1px solid #eee;}
|
||||
.site-title fieldset legend{margin-left: 20px; padding: 0 10px; font-size: 22px; font-weight: 300;}
|
||||
|
||||
.site-text a{color: #01AAED;}
|
||||
.site-h1{margin-bottom: 20px; line-height: 60px; padding-bottom: 10px; color: #393D49; border-bottom: 1px solid #eee; font-size: 28px; font-weight: 300;}
|
||||
.site-h1 .layui-icon{position: relative; top: 5px; font-size: 35px; margin-right: 10px;}
|
||||
.site-text{position:relative;}
|
||||
.site-text p{margin-bottom: 10px; line-height:22px;}
|
||||
.site-text em{padding: 0 3px; font-weight: 500; font-style: italic; color: #666;}
|
||||
.site-text code{margin:0 5px; padding: 3px 10px; border: 1px solid #e2e2e2; background-color: #fbfbfb; color: #666; border-radius: 2px;}
|
||||
|
||||
|
||||
.site-table{width: 100%; margin: 10px 0;}
|
||||
.site-table thead{background-color:#f2f2f2; }
|
||||
.site-table th,
|
||||
.site-table td{padding: 6px 15px; min-height: 20px; line-height: 20px; border:1px solid #ddd; font-size: 14px; font-weight: 400;}
|
||||
.site-table tr:nth-child(even){background: #fbfbfb;}
|
||||
|
||||
.site-block{padding: 20px; border: 1px solid #eee;}
|
||||
.site-block .layui-form{margin-right: 200px;}
|
||||
|
||||
/* 更新日志 */
|
||||
.site-changelog .layui-timeline-title h2{display: inline-block;}
|
||||
.site-changelog .layui-timeline-title .layui-badge-rim{top: -2px; left: 10px;}
|
||||
|
||||
/* 颜色 */
|
||||
.site-doc-color{font-size: 0;}
|
||||
.site-doc-color li{display: inline-block; vertical-align: middle; width: 180px; margin-left: 20px; margin-bottom: 20px; padding: 20px 10px; color: #fff; text-align: center; border-radius: 2px; line-height: 22px; font-size: 14px;}
|
||||
.site-doc-color li p[tips]{opacity: 0.8; font-size: 12px;}
|
||||
|
||||
.site-doc-necolor li{width: 108px; margin-top: 15px; margin-left: 0; border-radius: 0;}
|
||||
|
||||
.site-doc-bgcolor li{padding: 10px;}
|
||||
|
||||
/* 宫格 */
|
||||
.site-doc-icon{margin-bottom: 50px; font-size: 0;}
|
||||
.site-doc-icon li{display: inline-block; vertical-align: middle; width: 127px; 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 .3s; -webkit-transition: all .3s;}
|
||||
.site-doc-anim li{height: auto;}
|
||||
.site-doc-icon li .layui-icon{display: inline-block; font-size: 36px;}
|
||||
|
||||
.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:hover{background-color: #f2f2f2; color: #000;}
|
||||
|
||||
/* 栅格示例 */
|
||||
.grid-demo{padding: 10px; line-height: 50px; text-align: center; background-color: #79C48C; color: #fff;}
|
||||
.grid-demo-bg1{background-color: #63BA79;}
|
||||
.grid-demo-bg2{background-color: #49A761;}
|
||||
.grid-demo-bg3{background-color: #38814A;}
|
||||
|
||||
|
||||
/* 演示 */
|
||||
body .layui-layout-admin .site-demo{bottom: 60px; padding: 0;}
|
||||
body .site-demo-nav .layui-nav-item{line-height: 40px}
|
||||
.layui-nav-item .layui-icon{position: relative; font-size: 20px;}
|
||||
.layui-nav-item a cite{padding: 0 10px;}
|
||||
.site-demo .layui-main{margin: 15px; line-height: 22px;}
|
||||
.site-demo-editor{position: absolute; top: 0; bottom: 0; left: 0; width: 50%; }
|
||||
.site-demo-area{position: absolute; top: 0; bottom: 0; width: 100%;}
|
||||
.site-demo-editor textarea{position: absolute; width: 100%; height: 100%; padding: 10px; border: none; resize: none; background-color: #F7FBFF; background-color: #13151A; color: #999; font-family: Courier New; font-size: 12px; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
||||
.site-demo-btn{position: absolute; bottom: 15px; right: 20px;}
|
||||
.site-demo-zanzhu{position: absolute; bottom: 0; left: 0; width: 100%; height: 90px; text-align: center; background-color: #e2e2e2; overflow: hidden;}
|
||||
.site-demo-zanzhu>*{position: relative; z-index: 1;}
|
||||
.site-demo-zanzhu:before{content: ""; position: absolute; z-index: 0; top: 50%; left: 50%; width: 120px; margin: -10px 0px 0px -60px; text-align: center; color: rgb(170, 170, 170); font-size: 18px; font-weight: 300; }
|
||||
|
||||
.site-demo-result{position: absolute; right: 0; top: 0; bottom: 0; width: 50%;}
|
||||
.site-demo-result iframe{position: absolute; width: 100%; height: 100%;}
|
||||
|
||||
.site-demo-button{margin-bottom: 30px;}
|
||||
.site-demo-button div{margin: 20px 30px 10px;}
|
||||
.site-demo-button .layui-btn+.layui-btn{margin-left: 0;}
|
||||
.site-demo-button .layui-btn{margin: 0 7px 10px 0; }
|
||||
|
||||
.site-demo-text a{color: #01AAED;}
|
||||
|
||||
.site-demo-laytpl{text-align: center;}
|
||||
.site-demo-laytpl textarea,
|
||||
.site-demo-laytpl div span{width: 40%; padding: 15px; margin: 0 15px;}
|
||||
.site-demo-laytpl textarea{height: 300px; border: none; background-color: #3F3F3F; color: #E3CEAB; font-family: Courier New; resize: none;}
|
||||
.site-demo-laytpl div span{display: inline-block; text-align: center; background: #101010; color: #fff;}
|
||||
.site-demo-tplres{margin: 10px 0; text-align: center}
|
||||
.site-demo-tplres .site-demo-tplh2,
|
||||
.site-demo-tplres .site-demo-tplview{display: inline-block; width: 50%;}
|
||||
.site-demo-tplres h2{padding: 15px; background: #e2e2e2;}
|
||||
.site-demo-tplres h3{font-weight: 700;}
|
||||
.site-demo-tplres div{padding: 14px; border: 1px solid #e2e2e2; text-align: left;}
|
||||
|
||||
.site-demo-upload,
|
||||
.site-demo-upload img{width: 200px; height: 200px; border-radius: 100%;}
|
||||
.site-demo-upload{position: relative; background: #e2e2e2;}
|
||||
.site-demo-upload .site-demo-upbar{position: absolute; top: 50%; left: 50%; margin: -18px 0 0 -56px;}
|
||||
.site-demo-upload .layui-upload-button{background-color: rgba(0,0,0,.2); color: rgba(255,255,255,1);}
|
||||
|
||||
.site-demo-util{position: relative; width: 300px;}
|
||||
.site-demo-util img{width: 300px; border-radius: 100%;}
|
||||
.site-demo-util span{position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: #333; cursor: pointer;}
|
||||
@-webkit-keyframes demo-fengjie {
|
||||
0% {-webkit-filter: blur(0); opacity: 1; background: #fff; height: 300px; border-radius: 100%;}
|
||||
80% {-webkit-filter: blur(50px); opacity: 0.95;}
|
||||
100% {-webkit-filter: blur(20px); opacity: 0; background: #fff;}
|
||||
}
|
||||
@keyframes demo-fengjie {
|
||||
0% {filter: blur(0); opacity: 1; background: #fff; height: 300px; border-radius: 100%;}
|
||||
80% {filter: blur(50px); opacity: 0.95;}
|
||||
100% {filter: blur(20px); opacity: 0; background: #fff;}
|
||||
}
|
||||
.site-demo-fengjie{-webkit-animation-name: demo-fengjie; animation-name: demo-fengjie; -webkit-animation-duration: 5s; animation-duration: 5s;}
|
||||
|
||||
.layui-layout-admin .site-demo-body{top: 106px;}
|
||||
.site-demo-title{position: fixed; left: 200px; right: 0; top: 65px;}
|
||||
.site-demo-code{position: absolute; left: 0; top: 0; width: 100%; height: 100%; border: none; padding: 10px; resize: none; font-size: 12px; background-color: #F7FBFF; color: #881280; font-family: Courier New;}
|
||||
|
||||
.site-demo-overflow{overflow: hidden;}
|
||||
|
||||
/* 其它 */
|
||||
#trans-tooltip,
|
||||
#tip-arrow-bottom,
|
||||
#tip-arrow-top{display: none !important;}
|
||||
|
||||
|
||||
/* 独立组件 与 主页 */
|
||||
.alone{text-align: center; background-color: #009688; color: #fff; font-weight: 300; transition: all .3s; -webkit-transition: all .3s;}
|
||||
.alone:hover{background-color: #5FB878;}
|
||||
.alone a{display: block; padding: 50px 20px; color: #fff; font-size: 30px;}
|
||||
.alone a cite{display: block; padding-top: 10px; font-size: 14px;}
|
||||
|
||||
|
||||
.alone-banner{height: 190px; text-align: center; font-weight: 300; background-color: #009688; color:#fff;}
|
||||
.alone-banner h1{padding-top: 60px; line-height: 32px; font-size: 30px; font-weight: 300;}
|
||||
.alone-banner p{padding-top: 20px; color: #e2e2e2; color: rgba(255,255,255,.8);}
|
||||
|
||||
.alone-nav .layui-tab-title li{margin-right: 30px; padding: 0; color: #666;}
|
||||
.alone-nav .layui-tab-title li a{ padding: 0 20px;}
|
||||
|
||||
.alone-download{margin: 30px 0;}
|
||||
.alone-download .layui-btn{margin-right: 10px;}
|
||||
.alone-download span{display: inline-block; line-height: 44px; padding-right: 20px;}
|
||||
.alone-download span em{color: #999;}
|
||||
|
||||
.alone-title{margin-top: 20px;}
|
||||
|
||||
.alone-download-btn{text-align: center; margin-top: 50px; font-size: 0;}
|
||||
.alone-download-btn .layui-btn{position: relative; width: 206px; height: 60px; line-height: 60px; font-size: 26px; font-weight: 300;}
|
||||
.alone-download-btn .layui-btn+.layui-btn{margin: 0;}
|
||||
.alone-download-btn .alone-download-right{margin-left: 20px !important; border-color: #009688; background: none; color: #009688;}
|
||||
.alone-download-btn .layui-btn img{position: relative; top: -3px; width: 118px;}
|
||||
|
||||
|
||||
|
||||
/* 适配多设备 */
|
||||
@media screen and (max-width: 750px) {
|
||||
.layui-main{width: auto; margin: 0 10px;}
|
||||
.logo,
|
||||
.header-demo .logo{left: 10px;}
|
||||
.component{display: none}
|
||||
|
||||
.header .layui-nav-child{left: auto!important; right: 0!important;}
|
||||
.site-demo-overflow{overflow: auto;}
|
||||
|
||||
.site-nav-layim{display: none !important;}
|
||||
.header .layui-nav .layui-nav-item{margin: 0;}
|
||||
.header .layui-nav .layui-nav-item a{padding: 0 20px;}
|
||||
.header .layui-nav .layui-nav-item[pc]{display: none;}
|
||||
.header .layui-nav .layui-nav-item[mobile]{display: inline-block;}
|
||||
.site-banner{height: 300px;}
|
||||
.site-banner-bg{background-size: cover;}
|
||||
.site-zfj{height: 100px; padding-top: 5px;}
|
||||
.site-zfj i{top: 10px; width: 100px; height: 100px; margin-left: -50px; font-size: 100px;}
|
||||
.site-desc{background-size: 70%; margin: 0;}
|
||||
.site-desc .web-font-desc{padding-top: 20px; font-size: 30px;}
|
||||
.site-desc cite{display: none;}
|
||||
.site-download{margin-top: 0; }
|
||||
.site-download a{height: 40px; line-height: 40px; padding: 0 25px 0 60px; border-radius: 30px; color: #fff; font-size: 16px;}
|
||||
.site-download a cite{left: 20px;}
|
||||
.site-banner-other{bottom: 10px;}
|
||||
|
||||
.site-idea{margin: 20px 0;}
|
||||
.site-idea li{margin: 0 0 20px 0; width: 100%; height: auto; -webkit-box-sizing: border-box !important; -moz-box-sizing: border-box !important; box-sizing: border-box !important;}
|
||||
.site-hengfu img{max-width: 100%}
|
||||
|
||||
.site-block .layui-form{margin-right: 0;}
|
||||
|
||||
.layui-layer-dir{display: none;}
|
||||
.site-tree{position: fixed; top: 0; bottom: 0; min-height: 0; overflow: auto; z-index: 1000; left: -260px; background-color: #fff; transition: all .3s; -webkit-transition: all .3s;}
|
||||
.site-content{width: 100%; padding: 0; overflow: auto;}
|
||||
.site-content img{max-width: 100%;}
|
||||
.site-tree-mobile{display: block!important; position: fixed; z-index: 100000; bottom: 15px; left: 15px; width: 50px; height: 50px; line-height: 50px; border-radius: 2px; text-align: center; background-color: rgba(0,0,0,.7); color: #fff;}
|
||||
.site-home .site-tree-mobile{display: none!important;}
|
||||
.site-mobile .site-tree-mobile{display: none !important;}
|
||||
.site-mobile .site-tree{left: 0;}
|
||||
.site-mobile .site-mobile-shade{content: ''; position: fixed; top: 0; bottom: 0; left: 0; right: 0; background-color: rgba(0,0,0,.8); z-index: 999;}
|
||||
.site-tree-mobile i{font-size: 20px;}
|
||||
.layui-code-view{-webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
||||
|
||||
.layui-layout-admin .layui-side{position: fixed; top: 0; left: -260px; transition: all .3s; -webkit-transition: all .3s; z-index: 10000;}
|
||||
.layui-body{position: static; bottom: 0; left: 0;}
|
||||
.site-mobile .layui-side{left: 0;}
|
||||
.site-mobile .layui-side-child{top: 50%; left: 200px; height: 300px; margin-top: -100px;}
|
||||
|
||||
body .layui-layout-admin .footer-demo{position: static; height: auto; padding: 15px 0; line-height: 30px;}
|
||||
.footer-demo p,
|
||||
.footer-demo .site-union{height: auto; padding-right: 0;}
|
||||
.footer-demo .site-union{top: 0;}
|
||||
.footer-demo .site-union span{top:0 ;}
|
||||
|
||||
.site-demo-area,
|
||||
.site-demo-editor,
|
||||
.site-demo-result,
|
||||
.site-demo-editor textarea,
|
||||
.site-demo-result iframe{position: static; width: 100%;}
|
||||
.site-demo-editor textarea{height: 350px;}
|
||||
.site-demo-zanzhu{display: none;}
|
||||
.site-demo-btn{bottom: auto; top: 370px;}
|
||||
.site-demo-result iframe{height: 500px;}
|
||||
|
||||
.site-demo-laytpl textarea, .site-demo-laytpl div span{margin: 0;}
|
||||
.site-demo-tplres .site-demo-tplh2, .site-demo-tplres .site-demo-tplview{width: 100%; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box;}
|
||||
|
||||
.site-demo-title{position: static; left: 0;}
|
||||
body .layui-layout-admin .site-demo{position: static;}
|
||||
.site-demo-code{position: static; height: 350px;}
|
||||
}
|
||||
|
||||
|
||||
|
||||
@-webkit-keyframes site-anim-closeup{ /* 特写 */
|
||||
from {-webkit-transform: translate3d(0, 0, 0) scale(1); opacity: 1;}
|
||||
to { -webkit-transform: translate3d(0, 400px, 0) scale(2); opacity: 0.5;}
|
||||
}
|
||||
@keyframes site-anim-closeup{
|
||||
from {transform: translate3d(0, 0, 0) scale(1); opacity: 1;}
|
||||
to {transform: translate3d(0, 400px, 0) scale(2); opacity: 0.5;}
|
||||
}
|
||||
.site-out-up{-webkit-animation-duration: 3s; animation-duration: 3s; -webkit-animation-fill-mode: both; animation-fill-mode: both; -webkit-animation-name: site-anim-closeup; animation-name: site-anim-closeup; overflow: hidden;}
|
||||
2
docs/example/layui/css/layui.css
Normal file
2
docs/example/layui/css/layui.mobile.css
Normal file
2
docs/example/layui/css/modules/code.css
Normal file
@ -0,0 +1,2 @@
|
||||
/** layui-v2.5.7 MIT License */
|
||||
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}
|
||||
BIN
docs/example/layui/css/modules/layer/default/icon-ext.png
Normal file
|
After Width: | Height: | Size: 5.8 KiB |
BIN
docs/example/layui/css/modules/layer/default/icon.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
2
docs/example/layui/css/modules/layer/default/layer.css
Normal file
BIN
docs/example/layui/css/modules/layer/default/loading-0.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
docs/example/layui/css/modules/layer/default/loading-1.gif
Normal file
|
After Width: | Height: | Size: 701 B |
BIN
docs/example/layui/css/modules/layer/default/loading-2.gif
Normal file
|
After Width: | Height: | Size: 1.7 KiB |
BIN
docs/example/layui/font/iconfont.eot
Normal file
554
docs/example/layui/font/iconfont.svg
Normal file
|
After Width: | Height: | Size: 299 KiB |
BIN
docs/example/layui/font/iconfont.ttf
Normal file
BIN
docs/example/layui/font/iconfont.woff
Normal file
BIN
docs/example/layui/font/iconfont.woff2
Normal file
BIN
docs/example/layui/images/face/0.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
docs/example/layui/images/face/1.gif
Normal file
|
After Width: | Height: | Size: 5.4 KiB |
BIN
docs/example/layui/images/face/10.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/example/layui/images/face/11.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
docs/example/layui/images/face/12.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
docs/example/layui/images/face/13.gif
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
docs/example/layui/images/face/14.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
docs/example/layui/images/face/15.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
docs/example/layui/images/face/16.gif
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
docs/example/layui/images/face/17.gif
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
docs/example/layui/images/face/18.gif
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
docs/example/layui/images/face/19.gif
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
docs/example/layui/images/face/2.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
docs/example/layui/images/face/20.gif
Normal file
|
After Width: | Height: | Size: 5.0 KiB |
BIN
docs/example/layui/images/face/21.gif
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
docs/example/layui/images/face/22.gif
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
docs/example/layui/images/face/23.gif
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
BIN
docs/example/layui/images/face/24.gif
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
docs/example/layui/images/face/25.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
docs/example/layui/images/face/26.gif
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
docs/example/layui/images/face/27.gif
Normal file
|
After Width: | Height: | Size: 4.3 KiB |
BIN
docs/example/layui/images/face/28.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/example/layui/images/face/29.gif
Normal file
|
After Width: | Height: | Size: 4.7 KiB |
BIN
docs/example/layui/images/face/3.gif
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
docs/example/layui/images/face/30.gif
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
docs/example/layui/images/face/31.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
docs/example/layui/images/face/32.gif
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
docs/example/layui/images/face/33.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
docs/example/layui/images/face/34.gif
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
docs/example/layui/images/face/35.gif
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
docs/example/layui/images/face/36.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
docs/example/layui/images/face/37.gif
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
docs/example/layui/images/face/38.gif
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
docs/example/layui/images/face/39.gif
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
docs/example/layui/images/face/4.gif
Normal file
|
After Width: | Height: | Size: 5.6 KiB |
BIN
docs/example/layui/images/face/40.gif
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
docs/example/layui/images/face/41.gif
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
docs/example/layui/images/face/42.gif
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
docs/example/layui/images/face/43.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
docs/example/layui/images/face/44.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
docs/example/layui/images/face/45.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
docs/example/layui/images/face/46.gif
Normal file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
docs/example/layui/images/face/47.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
docs/example/layui/images/face/48.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
docs/example/layui/images/face/49.gif
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
BIN
docs/example/layui/images/face/5.gif
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
docs/example/layui/images/face/50.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
docs/example/layui/images/face/51.gif
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
docs/example/layui/images/face/52.gif
Normal file
|
After Width: | Height: | Size: 777 B |
BIN
docs/example/layui/images/face/53.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
docs/example/layui/images/face/54.gif
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
docs/example/layui/images/face/55.gif
Normal file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
docs/example/layui/images/face/56.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
docs/example/layui/images/face/57.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
docs/example/layui/images/face/58.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
docs/example/layui/images/face/59.gif
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
docs/example/layui/images/face/6.gif
Normal file
|
After Width: | Height: | Size: 2.2 KiB |
BIN
docs/example/layui/images/face/60.gif
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
docs/example/layui/images/face/61.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
docs/example/layui/images/face/62.gif
Normal file
|
After Width: | Height: | Size: 2.0 KiB |
BIN
docs/example/layui/images/face/63.gif
Normal file
|
After Width: | Height: | Size: 5.7 KiB |
BIN
docs/example/layui/images/face/64.gif
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
docs/example/layui/images/face/65.gif
Normal file
|
After Width: | Height: | Size: 3.5 KiB |
BIN
docs/example/layui/images/face/66.gif
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
docs/example/layui/images/face/67.gif
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
docs/example/layui/images/face/68.gif
Normal file
|
After Width: | Height: | Size: 1.4 KiB |
BIN
docs/example/layui/images/face/69.gif
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
docs/example/layui/images/face/7.gif
Normal file
|
After Width: | Height: | Size: 3.3 KiB |
BIN
docs/example/layui/images/face/70.gif
Normal file
|
After Width: | Height: | Size: 4.5 KiB |
BIN
docs/example/layui/images/face/71.gif
Normal file
|
After Width: | Height: | Size: 5.2 KiB |
BIN
docs/example/layui/images/face/8.gif
Normal file
|
After Width: | Height: | Size: 4.0 KiB |
BIN
docs/example/layui/images/face/9.gif
Normal file
|
After Width: | Height: | Size: 4.1 KiB |
2
docs/example/layui/lay/modules/carousel.js
Normal file
@ -0,0 +1,2 @@
|
||||
/** layui-v2.5.7 MIT License */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
||||
2
docs/example/layui/lay/modules/code.js
Normal file
@ -0,0 +1,2 @@
|
||||
/** layui-v2.5.7 MIT License */
|
||||
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
|
||||