This commit is contained in:
sentsin
2017-08-24 08:20:08 +08:00
parent 3a3dace400
commit 0cf0791f46
21 changed files with 146 additions and 53 deletions

View File

@@ -0,0 +1,8 @@
{
"code": 0
,"msg": ""
,"data": {
"src": "http://tva1.sinaimg.cn/crop.0.0.118.118.180/5db11ff4gw1e77d3nqrv8j203b03cweg.jpg"
,"title": "图片名称"
}
}

View File

@@ -23,7 +23,6 @@ body{padding: 50px 100px;}
<input type="text" class="layui-input" id="test1">
</div>
<br><br><hr><br>
日期选择器:
@@ -62,6 +61,21 @@ body{padding: 50px 100px;}
<br><br><hr><br>
同时绑定多个:
<div class="layui-inline">
<input type="text" class="layui-input test-item">
</div>
<div class="layui-inline">
<input type="text" class="layui-input test-item">
</div>
<div class="layui-inline">
<input type="text" class="layui-input test-item">
</div>
<br><br><hr><br>
墨绿主题:
<div class="layui-inline">
<input type="text" class="layui-input" id="test6-1">
@@ -185,6 +199,14 @@ layui.use('laydate', function(){
}
});
//同时绑定多个
lay('.test-item').each(function(){
laydate.render({
elem: this
,trigger: 'click'
});
});
//自定义重要日
var ins555 = laydate.render({
elem: '#test555'

View File

@@ -34,8 +34,8 @@ layui.use('layedit', function(){
var index = layedit.build('demo', {
//hideTool: ['image']
uploadImage: {
url: '/upload/test/'
,type: 'post'
url: 'json/upload/demoLayEdit.json'
,type: 'get'
}
//,tool: []
//,height: 100

29
test/responsive.html Normal file
View File

@@ -0,0 +1,29 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>响应式测试 - Layui</title>
<link rel="stylesheet" href="../src/css/layui.css">
<style>
body{padding: 20px;}
</style>
</head>
<body>
<!-- 让IE8/9支持媒体查询从而兼容栅格 -->
<!--[if lt IE 9]>
<script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
<script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<div class="layui-hide-xs layui-show-sm-inline layui-show-md-block">
移动:隐藏
<br>平板inline
<br>PCblock
</div>
</body>
</html>

View File

@@ -245,7 +245,8 @@ layui.use('table', function(){
,width: 900
//,height: 274
,cols: [[ //标题栏
{checkbox: true, LAY_CHECKED: true}
{space: true, fixed: true}
,{checkbox: true, LAY_CHECKED: true}
,{field: 'id', title: 'ID', width: 80, sort: true}
,{field: 'username', title: '用户名', width: 120}
,{field: 'email', title: '邮箱', width: 150}