From 761a426337a457f3e6a98c15eab88147b0e873d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=B1=E7=9C=A0=E4=BB=AA=E5=BC=8F?= <854085467@qq.com> Date: Mon, 20 Jul 2020 23:02:49 +0800 Subject: [PATCH] add table component and table document --- admin/data/menu.json | 15 ++ admin/data/table.json | 182 +++++++++++++++ component/pear/css/pear-module/form.css | 13 +- component/pear/css/pear-module/table.css | 66 ++++++ setting.json | 0 view/document/table.html | 276 +++++++++++++++++++++++ 6 files changed, 549 insertions(+), 3 deletions(-) create mode 100644 admin/data/table.json create mode 100644 setting.json create mode 100644 view/document/table.html diff --git a/admin/data/menu.json b/admin/data/menu.json index d1ebecd..4841d26 100644 --- a/admin/data/menu.json +++ b/admin/data/menu.json @@ -18,6 +18,13 @@ "type": 1, "openType": "_iframe", "href": "view/console/console2.html" + }, { + "id": 14, + "title": "百度一下", + "icon": "layui-icon layui-icon-console", + "type": 1, + "openType": "_blank", + "href": "http://www.baidu.com" }] }, { @@ -105,6 +112,14 @@ "type": 1, "openType": "_iframe", "href": "view/document/iconPicker.html" + }, + { + "id": 211, + "title": "数据表格", + "icon": "layui-icon layui-icon-face-cry", + "type": 1, + "openType": "_iframe", + "href": "view/document/table.html" } ] }, diff --git a/admin/data/table.json b/admin/data/table.json new file mode 100644 index 0000000..195e315 --- /dev/null +++ b/admin/data/table.json @@ -0,0 +1,182 @@ +{ + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "code": 0, + "msg": "...", + "count": 3, + "data": [{ + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "1", + "username": "admin", + "password": "$2a$10$1K7E1.IYCrsoZVCb6utOo.5jENtfOzhdKWhc49t2lk.UQd7Oam4FG", + "salt": null, + "status": null, + "realName": "超级管理员", + "email": "8540854@qq.com", + "avatar": null, + "sex": "1", + "phone": "15543526531", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442488661347536896", + "username": "854085467", + "password": null, + "salt": null, + "status": null, + "realName": "就眠仪式", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442492965651353600", + "username": "970796069", + "password": null, + "salt": null, + "status": null, + "realName": "王二麻子", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + },{ + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "1", + "username": "admin", + "password": "$2a$10$1K7E1.IYCrsoZVCb6utOo.5jENtfOzhdKWhc49t2lk.UQd7Oam4FG", + "salt": null, + "status": null, + "realName": "超级管理员", + "email": "8540854@qq.com", + "avatar": null, + "sex": "1", + "phone": "15543526531", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442488661347536896", + "username": "854085467", + "password": null, + "salt": null, + "status": null, + "realName": "就眠仪式", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442492965651353600", + "username": "970796069", + "password": null, + "salt": null, + "status": null, + "realName": "王二麻子", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + },{ + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "1", + "username": "admin", + "password": "$2a$10$1K7E1.IYCrsoZVCb6utOo.5jENtfOzhdKWhc49t2lk.UQd7Oam4FG", + "salt": null, + "status": null, + "realName": "超级管理员", + "email": "8540854@qq.com", + "avatar": null, + "sex": "1", + "phone": "15543526531", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442488661347536896", + "username": "854085467", + "password": null, + "salt": null, + "status": null, + "realName": "就眠仪式", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + }, { + "createTime": null, + "createBy": null, + "updateTime": null, + "updateBy": null, + "remark": null, + "userId": "442492965651353600", + "username": "970796069", + "password": null, + "salt": null, + "status": null, + "realName": "王二麻子", + "email": null, + "avatar": null, + "sex": "1", + "phone": "1555324324234", + "enable": "1", + "login": "1", + "roleIds": null + }] +} diff --git a/component/pear/css/pear-module/form.css b/component/pear/css/pear-module/form.css index fee0c13..578a6d6 100644 --- a/component/pear/css/pear-module/form.css +++ b/component/pear/css/pear-module/form.css @@ -1,3 +1,10 @@ -.layui-input, .layui-textarea{ - border-radius: 4px; -} \ No newline at end of file +.layui-form-item { + margin-bottom: 0px !important; + margin-top: 5px !important; +} + +.layui-input { + height: 34px !important; + line-height: 34px !important; + border-radius: 3px !important; +} diff --git a/component/pear/css/pear-module/table.css b/component/pear/css/pear-module/table.css index e69de29..44bab83 100644 --- a/component/pear/css/pear-module/table.css +++ b/component/pear/css/pear-module/table.css @@ -0,0 +1,66 @@ +.layui-table-tool-panel { + margin-top: 10px !important; +} + +.layui-table-tool { + background-color: white !important; + border-bottom: none !important; + padding-bottom: 10px !important; +} + +.layui-table-header, +.layui-table-header th { + background-color: white !important; +} + +.layui-table-view { + border: none !important; +} + +.layui-table-cell { + height: 34px !important; + line-height: 34px !important; +} + +.layui-laypage .layui-laypage-curr .layui-laypage-em { + border-radius: 50px !important; + background-color: #5FB878 !important; +} + +.layui-laypage-limits, +.layui-laypage-skip { + display: none !important; +} + +.layui-table tr { + height: 34px !important; + line-height: 34px !important; +} + +.layui-table-cell { + padding-top: 1px !important; +} + +.layui-table-box * { + font-size: 13px !important; +} + +.layui-table-box button { + font-size: 15px !important; +} + +.layui-table-page { + height: 45px !important; + padding-top: 10px !important; +} + +.layui-table-tool .layui-inline { + border-radius: 3px !important; + width: 30px !important; + height: 30px !important; + line-height: 20px !important; +} + +.layui-table-view .layui-table[lay-skin=line] { + border: none !important; +} diff --git a/setting.json b/setting.json new file mode 100644 index 0000000..e69de29 diff --git a/view/document/table.html b/view/document/table.html new file mode 100644 index 0000000..f575cfd --- /dev/null +++ b/view/document/table.html @@ -0,0 +1,276 @@ + + +
+ +