├── images ├── bg.png ├── aiwrap.png ├── icon.png ├── login.jpg ├── logo.png ├── logo2.png ├── touxiang.jpg └── skin_icons.png ├── fonts ├── FontAwesome.otf ├── fontawesome-webfont.eot ├── fontawesome-webfont.ttf ├── fontawesome-webfont.woff └── fontawesome-webfont.woff2 ├── lib ├── layui │ ├── font │ │ ├── iconfont.eot │ │ ├── iconfont.ttf │ │ ├── iconfont.woff │ │ └── iconfont.woff2 │ ├── images │ │ └── face │ │ │ ├── 0.gif │ │ │ ├── 1.gif │ │ │ ├── 2.gif │ │ │ ├── 3.gif │ │ │ ├── 4.gif │ │ │ ├── 5.gif │ │ │ ├── 6.gif │ │ │ ├── 7.gif │ │ │ ├── 8.gif │ │ │ ├── 9.gif │ │ │ ├── 10.gif │ │ │ ├── 11.gif │ │ │ ├── 12.gif │ │ │ ├── 13.gif │ │ │ ├── 14.gif │ │ │ ├── 15.gif │ │ │ ├── 16.gif │ │ │ ├── 17.gif │ │ │ ├── 18.gif │ │ │ ├── 19.gif │ │ │ ├── 20.gif │ │ │ ├── 21.gif │ │ │ ├── 22.gif │ │ │ ├── 23.gif │ │ │ ├── 24.gif │ │ │ ├── 25.gif │ │ │ ├── 26.gif │ │ │ ├── 27.gif │ │ │ ├── 28.gif │ │ │ ├── 29.gif │ │ │ ├── 30.gif │ │ │ ├── 31.gif │ │ │ ├── 32.gif │ │ │ ├── 33.gif │ │ │ ├── 34.gif │ │ │ ├── 35.gif │ │ │ ├── 36.gif │ │ │ ├── 37.gif │ │ │ ├── 38.gif │ │ │ ├── 39.gif │ │ │ ├── 40.gif │ │ │ ├── 41.gif │ │ │ ├── 42.gif │ │ │ ├── 43.gif │ │ │ ├── 44.gif │ │ │ ├── 45.gif │ │ │ ├── 46.gif │ │ │ ├── 47.gif │ │ │ ├── 48.gif │ │ │ ├── 49.gif │ │ │ ├── 50.gif │ │ │ ├── 51.gif │ │ │ ├── 52.gif │ │ │ ├── 53.gif │ │ │ ├── 54.gif │ │ │ ├── 55.gif │ │ │ ├── 56.gif │ │ │ ├── 57.gif │ │ │ ├── 58.gif │ │ │ ├── 59.gif │ │ │ ├── 60.gif │ │ │ ├── 61.gif │ │ │ ├── 62.gif │ │ │ ├── 63.gif │ │ │ ├── 64.gif │ │ │ ├── 65.gif │ │ │ ├── 66.gif │ │ │ ├── 67.gif │ │ │ ├── 68.gif │ │ │ ├── 69.gif │ │ │ ├── 70.gif │ │ │ └── 71.gif │ ├── css │ │ ├── modules │ │ │ ├── layer │ │ │ │ └── default │ │ │ │ │ ├── icon.png │ │ │ │ │ ├── icon-ext.png │ │ │ │ │ ├── loading-0.gif │ │ │ │ │ ├── loading-1.gif │ │ │ │ │ └── loading-2.gif │ │ │ ├── code.css │ │ │ └── laydate │ │ │ │ └── default │ │ │ │ └── laydate.css │ │ └── layui.mobile.css │ ├── lay │ │ └── modules │ │ │ ├── code.js │ │ │ ├── laytpl.js │ │ │ ├── flow.js │ │ │ ├── rate.js │ │ │ ├── util.js │ │ │ ├── carousel.js │ │ │ ├── laypage.js │ │ │ ├── transfer.js │ │ │ ├── slider.js │ │ │ ├── upload.js │ │ │ ├── element.js │ │ │ └── form.js │ └── layui.js ├── layui_ext │ ├── dtree │ │ ├── font │ │ │ ├── dtreefont.eot │ │ │ ├── dtreefont.ttf │ │ │ ├── dtreefont.woff │ │ │ ├── dtreefont.css │ │ │ └── icons.json │ │ └── dtree.css │ └── treeTable │ │ ├── eleTree.css │ │ └── es6-promise.auto.min.js ├── Scrollbar │ └── jquery.scrollbar.css └── nprogress │ └── nprogress.css ├── .gitignore ├── config └── skin.json ├── LICENSE ├── css └── style.css ├── 404.html ├── login.html ├── user.json ├── city.html ├── Tree.html ├── data1.json ├── README.md ├── component ├── auxiliar │ └── index.html ├── badge │ └── index.html ├── timeline │ └── index.html ├── upload │ ├── demo2.html │ └── demo1.html └── tabs │ └── index.html ├── DataGrid-add.html ├── DataGrid1.html └── DataGrid.html /images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/bg.png -------------------------------------------------------------------------------- /images/aiwrap.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/aiwrap.png -------------------------------------------------------------------------------- /images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/icon.png -------------------------------------------------------------------------------- /images/login.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/login.jpg -------------------------------------------------------------------------------- /images/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/logo.png -------------------------------------------------------------------------------- /images/logo2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/logo2.png -------------------------------------------------------------------------------- /images/touxiang.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/touxiang.jpg -------------------------------------------------------------------------------- /fonts/FontAwesome.otf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/fonts/FontAwesome.otf -------------------------------------------------------------------------------- /images/skin_icons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/images/skin_icons.png -------------------------------------------------------------------------------- /lib/layui/font/iconfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/font/iconfont.eot -------------------------------------------------------------------------------- /lib/layui/font/iconfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/font/iconfont.ttf -------------------------------------------------------------------------------- /lib/layui/images/face/0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/0.gif -------------------------------------------------------------------------------- /lib/layui/images/face/1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/1.gif -------------------------------------------------------------------------------- /lib/layui/images/face/2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/2.gif -------------------------------------------------------------------------------- /lib/layui/images/face/3.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/3.gif -------------------------------------------------------------------------------- /lib/layui/images/face/4.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/4.gif -------------------------------------------------------------------------------- /lib/layui/images/face/5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/5.gif -------------------------------------------------------------------------------- /lib/layui/images/face/6.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/6.gif -------------------------------------------------------------------------------- /lib/layui/images/face/7.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/7.gif -------------------------------------------------------------------------------- /lib/layui/images/face/8.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/8.gif -------------------------------------------------------------------------------- /lib/layui/images/face/9.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/9.gif -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/fonts/fontawesome-webfont.eot -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/fonts/fontawesome-webfont.ttf -------------------------------------------------------------------------------- /lib/layui/font/iconfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/font/iconfont.woff -------------------------------------------------------------------------------- /lib/layui/font/iconfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/font/iconfont.woff2 -------------------------------------------------------------------------------- /lib/layui/images/face/10.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/10.gif -------------------------------------------------------------------------------- /lib/layui/images/face/11.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/11.gif -------------------------------------------------------------------------------- /lib/layui/images/face/12.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/12.gif -------------------------------------------------------------------------------- /lib/layui/images/face/13.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/13.gif -------------------------------------------------------------------------------- /lib/layui/images/face/14.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/14.gif -------------------------------------------------------------------------------- /lib/layui/images/face/15.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/15.gif -------------------------------------------------------------------------------- /lib/layui/images/face/16.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/16.gif -------------------------------------------------------------------------------- /lib/layui/images/face/17.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/17.gif -------------------------------------------------------------------------------- /lib/layui/images/face/18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/18.gif -------------------------------------------------------------------------------- /lib/layui/images/face/19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/19.gif -------------------------------------------------------------------------------- /lib/layui/images/face/20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/20.gif -------------------------------------------------------------------------------- /lib/layui/images/face/21.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/21.gif -------------------------------------------------------------------------------- /lib/layui/images/face/22.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/22.gif -------------------------------------------------------------------------------- /lib/layui/images/face/23.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/23.gif -------------------------------------------------------------------------------- /lib/layui/images/face/24.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/24.gif -------------------------------------------------------------------------------- /lib/layui/images/face/25.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/25.gif -------------------------------------------------------------------------------- /lib/layui/images/face/26.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/26.gif -------------------------------------------------------------------------------- /lib/layui/images/face/27.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/27.gif -------------------------------------------------------------------------------- /lib/layui/images/face/28.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/28.gif -------------------------------------------------------------------------------- /lib/layui/images/face/29.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/29.gif -------------------------------------------------------------------------------- /lib/layui/images/face/30.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/30.gif -------------------------------------------------------------------------------- /lib/layui/images/face/31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/31.gif -------------------------------------------------------------------------------- /lib/layui/images/face/32.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/32.gif -------------------------------------------------------------------------------- /lib/layui/images/face/33.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/33.gif -------------------------------------------------------------------------------- /lib/layui/images/face/34.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/34.gif -------------------------------------------------------------------------------- /lib/layui/images/face/35.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/35.gif -------------------------------------------------------------------------------- /lib/layui/images/face/36.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/36.gif -------------------------------------------------------------------------------- /lib/layui/images/face/37.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/37.gif -------------------------------------------------------------------------------- /lib/layui/images/face/38.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/38.gif -------------------------------------------------------------------------------- /lib/layui/images/face/39.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/39.gif -------------------------------------------------------------------------------- /lib/layui/images/face/40.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/40.gif -------------------------------------------------------------------------------- /lib/layui/images/face/41.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/41.gif -------------------------------------------------------------------------------- /lib/layui/images/face/42.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/42.gif -------------------------------------------------------------------------------- /lib/layui/images/face/43.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/43.gif -------------------------------------------------------------------------------- /lib/layui/images/face/44.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/44.gif -------------------------------------------------------------------------------- /lib/layui/images/face/45.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/45.gif -------------------------------------------------------------------------------- /lib/layui/images/face/46.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/46.gif -------------------------------------------------------------------------------- /lib/layui/images/face/47.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/47.gif -------------------------------------------------------------------------------- /lib/layui/images/face/48.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/48.gif -------------------------------------------------------------------------------- /lib/layui/images/face/49.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/49.gif -------------------------------------------------------------------------------- /lib/layui/images/face/50.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/50.gif -------------------------------------------------------------------------------- /lib/layui/images/face/51.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/51.gif -------------------------------------------------------------------------------- /lib/layui/images/face/52.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/52.gif -------------------------------------------------------------------------------- /lib/layui/images/face/53.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/53.gif -------------------------------------------------------------------------------- /lib/layui/images/face/54.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/54.gif -------------------------------------------------------------------------------- /lib/layui/images/face/55.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/55.gif -------------------------------------------------------------------------------- /lib/layui/images/face/56.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/56.gif -------------------------------------------------------------------------------- /lib/layui/images/face/57.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/57.gif -------------------------------------------------------------------------------- /lib/layui/images/face/58.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/58.gif -------------------------------------------------------------------------------- /lib/layui/images/face/59.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/59.gif -------------------------------------------------------------------------------- /lib/layui/images/face/60.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/60.gif -------------------------------------------------------------------------------- /lib/layui/images/face/61.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/61.gif -------------------------------------------------------------------------------- /lib/layui/images/face/62.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/62.gif -------------------------------------------------------------------------------- /lib/layui/images/face/63.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/63.gif -------------------------------------------------------------------------------- /lib/layui/images/face/64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/64.gif -------------------------------------------------------------------------------- /lib/layui/images/face/65.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/65.gif -------------------------------------------------------------------------------- /lib/layui/images/face/66.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/66.gif -------------------------------------------------------------------------------- /lib/layui/images/face/67.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/67.gif -------------------------------------------------------------------------------- /lib/layui/images/face/68.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/68.gif -------------------------------------------------------------------------------- /lib/layui/images/face/69.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/69.gif -------------------------------------------------------------------------------- /lib/layui/images/face/70.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/70.gif -------------------------------------------------------------------------------- /lib/layui/images/face/71.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/images/face/71.gif -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/fonts/fontawesome-webfont.woff -------------------------------------------------------------------------------- /fonts/fontawesome-webfont.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/fonts/fontawesome-webfont.woff2 -------------------------------------------------------------------------------- /lib/layui_ext/dtree/font/dtreefont.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui_ext/dtree/font/dtreefont.eot -------------------------------------------------------------------------------- /lib/layui_ext/dtree/font/dtreefont.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui_ext/dtree/font/dtreefont.ttf -------------------------------------------------------------------------------- /lib/layui_ext/dtree/font/dtreefont.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui_ext/dtree/font/dtreefont.woff -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/css/modules/layer/default/icon.png -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/icon-ext.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/css/modules/layer/default/icon-ext.png -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-0.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/css/modules/layer/default/loading-0.gif -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-1.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/css/modules/layer/default/loading-1.gif -------------------------------------------------------------------------------- /lib/layui/css/modules/layer/default/loading-2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/h-gxi/hg-layui-admin-ui/HEAD/lib/layui/css/modules/layer/default/loading-2.gif -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Build and Release Folders 2 | bin-debug/ 3 | bin-release/ 4 | [Oo]bj/ 5 | [Bb]in/ 6 | 7 | # Other files and folders 8 | .settings/ 9 | 10 | # Executables 11 | *.swf 12 | *.air 13 | *.ipa 14 | *.apk 15 | 16 | # Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties` 17 | # should NOT be excluded as they contain compiler settings and other important 18 | # information for Eclipse / Flash Builder. 19 | -------------------------------------------------------------------------------- /config/skin.json: -------------------------------------------------------------------------------- 1 | { 2 | "code": 0, 3 | "data":[ 4 | { 5 | "header_bgcolor":"#0078D7", 6 | "menu_bgcolor":"#344058", 7 | "menu_bgcolor_this":"#11578a", 8 | "menu_border_color":"#FF5722" 9 | }, 10 | { 11 | "header_bgcolor":"#1aa094", 12 | "menu_bgcolor":"#2f4056", 13 | "menu_bgcolor_this":"#20645e", 14 | "menu_border_color":"#FF5722" 15 | }, 16 | { 17 | "header_bgcolor":"#f03211", 18 | "menu_bgcolor":"#1f1f1f", 19 | "menu_bgcolor_this":"#9d2914", 20 | "menu_border_color":"#009688" 21 | }, 22 | { 23 | "header_bgcolor":"#f0118c", 24 | "menu_bgcolor":"#3f0a21", 25 | "menu_bgcolor_this":"#9c125e", 26 | "menu_border_color":"#009688" 27 | } 28 | ] 29 | } -------------------------------------------------------------------------------- /lib/Scrollbar/jquery.scrollbar.css: -------------------------------------------------------------------------------- 1 | .scrollBox{ 2 | float:left; 3 | overflow:auto; 4 | } 5 | .scrollBox:nth-of-type(2n){ 6 | margin-right:10px; 7 | } 8 | .scrollBox:nth-of-type(3), 9 | .scrollBox:nth-of-type(4){ 10 | margin-top:0; 11 | } 12 | .zl-scrollBarBox{ 13 | height:100%; 14 | position:absolute; 15 | } 16 | .zl-scrollBar{ 17 | position:absolute; 18 | left:0; 19 | top:0; 20 | /* background:#848484; */ 21 | transition:background 0.3s; 22 | } 23 | .zl-scrollBarBackground{ 24 | background:#848484; 25 | } 26 | .zl-scrollBar.zl-verticalBar{ 27 | min-height:10px; 28 | } 29 | .zl-scrollBar.zl-horizontalBar{ 30 | min-width:10px; 31 | } 32 | .zl-scrollBar:hover{ 33 | background:#848484; 34 | } 35 | .zl-scrollContentDiv{ 36 | position:relative !important; 37 | width:100% !important; 38 | height:100% !important; 39 | padding:0 !important; 40 | margin:0 !important; 41 | top:0; 42 | left:0; 43 | } -------------------------------------------------------------------------------- /lib/layui/css/modules/code.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | 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} -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 韩光锡 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/code.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;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,""")),c.html('
  1. '+o.replace(/[\r\t\n]+/g,"
  2. ")+"
"),c.find(">.layui-code-h3")[0]||c.prepend('

'+(c.attr("lay-title")||e.title||"code")+(e.about?'layui.code':"")+"

");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"); -------------------------------------------------------------------------------- /css/style.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | 3 | /* =========================登录页样式.开始======================= */ 4 | .layui-login {background: url("../images/login.jpg");background-attachment: fixed;background-position: center top;background-repeat: no-repeat;background-size: cover;text-align: center;} 5 | .login-wrap{ width:400px; margin:9% auto 0px auto; background:#fff; padding:20px 0 40px 0} 6 | .login-logo{ margin:0 auto 10px; text-indent:-9999em; width:160px; height:42px; background:url("../Images/logo2.png") no-repeat; } 7 | .login-form .col{ position:relative; padding:10px 0; } 8 | .login-form .col .icon{ position:absolute; display:block; top:24px; left:10px; width:14px; height:14px; background:url("../Images/skin_icons.png") no-repeat; cursor:pointer; } 9 | .login-form .col .icon.user{ background-position:0 -140px; } 10 | .login-form .col .icon.pwd{ background-position:-28px -140px; } 11 | .login-form .col .login-input{ display:block; padding:5px 10px 5px 34px; background:#fff; border:0; border-radius:3px; font-size:16px; line-height:32px; *line-height:30px; height:32px; width:293px; color:#333; border:1px #dedede solid } 12 | .login-form .col .login-btn{ display:block; padding:5px 0; font-size:18px; color:#fff; width:100%; line-height:28px; height:42px; background:#009688; border:0; border-radius:3px; letter-spacing:.5em; cursor:pointer; } 13 | /* ==========================登录页样式.结束======================== */ 14 | 15 | -------------------------------------------------------------------------------- /lib/nprogress/nprogress.css: -------------------------------------------------------------------------------- 1 | /* Make clicks pass-through */ 2 | #nprogress { 3 | pointer-events: none; 4 | } 5 | 6 | #nprogress .bar { 7 | background: #29d; 8 | 9 | position: fixed; 10 | z-index: 1031; 11 | top: 0; 12 | left: 0; 13 | 14 | width: 100%; 15 | height: 2px; 16 | } 17 | 18 | /* Fancy blur effect */ 19 | #nprogress .peg { 20 | display: block; 21 | position: absolute; 22 | right: 0px; 23 | width: 100px; 24 | height: 100%; 25 | box-shadow: 0 0 10px #29d, 0 0 5px #29d; 26 | opacity: 1.0; 27 | 28 | -webkit-transform: rotate(3deg) translate(0px, -4px); 29 | -ms-transform: rotate(3deg) translate(0px, -4px); 30 | transform: rotate(3deg) translate(0px, -4px); 31 | } 32 | 33 | /* Remove these to get rid of the spinner */ 34 | #nprogress .spinner { 35 | display: block; 36 | position: fixed; 37 | z-index: 1031; 38 | top: 15px; 39 | right: 15px; 40 | } 41 | 42 | #nprogress .spinner-icon { 43 | width: 18px; 44 | height: 18px; 45 | box-sizing: border-box; 46 | 47 | border: solid 2px transparent; 48 | border-top-color: #29d; 49 | border-left-color: #29d; 50 | border-radius: 50%; 51 | 52 | -webkit-animation: nprogress-spinner 400ms linear infinite; 53 | animation: nprogress-spinner 400ms linear infinite; 54 | } 55 | 56 | .nprogress-custom-parent { 57 | overflow: hidden; 58 | position: relative; 59 | } 60 | 61 | .nprogress-custom-parent #nprogress .spinner, 62 | .nprogress-custom-parent #nprogress .bar { 63 | position: absolute; 64 | } 65 | 66 | @-webkit-keyframes nprogress-spinner { 67 | 0% { -webkit-transform: rotate(0deg); } 68 | 100% { -webkit-transform: rotate(360deg); } 69 | } 70 | @keyframes nprogress-spinner { 71 | 0% { transform: rotate(0deg); } 72 | 100% { transform: rotate(360deg); } 73 | } 74 | 75 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/laytpl.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var r={open:"{{",close:"}}"},c={exp:function(e){return new RegExp(e,"g")},query:function(e,c,t){var o=["#([\\s\\S])+?","([^{#}])*?"][e||0];return n((c||"")+r.open+o+r.close+(t||""))},escape:function(e){return String(e||"").replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(//g,">").replace(/'/g,"'").replace(/"/g,""")},error:function(e,r){var c="Laytpl Error:";return"object"==typeof console&&console.error(c+e+"\n"+(r||"")),c+e}},n=c.exp,t=function(e){this.tpl=e};t.pt=t.prototype,window.errors=0,t.pt.parse=function(e,t){var o=this,p=e,a=n("^"+r.open+"#",""),l=n(r.close+"$","");e=e.replace(/\s+|\r|\t|\n/g," ").replace(n(r.open+"#"),r.open+"# ").replace(n(r.close+"}"),"} "+r.close).replace(/\\/g,"\\\\").replace(n(r.open+"!(.+?)!"+r.close),function(e){return e=e.replace(n("^"+r.open+"!"),"").replace(n("!"+r.close),"").replace(n(r.open+"|"+r.close),function(e){return e.replace(/(.)/g,"\\$1")})}).replace(/(?="|')/g,"\\").replace(c.query(),function(e){return e=e.replace(a,"").replace(l,""),'";'+e.replace(/\\/g,"")+';view+="'}).replace(c.query(1),function(e){var c='"+(';return e.replace(/\s/g,"")===r.open+r.close?"":(e=e.replace(n(r.open+"|"+r.close),""),/^=/.test(e)&&(e=e.replace(/^=/,""),c='"+_escape_('),c+e.replace(/\\/g,"")+')+"')}),e='"use strict";var view = "'+e+'";return view;';try{return o.cache=e=new Function("d, _escape_",e),e(t,c.escape)}catch(u){return delete o.cache,c.error(u,p)}},t.pt.render=function(e,r){var n,t=this;return e?(n=t.cache?t.cache(e,c.escape):t.parse(t.tpl,e),r?void r(n):n):c.error("no data")};var o=function(e){return"string"!=typeof e?c.error("Template not found"):new t(e)};o.config=function(e){e=e||{};for(var c in e)r[c]=e[c]},o.v="1.2.0",e("laytpl",o)}); -------------------------------------------------------------------------------- /404.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 17 | 41 | 42 | 43 | 44 |
45 |
46 |
47 |

48 |

页面或者数据被 纸飞机 运到火星了,啥都看不到了…

49 |
50 |
51 |
52 | 53 | 54 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/flow.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="加载更多",h=l('
'+d+"
");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;su)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)}); -------------------------------------------------------------------------------- /login.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 后台登录 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 19 | 20 | 21 | 22 |
23 | 39 | 42 | 45 |
46 | 59 | 60 | 61 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/rate.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(e){"use strict";var a=layui.jquery,i={config:{},index:layui.rate?layui.rate.index+1e4:0,set:function(e){var i=this;return i.config=a.extend({},i.config,e),i},on:function(e,a){return layui.onevent.call(this,n,e,a)}},l=function(){var e=this,a=e.config;return{setvalue:function(a){e.setvalue.call(e,a)},config:a}},n="rate",t="layui-rate",o="layui-icon-rate",s="layui-icon-rate-solid",u="layui-icon-rate-half",r="layui-icon-rate-solid layui-icon-rate-half",c="layui-icon-rate-solid layui-icon-rate",f="layui-icon-rate layui-icon-rate-half",v=function(e){var l=this;l.index=++i.index,l.config=a.extend({},l.config,i.config,e),l.render()};v.prototype.config={length:5,text:!1,readonly:!1,half:!1,value:0,theme:""},v.prototype.render=function(){var e=this,i=e.config,l=i.theme?'style="color: '+i.theme+';"':"";i.elem=a(i.elem),parseInt(i.value)!==i.value&&(i.half||(i.value=Math.ceil(i.value)-i.value<.5?Math.ceil(i.value):Math.floor(i.value)));for(var n='"+(i.text?''+i.value+"星":"")+"";var c=i.elem,f=c.next("."+t);f[0]&&f.remove(),e.elemTemp=a(n),i.span=e.elemTemp.next("span"),i.setText&&i.setText(i.value),c.html(e.elemTemp),c.addClass("layui-inline"),i.readonly||e.action()},v.prototype.setvalue=function(e){var a=this,i=a.config;i.value=e,a.render()},v.prototype.action=function(){var e=this,i=e.config,l=e.elemTemp,n=l.find("i").width();l.children("li").each(function(e){var t=e+1,v=a(this);v.on("click",function(e){if(i.value=t,i.half){var o=e.pageX-a(this).offset().left;o<=n/2&&(i.value=i.value-.5)}i.text&&l.next("span").text(i.value+"星"),i.choose&&i.choose(i.value),i.setText&&i.setText(i.value)}),v.on("mousemove",function(e){if(l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+t+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half){var c=e.pageX-a(this).offset().left;c<=n/2&&v.children("i").addClass(u).removeClass(s)}}),v.on("mouseleave",function(){l.find("i").each(function(){a(this).addClass(o).removeClass(r)}),l.find("i:lt("+Math.floor(i.value)+")").each(function(){a(this).addClass(s).removeClass(f)}),i.half&&parseInt(i.value)!==i.value&&l.children("li:eq("+Math.floor(i.value)+")").children("i").addClass(u).removeClass(c)})})},v.prototype.events=function(){var e=this;e.config},i.render=function(e){var a=new v(e);return l.call(a)},e(n,i)}); -------------------------------------------------------------------------------- /user.json: -------------------------------------------------------------------------------- 1 | { 2 | "code": 0 3 | ,"msg": "" 4 | ,"count": 3000000 5 | ,"data": [{ 6 | "id": "10001" 7 | ,"username": "杜甫" 8 | ,"email": "xianxin@layui.com" 9 | ,"sex": "男" 10 | ,"city": "浙江杭州" 11 | ,"sign": "点击此处,显示更多。当内容超出时,点击单元格会自动显示更多内容。" 12 | ,"experience": "116" 13 | ,"ip": "192.168.0.8" 14 | ,"logins": "108" 15 | ,"joinTime": "2016-10-14" 16 | ,"dw_xinzhi":{ 17 | "id":90 18 | ,"titel":"小学" 19 | } 20 | }, { 21 | "id": "10002" 22 | ,"username": "李白" 23 | ,"email": "xianxin@layui.com" 24 | ,"sex": "男" 25 | ,"city": "浙江杭州" 26 | ,"sign": "君不见,黄河之水天上来,奔流到海不复回。 君不见,高堂明镜悲白发,朝如青丝暮成雪。 人生得意须尽欢,莫使金樽空对月。 天生我材必有用,千金散尽还复来。 烹羊宰牛且为乐,会须一饮三百杯。 岑夫子,丹丘生,将进酒,杯莫停。 与君歌一曲,请君为我倾耳听。(倾耳听 一作:侧耳听) 钟鼓馔玉不足贵,但愿长醉不复醒。(不足贵 一作:何足贵;不复醒 一作:不愿醒/不用醒) 古来圣贤皆寂寞,惟有饮者留其名。(古来 一作:自古;惟 通:唯) 陈王昔时宴平乐,斗酒十千恣欢谑。 主人何为言少钱,径须沽取对君酌。 五花马,千金裘,呼儿将出换美酒,与尔同销万古愁。" 27 | ,"experience": "12" 28 | ,"ip": "192.168.0.8" 29 | ,"logins": "106" 30 | ,"joinTime": "2016-10-14" 31 | ,"LAY_CHECKED": true 32 | ,"dw_xinzhi":{ 33 | "id":90 34 | ,"titel":"小学" 35 | } 36 | }, { 37 | "id": "10003" 38 | ,"username": "王勃" 39 | ,"email": "xianxin@layui.com" 40 | ,"sex": "男" 41 | ,"city": "浙江杭州" 42 | ,"sign": "人生恰似一场修行" 43 | ,"experience": "65" 44 | ,"ip": "192.168.0.8" 45 | ,"logins": "106" 46 | ,"joinTime": "2016-10-14" 47 | ,"dw_xinzhi":{ 48 | "id":90 49 | ,"titel":"小学" 50 | } 51 | }, { 52 | "id": "10004" 53 | ,"username": "李清照" 54 | ,"email": "xianxin@layui.com" 55 | ,"sex": "女" 56 | ,"city": "浙江杭州" 57 | ,"sign": "人生恰似一场修行" 58 | ,"experience": "666" 59 | ,"ip": "192.168.0.8" 60 | ,"logins": "106" 61 | ,"joinTime": "2016-10-14" 62 | ,"dw_xinzhi":{ 63 | "id":90 64 | ,"titel":"小学" 65 | } 66 | }, { 67 | "id": "10005" 68 | ,"username": "冰心" 69 | ,"email": "xianxin@layui.com" 70 | ,"sex": "女" 71 | ,"city": "浙江杭州" 72 | ,"sign": "人生恰似一场修行" 73 | ,"experience": "86" 74 | ,"ip": "192.168.0.8" 75 | ,"logins": "106" 76 | ,"joinTime": "2016-10-14" 77 | ,"dw_xinzhi":{ 78 | "id":90 79 | ,"titel":"小学" 80 | } 81 | }, { 82 | "id": "10006" 83 | ,"username": "贤心" 84 | ,"email": "xianxin@layui.com" 85 | ,"sex": "男" 86 | ,"city": "浙江杭州" 87 | ,"sign": "人生恰似一场修行" 88 | ,"experience": "12" 89 | ,"ip": "192.168.0.8" 90 | ,"logins": "106" 91 | ,"joinTime": "2016-10-14" 92 | ,"dw_xinzhi":{ 93 | "id":90 94 | ,"titel":"小学" 95 | } 96 | }, { 97 | "id": "10007" 98 | ,"username": "贤心" 99 | ,"email": "xianxin@layui.com" 100 | ,"sex": "男" 101 | ,"city": "浙江杭州" 102 | ,"sign": "人生恰似一场修行" 103 | ,"experience": "16" 104 | ,"ip": "192.168.0.8" 105 | ,"logins": "106" 106 | ,"joinTime": "2016-10-14" 107 | ,"dw_xinzhi":{ 108 | "id":90 109 | ,"titel":"小学" 110 | } 111 | }, { 112 | "id": "10008" 113 | ,"username": "贤心" 114 | ,"email": "xianxin@layui.com" 115 | ,"sex": "男" 116 | ,"city": "浙江杭州" 117 | ,"sign": "人生恰似一场修行" 118 | ,"experience": "106" 119 | ,"ip": "192.168.0.8" 120 | ,"logins": "106" 121 | ,"joinTime": "2016-10-14" 122 | ,"dw_xinzhi":{ 123 | "id":90 124 | ,"titel":"小学" 125 | } 126 | }] 127 | } -------------------------------------------------------------------------------- /lib/layui/lay/modules/util.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var e=layui.$,i={fixbar:function(t){var i,n,a="layui-fixbar",o="layui-fixbar-top",r=e(document),l=e("body");t=e.extend({showHeight:200},t),t.bar1=t.bar1===!0?"":t.bar1,t.bar2=t.bar2===!0?"":t.bar2,t.bgcolor=t.bgcolor?"background-color:"+t.bgcolor:"";var c=[t.bar1,t.bar2,""],g=e(['"].join("")),s=g.find("."+o),u=function(){var e=r.scrollTop();e>=t.showHeight?i||(s.show(),i=1):i&&(s.hide(),i=0)};e("."+a)[0]||("object"==typeof t.css&&g.css(t.css),l.append(g),u(),g.find("li").on("click",function(){var i=e(this),n=i.attr("lay-type");"top"===n&&e("html,body").animate({scrollTop:0},200),t.click&&t.click.call(this,n)}),r.on("scroll",function(){clearTimeout(n),n=setTimeout(function(){u()},100)}))},countdown:function(t,e,i){var n=this,a="function"==typeof e,o=new Date(t).getTime(),r=new Date(!e||a?(new Date).getTime():e).getTime(),l=o-r,c=[Math.floor(l/864e5),Math.floor(l/36e5)%24,Math.floor(l/6e4)%60,Math.floor(l/1e3)%60];a&&(i=e);var g=setTimeout(function(){n.countdown(t,r+1e3,i)},1e3);return i&&i(l>0?c:[0,0,0,0],e,g),l<=0&&clearTimeout(g),g},timeAgo:function(t,e){var i=this,n=[[],[]],a=(new Date).getTime()-new Date(t).getTime();return a>6912e5?(a=new Date(t),n[0][0]=i.digit(a.getFullYear(),4),n[0][1]=i.digit(a.getMonth()+1),n[0][2]=i.digit(a.getDate()),e||(n[1][0]=i.digit(a.getHours()),n[1][1]=i.digit(a.getMinutes()),n[1][2]=i.digit(a.getSeconds())),n[0].join("-")+" "+n[1].join(":")):a>=864e5?(a/1e3/60/60/24|0)+"天前":a>=36e5?(a/1e3/60/60|0)+"小时前":a>=12e4?(a/1e3/60|0)+"分钟前":a<0?"未来":"刚刚"},digit:function(t,e){var i="";t=String(t),e=e||2;for(var n=t.length;n/g,">").replace(/'/g,"'").replace(/"/g,""")},event:function(t,n,a){n=i.event[t]=e.extend(!0,i.event[t],n)||{},e("body").on(a||"click","*["+t+"]",function(){var i=e(this),a=i.attr(t);n[a]&&n[a].call(this,i)})}};!function(t,e,i){"$:nomunge";function n(){a=e[l](function(){o.each(function(){var e=t(this),i=e.width(),n=e.height(),a=t.data(this,g);(i!==a.w||n!==a.h)&&e.trigger(c,[a.w=i,a.h=n])}),n()},r[s])}var a,o=t([]),r=t.resize=t.extend(t.resize,{}),l="setTimeout",c="resize",g=c+"-special-event",s="delay",u="throttleWindow";r[s]=250,r[u]=!0,t.event.special[c]={setup:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.add(e),t.data(this,g,{w:e.width(),h:e.height()}),1===o.length&&n()},teardown:function(){if(!r[u]&&this[l])return!1;var e=t(this);o=o.not(e),e.removeData(g),o.length||clearTimeout(a)},add:function(e){function n(e,n,o){var r=t(this),l=t.data(this,g)||{};l.w=n!==i?n:r.width(),l.h=o!==i?o:r.height(),a.apply(this,arguments)}if(!r[u]&&this[l])return!1;var a;return t.isFunction(e)?(a=e,n):(a=e.handler,void(e.handler=n))}}}(e,window),t("util",i)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/carousel.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;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(['",'"].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(['
    ',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("")}),i.join("")}(),"
"].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 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
27 |
28 |
29 |
30 |
31 | 32 |
33 | 36 |
37 |
38 | 41 |
42 |
43 | 46 |
47 |
48 | 49 |
50 | 51 |
52 | 55 |
56 |
57 | 60 |
61 |
62 | 65 |
66 |
67 |
68 |
69 |
70 |
71 |
72 | //xcity城市插件 基于于jquery与layui form 模块,使用之前先确认这两者是否引入 
73 | //插件文件为 xcity.js,引入
74 | id所有标签需要有class x-city  id没有根据自己需要定义
75 | select lay-filter 属性值 为必须 "province/city/area"
76 | //初始化
77 | $('#x-city').xcity();
78 | //传默认值 
79 | $('#x-city').xcity('广东','广州市','东山区');
80 |         
81 |
82 |
83 |
84 | 85 | 97 | 98 | 99 | -------------------------------------------------------------------------------- /Tree.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 32 | 33 | 34 | 35 |
36 |
37 |
38 | 树形组件 39 | 40 | 41 | 42 | 43 | 44 |
45 |
46 |
47 | 49 |
50 |
51 |
52 |
53 |
54 |
55 |
56 | 57 | 95 | 96 | -------------------------------------------------------------------------------- /data1.json: -------------------------------------------------------------------------------- 1 | { 2 | "total": 100, 3 | "rows": [ 4 | { 5 | "id": 10000, 6 | "username": "user-0", 7 | "sex": "女", 8 | "city": "城市-0", 9 | "sign": "签名-0", 10 | "experience": 255, 11 | "logins": 24, 12 | "wealth": 82830700, 13 | "classify": "作家", 14 | "score": 57, 15 | "flag": 0 16 | }, 17 | { 18 | "id": 10001, 19 | "username": "user-1", 20 | "sex": "男", 21 | "city": "城市-1", 22 | "sign": "签名-1", 23 | "experience": 884, 24 | "logins": 58, 25 | "wealth": 64928690, 26 | "classify": "词人", 27 | "score": 27, 28 | "flag": 1 29 | }, 30 | { 31 | "id": 10002, 32 | "username": "user-2", 33 | "sex": "女", 34 | "city": "城市-2", 35 | "sign": "签名-2", 36 | "experience": 650, 37 | "logins": 77, 38 | "wealth": 6298078, 39 | "classify": "酱油", 40 | "score": 31, 41 | "flag": 0 42 | }, 43 | { 44 | "id": 10003, 45 | "username": "user-3", 46 | "sex": "女", 47 | "city": "城市-3", 48 | "sign": "签名-3", 49 | "experience": 362, 50 | "logins": 157, 51 | "wealth": 37117017, 52 | "classify": "诗人", 53 | "score": 68, 54 | "flag": 1 55 | }, 56 | { 57 | "id": 10004, 58 | "username": "user-4", 59 | "sex": "男", 60 | "city": "城市-4", 61 | "sign": "签名-4", 62 | "experience": 807, 63 | "logins": 51, 64 | "wealth": 76263262, 65 | "classify": "作家", 66 | "score": 6, 67 | "flag": 0 68 | }, 69 | { 70 | "id": 10005, 71 | "username": "user-5", 72 | "sex": "女", 73 | "city": "城市-5", 74 | "sign": "签名-5", 75 | "experience": 173, 76 | "logins": 68, 77 | "wealth": 60344147, 78 | "classify": "作家", 79 | "score": 87, 80 | "flag": 0 81 | }, 82 | { 83 | "id": 10006, 84 | "username": "user-6", 85 | "sex": "女", 86 | "city": "城市-6", 87 | "sign": "签名-6", 88 | "experience": 982, 89 | "logins": 37, 90 | "wealth": 57768166, 91 | "classify": "作家", 92 | "score": 34, 93 | "flag": 0 94 | }, 95 | { 96 | "id": 10007, 97 | "username": "user-7", 98 | "sex": "男", 99 | "city": "城市-7", 100 | "sign": "签名-7", 101 | "experience": 727, 102 | "logins": 150, 103 | "wealth": 82030578, 104 | "classify": "作家", 105 | "score": 28, 106 | "flag": 0 107 | }, 108 | { 109 | "id": 10008, 110 | "username": "user-8", 111 | "sex": "男", 112 | "city": "城市-8", 113 | "sign": "签名-8", 114 | "experience": 951, 115 | "logins": 133, 116 | "wealth": 16503371, 117 | "classify": "词人", 118 | "score": 14, 119 | "flag": 0 120 | }, 121 | { 122 | "id": 10009, 123 | "username": "user-9", 124 | "sex": "女", 125 | "city": "城市-9", 126 | "sign": "签名-9", 127 | "experience": 484, 128 | "logins": 25, 129 | "wealth": 86801934, 130 | "classify": "词人", 131 | "score": 75, 132 | "flag": 0 133 | } 134 | ] 135 | } -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # HG框架简介 2 | HG-Layui-UI框架,是基于layui最新版UI搭建的一套通用后台管理框架,借鉴了市面上各大主流框架风格,采用iframe标签页实现,保留了传统开发模式的简单实用性。 3 | 为快速开发减少重复代码量,框架内部admin.js中封装了常用的组件,包括弹窗提示、日期组件、表单监听、表单验证、数据表格组件、树形组件和request获取数据方法等。 4 | 5 | # 2020-08-10更新 6 | * 修复360浏览器兼容IE模式下无法加载问题。 7 | * hg.datatable,toolbar中增加class选项,可自定义按钮样式。 8 | * 新增三方组件使用案例,dtree和treeTable组件。 9 | 10 | # 2020-03-23更新 11 | * HG-Layui-UI框架升级1.1版。 12 | * 移除原有图标库,集成Font Awesome V4.7字体图标库。 13 | * 优化了页面样式,框架中全部替换为使用新的图标样式。 14 | * 增加了皮肤设置,config文件夹下skin.json中设置配色,字号大小目前只修改tabs标签文字大小。 15 | * 修复火狐浏览器打开皮肤设置出现闪屏问题。 16 | 17 | # 2020-02-24更新 18 | * 增加hg-event自定义click事件。 19 | * 增加fullscreen全屏,配合hg-event使用。 20 | * 修复iframe中无法使用全屏问题。 21 | * 修复lay-height='full'与layui-col冲突问题。 22 | * 增加lay-height='auto'在与多个同级元素时使用,根据下一个元素计算高度。 23 | * 修复fullscreen全屏模式下,按Esc键退出全屏后,全屏图标显示错误问题。 24 | * 增加树形组件不显示多选框时,选中一个节点高亮显示,同时支持tree.getChecked()获得选中节点。 25 | * 加载admin.js初始化form表单组件。 26 | * 修改datatable,监听行工具事件,增加返回参数(obj, field),field为当前点击单元格id。 27 | * 增加datatable,行单击触发事件,onrowclick(callback)。 28 | 29 | # 2020-01-03更新 30 | * 修复使用scrollBar滚动条插件时宽度不对齐问题。 31 | * 增加tabs标签页向左向右滚动按钮。 32 | * 修改兼容小屏幕样式,左侧菜单伸缩状态下展开列表仅显示图标。 33 | * 伸缩左侧菜单时取消折叠菜单操作。 34 | * 增加hg.table.datatable已知数据加载,url参数直接赋值Array对象。 35 | * 增加hg.msghide(content, time),弹出半透明提示层。 36 | * 增加hg.load(callbackmething),弹出加载层。 37 | * 增加HG使用文档页面。 38 | 39 | # 2019-12-19更新 40 | * 修改官方Layui.tree树形组件源码,增加懒加载模式,data参数lazy: true 开启子节点懒加载方式,需要配合spread事件使用。 41 | * 增加spread事件,lazy为true时,展开节点时触发该事件,obj.elem:节点元素,obj.state:状态open/close,obj.data:节点数据。 42 | * 增加tree.lazytree(treeid, elem, children)方法,懒加载子节点数据展示。 43 | * 增加hg.table.datatable(layid, 'resize')方法,重置表格大小。 44 | * 增加hg.ontab(layfilter, _callback)方法,监听Tab切换事件。 45 | * 增加datatable实例化对象扩展方法,table.getSelected() 获取选中行,table.reload(where) 重载表格,table.resize() 重置表格大小。 46 | * 增加hg.tree.datatree(layid, data, showCheckbox, showLine, accordion, onlyIconControl, isJump)方法,基本树形组件。 47 | * 增加datatree实例对象事件与方法onclick() oncheck() onspread() getChecked() setChecked() reload()。 48 | * 增加spread()事件中this.lazytree(data)方法,触发懒加载子节点。 49 | 50 | 51 | ## 2019-11-01更新 52 | * 引用layui-v2.5.5最新版。 53 | * 增加主页面布局,由顶部layui-header、左侧菜单layui-left-nav和内容展示区域layui-page-content组成。 54 | * 增加顶部layui-header,LOGO和标题展示,顶部一级菜单展示。 55 | * 增加左侧菜单layui-left-nav,支持3级菜单,默认手风琴展开模式。 56 | * 增加hg.add_tab、hg.del_tab、hg.add_lay_tab方法,用来管理tabs页。 57 | * 增加顶部菜单与左侧菜单联动效果,切换tabs页时自动定位当前菜单项。 58 | * 增加tabs页选项卡操作,刷新当前页面,关闭其他页面,关闭全部页面。 59 | * 增加侧边伸缩按钮,在选项卡栏最左侧,改变左侧菜单展示状态。 60 | * 引用jquery-1.9.1插件,依赖第三方jquery插件时用到。 61 | * 引用jquery.scrollBar.js插件,美化滚动条样式,class="scrollBox"。 62 | * 引用jquery.NProgress.js插件,请求进度条样式,iframe页面加载时显示。 63 | * 修改layui默认样式颜色,默认主题以蓝色为主。 64 | * 增加hg.msg(content, title)方法,弹出提示框。 65 | * 增加hg.confirm(content, title, callbackmething)方法,弹出询问框。 66 | * 增加hg.open(title, url, w, h, full)方法,打开弹出层。 67 | * 增加hg.close()方法,关闭弹出层。 68 | * 增加hg.base_reload()方法,刷新父窗口。 69 | * 增加hg.datetime(btime, etime, options)方法,基本日期框选择。 70 | * 增加hg.datetime2(elem, type, min, max)方法,组合日期框选择。 71 | * 增加hg.getdate(type, e)方法,获取日期时间。 72 | * 增加hg.request(url, data, type, contentType, dataType, async, funSuccess)方法,网络请求。 73 | * 增加hg.form.onsubmit(layfilter, _callback)方法,监听表单提交事件。 74 | * 增加hg.form.onswitch(layfilter, _callback)方法,监听switch操作事件。 75 | * 增加hg.form.verify(options)方法,表单自定义验证规则。 76 | * 增加hg.table.datatable(layid, title, url, where, cols, toolbar, page, height, defaultToolbar, totalRow)方法,基本数据表格。 77 | * 增加hg.table.toolbaronclick(layid, index)方法,监听toolbar自定义事件。 78 | * 增加datatable,监听行工具事件,操作行lay-event中定义值为触发函数名。 79 | * 增加hg.table.printall(cols, data)方法,打印任意数据,defaultToolbar='printall'。 80 | * 增加hg.table.exportfile(layid, data)方法,导出任意数据,defaultToolbar='exportsall'。 81 | * 增加hg.table.datatablestatus,状态属性集合。 82 | * 修改datatable,支持easyui数据格式解析方式,包括分页参数page和rows。 83 | * 修改datatable,工具条toolbar参数添加handler: function (obj, row)匿名函数方式。 84 | * 增加hg.table.datatable(layid, 'reload', where)方法,重载表格。 85 | * 增加hg.table.getSelected(layid, 'getSelected')方法,获取选中行。 86 | * 添加lay-height全屏高度设置属性,lay-height='full','full'='full-200'。 87 | 88 | ![输入图片说明](https://images.gitee.com/uploads/images/2019/1207/203434_c07033c1_1282578.png "主页面展示") 89 | 90 | 官方演示地址:[http://h_gxi.gitee.io/hg-layui-admin-ui/](http://h_gxi.gitee.io/hg-layui-admin-ui/) -------------------------------------------------------------------------------- /component/auxiliar/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
31 |
32 |
33 |
34 |
引用区块
35 |
36 |
这个貌似不用多介绍,因为你已经在太多的地方都看到
37 | 38 |
39 | 猿强,则国强。国强,则猿更强! 40 |
——孟子(好囖。。其实这特喵的是我说的) 41 |
42 |
43 |
44 |
45 |
字段集区块
46 |
47 | 48 |
49 | 爱好 50 |
51 | 你可以在这里放任何内容,比如表单神马的 52 |
53 |
54 | 55 |
56 | 57 |
58 | 带标题的横线 59 |
60 | 61 |
62 |
63 |
64 |
分割线
65 |
66 | 67 | 默认分割线 68 |
69 | 70 | 赤色分割线 71 |
72 | 73 | 橙色分割线 74 |
75 | 76 | 墨绿分割线 77 |
78 | 79 | 青色分割线 80 |
81 | 82 | 蓝色分割线 83 |
84 | 85 | 黑色分割线 86 |
87 | 88 | 灰色分割线 89 |
90 | 91 |
92 |
93 |
94 |
纯圆角
95 |
96 | 97 |
98 | 99 |
100 | 101 |
102 |
103 |
104 |
105 |
106 | 107 | 112 | 113 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/laypage.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(function(e){"use strict";var a=document,t="getElementById",n="getElementsByTagName",i="laypage",r="layui-disabled",u=function(e){var a=this;a.config=e||{},a.config.index=++s.index,a.render(!0)};u.prototype.type=function(){var e=this.config;if("object"==typeof e.elem)return void 0===e.elem.length?2:3},u.prototype.view=function(){var e=this,a=e.config,t=a.groups="groups"in a?0|a.groups:5;a.layout="object"==typeof a.layout?a.layout:["prev","page","next"],a.count=0|a.count,a.curr=0|a.curr||1,a.limits="object"==typeof a.limits?a.limits:[10,20,30,40,50],a.limit=0|a.limit||10,a.pages=Math.ceil(a.count/a.limit)||1,a.curr>a.pages&&(a.curr=a.pages),t<0?t=1:t>a.pages&&(t=a.pages),a.prev="prev"in a?a.prev:"上一页",a.next="next"in a?a.next:"下一页";var n=a.pages>t?Math.ceil((a.curr+(t>1?1:0))/(t>0?t:1)):1,i={prev:function(){return a.prev?''+a.prev+"":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push(''+(a.first||1)+"");var i=Math.floor((t-1)/2),r=n>1?a.curr-i:1,u=n>1?function(){var e=a.curr+(t-i-1);return e>a.pages?a.pages:e}():t;for(u-r2&&e.push('');r<=u;r++)r===a.curr?e.push('"+r+""):e.push(''+r+"");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1…'),0!==t&&e.push(''+(a.last||a.pages)+"")),e.join("")}(),next:function(){return a.next?''+a.next+"":""}(),count:'共 '+a.count+" 条",limit:function(){var e=['"}(),refresh:['','',""].join(""),skip:function(){return['到第','','页',""].join("")}()};return['
',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"
"].join("")},u.prototype.jump=function(e,a){if(e){var t=this,i=t.config,r=e.children,u=e[n]("button")[0],l=e[n]("input")[0],p=e[n]("select")[0],c=function(){var e=0|l.value.replace(/\s|\D/g,"");e&&(i.curr=e,t.render())};if(a)return c();for(var o=0,y=r.length;oi.pages||(i.curr=e,t.render())});p&&s.on(p,"change",function(){var e=this.value;i.curr*e>i.count&&(i.curr=Math.ceil(i.count/e)),i.limit=e,t.render()}),u&&s.on(u,"click",function(){c()})}},u.prototype.skip=function(e){if(e){var a=this,t=e[n]("input")[0];t&&s.on(t,"keyup",function(t){var n=this.value,i=t.keyCode;/^(37|38|39|40)$/.test(i)||(/\D/.test(n)&&(this.value=n.replace(/\D/,"")),13===i&&a.jump(e,!0))})}},u.prototype.render=function(e){var n=this,i=n.config,r=n.type(),u=n.view();2===r?i.elem&&(i.elem.innerHTML=u):3===r?i.elem.html(u):a[t](i.elem)&&(a[t](i.elem).innerHTML=u),i.jump&&i.jump(i,e);var s=a[t]("layui-laypage-"+i.index);n.jump(s),i.hash&&!e&&(location.hash="!"+i.hash+"="+i.curr),n.skip(s)};var s={render:function(e){var a=new u(e);return a.index},index:layui.laypage?layui.laypage.index+1e4:0,on:function(e,a,t){return e.attachEvent?e.attachEvent("on"+a,function(a){a.target=a.srcElement,t.call(e,a)}):e.addEventListener(a,t,!1),this}};e(i,s)}); -------------------------------------------------------------------------------- /lib/layui_ext/treeTable/eleTree.css: -------------------------------------------------------------------------------- 1 | /* #region tree */ 2 | .eleTree{ 3 | position: relative; 4 | } 5 | .eleTree-hide, 6 | .eleTree-search-hide{ 7 | display: none; 8 | } 9 | .eleTree-loadData{ 10 | width: 100%; 11 | height: 100%; 12 | position: absolute; 13 | z-index: 1; 14 | top: 0px; 15 | } 16 | .eleTree-loadData .layui-icon{ 17 | position: absolute; 18 | left: 50%; 19 | top: 50%; 20 | transform: translateX(-50%) translateY(-50%); 21 | } 22 | .eleTree-node-content{ 23 | cursor: pointer; 24 | height: 26px; 25 | line-height: 1.3; 26 | white-space: nowrap; 27 | } 28 | .eleTree-node-content:hover, 29 | .eleTree-node-content.eleTree-node-content-active{ 30 | background-color: #eee; 31 | } 32 | .eleTree-node-content-icon .layui-icon{ 33 | padding: 6px 3px; 34 | color: #c0c4cc; 35 | font-size: 12px; 36 | display: inline-block; 37 | transform: rotate(0deg); 38 | transition: transform .3s ease-in-out; 39 | } 40 | .eleTree-node-content-icon .layui-icon.icon-rotate{ 41 | transform: rotate(90deg); 42 | } 43 | .eleTree-node-content .layui-form-checkbox[lay-skin=primary] i{ 44 | width: 13px; 45 | height: 14px; 46 | line-height: 1.3; 47 | } 48 | .eleTree-node-content-label{ 49 | padding-left: 5px; 50 | } 51 | .eleTree-node-content-input{ 52 | width: 80px; 53 | border: 1px solid #e6e6e6; 54 | outline: 0; 55 | padding: 3px 5px; 56 | font-size: 12px; 57 | } 58 | 59 | /* 线条样式 */ 60 | .eleTree-node{ 61 | position: relative; 62 | } 63 | .eleTree-node .eleTree-node-verticalline{ 64 | position: absolute; 65 | width: 0; 66 | height: 100%; 67 | border: 1px dotted #ccc; 68 | z-index: 1; 69 | } 70 | .eleTree-node .eleTree-node-horizontalline{ 71 | position: absolute; 72 | height: 0; 73 | top: 13px; 74 | border: 1px dotted #ccc; 75 | z-index: 1; 76 | } 77 | 78 | /* checkbox第三种状态 */ 79 | input.eleTree-hideen[type=checkbox]{ 80 | display: none; 81 | } 82 | .eleTree-checkbox { 83 | height: auto!important; 84 | line-height: normal!important; 85 | min-height: 12px; 86 | border: none!important; 87 | margin-right: 0; 88 | padding-left: 18px; 89 | position: relative; 90 | display: inline-block; 91 | } 92 | .eleTree-checkbox i { 93 | left: 0; 94 | border: 1px solid #d2d2d2; 95 | font-size: 12px; 96 | border-radius: 2px; 97 | background-color: #fff; 98 | -webkit-transition: .1s linear; 99 | transition: .1s linear; 100 | position: absolute; 101 | top: 0; 102 | color: #fff; 103 | cursor: pointer; 104 | text-align: center; 105 | width: 13px; 106 | height: 14px; 107 | line-height: 1.3; 108 | } 109 | .eleTree-checkbox i:hover { 110 | border-color: #5FB878; 111 | } 112 | .eleTree-checkbox-checked i { 113 | border-color: #5FB878; 114 | background-color: #5FB878; 115 | color: #fff; 116 | } 117 | .eleTree-checkbox-line:after{ 118 | content: ""; 119 | position: relative; 120 | width: 8px; 121 | height: 1px; 122 | background-color: #fff; 123 | display: inline-block; 124 | top: -4px; 125 | } 126 | 127 | .eleTree-checkbox.eleTree-checkbox-disabled i{ 128 | cursor: not-allowed; 129 | background-color: #f2f6fc; 130 | border-color: #dcdfe6; 131 | color: #c2c2c2; 132 | } 133 | .eleTree-checkbox.eleTree-checkbox-disabled i.eleTree-checkbox-line:after{ 134 | background-color: #c2c2c2; 135 | } 136 | .eleTree-checkbox.eleTree-checkbox-disabled i:hover{ 137 | border-color: #dcdfe6; 138 | } 139 | 140 | #tree-menu{ 141 | margin: 0; 142 | padding: 2px; 143 | position: absolute; 144 | background: #f5f5f5; 145 | border: 1px solid #979797; 146 | box-shadow: 2px 2px 2px #999; 147 | display: none; 148 | z-index: 20181205; 149 | } 150 | #tree-menu li>a{ 151 | display: block; 152 | padding: 0 1em; 153 | text-decoration: none; 154 | width: auto; 155 | color: #000; 156 | white-space: nowrap; 157 | line-height: 2.4em; 158 | text-shadow: 1px 1px 0 #fff; 159 | border-radius: 1px; 160 | } 161 | #tree-menu li>a:hover{ 162 | background-color: #e8eff7; 163 | box-shadow: 0 0 2px #0a6aa1; 164 | } 165 | .tree-menu-bg{ 166 | background-color: #ccc; 167 | } 168 | /* #endregion */ -------------------------------------------------------------------------------- /component/badge/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
31 |
32 |
33 |
34 |
小徽章大家族
35 |
36 | 37 |
小圆点: 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 |

常规弧形徽章: 48 | 49 | 6 50 | 99 51 | 61728 52 | 53 | 54 | 绿 55 | 56 | 57 | 58 | 59 | 60 |

边框徽章: 61 | 62 | 6 63 | Hot 64 | 65 |

66 | 67 |
68 |
69 |
70 |
71 |
72 |
与其它元素的搭配
73 |
74 | 75 |
76 | 77 | 78 | 79 | 80 |

81 | 82 |
    <-- 小Tips:这里有没有发现,设置导航靠右对齐(或居中对齐)其实非常简单 --> 83 |
  • 84 | 控制台9 85 |
  • 86 |
  • 87 | 个人中心 88 |
  • 89 |
90 |
91 | 92 |
93 |
    94 |
  • 网站设置
  • 95 |
  • 用户管理
  • 96 |
  • 最新邮件99+
  • 97 |
98 |
99 |
100 | 101 |
102 |
103 |
104 |
105 |
106 | 107 | 113 | 114 | -------------------------------------------------------------------------------- /DataGrid-add.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 25 | 26 | 27 |
28 |
29 |
30 |
31 | 33 |
34 |
36 |
37 | 将会成为您唯一的登入名
38 |
39 |
40 | 42 |
43 |
45 |
46 |
47 | 49 |
50 |
52 |
6到16个字符
53 |
54 |
55 | 57 |
58 |
60 |
61 |
62 | 63 |
64 |
65 |
66 |
67 | 109 | 110 | 111 | -------------------------------------------------------------------------------- /lib/layui_ext/dtree/font/dtreefont.css: -------------------------------------------------------------------------------- 1 | @font-face { 2 | font-family: 'dtreefont'; 3 | src: url('dtreefont.eot?x3m8fp'); 4 | src: url('dtreefont.eot?x3m8fp#iefix') format('embedded-opentype'), 5 | url('dtreefont.ttf?x3m8fp') format('truetype'), 6 | url('dtreefont.woff?x3m8fp') format('woff'), 7 | url('dtreefont.svg?x3m8fp#dtreefont') format('svg'); 8 | font-weight: normal; 9 | font-style: normal; 10 | } 11 | 12 | [class^="dtree-icon-"], [class*=" dtree-icon-"] { 13 | /* use !important to prevent issues with browser extensions that change font */ 14 | font-family: 'dtreefont' !important; 15 | font-size: 16px; 16 | font-style: normal; 17 | -webkit-font-smoothing: antialiased; 18 | } 19 | 20 | .dtree-icon-xiangxia1:before { 21 | content: "\e771"; 22 | } 23 | .dtree-icon-normal-file:before { 24 | content: "\e60c"; 25 | } 26 | .dtree-icon-xiangyou:before { 27 | content: "\e78f"; 28 | } 29 | .dtree-icon-ok-circle:before { 30 | content: "\1005"; 31 | } 32 | .dtree-icon-close1:before { 33 | content: "\1006"; 34 | } 35 | .dtree-icon-close-fill:before { 36 | content: "\1007"; 37 | } 38 | .dtree-icon-jian1:before { 39 | content: "\e600"; 40 | } 41 | .dtree-icon-jia1:before { 42 | content: "\e601"; 43 | } 44 | .dtree-icon-bianji:before { 45 | content: "\e602"; 46 | } 47 | .dtree-icon-yonghu:before { 48 | content: "\e603"; 49 | } 50 | .dtree-icon-shijian:before { 51 | content: "\e606"; 52 | } 53 | .dtree-icon-fuxuankuang-banxuan:before { 54 | content: "\e607"; 55 | } 56 | .dtree-icon-star:before { 57 | content: "\e608"; 58 | } 59 | .dtree-icon-wenjianjiazhankai:before { 60 | content: "\e60e"; 61 | } 62 | .dtree-icon-xiangmuxiaoxi:before { 63 | content: "\e60f"; 64 | } 65 | .dtree-icon-search2:before { 66 | content: "\e615"; 67 | } 68 | .dtree-icon-weibiaoti5:before { 69 | content: "\e618"; 70 | } 71 | .dtree-icon-layim-theme:before { 72 | content: "\e61b"; 73 | } 74 | .dtree-icon-shuye1:before { 75 | content: "\e61e"; 76 | } 77 | .dtree-icon-add-circle:before { 78 | content: "\e61f"; 79 | } 80 | .dtree-icon-xinxipilu:before { 81 | content: "\e620"; 82 | } 83 | .dtree-icon-set-sm:before { 84 | content: "\e621"; 85 | } 86 | .dtree-icon-about:before { 87 | content: "\e623"; 88 | } 89 | .dtree-icon-chart-screen:before { 90 | content: "\e62a"; 91 | } 92 | .dtree-icon-delete1:before { 93 | content: "\e640"; 94 | } 95 | .dtree-icon-share3:before { 96 | content: "\e641"; 97 | } 98 | .dtree-icon-youjian:before { 99 | content: "\e642"; 100 | } 101 | .dtree-icon-check:before { 102 | content: "\e645"; 103 | } 104 | .dtree-icon-close:before { 105 | content: "\e646"; 106 | } 107 | .dtree-icon-favorfill:before { 108 | content: "\e64b"; 109 | } 110 | .dtree-icon-favor:before { 111 | content: "\e64c"; 112 | } 113 | .dtree-icon-fuxuankuangxuanzhong:before { 114 | content: "\e652"; 115 | } 116 | .dtree-icon-fenguangbaobiao:before { 117 | content: "\e655"; 118 | } 119 | .dtree-icon-jian:before { 120 | content: "\e656"; 121 | } 122 | .dtree-icon-jia:before { 123 | content: "\e657"; 124 | } 125 | .dtree-icon-fenzhijigou:before { 126 | content: "\e658"; 127 | } 128 | .dtree-icon-roundcheckfill:before { 129 | content: "\e659"; 130 | } 131 | .dtree-icon-roundcheck:before { 132 | content: "\e65a"; 133 | } 134 | .dtree-icon-roundclosefill:before { 135 | content: "\e65b"; 136 | } 137 | .dtree-icon-roundclose:before { 138 | content: "\e65c"; 139 | } 140 | .dtree-icon-roundrightfill:before { 141 | content: "\e65d"; 142 | } 143 | .dtree-icon-roundright:before { 144 | content: "\e65e"; 145 | } 146 | .dtree-icon-like:before { 147 | content: "\e66c"; 148 | } 149 | .dtree-icon-samefill:before { 150 | content: "\e671"; 151 | } 152 | .dtree-icon-same:before { 153 | content: "\e672"; 154 | } 155 | .dtree-icon-evaluate:before { 156 | content: "\e674"; 157 | } 158 | .dtree-icon-circle1:before { 159 | content: "\e687"; 160 | } 161 | .dtree-icon-radio:before { 162 | content: "\e688"; 163 | } 164 | .dtree-icon-caidan_xunzhang:before { 165 | content: "\e68e"; 166 | } 167 | .dtree-icon-pulldown:before { 168 | content: "\e6a0"; 169 | } 170 | .dtree-icon-pullup:before { 171 | content: "\e6a1"; 172 | } 173 | .dtree-icon-refresh:before { 174 | content: "\e6a4"; 175 | } 176 | .dtree-icon-qrcode1:before { 177 | content: "\e6b0"; 178 | } 179 | .dtree-icon-profile1:before { 180 | content: "\e6b7"; 181 | } 182 | .dtree-icon-home1:before { 183 | content: "\e6b8"; 184 | } 185 | .dtree-icon-homefill:before { 186 | content: "\e6bb"; 187 | } 188 | .dtree-icon-roundaddfill:before { 189 | content: "\e6d8"; 190 | } 191 | .dtree-icon-roundadd:before { 192 | content: "\e6d9"; 193 | } 194 | .dtree-icon-fuxuankuang:before { 195 | content: "\e6f2"; 196 | } 197 | .dtree-icon-wefill:before { 198 | content: "\e6f5"; 199 | } 200 | .dtree-icon-sort:before { 201 | content: "\e701"; 202 | } 203 | .dtree-icon-repair:before { 204 | content: "\e738"; 205 | } 206 | .dtree-icon-shujudaping:before { 207 | content: "\e742"; 208 | } 209 | .dtree-icon-dian:before { 210 | content: "\e7a5"; 211 | } 212 | .dtree-icon-search_list_light:before { 213 | content: "\e807"; 214 | } 215 | .dtree-icon-round_list_light:before { 216 | content: "\e82b"; 217 | } 218 | .dtree-icon-star-fill:before { 219 | content: "\e832"; 220 | } 221 | .dtree-icon-rate:before { 222 | content: "\e833"; 223 | } 224 | .dtree-icon-move-up:before { 225 | content: "\ea47"; 226 | } 227 | .dtree-icon-move-down:before { 228 | content: "\ea48"; 229 | } 230 | -------------------------------------------------------------------------------- /lib/layui_ext/dtree/dtree.css: -------------------------------------------------------------------------------- 1 | 2 | /**************** 主题换肤 ****************/ 3 | /* 默认风格*/ 4 | .dtree-theme-item-this{background-color: #d2d2d2!important;} 5 | .dtree-theme-item:hover{background-color: #eaeceb!important;} 6 | .dtree-theme-item cite{font-size:12px!important;} 7 | .dtree-theme-item:hover cite{color:#fe7786!important;} 8 | 9 | .dtree-theme-dtreefont{font-size: 16px!important;} 10 | .dtree-theme-ficon{color:#000!important;} 11 | .dtree-theme-icon{color:orange!important;} 12 | .dtree-theme-checkbox:hover{color:#fe7786!important;} 13 | .dtree-theme-choose{color:#fe7786!important;} 14 | 15 | /* layui主题风格*/ 16 | .dtree-layui-item-this{background: none!important;} 17 | .dtree-layui-item:hover{background: none!important;} 18 | .dtree-layui-item cite{font-size:14px!important;} 19 | .dtree-layui-item:hover cite{opacity:0.5;filter:Alpha(opacity=50);text-decoration: underline;} 20 | 21 | .dtree-layui-dtreefont{font-size: 18px!important;} 22 | .dtree-layui-ficon{font-size: 18px!important;color:#393D49!important;} 23 | .dtree-layui-icon{color:#666!important;} 24 | .dtree-layui-checkbox:hover{color:#5FB878!important;} 25 | .dtree-layui-choose{color:#5FB878!important;} 26 | 27 | /* laySimple主题风格*/ 28 | .dtree-laySimple-item-this{background-color: #d2d2d2!important;} 29 | .dtree-laySimple-item:hover{background-color: #eaeceb!important;} 30 | .dtree-laySimple-item cite{font-size:12px!important;} 31 | .dtree-laySimple-item:hover cite{color:#01AAED!important;} 32 | 33 | .dtree-laySimple-dtreefont{font-size: 16px!important;} 34 | .dtree-laySimple-ficon{font-size: 14px!important;color:#393D49!important;} 35 | .dtree-laySimple-icon{color:#393D49!important;} 36 | .dtree-laySimple-checkbox:hover{color:#01AAED!important;} 37 | .dtree-laySimple-choose{color:#01AAED!important;} 38 | /**************** 树基础 ****************/ 39 | /* 菜单栏*/ 40 | .dtree-menubar {padding-left: 10px;} 41 | .dtree-menubar .layui-btn-group .layui-btn-sm{height: 20px;line-height: 20px;padding: 0 5px;font-size: 12px;} 42 | .dtree-menubar .layui-btn-group .layui-btn-sm i{font-size: 12px!important;} 43 | 44 | /* 工具栏*/ 45 | .dtree-toolbar{position: absolute;z-index: 940520;padding: 0;background-color: #eceaeb;} 46 | .dtree-toolbar .layui-nav-child{position: static;} 47 | .dtree-toolbar .layui-nav-child dd{cursor: pointer;} 48 | .dtree-toolbar .layui-nav-child dd a i{font-size:16px;display: inline-block;margin: 0px 1px;color:#fe7786;} 49 | .dtree-toolbar .layui-nav-child dd a i:hover{font-weight: bold;} 50 | .dtree-toolbar .layui-nav-bar{display: none!important;} 51 | .dtree-toolbar-tool{padding: 30px;} 52 | 53 | .dtree-toolbar-fixed{position: absolute;right: 5px;top: 2px;font-style: normal;transition: all .3s;-webkit-transition: all .3s;} 54 | /*.dtree-toolbar-fixed a{border:1px solid #fe7786;}*/ 55 | .dtree-toolbar-fixed a i{font-size:14px;display: inline-block;margin: 0px 1px;color:#fe7786;} 56 | .dtree-toolbar-fixed a i:hover{opacity:0.8;filter:Alpha(opacity=80);} 57 | 58 | /* 树基本*/ 59 | .dtree{width:260px;} 60 | .dtree-nav-item{line-height:33px;padding-left:16px;} 61 | .dtree-nav-ul-sid{display: none;} 62 | .dtree-none-text{font-size: 12px;text-align: center;color: gray;} 63 | 64 | /* 树线*/ 65 | .dtree-nav-first-line,.dtree-nav-line,.dtree-nav-last-line{position: relative;} 66 | .dtree-nav-first-line:before{content:"";position: absolute;height: 0;border-left: 1px dotted #c0c4cc;} 67 | .dtree-nav-first-line:after{content:"";position: absolute;height: 0;border-top: 1px dotted #c0c4cc;} 68 | 69 | .dtree-nav-line:before{content:"";position: absolute;top: 0;left: 7px;width: 0;height: 100%;border-left: 1px dotted #c0c4cc;} 70 | .dtree-nav-line:after{content:"";position: absolute;top: 16px;left: 8px;width: 9px;height: 0;border-top: 1px dotted #c0c4cc;} 71 | 72 | .dtree-nav-last-line:before{content:"";position: absolute;top: 0;left: 7px;width: 0;height: 17px;border-left: 1px dotted #c0c4cc;} 73 | .dtree-nav-last-line:after{content:"";position: absolute;top: 16px;left: 8px;width: 9px;height: 0;border-top: 1px dotted #c0c4cc;} 74 | 75 | 76 | /* 图标及复选框*/ 77 | .dtreefont{cursor: pointer;} 78 | .dtreefont-special{margin: 0 4px;} 79 | .dtree-nav-checkbox-div{display: inline-block;} 80 | .dtree-nav-checkbox-div>i{display: inline-block;margin: 0px 1px;} 81 | .dtree-nav-checkbox-div>i:last-child{margin-right: 4px;} 82 | .dtree-nav-checkbox-div>i:hover{opacity:0.8;filter:Alpha(opacity=80);} 83 | 84 | /* 行 文字*/ 85 | .dtree-nav-div{display:block;vertical-align:top;position:relative;} 86 | .dtree-nav-div cite{font-style: normal;cursor: pointer;} 87 | .dtree-nav-div:hover cite{opacity:0.7;filter:Alpha(opacity=70);transition: all .3s;-webkit-transition: all .3s;} 88 | 89 | /* 规则属性*/ 90 | .dtree-nav-show {display: block!important;} 91 | .dtree-nav-hide {display: none!important;} 92 | .dtree-nav-this {} 93 | .dtree-icon-hide {opacity:0;filter:Alpha(opacity=0);} 94 | .dtree-icon-null-open,.dtree-icon-null-close,.dtree-icon-null{margin: 0 2px;} 95 | .dtree-disabled{cursor: not-allowed; color:#c2c2c2!important;} 96 | .dtree-disabled:hover{color:#c2c2c2!important;} 97 | .dtree-nav-div cite.dtree-disabled{font-style: normal; cursor: not-allowed; color:#c2c2c2!important;} 98 | .dtree-nav-div>cite.dtree-disabled:hover{color:#c2c2c2!important;} 99 | 100 | 101 | /** 下拉树属性*/ 102 | .dtree-select{position: absolute;max-height: 500px;height: 350px;overflow: auto;width: 99%;z-index: 123;display: none;border:1px solid silver;top: 42px;} 103 | .dtree-select-show{display: block!important;} 104 | .dtree-select-up{top: auto; bottom: 42px;} 105 | 106 | /* 简单适配*/ 107 | @media screen and (max-width:1700px) and (min-width:1300px){ 108 | .dtree-nav-item {padding-left: 15px;} 109 | } 110 | 111 | 112 | 113 | 114 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/transfer.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define(["laytpl","form"],function(e){"use strict";var a=layui.$,t=layui.laytpl,n=layui.form,i="transfer",l={config:{},index:layui[i]?layui[i].index+1e4:0,set:function(e){var t=this;return t.config=a.extend({},t.config,e),t},on:function(e,a){return layui.onevent.call(this,i,e,a)}},r=function(){var e=this,a=e.config,t=a.id||e.index;return r.that[t]=e,r.config[t]=a,{config:a,reload:function(a){e.reload.call(e,a)},getData:function(){return e.getData.call(e)}}},c="layui-hide",o="layui-btn-disabled",d="layui-none",s="layui-transfer-box",u="layui-transfer-header",h="layui-transfer-search",f="layui-transfer-active",y="layui-transfer-data",p=function(e){return e=e||{},['
','
','","
","{{# if(d.data.showSearch){ }}",'","{{# } }}",'
    ',"
    "].join("")},v=['
    ',p({index:0,checkAllName:"layTransferLeftCheckAll"}),'
    ','",'","
    ",p({index:1,checkAllName:"layTransferRightCheckAll"}),"
    "].join(""),x=function(e){var t=this;t.index=++l.index,t.config=a.extend({},t.config,l.config,e),t.render()};x.prototype.config={title:["列表一","列表二"],width:200,height:360,data:[],value:[],showSearch:!1,id:"",text:{none:"无数据",searchNone:"无匹配数据"}},x.prototype.reload=function(e){var t=this;layui.each(e,function(e,a){a.constructor===Array&&delete t.config[e]}),t.config=a.extend(!0,{},t.config,e),t.render()},x.prototype.render=function(){var e=this,n=e.config,i=e.elem=a(t(v).render({data:n,index:e.index})),l=n.elem=a(n.elem);l[0]&&(n.data=n.data||[],n.value=n.value||[],e.key=n.id||e.index,l.html(e.elem),e.layBox=e.elem.find("."+s),e.layHeader=e.elem.find("."+u),e.laySearch=e.elem.find("."+h),e.layData=i.find("."+y),e.layBtn=i.find("."+f+" .layui-btn"),e.layBox.css({width:n.width,height:n.height}),e.layData.css({height:function(){return n.height-e.layHeader.outerHeight()-e.laySearch.outerHeight()-2}()}),e.renderData(),e.events())},x.prototype.renderData=function(){var e=this,a=(e.config,[{checkName:"layTransferLeftCheck",views:[]},{checkName:"layTransferRightCheck",views:[]}]);e.parseData(function(e){var t=e.selected?1:0,n=["
  • ",'',"
  • "].join("");a[t].views.push(n),delete e.selected}),e.layData.eq(0).html(a[0].views.join("")),e.layData.eq(1).html(a[1].views.join("")),e.renderCheckBtn()},x.prototype.renderForm=function(e){n.render(e,"LAY-transfer-"+this.index)},x.prototype.renderCheckBtn=function(e){var t=this,n=t.config;e=e||{},t.layBox.each(function(i){var l=a(this),r=l.find("."+y),d=l.find("."+u).find('input[type="checkbox"]'),s=r.find('input[type="checkbox"]'),h=0,f=!1;if(s.each(function(){var e=a(this).data("hide");(this.checked||this.disabled||e)&&h++,this.checked&&!e&&(f=!0)}),d.prop("checked",f&&h===s.length),t.layBtn.eq(i)[f?"removeClass":"addClass"](o),!e.stopNone){var p=r.children("li:not(."+c+")").length;t.noneView(r,p?"":n.text.none)}}),t.renderForm("checkbox")},x.prototype.noneView=function(e,t){var n=a('

    '+(t||"")+"

    ");e.find("."+d)[0]&&e.find("."+d).remove(),t.replace(/\s/g,"")&&e.append(n)},x.prototype.setValue=function(){var e=this,t=e.config,n=[];return e.layBox.eq(1).find("."+y+' input[type="checkbox"]').each(function(){var e=a(this).data("hide");e||n.push(this.value)}),t.value=n,e},x.prototype.parseData=function(e){var t=this,n=t.config,i=[];return layui.each(n.data,function(t,l){l=("function"==typeof n.parseData?n.parseData(l):l)||l,i.push(l=a.extend({},l)),layui.each(n.value,function(e,a){a==l.value&&(l.selected=!0)}),e&&e(l)}),n.data=i,t},x.prototype.getData=function(e){var a=this,t=a.config,n=[];return a.setValue(),layui.each(e||t.value,function(e,a){layui.each(t.data,function(e,t){delete t.selected,a==t.value&&n.push(t)})}),n},x.prototype.events=function(){var e=this,t=e.config;e.elem.on("click",'input[lay-filter="layTransferCheckbox"]+',function(){var t=a(this).prev(),n=t[0].checked,i=t.parents("."+s).eq(0).find("."+y);t[0].disabled||("all"===t.attr("lay-type")&&i.find('input[type="checkbox"]').each(function(){this.disabled||(this.checked=n)}),e.renderCheckBtn({stopNone:!0}))}),e.layBtn.on("click",function(){var n=a(this),i=n.data("index"),l=e.layBox.eq(i),r=[];if(!n.hasClass(o)){e.layBox.eq(i).each(function(t){var n=a(this),i=n.find("."+y);i.children("li").each(function(){var t=a(this),n=t.find('input[type="checkbox"]'),i=n.data("hide");n[0].checked&&!i&&(n[0].checked=!1,l.siblings("."+s).find("."+y).append(t.clone()),t.remove(),r.push(n[0].value)),e.setValue()})}),e.renderCheckBtn();var c=l.siblings("."+s).find("."+h+" input");""===c.val()||c.trigger("keyup"),t.onchange&&t.onchange(e.getData(r),i)}}),e.laySearch.find("input").on("keyup",function(){var n=this.value,i=a(this).parents("."+h).eq(0).siblings("."+y),l=i.children("li");l.each(function(){var e=a(this),t=e.find('input[type="checkbox"]'),i=t[0].title.indexOf(n)!==-1;e[i?"removeClass":"addClass"](c),t.data("hide",!i)}),e.renderCheckBtn();var r=l.length===i.children("li."+c).length;e.noneView(i,r?t.text.searchNone:"")})},r.that={},r.config={},l.reload=function(e,a){var t=r.that[e];return t.reload(a),r.call(t)},l.getData=function(e){var a=r.that[e];return a.getData()},l.render=function(e){var a=new x(e);return r.call(a)},e(i,l)}); -------------------------------------------------------------------------------- /lib/layui_ext/treeTable/es6-promise.auto.min.js: -------------------------------------------------------------------------------- 1 | !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.ES6Promise=e()}(this,function(){"use strict";function t(t){var e=typeof t;return null!==t&&("object"===e||"function"===e)}function e(t){return"function"==typeof t}function n(t){I=t}function r(t){J=t}function o(){return function(){return process.nextTick(a)}}function i(){return"undefined"!=typeof H?function(){H(a)}:c()}function s(){var t=0,e=new V(a),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function u(){var t=new MessageChannel;return t.port1.onmessage=a,function(){return t.port2.postMessage(0)}}function c(){var t=setTimeout;return function(){return t(a,1)}}function a(){for(var t=0;t 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
    31 |
    32 |
    33 |
    34 |
    常规时间线
    35 |
    36 | 37 |
      38 |
    • 39 | 40 |
      41 |

      12月28日

      42 |

      43 | 一直以来,layui 秉承无偿开源的初心,虔诚致力于服务各层次前后端 Web 开发者,在商业横飞的当今时代,这一信念从未动摇。即便身单力薄,仍然重拾决心,埋头造轮,以尽可能地填补产品本身的缺口。在过去的一段的时间,我一直在寻求持久之道,已维持你眼前所见的一切。而 layuiAdmin 是我们尝试解决的手段之一。我相信真正有爱于 layui 生态的你,定然不会错过这一拥抱吧。 44 |

      45 |


      子曰:君子不用防,小人防不住。请务必通过官网正规渠道,获得 layuiAdmin

      46 |
      47 |
    • 48 |
    • 49 | 50 |
      51 |

      12月25日

      52 |

      又是一年 “圣诞节”,2018 向我们正在走来

      53 |
        54 |
      • 叮叮当,叮叮当,铃儿响叮当
      • 55 |
      • 今晚滑雪多快乐,我们坐在雪橇上
      • 56 |
      57 |
      58 |
    • 59 |
    • 60 | 61 |
      62 |

      12月24日

      63 |

      64 | 美丽的夜晚,都是祈祷的人们。
      他们等待着第二天,收到圣诞老人的礼物。

      65 |

      66 |
      平安夜,天赐平安。愿真善美的事物都能永恒。
      67 |
      68 |
    • 69 |
    • 70 | 71 |
      72 |
      过去
      73 |
      74 |
    • 75 |
    76 | 77 |
    78 |
    79 |
    80 |
    81 |
    82 |
    简约时间线
    83 |
    84 | 85 |
      86 |
    • 87 | 88 |
      89 |
      90 | 2018年,layui 5.0 发布,并发展成为中国最受欢迎的前端 UI 框架(期望) 91 |
      92 |
      93 |
    • 94 |
    • 95 | 96 |
      97 |
      2017年,layui 里程碑版本 2.0 发布
      98 |
      99 |
    • 100 |
    • 101 | 102 |
      103 |
      2016年,layui 首个版本发布
      104 |
      105 |
    • 106 |
    • 107 | 108 |
      109 |
      2015年,layui 孵化
      110 |
      111 |
    • 112 |
    • 113 | 114 |
      115 |
      更久前,轮子时代。维护几个独立组件:layer等
      116 |
      117 |
    • 118 |
    119 | 120 |
    121 |
    122 |
    123 |
    124 |
    125 | 126 | 132 | 133 | -------------------------------------------------------------------------------- /lib/layui/layui.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;!function(e){"use strict";var t=document,o={modules:{},status:{},timeout:10,event:{}},n=function(){this.v="2.5.5"},r=function(){var e=t.currentScript?t.currentScript.src:function(){for(var e,o=t.scripts,n=o.length-1,r=n;r>0;r--)if("interactive"===o[r].readyState){e=o[r].src;break}return e||o[n].src}();return e.substring(0,e.lastIndexOf("/")+1)}(),i=function(t){e.console&&console.error&&console.error("Layui hint: "+t)},a="undefined"!=typeof opera&&"[object Opera]"===opera.toString(),u={layer:"modules/layer",laydate:"modules/laydate",laypage:"modules/laypage",laytpl:"modules/laytpl",layim:"modules/layim",layedit:"modules/layedit",form:"modules/form",upload:"modules/upload",transfer:"modules/transfer",tree:"modules/tree",table:"modules/table",element:"modules/element",rate:"modules/rate",colorpicker:"modules/colorpicker",slider:"modules/slider",carousel:"modules/carousel",flow:"modules/flow",util:"modules/util",code:"modules/code",jquery:"modules/jquery",mobile:"modules/mobile","layui.all":"../layui.all"};n.prototype.cache=o,n.prototype.define=function(e,t){var n=this,r="function"==typeof e,i=function(){var e=function(e,t){layui[e]=t,o.status[e]=!0};return"function"==typeof t&&t(function(n,r){e(n,r),o.callback[n]=function(){t(e)}}),this};return r&&(t=e,e=[]),!layui["layui.all"]&&layui["layui.mobile"]?i.call(n):(n.use(e,i),n)},n.prototype.use=function(e,n,l){function s(e,t){var n="PLaySTATION 3"===navigator.platform?/^complete$/:/^(complete|loaded)$/;("load"===e.type||n.test((e.currentTarget||e.srcElement).readyState))&&(o.modules[f]=t,d.removeChild(v),function r(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void(o.status[f]?c():setTimeout(r,4))}())}function c(){l.push(layui[f]),e.length>1?y.use(e.slice(1),n,l):"function"==typeof n&&n.apply(layui,l)}var y=this,p=o.dir=o.dir?o.dir:r,d=t.getElementsByTagName("head")[0];e="string"==typeof e?[e]:e,window.jQuery&&jQuery.fn.on&&(y.each(e,function(t,o){"jquery"===o&&e.splice(t,1)}),layui.jquery=layui.$=jQuery);var f=e[0],m=0;if(l=l||[],o.host=o.host||(p.match(/\/\/([\s\S]+?)\//)||["//"+location.host+"/"])[0],0===e.length||layui["layui.all"]&&u[f]||!layui["layui.all"]&&layui["layui.mobile"]&&u[f])return c(),y;if(o.modules[f])!function g(){return++m>1e3*o.timeout/4?i(f+" is not a valid module"):void("string"==typeof o.modules[f]&&o.status[f]?c():setTimeout(g,4))}();else{var v=t.createElement("script"),h=(u[f]?p+"lay/":/^\{\/\}/.test(y.modules[f])?"":o.base||"")+(y.modules[f]||f)+".js";h=h.replace(/^\{\/\}/,""),v.async=!0,v.charset="utf-8",v.src=h+function(){var e=o.version===!0?o.v||(new Date).getTime():o.version||"";return e?"?v="+e:""}(),d.appendChild(v),!v.attachEvent||v.attachEvent.toString&&v.attachEvent.toString().indexOf("[native code")<0||a?v.addEventListener("load",function(e){s(e,h)},!1):v.attachEvent("onreadystatechange",function(e){s(e,h)}),o.modules[f]=h}return y},n.prototype.getStyle=function(t,o){var n=t.currentStyle?t.currentStyle:e.getComputedStyle(t,null);return n[n.getPropertyValue?"getPropertyValue":"getAttribute"](o)},n.prototype.link=function(e,n,r){var a=this,u=t.createElement("link"),l=t.getElementsByTagName("head")[0];"string"==typeof n&&(r=n);var s=(r||e).replace(/\.|\//g,""),c=u.id="layuicss-"+s,y=0;return u.rel="stylesheet",u.href=e+(o.debug?"?v="+(new Date).getTime():""),u.media="all",t.getElementById(c)||l.appendChild(u),"function"!=typeof n?a:(function p(){return++y>1e3*o.timeout/100?i(e+" timeout"):void(1989===parseInt(a.getStyle(t.getElementById(c),"width"))?function(){n()}():setTimeout(p,100))}(),a)},o.callback={},n.prototype.factory=function(e){if(layui[e])return"function"==typeof o.callback[e]?o.callback[e]:null},n.prototype.addcss=function(e,t,n){return layui.link(o.dir+"css/"+e,t,n)},n.prototype.img=function(e,t,o){var n=new Image;return n.src=e,n.complete?t(n):(n.onload=function(){n.onload=null,"function"==typeof t&&t(n)},void(n.onerror=function(e){n.onerror=null,"function"==typeof o&&o(e)}))},n.prototype.config=function(e){e=e||{};for(var t in e)o[t]=e[t];return this},n.prototype.modules=function(){var e={};for(var t in u)e[t]=u[t];return e}(),n.prototype.extend=function(e){var t=this;e=e||{};for(var o in e)t[o]||t.modules[o]?i("模块名 "+o+" 已被占用"):t.modules[o]=e[o];return t},n.prototype.router=function(e){var t=this,e=e||location.hash,o={path:[],search:{},hash:(e.match(/[^#](#.*$)/)||[])[1]||""};return/^#\//.test(e)?(e=e.replace(/^#\//,""),o.href="/"+e,e=e.replace(/([^#])(#.*$)/,"$1").split("/")||[],t.each(e,function(e,t){/^\w+=/.test(t)?function(){t=t.split("="),o.search[t[0]]=t[1]}():o.path.push(t)}),o):o},n.prototype.data=function(t,o,n){if(t=t||"layui",n=n||localStorage,e.JSON&&e.JSON.parse){if(null===o)return delete n[t];o="object"==typeof o?o:{key:o};try{var r=JSON.parse(n[t])}catch(i){var r={}}return"value"in o&&(r[o.key]=o.value),o.remove&&delete r[o.key],n[t]=JSON.stringify(r),o.key?r[o.key]:r}},n.prototype.sessionData=function(e,t){return this.data(e,t,sessionStorage)},n.prototype.device=function(t){var o=navigator.userAgent.toLowerCase(),n=function(e){var t=new RegExp(e+"/([^\\s\\_\\-]+)");return e=(o.match(t)||[])[1],e||!1},r={os:function(){return/windows/.test(o)?"windows":/linux/.test(o)?"linux":/iphone|ipod|ipad|ios/.test(o)?"ios":/mac/.test(o)?"mac":void 0}(),ie:function(){return!!(e.ActiveXObject||"ActiveXObject"in e)&&((o.match(/msie\s(\d+)/)||[])[1]||"11")}(),weixin:n("micromessenger")};return t&&!r[t]&&(r[t]=n(t)),r.android=/android/.test(o),r.ios="ios"===r.os,r},n.prototype.hint=function(){return{error:i}},n.prototype.each=function(e,t){var o,n=this;if("function"!=typeof t)return n;if(e=e||[],e.constructor===Object){for(o in e)if(t.call(e[o],o,e[o]))break}else for(o=0;oi?1:rt.min?a:t.min,t.value[1]=n>t.min?n:t.min,t.value[0]=t.value[0]>t.max?t.max:t.value[0],t.value[1]=t.value[1]>t.max?t.max:t.value[1];var r=Math.floor((t.value[0]-t.min)/(t.max-t.min)*100),v=Math.floor((t.value[1]-t.min)/(t.max-t.min)*100),m=v-r+"%";r+="%",v+="%"}else{"object"==typeof t.value&&(t.value=Math.min.apply(null,t.value)),t.valuet.max&&(t.value=t.max);var m=Math.floor((t.value-t.min)/(t.max-t.min)*100)+"%"}var p=t.disabled?"#c2c2c2":t.theme,f='
    '+(t.tips?'
    ':"")+'
    '+(t.range?'
    ':"")+"
    ",h=i(t.elem),y=h.next("."+s);if(y[0]&&y.remove(),e.elemTemp=i(f),t.range?(e.elemTemp.find("."+o).eq(0).data("value",t.value[0]),e.elemTemp.find("."+o).eq(1).data("value",t.value[1])):e.elemTemp.find("."+o).data("value",t.value),h.html(e.elemTemp),"vertical"===t.type&&e.elemTemp.height(t.height+"px"),t.showstep){for(var g=(t.max-t.min)/t.step,b="",x=1;x')}e.elemTemp.append(b)}if(t.input&&!t.range){var w=i('
    ');h.css("position","relative"),h.append(w),h.find("."+c).children("input").val(t.value),"vertical"===t.type?w.css({left:0,top:-48}):e.elemTemp.css("margin-right",w.outerWidth()+15)}t.disabled?(e.elemTemp.addClass(l),e.elemTemp.find("."+u).addClass(l)):e.slide(),e.elemTemp.find("."+u).on("mouseover",function(){var a="vertical"===t.type?t.height:e.elemTemp[0].offsetWidth,n=e.elemTemp.find("."+o),l="vertical"===t.type?a-i(this).parent()[0].offsetTop-n.height():i(this).parent()[0].offsetLeft,s=l/a*100,r=i(this).parent().data("value"),u=t.setTips?t.setTips(r):r;e.elemTemp.find("."+d).html(u),"vertical"===t.type?e.elemTemp.find("."+d).css({bottom:s+"%","margin-bottom":"20px",display:"inline-block"}):e.elemTemp.find("."+d).css({left:s+"%",display:"inline-block"})}).on("mouseout",function(){e.elemTemp.find("."+d).css("display","none")})},f.prototype.slide=function(e,t,a){var n=this,l=n.config,s=n.elemTemp,f=function(){return"vertical"===l.type?l.height:s[0].offsetWidth},h=s.find("."+o),y=s.next("."+v),g=y.children("."+c).children("input").val(),b=100/((l.max-l.min)/Math.ceil(l.step)),x=function(e,i){e=Math.ceil(e)*b>100?Math.ceil(e)*b:Math.round(e)*b,e=e>100?100:e,h.eq(i).css("vertical"===l.type?"bottom":"left",e+"%");var t=T(h[0].offsetLeft),a=l.range?T(h[1].offsetLeft):0;"vertical"===l.type?(s.find("."+d).css({bottom:e+"%","margin-bottom":"20px"}),t=T(f()-h[0].offsetTop-h.height()),a=l.range?T(f()-h[1].offsetTop-h.height()):0):s.find("."+d).css("left",e+"%"),t=t>100?100:t,a=a>100?100:a;var n=Math.min(t,a),o=Math.abs(t-a);"vertical"===l.type?s.find("."+r).css({height:o+"%",bottom:n+"%"}):s.find("."+r).css({width:o+"%",left:n+"%"});var u=l.min+Math.round((l.max-l.min)*e/100);if(g=u,y.children("."+c).children("input").val(g),h.eq(i).data("value",u),u=l.setTips?l.setTips(u):u,s.find("."+d).html(u),l.range){var v=[h.eq(0).data("value"),h.eq(1).data("value")];v[0]>v[1]&&v.reverse()}l.change&&l.change(l.range?v:u)},T=function(e){var i=e/f()*100/b,t=Math.round(i)*b;return e==f()&&(t=Math.ceil(i)*b),t},w=i(['
    f()&&(r=f());var o=r/f()*100/b;x(o,e),t.addClass(p),s.find("."+d).show(),i.preventDefault()},o=function(){t.removeClass(p),s.find("."+d).hide()};M(r,o)})}),s.on("click",function(e){var t=i("."+u);if(!t.is(event.target)&&0===t.has(event.target).length&&t.length){var a,n="vertical"===l.type?f()-e.clientY+i(this).offset().top:e.clientX-i(this).offset().left;n<0&&(n=0),n>f()&&(n=f());var s=n/f()*100/b;a=l.range?"vertical"===l.type?Math.abs(n-parseInt(i(h[0]).css("bottom")))>Math.abs(n-parseInt(i(h[1]).css("bottom")))?1:0:Math.abs(n-h[0].offsetLeft)>Math.abs(n-h[1].offsetLeft)?1:0:0,x(s,a),e.preventDefault()}}),y.hover(function(){var e=i(this);e.children("."+m).fadeIn("fast")},function(){var e=i(this);e.children("."+m).fadeOut("fast")}),y.children("."+m).children("i").each(function(e){i(this).on("click",function(){g=1==e?g-l.stepl.max?l.max:Number(g)+l.step;var i=(g-l.min)/(l.max-l.min)*100/b;x(i,0)})});var q=function(){var e=this.value;e=isNaN(e)?0:e,e=el.max?l.max:e,this.value=e;var i=(e-l.min)/(l.max-l.min)*100/b;x(i,0)};y.children("."+c).children("input").on("keydown",function(e){13===e.keyCode&&(e.preventDefault(),q.call(this))}).on("change",q)},f.prototype.events=function(){var e=this;e.config},t.render=function(e){var i=new f(e);return a.call(i)},e(n,t)}); -------------------------------------------------------------------------------- /lib/layui_ext/dtree/font/icons.json: -------------------------------------------------------------------------------- 1 | { 2 | "data": [{ 3 | "cls": "dtree-icon-xiangxia1", 4 | "uncode": "e771" 5 | }, 6 | { 7 | "cls": "dtree-icon-xiangyou", 8 | "uncode": "e78f" 9 | }, 10 | { 11 | "cls": "dtree-icon-jian", 12 | "uncode": "e656" 13 | }, 14 | { 15 | "cls": "dtree-icon-jia", 16 | "uncode": "e657" 17 | }, 18 | { 19 | "cls": "dtree-icon-weibiaoti5", 20 | "uncode": "e618" 21 | }, 22 | { 23 | "cls": "dtree-icon-wenjianjiazhankai", 24 | "uncode": "e60e" 25 | }, 26 | { 27 | "cls": "dtree-icon-dian", 28 | "uncode": "e7a5" 29 | }, 30 | { 31 | "cls": "dtree-icon-yonghu", 32 | "uncode": "e603" 33 | }, 34 | { 35 | "cls": "dtree-icon-fenzhijigou", 36 | "uncode": "e658" 37 | }, 38 | { 39 | "cls": "dtree-icon-fenguangbaobiao", 40 | "uncode": "e655" 41 | }, 42 | { 43 | "cls": "dtree-icon-xinxipilu", 44 | "uncode": "e620" 45 | }, 46 | { 47 | "cls": "dtree-icon-shuye1", 48 | "uncode": "e61e" 49 | }, 50 | { 51 | "cls": "dtree-icon-caidan_xunzhang", 52 | "uncode": "e68e" 53 | }, 54 | { 55 | "cls": "dtree-icon-normal-file", 56 | "uncode": "e60c" 57 | }, 58 | { 59 | "cls": "dtree-icon-roundclose", 60 | "uncode": "e65c" 61 | }, 62 | { 63 | "cls": "dtree-icon-bianji", 64 | "uncode": "e602" 65 | }, 66 | { 67 | "cls": "dtree-icon-roundadd", 68 | "uncode": "e6d9" 69 | }, 70 | { 71 | "cls": "dtree-icon-fuxuankuangxuanzhong", 72 | "uncode": "e652" 73 | }, 74 | { 75 | "cls": "dtree-icon-fuxuankuang", 76 | "uncode": "e6f2" 77 | }, 78 | { 79 | "cls": "dtree-icon-fuxuankuang-banxuan", 80 | "uncode": "e607" 81 | }, 82 | { 83 | "cls": "dtree-icon-search_list_light", 84 | "uncode": "e807" 85 | }, 86 | { 87 | "cls": "dtree-icon-move-up", 88 | "uncode": "ea47" 89 | }, 90 | { 91 | "cls": "dtree-icon-move-down", 92 | "uncode": "ea48" 93 | }, 94 | { 95 | "cls": "dtree-icon-delete1", 96 | "uncode": "e640" 97 | }, 98 | { 99 | "cls": "dtree-icon-refresh", 100 | "uncode": "e6a4" 101 | }, 102 | { 103 | "cls": "dtree-icon-roundcheckfill", 104 | "uncode": "e659" 105 | }, 106 | { 107 | "cls": "dtree-icon-roundclosefill", 108 | "uncode": "e65b" 109 | }, 110 | { 111 | "cls": "dtree-icon-roundcheck", 112 | "uncode": "e65a" 113 | }, 114 | { 115 | "cls": "dtree-icon-pulldown", 116 | "uncode": "e6a0" 117 | }, 118 | { 119 | "cls": "dtree-icon-pullup", 120 | "uncode": "e6a1" 121 | }, 122 | { 123 | "cls": "dtree-icon-set-sm", 124 | "uncode": "e621" 125 | }, 126 | { 127 | "cls": "dtree-icon-rate", 128 | "uncode": "e833" 129 | }, 130 | { 131 | "cls": "dtree-icon-jian1", 132 | "uncode": "e600" 133 | }, 134 | { 135 | "cls": "dtree-icon-jia1", 136 | "uncode": "e601" 137 | }, 138 | { 139 | "cls": "dtree-icon-shijian", 140 | "uncode": "e606" 141 | }, 142 | { 143 | "cls": "dtree-icon-check", 144 | "uncode": "e645" 145 | }, 146 | { 147 | "cls": "dtree-icon-close", 148 | "uncode": "e646" 149 | }, 150 | { 151 | "cls": "dtree-icon-favorfill", 152 | "uncode": "e64b" 153 | }, 154 | { 155 | "cls": "dtree-icon-favor", 156 | "uncode": "e64c" 157 | }, 158 | { 159 | "cls": "dtree-icon-roundrightfill", 160 | "uncode": "e65d" 161 | }, 162 | { 163 | "cls": "dtree-icon-roundright", 164 | "uncode": "e65e" 165 | }, 166 | { 167 | "cls": "dtree-icon-samefill", 168 | "uncode": "e671" 169 | }, 170 | { 171 | "cls": "dtree-icon-same", 172 | "uncode": "e672" 173 | }, 174 | { 175 | "cls": "dtree-icon-qrcode1", 176 | "uncode": "e6b0" 177 | }, 178 | { 179 | "cls": "dtree-icon-profile1", 180 | "uncode": "e6b7" 181 | }, 182 | { 183 | "cls": "dtree-icon-home1", 184 | "uncode": "e6b8" 185 | }, 186 | { 187 | "cls": "dtree-icon-homefill", 188 | "uncode": "e6bb" 189 | }, 190 | { 191 | "cls": "dtree-icon-roundaddfill", 192 | "uncode": "e6d8" 193 | }, 194 | { 195 | "cls": "dtree-icon-wefill", 196 | "uncode": "e6f5" 197 | }, 198 | { 199 | "cls": "dtree-icon-sort", 200 | "uncode": "e701" 201 | }, 202 | { 203 | "cls": "dtree-icon-round_list_light", 204 | "uncode": "e82b" 205 | }, 206 | { 207 | "cls": "dtree-icon-search2", 208 | "uncode": "e615" 209 | }, 210 | { 211 | "cls": "dtree-icon-close1", 212 | "uncode": "1006" 213 | }, 214 | { 215 | "cls": "dtree-icon-close-fill", 216 | "uncode": "1007" 217 | }, 218 | { 219 | "cls": "dtree-icon-chart-screen", 220 | "uncode": "e62a" 221 | }, 222 | { 223 | "cls": "dtree-icon-star", 224 | "uncode": "e608" 225 | }, 226 | { 227 | "cls": "dtree-icon-ok-circle", 228 | "uncode": "1005" 229 | }, 230 | { 231 | "cls": "dtree-icon-add-circle", 232 | "uncode": "e61f" 233 | }, 234 | { 235 | "cls": "dtree-icon-about", 236 | "uncode": "e623" 237 | }, 238 | { 239 | "cls": "dtree-icon-circle1", 240 | "uncode": "e687" 241 | }, 242 | { 243 | "cls": "dtree-icon-radio", 244 | "uncode": "e688" 245 | }, 246 | { 247 | "cls": "dtree-icon-star-fill", 248 | "uncode": "e832" 249 | }, 250 | { 251 | "cls": "dtree-icon-shujudaping", 252 | "uncode": "e742" 253 | }, 254 | { 255 | "cls": "dtree-icon-share3", 256 | "uncode": "e641" 257 | }, 258 | { 259 | "cls": "dtree-icon-youjian", 260 | "uncode": "e642" 261 | }, 262 | { 263 | "cls": "dtree-icon-repair", 264 | "uncode": "e738" 265 | }, 266 | { 267 | "cls": "dtree-icon-evaluate", 268 | "uncode": "e674" 269 | }, 270 | { 271 | "cls": "dtree-icon-like", 272 | "uncode": "e66c" 273 | }, 274 | { 275 | "cls": "dtree-icon-layim-theme", 276 | "uncode": "e61b" 277 | }, 278 | { 279 | "cls": "dtree-icon-xiangmuxiaoxi", 280 | "uncode": "e60f" 281 | } 282 | ] 283 | } -------------------------------------------------------------------------------- /lib/layui/lay/modules/upload.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,n=layui.hint(),o=layui.device(),a={config:{},set:function(e){var i=this;return i.config=t.extend({},i.config,e),i},on:function(e,t){return layui.onevent.call(this,r,e,t)}},l=function(){var e=this;return{upload:function(t){e.upload.call(e,t)},reload:function(t){e.reload.call(e,t)},config:e.config}},r="upload",u="layui-upload-file",c="layui-upload-form",f="layui-upload-iframe",s="layui-upload-choose",p=function(e){var i=this;i.config=t.extend({},i.config,a.config,e),i.render()};p.prototype.config={accept:"images",exts:"",auto:!0,bindAction:"",url:"",field:"file",acceptMime:"",method:"post",data:{},drag:!0,size:0,number:0,multiple:!1},p.prototype.render=function(e){var i=this,e=i.config;e.elem=t(e.elem),e.bindAction=t(e.bindAction),i.file(),i.events()},p.prototype.file=function(){var e=this,i=e.config,n=e.elemFile=t(['"].join("")),a=i.elem.next();(a.hasClass(u)||a.hasClass(c))&&a.remove(),o.ie&&o.ie<10&&i.elem.wrap('
    '),e.isFile()?(e.elemFile=i.elem,i.field=i.elem[0].name):i.elem.after(n),o.ie&&o.ie<10&&e.initIE()},p.prototype.initIE=function(){var e=this,i=e.config,n=t(''),o=t(['
    ',"
    "].join(""));t("#"+f)[0]||t("body").append(n),i.elem.next().hasClass(c)||(e.elemFile.wrap(o),i.elem.next("."+c).append(function(){var e=[];return layui.each(i.data,function(t,i){i="function"==typeof i?i():i,e.push('')}),e.join("")}()))},p.prototype.msg=function(e){return i.msg(e,{icon:2,shift:6})},p.prototype.isFile=function(){var e=this.config.elem[0];if(e)return"input"===e.tagName.toLocaleLowerCase()&&"file"===e.type},p.prototype.preview=function(e){var t=this;window.FileReader&&layui.each(t.chooseFiles,function(t,i){var n=new FileReader;n.readAsDataURL(i),n.onload=function(){e&&e(t,i,this.result)}})},p.prototype.upload=function(e,i){var n,a=this,l=a.config,r=a.elemFile[0],u=function(){var i=0,n=0,o=e||a.files||a.chooseFiles||r.files,u=function(){l.multiple&&i+n===a.fileLength&&"function"==typeof l.allDone&&l.allDone({total:a.fileLength,successful:i,aborted:n})};layui.each(o,function(e,o){var r=new FormData;r.append(l.field,o),layui.each(l.data,function(e,t){t="function"==typeof t?t():t,r.append(e,t)}),t.ajax({url:l.url,type:"post",data:r,contentType:!1,processData:!1,dataType:"json",headers:l.headers||{},success:function(t){i++,d(e,t),u()},error:function(){n++,a.msg("请求上传接口出现异常"),m(e),u()},xhr:function(){var e=new XMLHttpRequest;return e.upload.addEventListener("progress",function(e){if(e.lengthComputable){var t=Math.floor(e.loaded/e.total*100);"function"==typeof l.progress&&l.progress(t,e)}}),e}})})},c=function(){var e=t("#"+f);a.elemFile.parent().submit(),clearInterval(p.timer),p.timer=setInterval(function(){var t,i=e.contents().find("body");try{t=i.text()}catch(n){a.msg("获取上传后的响应信息出现异常"),clearInterval(p.timer),m()}t&&(clearInterval(p.timer),i.html(""),d(0,t))},30)},d=function(e,t){if(a.elemFile.next("."+s).remove(),r.value="","object"!=typeof t)try{t=JSON.parse(t)}catch(i){return t={},a.msg("请对上传接口返回有效JSON")}"function"==typeof l.done&&l.done(t,e||0,function(e){a.upload(e)})},m=function(e){l.auto&&(r.value=""),"function"==typeof l.error&&l.error(e||0,function(e){a.upload(e)})},h=l.exts,v=function(){var t=[];return layui.each(e||a.chooseFiles,function(e,i){t.push(i.name)}),t}(),g={preview:function(e){a.preview(e)},upload:function(e,t){var i={};i[e]=t,a.upload(i)},pushFile:function(){return a.files=a.files||{},layui.each(a.chooseFiles,function(e,t){a.files[e]=t}),a.files},resetFile:function(e,t,i){var n=new File([t],i);a.files=a.files||{},a.files[e]=n}},y=function(){if("choose"!==i&&!l.auto||(l.choose&&l.choose(g),"choose"!==i))return l.before&&l.before(g),o.ie?o.ie>9?u():c():void u()};if(v=0===v.length?r.value.match(/[^\/\\]+\..+/g)||[]||"":v,0!==v.length){switch(l.accept){case"file":if(h&&!RegExp("\\w\\.("+h+")$","i").test(escape(v)))return a.msg("选择的文件中包含不支持的格式"),r.value="";break;case"video":if(!RegExp("\\w\\.("+(h||"avi|mp4|wma|rmvb|rm|flash|3gp|flv")+")$","i").test(escape(v)))return a.msg("选择的视频中包含不支持的格式"),r.value="";break;case"audio":if(!RegExp("\\w\\.("+(h||"mp3|wav|mid")+")$","i").test(escape(v)))return a.msg("选择的音频中包含不支持的格式"),r.value="";break;default:if(layui.each(v,function(e,t){RegExp("\\w\\.("+(h||"jpg|png|gif|bmp|jpeg$")+")","i").test(escape(t))||(n=!0)}),n)return a.msg("选择的图片中包含不支持的格式"),r.value=""}if(a.fileLength=function(){var t=0,i=e||a.files||a.chooseFiles||r.files;return layui.each(i,function(){t++}),t}(),l.number&&a.fileLength>l.number)return a.msg("同时最多只能上传的数量为:"+l.number);if(l.size>0&&!(o.ie&&o.ie<10)){var F;if(layui.each(a.chooseFiles,function(e,t){if(t.size>1024*l.size){var i=l.size/1024;i=i>=1?i.toFixed(2)+"MB":l.size+"KB",r.value="",F=i}}),F)return a.msg("文件不能超过"+F)}y()}},p.prototype.reload=function(e){e=e||{},delete e.elem,delete e.bindAction;var i=this,e=i.config=t.extend({},i.config,a.config,e),n=e.elem.next();n.attr({name:e.name,accept:e.acceptMime,multiple:e.multiple})},p.prototype.events=function(){var e=this,i=e.config,a=function(t){e.chooseFiles={},layui.each(t,function(t,i){var n=(new Date).getTime();e.chooseFiles[n+"-"+t]=i})},l=function(t,n){var o=e.elemFile,a=t.length>1?t.length+"个文件":(t[0]||{}).name||o[0].value.match(/[^\/\\]+\..+/g)||[]||"";o.next().hasClass(s)&&o.next().remove(),e.upload(null,"choose"),e.isFile()||i.choose||o.after(''+a+"")};i.elem.off("upload.start").on("upload.start",function(){var o=t(this),a=o.attr("lay-data");if(a)try{a=new Function("return "+a)(),e.config=t.extend({},i,a)}catch(l){n.error("Upload element property lay-data configuration item has a syntax error: "+a)}e.config.item=o,e.elemFile[0].click()}),o.ie&&o.ie<10||i.elem.off("upload.over").on("upload.over",function(){var e=t(this);e.attr("lay-over","")}).off("upload.leave").on("upload.leave",function(){var e=t(this);e.removeAttr("lay-over")}).off("upload.drop").on("upload.drop",function(n,o){var r=t(this),u=o.originalEvent.dataTransfer.files||[];r.removeAttr("lay-over"),a(u),i.auto?e.upload(u):l(u)}),e.elemFile.off("upload.change").on("upload.change",function(){var t=this.files||[];a(t),i.auto?e.upload():l(t)}),i.bindAction.off("upload.action").on("upload.action",function(){e.upload()}),i.elem.data("haveEvents")||(e.elemFile.on("change",function(){t(this).trigger("upload.change")}),i.elem.on("click",function(){e.isFile()||t(this).trigger("upload.start")}),i.drag&&i.elem.on("dragover",function(e){e.preventDefault(),t(this).trigger("upload.over")}).on("dragleave",function(e){t(this).trigger("upload.leave")}).on("drop",function(e){e.preventDefault(),t(this).trigger("upload.drop",e)}),i.bindAction.on("click",function(){t(this).trigger("upload.action")}),i.elem.data("haveEvents",!0))},a.render=function(e){var t=new p(e);return l.call(t)},e(r,a)}); -------------------------------------------------------------------------------- /lib/layui/lay/modules/element.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("jquery",function(t){"use strict";var a=layui.$,i=(layui.hint(),layui.device()),e="element",l="layui-this",n="layui-show",s=function(){this.config={}};s.prototype.set=function(t){var i=this;return a.extend(!0,i.config,t),i},s.prototype.on=function(t,a){return layui.onevent.call(this,e,t,a)},s.prototype.tabAdd=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.children(".layui-tab-bar"),o=l.children(".layui-tab-content"),r='
  • "+(i.title||"unnaming")+"
  • ";return s[0]?s.before(r):n.append(r),o.append('
    '+(i.content||"")+"
    "),f.hideTabMore(!0),f.tabAuto(),this},s.prototype.tabDelete=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabDelete(null,s),this},s.prototype.tabChange=function(t,i){var e=".layui-tab-title",l=a(".layui-tab[lay-filter="+t+"]"),n=l.children(e),s=n.find('>li[lay-id="'+i+'"]');return f.tabClick.call(s[0],null,null,s),this},s.prototype.tab=function(t){t=t||{},b.on("click",t.headerElem,function(i){var e=a(this).index();f.tabClick.call(this,i,e,null,t)})},s.prototype.progress=function(t,i){var e="layui-progress",l=a("."+e+"[lay-filter="+t+"]"),n=l.find("."+e+"-bar"),s=n.find("."+e+"-text");return n.css("width",i),s.text(i),this};var o=".layui-nav",r="layui-nav-item",c="layui-nav-bar",u="layui-nav-tree",d="layui-nav-child",y="layui-nav-more",h="layui-anim layui-anim-upbit",f={tabClick:function(t,i,s,o){o=o||{};var r=s||a(this),i=i||r.parent().children("li").index(r),c=o.headerElem?r.parent():r.parents(".layui-tab").eq(0),u=o.bodyElem?a(o.bodyElem):c.children(".layui-tab-content").children(".layui-tab-item"),d=r.find("a"),y=c.attr("lay-filter");"javascript:;"!==d.attr("href")&&"_blank"===d.attr("target")||(r.addClass(l).siblings().removeClass(l),u.eq(i).addClass(n).siblings().removeClass(n)),layui.event.call(this,e,"tab("+y+")",{elem:c,index:i})},tabDelete:function(t,i){var n=i||a(this).parent(),s=n.index(),o=n.parents(".layui-tab").eq(0),r=o.children(".layui-tab-content").children(".layui-tab-item"),c=o.attr("lay-filter");n.hasClass(l)&&(n.next()[0]?f.tabClick.call(n.next()[0],null,s+1):n.prev()[0]&&f.tabClick.call(n.prev()[0],null,s-1)),n.remove(),r.eq(s).remove(),setTimeout(function(){f.tabAuto()},50),layui.event.call(this,e,"tabDelete("+c+")",{elem:o,index:s})},tabAuto:function(){var t="layui-tab-more",e="layui-tab-bar",l="layui-tab-close",n=this;a(".layui-tab").each(function(){var s=a(this),o=s.children(".layui-tab-title"),r=(s.children(".layui-tab-content").children(".layui-tab-item"),'lay-stope="tabmore"'),c=a('');if(n===window&&8!=i.ie&&f.hideTabMore(!0),s.attr("lay-allowClose")&&o.find("li").each(function(){var t=a(this);if(!t.find("."+l)[0]){var i=a('');i.on("click",f.tabDelete),t.append(i)}}),"string"!=typeof s.attr("lay-unauto"))if(o.prop("scrollWidth")>o.outerWidth()+1){if(o.find("."+e)[0])return;o.append(c),s.attr("overflow",""),c.on("click",function(a){o[this.title?"removeClass":"addClass"](t),this.title=this.title?"":"收缩"})}else o.find("."+e).remove(),s.removeAttr("overflow")})},hideTabMore:function(t){var i=a(".layui-tab-title");t!==!0&&"tabmore"===a(t.target).attr("lay-stope")||(i.removeClass("layui-tab-more"),i.find(".layui-tab-bar").attr("title",""))},clickThis:function(){var t=a(this),i=t.parents(o),n=i.attr("lay-filter"),s=t.parent(),c=t.siblings("."+d),y="string"==typeof s.attr("lay-unselect");"javascript:;"!==t.attr("href")&&"_blank"===t.attr("target")||y||c[0]||(i.find("."+l).removeClass(l),s.addClass(l)),i.hasClass(u)&&(c.removeClass(h),c[0]&&(s["none"===c.css("display")?"addClass":"removeClass"](r+"ed"),"all"===i.attr("lay-shrink")&&s.siblings().removeClass(r+"ed"))),layui.event.call(this,e,"nav("+n+")",t)},collapse:function(){var t=a(this),i=t.find(".layui-colla-icon"),l=t.siblings(".layui-colla-content"),s=t.parents(".layui-collapse").eq(0),o=s.attr("lay-filter"),r="none"===l.css("display");if("string"==typeof s.attr("lay-accordion")){var c=s.children(".layui-colla-item").children("."+n);c.siblings(".layui-colla-title").children(".layui-colla-icon").html(""),c.removeClass(n)}l[r?"addClass":"removeClass"](n),i.html(r?"":""),layui.event.call(this,e,"collapse("+o+")",{title:t,content:l,show:r})}};s.prototype.init=function(t,e){var l=function(){return e?'[lay-filter="'+e+'"]':""}(),s={tab:function(){f.tabAuto.call({})},nav:function(){var t=200,e={},s={},p={},b=function(l,o,r){var c=a(this),f=c.find("."+d);o.hasClass(u)?l.css({top:c.position().top,height:c.children("a").outerHeight(),opacity:1}):(f.addClass(h),l.css({left:c.position().left+parseFloat(c.css("marginLeft")),top:c.position().top+c.height()-l.height()}),e[r]=setTimeout(function(){l.css({width:c.width(),opacity:1})},i.ie&&i.ie<10?0:t),clearTimeout(p[r]),"block"===f.css("display")&&clearTimeout(s[r]),s[r]=setTimeout(function(){f.addClass(n),c.find("."+y).addClass(y+"d")},300))};a(o+l).each(function(i){var l=a(this),o=a(''),h=l.find("."+r);l.find("."+c)[0]||(l.append(o),h.on("mouseenter",function(){b.call(this,o,l,i)}).on("mouseleave",function(){l.hasClass(u)||(clearTimeout(s[i]),s[i]=setTimeout(function(){l.find("."+d).removeClass(n),l.find("."+y).removeClass(y+"d")},300))}),l.on("mouseleave",function(){clearTimeout(e[i]),p[i]=setTimeout(function(){l.hasClass(u)?o.css({height:0,top:o.position().top+o.height()/2,opacity:0}):o.css({width:0,left:o.position().left+o.width()/2,opacity:0})},t)})),h.find("a").each(function(){var t=a(this),i=(t.parent(),t.siblings("."+d));i[0]&&!t.children("."+y)[0]&&t.append(''),t.off("click",f.clickThis).on("click",f.clickThis)})})},breadcrumb:function(){var t=".layui-breadcrumb";a(t+l).each(function(){var t=a(this),i="lay-separator",e=t.attr(i)||"/",l=t.find("a");l.next("span["+i+"]")[0]||(l.each(function(t){t!==l.length-1&&a(this).after(""+e+"")}),t.css("visibility","visible"))})},progress:function(){var t="layui-progress";a("."+t+l).each(function(){var i=a(this),e=i.find(".layui-progress-bar"),l=e.attr("lay-percent");e.css("width",function(){return/^.+\/.+$/.test(l)?100*new Function("return "+l)()+"%":l}()),i.attr("lay-showPercent")&&setTimeout(function(){e.html(''+l+"")},350)})},collapse:function(){var t="layui-collapse";a("."+t+l).each(function(){var t=a(this).find(".layui-colla-item");t.each(function(){var t=a(this),i=t.find(".layui-colla-title"),e=t.find(".layui-colla-content"),l="none"===e.css("display");i.find(".layui-colla-icon").remove(),i.append(''+(l?"":"")+""),i.off("click",f.collapse).on("click",f.collapse)})})}};return s[t]?s[t]():layui.each(s,function(t,a){a()})},s.prototype.render=s.prototype.init;var p=new s,b=a(document);p.render();var v=".layui-tab-title li";b.on("click",v,f.tabClick),b.on("click",f.hideTabMore),a(window).on("resize",f.tabAuto),t(e,p)}); -------------------------------------------------------------------------------- /lib/layui/css/modules/laydate/default/laydate.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | .laydate-set-ym,.layui-laydate,.layui-laydate *,.layui-laydate-list{box-sizing:border-box}html #layuicss-laydate{display:none;position:absolute;width:1989px}.layui-laydate *{margin:0;padding:0}.layui-laydate{position:absolute;z-index:66666666;margin:5px 0;border-radius:2px;font-size:14px;-webkit-animation-duration:.3s;animation-duration:.3s;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-name:laydate-upbit;animation-name:laydate-upbit}.layui-laydate-main{width:272px}.layui-laydate-content td,.layui-laydate-header *,.layui-laydate-list li{transition-duration:.3s;-webkit-transition-duration:.3s}@-webkit-keyframes laydate-upbit{from{-webkit-transform:translate3d(0,20px,0);opacity:.3}to{-webkit-transform:translate3d(0,0,0);opacity:1}}@keyframes laydate-upbit{from{transform:translate3d(0,20px,0);opacity:.3}to{transform:translate3d(0,0,0);opacity:1}}.layui-laydate-static{position:relative;z-index:0;display:inline-block;margin:0;-webkit-animation:none;animation:none}.laydate-ym-show .laydate-next-m,.laydate-ym-show .laydate-prev-m{display:none!important}.laydate-ym-show .laydate-next-y,.laydate-ym-show .laydate-prev-y{display:inline-block!important}.laydate-time-show .laydate-set-ym span[lay-type=month],.laydate-time-show .laydate-set-ym span[lay-type=year],.laydate-time-show .layui-laydate-header .layui-icon,.laydate-ym-show .laydate-set-ym span[lay-type=month]{display:none!important}.layui-laydate-header{position:relative;line-height:30px;padding:10px 70px 5px}.laydate-set-ym span,.layui-laydate-header i{padding:0 5px;cursor:pointer}.layui-laydate-header *{display:inline-block;vertical-align:bottom}.layui-laydate-header i{position:absolute;top:10px;color:#999;font-size:18px}.layui-laydate-header i.laydate-prev-y{left:15px}.layui-laydate-header i.laydate-prev-m{left:45px}.layui-laydate-header i.laydate-next-y{right:15px}.layui-laydate-header i.laydate-next-m{right:45px}.laydate-set-ym{width:100%;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.laydate-time-text{cursor:default!important}.layui-laydate-content{position:relative;padding:10px;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-laydate-content table{border-collapse:collapse;border-spacing:0}.layui-laydate-content td,.layui-laydate-content th{width:36px;height:30px;padding:5px;text-align:center}.layui-laydate-content td{position:relative;cursor:pointer}.laydate-day-mark{position:absolute;left:0;top:0;width:100%;height:100%;line-height:30px;font-size:12px;overflow:hidden}.laydate-day-mark::after{position:absolute;content:'';right:2px;top:2px;width:5px;height:5px;border-radius:50%}.layui-laydate-footer{position:relative;height:46px;line-height:26px;padding:10px 20px}.layui-laydate-footer span{margin-right:15px;display:inline-block;cursor:pointer;font-size:12px}.layui-laydate-footer span:hover{color:#5FB878}.laydate-footer-btns{position:absolute;right:10px;top:10px}.laydate-footer-btns span{height:26px;line-height:26px;margin:0 0 0 -1px;padding:0 10px;border:1px solid #C9C9C9;background-color:#fff;white-space:nowrap;vertical-align:top;border-radius:2px}.layui-laydate-list>li,.layui-laydate-range .layui-laydate-main{display:inline-block;vertical-align:middle}.layui-laydate-list{position:absolute;left:0;top:0;width:100%;height:100%;padding:10px;background-color:#fff}.layui-laydate-list>li{position:relative;width:33.3%;height:36px;line-height:36px;margin:3px 0;text-align:center;cursor:pointer}.laydate-month-list>li{width:25%;margin:17px 0}.laydate-time-list>li{height:100%;margin:0;line-height:normal;cursor:default}.laydate-time-list p{position:relative;top:-4px;line-height:29px}.laydate-time-list ol{height:181px;overflow:hidden}.laydate-time-list>li:hover ol{overflow-y:auto}.laydate-time-list ol li{width:130%;padding-left:33px;line-height:30px;text-align:left;cursor:pointer}.layui-laydate-hint{position:absolute;top:115px;left:50%;width:250px;margin-left:-125px;line-height:20px;padding:15px;text-align:center;font-size:12px}.layui-laydate-range{width:546px}.layui-laydate-range .laydate-main-list-0 .laydate-next-m,.layui-laydate-range .laydate-main-list-0 .laydate-next-y,.layui-laydate-range .laydate-main-list-1 .laydate-prev-m,.layui-laydate-range .laydate-main-list-1 .laydate-prev-y{display:none}.layui-laydate-range .laydate-main-list-1 .layui-laydate-content{border-left:1px solid #e2e2e2}.layui-laydate,.layui-laydate-hint{border:1px solid #d2d2d2;box-shadow:0 2px 4px rgba(0,0,0,.12);background-color:#fff;color:#666}.layui-laydate-header{border-bottom:1px solid #e2e2e2}.layui-laydate-header i:hover,.layui-laydate-header span:hover{color:#5FB878}.layui-laydate-content{border-top:none 0;border-bottom:none 0}.layui-laydate-content th{font-weight:400;color:#333}.layui-laydate-content td{color:#666}.layui-laydate-content td.laydate-selected{background-color:#00F7DE}.laydate-selected:hover{background-color:#00F7DE!important}.layui-laydate-content td:hover,.layui-laydate-list li:hover{background-color:#eaeaea;color:#333}.laydate-time-list li ol{margin:0;padding:0;border:1px solid #e2e2e2;border-left-width:0}.laydate-time-list li:first-child ol{border-left-width:1px}.laydate-time-list>li:hover{background:0 0}.layui-laydate-content .laydate-day-next,.layui-laydate-content .laydate-day-prev{color:#d2d2d2}.laydate-selected.laydate-day-next,.laydate-selected.laydate-day-prev{background-color:#f8f8f8!important}.layui-laydate-footer{border-top:1px solid #e2e2e2}.layui-laydate-hint{color:#FF5722}.laydate-day-mark::after{background-color:#5FB878}.layui-laydate-content td.layui-this .laydate-day-mark::after{display:none}.layui-laydate-footer span[lay-type=date]{color:#5FB878}.layui-laydate .layui-this{background-color:#009688!important;color:#fff!important}.layui-laydate .laydate-disabled,.layui-laydate .laydate-disabled:hover{background:0 0!important;color:#d2d2d2!important;cursor:not-allowed!important;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.laydate-theme-molv{border:none}.laydate-theme-molv.layui-laydate-range{width:548px}.laydate-theme-molv .layui-laydate-main{width:274px}.laydate-theme-molv .layui-laydate-header{border:none;background-color:#009688}.laydate-theme-molv .layui-laydate-header i,.laydate-theme-molv .layui-laydate-header span{color:#f6f6f6}.laydate-theme-molv .layui-laydate-header i:hover,.laydate-theme-molv .layui-laydate-header span:hover{color:#fff}.laydate-theme-molv .layui-laydate-content{border:1px solid #e2e2e2;border-top:none;border-bottom:none}.laydate-theme-molv .laydate-main-list-1 .layui-laydate-content{border-left:none}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li,.laydate-theme-grid .layui-laydate-content td,.laydate-theme-grid .layui-laydate-content thead,.laydate-theme-molv .layui-laydate-footer{border:1px solid #e2e2e2}.laydate-theme-grid .laydate-selected,.laydate-theme-grid .laydate-selected:hover{background-color:#f2f2f2!important;color:#009688!important}.laydate-theme-grid .laydate-selected.laydate-day-next,.laydate-theme-grid .laydate-selected.laydate-day-prev{color:#d2d2d2!important}.laydate-theme-grid .laydate-month-list,.laydate-theme-grid .laydate-year-list{margin:1px 0 0 1px}.laydate-theme-grid .laydate-month-list>li,.laydate-theme-grid .laydate-year-list>li{margin:0 -1px -1px 0}.laydate-theme-grid .laydate-year-list>li{height:43px;line-height:43px}.laydate-theme-grid .laydate-month-list>li{height:71px;line-height:71px} -------------------------------------------------------------------------------- /component/upload/demo2.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
    31 |
    32 |
    33 |
    34 |
    选完文件后不自动上传
    35 |
    36 |
    37 | 38 | 39 |
    40 |
    41 |
    42 |
    43 | 44 |
    45 |
    46 |
    拖拽上传
    47 |
    48 |
    49 | 50 |

    点击上传,或将文件拖拽到此处

    51 |
    52 |
    53 |
    54 |
    55 | 56 |
    57 |
    58 |
    高级应用:制作一个多文件列表
    59 |
    60 |
    61 | 62 |
    63 | 64 | 65 | 66 | 67 | 68 | 69 | 70 | 71 |
    文件名大小状态操作
    72 |
    73 | 74 |
    75 |
    76 |
    77 |
    78 | 79 |
    80 |
    81 |
    绑定原始文件域
    82 |
    83 | 84 |
    85 |
    86 |
    87 | 88 |
    89 |
    90 | 91 | 184 | 185 | -------------------------------------------------------------------------------- /component/tabs/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
    31 |
    32 |
    33 |
    34 |
    默认风格
    35 |
    36 |
    37 |
      38 |
    • 网站设置
    • 39 |
    • 用户管理
    • 40 |
    • 权限分配
    • 41 |
    • 商品管理
    • 42 |
    • 订单管理
    • 43 |
    44 |
    45 |
    46 | 1. 高度默认自适应,也可以随意固宽。 47 |
    2. Tab进行了响应式处理,所以无需担心数量多少。 48 |
    49 |
    内容2
    50 |
    内容3
    51 |
    内容4
    52 |
    内容5
    53 |
    54 |
    55 |
    56 |
    57 |
    58 |
    简洁风格
    59 |
    60 |
    61 |
      62 |
    • 网站设置
    • 63 |
    • 用户管理
    • 64 |
    • 权限分配
    • 65 |
    • 商品管理
    • 66 |
    • 订单管理
    • 67 |
    68 |
    69 |
    70 | 你也可以监听 tab 事件 71 |
    72 |
    内容2
    73 |
    内容3
    74 |
    内容4
    75 |
    内容5
    76 |
    77 |
    78 |
    79 |
    80 |
    81 |
    卡片风格
    82 |
    83 |
    84 |
      85 |
    • 网站设置
    • 86 |
    • 用户管理
    • 87 |
    • 权限分配
    • 88 |
    • 商品管理
    • 89 |
    • 订单管理
    • 90 |
    91 |
    92 |
    默认宽度是相对于父元素100%适应的,你也可以固定宽度。
    93 |
    2
    94 |
    3
    95 |
    4
    96 |
    5
    97 |
    6
    98 |
    99 |
    100 |
    101 |
    102 |
    103 |
    104 |
    105 |
    动态操作
    106 |
    107 |
    108 |
      109 |
    • 网站设置
    • 110 |
    • 用户管理
    • 111 |
    • 权限分配
    • 112 |
    • 商品管理
    • 113 |
    • 订单管理
    • 114 |
    115 |
    116 |
    内容1
    117 |
    内容2
    118 |
    内容3
    119 |
    120 |
    121 |
    122 | 123 | 124 | 125 |
    126 |
    127 |
    128 |
    129 |
    记录状态
    130 |
    131 |
    132 |
      133 |
    • 网站设置
    • 134 |
    • 用户管理
    • 135 |
    • 权限分配
    • 136 |
    • 商品管理
    • 137 |
    • 订单管理
    • 138 |
    139 |
    140 |
    141 | 点击该Tab的任一标题,观察地址栏变化,再刷新页面。选项卡将会自动定位到上一次切换的项 142 |
    143 |
    内容2
    144 |
    内容3
    145 |
    内容4
    146 |
    内容5
    147 |
    148 |
    149 |
    150 |
    151 |
    152 |
    153 | 154 | 189 | 190 | -------------------------------------------------------------------------------- /component/upload/demo1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 24 | 27 | 28 | 29 | 30 |
    31 |
    32 |
    33 |
    34 |
    普通图片上传
    35 |
    36 |
    37 | 38 |
    39 | 40 |

    41 |
    42 |
    43 |
    44 | 为节省服务器开销,以下示例均未配置真实上传接口,所以每次上传都会报提示:请求上传接口出现异常,这属于正常现象。 45 |
    46 |
    47 |
    48 |
    49 | 50 |
    51 |
    52 |
    上传多张图片
    53 |
    54 |
    55 | 56 |
    57 | 预览图: 58 |
    59 |
    60 |
    61 |
    62 |
    63 |
    64 | 65 |
    66 |
    67 |
    指定允许上传的文件类型
    68 |
    69 | 70 | 71 | 72 | 73 |
    74 |
    75 |
    76 | 77 |
    78 |
    79 |
    设定文件大小限制
    80 |
    81 | 84 |
    85 | 这里以限制 60KB 为例 86 |
    87 |
    88 |
    89 |
    90 | 91 |
    92 |
    93 |
    同时绑定多个元素,并将属性设定在元素上
    94 |
    95 | 96 | 97 | 98 |
    99 |
    100 |
    101 | 102 |
    103 |
    104 | 105 | 212 | 213 | -------------------------------------------------------------------------------- /lib/layui/lay/modules/form.js: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | ;layui.define("layer",function(e){"use strict";var t=layui.$,i=layui.layer,a=layui.hint(),n=layui.device(),l="form",r=".layui-form",s="layui-this",o="layui-hide",c="layui-disabled",u=function(){this.config={verify:{required:[/[\S]+/,"必填项不能为空"],phone:[/^1\d{10}$/,"请输入正确的手机号"],email:[/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/,"邮箱格式不正确"],url:[/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/,"链接格式不正确"],number:function(e){if(!e||isNaN(e))return"只能填写数字"},date:[/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/,"日期格式不正确"],identity:[/(^\d{15}$)|(^\d{17}(x|X|\d)$)/,"请输入正确的身份证号"]}}};u.prototype.set=function(e){var i=this;return t.extend(!0,i.config,e),i},u.prototype.verify=function(e){var i=this;return t.extend(!0,i.config.verify,e),i},u.prototype.on=function(e,t){return layui.onevent.call(this,l,e,t)},u.prototype.val=function(e,i){var a=this,n=t(r+'[lay-filter="'+e+'"]');return n.each(function(e,a){var n=t(this);layui.each(i,function(e,t){var i,a=n.find('[name="'+e+'"]');a[0]&&(i=a[0].type,"checkbox"===i?a[0].checked=t:"radio"===i?a.each(function(){this.value==t&&(this.checked=!0)}):a.val(t))})}),f.render(null,e),a.getValue(e)},u.prototype.getValue=function(e,i){i=i||t(r+'[lay-filter="'+e+'"]').eq(0);var a={},n={},l=i.find("input,select,textarea");return layui.each(l,function(e,t){if(t.name=(t.name||"").replace(/^\s*|\s*&/,""),t.name){if(/^.*\[\]$/.test(t.name)){var i=t.name.match(/^(.*)\[\]$/g)[0];a[i]=0|a[i],t.name=t.name.replace(/^(.*)\[\]$/,"$1["+a[i]++ +"]")}/^checkbox|radio$/.test(t.type)&&!t.checked||(n[t.name]=t.value)}}),n},u.prototype.render=function(e,i){var n=this,u=t(r+function(){return i?'[lay-filter="'+i+'"]':""}()),d={select:function(){var e,i="请选择",a="layui-form-select",n="layui-select-title",r="layui-select-none",d="",f=u.find("select"),v=function(i,l){t(i.target).parent().hasClass(n)&&!l||(t("."+a).removeClass(a+"ed "+a+"up"),e&&d&&e.val(d)),e=null},y=function(i,u,f){var y,p=t(this),m=i.find("."+n),k=m.find("input"),g=i.find("dl"),x=g.children("dd"),b=this.selectedIndex;if(!u){var C=function(){var e=i.offset().top+i.outerHeight()+5-h.scrollTop(),t=g.outerHeight();b=p[0].selectedIndex,i.addClass(a+"ed"),x.removeClass(o),y=null,x.eq(b).addClass(s).siblings().removeClass(s),e+t>h.height()&&e>=t&&i.addClass(a+"up"),T()},w=function(e){i.removeClass(a+"ed "+a+"up"),k.blur(),y=null,e||$(k.val(),function(e){var i=p[0].selectedIndex;e&&(d=t(p[0].options[i]).html(),0===i&&d===k.attr("placeholder")&&(d=""),k.val(d||""))})},T=function(){var e=g.children("dd."+s);if(e[0]){var t=e.position().top,i=g.height(),a=e.height();t>i&&g.scrollTop(t+g.scrollTop()-i+a-5),t<0&&g.scrollTop(t+g.scrollTop()-5)}};m.on("click",function(e){i.hasClass(a+"ed")?w():(v(e,!0),C()),g.find("."+r).remove()}),m.find(".layui-edge").on("click",function(){k.focus()}),k.on("keyup",function(e){var t=e.keyCode;9===t&&C()}).on("keydown",function(e){var t=e.keyCode;9===t&&w();var i=function(t,a){var n,l;e.preventDefault();var r=function(){var e=g.children("dd."+s);if(g.children("dd."+o)[0]&&"next"===t){var i=g.children("dd:not(."+o+",."+c+")"),n=i.eq(0).index();if(n>=0&&n无匹配项

    '):g.find("."+r).remove()},"keyup"),""===t&&g.find("."+r).remove(),void T())};f&&k.on("keyup",q).on("blur",function(i){var a=p[0].selectedIndex;e=k,d=t(p[0].options[a]).html(),0===a&&d===k.attr("placeholder")&&(d=""),setTimeout(function(){$(k.val(),function(e){d||k.val("")},"blur")},200)}),x.on("click",function(){var e=t(this),a=e.attr("lay-value"),n=p.attr("lay-filter");return!e.hasClass(c)&&(e.hasClass("layui-select-tips")?k.val(""):(k.val(e.text()),e.addClass(s)),e.siblings().removeClass(s),p.val(a).removeClass("layui-form-danger"),layui.event.call(this,l,"select("+n+")",{elem:p[0],value:a,othis:i}),w(!0),!1)}),i.find("dl>dt").on("click",function(e){return!1}),t(document).off("click",v).on("click",v)}};f.each(function(e,l){var r=t(this),o=r.next("."+a),u=this.disabled,d=l.value,f=t(l.options[l.selectedIndex]),v=l.options[0];if("string"==typeof r.attr("lay-ignore"))return r.show();var h="string"==typeof r.attr("lay-search"),p=v?v.value?i:v.innerHTML||i:i,m=t(['
    ','
    ','','
    ','
    ',function(e){var t=[];return layui.each(e,function(e,a){0!==e||a.value?"optgroup"===a.tagName.toLowerCase()?t.push("
    "+a.label+"
    "):t.push('
    '+a.innerHTML+"
    "):t.push('
    '+(a.innerHTML||i)+"
    ")}),0===t.length&&t.push('
    没有选项
    '),t.join("")}(r.find("*"))+"
    ","
    "].join(""));o[0]&&o.remove(),r.after(m),y.call(this,m,u,h)})},checkbox:function(){var e={checkbox:["layui-form-checkbox","layui-form-checked","checkbox"],_switch:["layui-form-switch","layui-form-onswitch","switch"]},i=u.find("input[type=checkbox]"),a=function(e,i){var a=t(this);e.on("click",function(){var t=a.attr("lay-filter"),n=(a.attr("lay-text")||"").split("|");a[0].disabled||(a[0].checked?(a[0].checked=!1,e.removeClass(i[1]).find("em").text(n[1])):(a[0].checked=!0,e.addClass(i[1]).find("em").text(n[0])),layui.event.call(a[0],l,i[2]+"("+t+")",{elem:a[0],value:a[0].value,othis:e}))})};i.each(function(i,n){var l=t(this),r=l.attr("lay-skin"),s=(l.attr("lay-text")||"").split("|"),o=this.disabled;"switch"===r&&(r="_"+r);var u=e[r]||e.checkbox;if("string"==typeof l.attr("lay-ignore"))return l.show();var d=l.next("."+u[0]),f=t(['
    ",function(){var e=n.title.replace(/\s/g,""),t={checkbox:[e?""+n.title+"":"",''].join(""),_switch:""+((n.checked?s[0]:s[1])||"")+""};return t[r]||t.checkbox}(),"
    "].join(""));d[0]&&d.remove(),l.after(f),a.call(this,f,u)})},radio:function(){var e="layui-form-radio",i=["",""],a=u.find("input[type=radio]"),n=function(a){var n=t(this),s="layui-anim-scaleSpring";a.on("click",function(){var o=n[0].name,c=n.parents(r),u=n.attr("lay-filter"),d=c.find("input[name="+o.replace(/(\.|#|\[|\])/g,"\\$1")+"]");n[0].disabled||(layui.each(d,function(){var a=t(this).next("."+e);this.checked=!1,a.removeClass(e+"ed"),a.find(".layui-icon").removeClass(s).html(i[1])}),n[0].checked=!0,a.addClass(e+"ed"),a.find(".layui-icon").addClass(s).html(i[0]),layui.event.call(n[0],l,"radio("+u+")",{elem:n[0],value:n[0].value,othis:a}))})};a.each(function(a,l){var r=t(this),s=r.next("."+e),o=this.disabled;if("string"==typeof r.attr("lay-ignore"))return r.show();s[0]&&s.remove();var u=t(['
    ',''+i[l.checked?0:1]+"","
    "+function(){var e=l.title||"";return"string"==typeof r.next().attr("lay-radio")&&(e=r.next().html(),r.next().remove()),e}()+"
    ","
    "].join(""));r.after(u),n.call(this,u)})}};return e?d[e]?d[e]():a.error("不支持的"+e+"表单渲染"):layui.each(d,function(e,t){t()}),n};var d=function(){var e=null,a=f.config.verify,s="layui-form-danger",o={},c=t(this),u=c.parents(r),d=u.find("*[lay-verify]"),v=c.parents("form")[0],h=c.attr("lay-filter");return layui.each(d,function(l,r){var o=t(this),c=o.attr("lay-verify").split("|"),u=o.attr("lay-verType"),d=o.val();if(o.removeClass(s),layui.each(c,function(t,l){var c,f="",v="function"==typeof a[l];if(a[l]){var c=v?f=a[l](d,r):!a[l][0].test(d);if(f=f||a[l][1],"required"===l&&(f=o.attr("lay-reqText")||f),c)return"tips"===u?i.tips(f,function(){return"string"==typeof o.attr("lay-ignore")||"select"!==r.tagName.toLowerCase()&&!/^checkbox|radio$/.test(r.type)?o:o.next()}(),{tips:1}):"alert"===u?i.alert(f,{title:"提示",shadeClose:!0}):i.msg(f,{icon:5,shift:6}),n.android||n.ios||setTimeout(function(){r.focus()},7),o.addClass(s),e=!0}}),e)return e}),!e&&(o=f.getValue(null,u),layui.event.call(this,l,"submit("+h+")",{elem:this,form:v,field:o}))},f=new u,v=t(document),h=t(window);f.render(),v.on("reset",r,function(){var e=t(this).attr("lay-filter");setTimeout(function(){f.render(null,e)},50)}),v.on("submit",r,d).on("click","*[lay-submit]",d),e(l,f)}); -------------------------------------------------------------------------------- /DataGrid1.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
    27 |
    28 |
    29 | 基本数据表格二 30 | 31 | 32 | 33 | 34 | 35 |
    36 |
    37 |
    38 |
    39 |
    40 | 41 |
    42 |
    43 | 44 |
    45 |
    46 | 47 |
    48 |
    49 | 51 |
    52 |
    53 |
    54 |
    55 |
    56 |
    57 |
    58 | 59 | 226 | 227 | -------------------------------------------------------------------------------- /DataGrid.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 23 | 24 | 25 | 26 |
    27 |
    28 |
    29 | 基本数据表格一 30 | 31 | 32 | 33 | 34 | 35 |
    36 |
    37 |
    38 |
    39 |
    40 | 41 |
    42 |
    43 | 44 |
    45 |
    46 | 47 |
    48 |
    49 | 51 |
    52 |
    53 |
    54 |
    55 | 58 | 60 | 62 |
    63 |
    64 |
    65 |
    66 |
    67 | 68 | 207 | 208 | -------------------------------------------------------------------------------- /lib/layui/css/layui.mobile.css: -------------------------------------------------------------------------------- 1 | /** layui-v2.5.5 MIT License By https://www.layui.com */ 2 | blockquote,body,button,dd,div,dl,dt,form,h1,h2,h3,h4,h5,h6,input,legend,li,ol,p,td,textarea,th,ul{margin:0;padding:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}html{font:12px 'Helvetica Neue','PingFang SC',STHeitiSC-Light,Helvetica,Arial,sans-serif;-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%}a,button,input{-webkit-tap-highlight-color:rgba(255,0,0,0)}a{text-decoration:none;background:0 0}a:active,a:hover{outline:0}table{border-collapse:collapse;border-spacing:0}li{list-style:none}b,strong{font-weight:700}h1,h2,h3,h4,h5,h6{font-weight:500}address,cite,dfn,em,var{font-style:normal}dfn{font-style:italic}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}img{border:0;vertical-align:bottom}.layui-inline,input,label{vertical-align:middle}button,input,optgroup,select,textarea{color:inherit;font:inherit;margin:0;outline:0}button,select{text-transform:none}select{-webkit-appearance:none;border:none}input{line-height:normal}input[type=checkbox],input[type=radio]{box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-appearance:textfield;-moz-box-sizing:content-box;-webkit-box-sizing:content-box;box-sizing:content-box}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}@font-face{font-family:layui-icon;src:url(../font/iconfont.eot?v=1.0.7);src:url(../font/iconfont.eot?v=1.0.7#iefix) format('embedded-opentype'),url(../font/iconfont.woff?v=1.0.7) format('woff'),url(../font/iconfont.ttf?v=1.0.7) format('truetype'),url(../font/iconfont.svg?v=1.0.7#iconfont) format('svg')}.layui-icon{font-family:layui-icon!important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.layui-box,.layui-box *{-webkit-box-sizing:content-box!important;-moz-box-sizing:content-box!important;box-sizing:content-box!important}.layui-border-box,.layui-border-box *{-webkit-box-sizing:border-box!important;-moz-box-sizing:border-box!important;box-sizing:border-box!important}.layui-inline{position:relative;display:inline-block;*display:inline;*zoom:1}.layui-edge,.layui-upload-iframe{position:absolute;width:0;height:0}.layui-edge{border-style:dashed;border-color:transparent;overflow:hidden}.layui-elip{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-unselect{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.layui-disabled,.layui-disabled:active{background-color:#d2d2d2!important;color:#fff!important;cursor:not-allowed!important}.layui-circle{border-radius:100%}.layui-show{display:block!important}.layui-hide{display:none!important}.layui-upload-iframe{border:0;visibility:hidden}.layui-upload-enter{border:1px solid #009E94;background-color:#009E94;color:#fff;-webkit-transform:scale(1.1);transform:scale(1.1)}@-webkit-keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}@keyframes layui-m-anim-scale{0%{opacity:0;-webkit-transform:scale(.5);transform:scale(.5)}100%{opacity:1;-webkit-transform:scale(1);transform:scale(1)}}.layui-m-anim-scale{animation-name:layui-m-anim-scale;-webkit-animation-name:layui-m-anim-scale}@-webkit-keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}@keyframes layui-m-anim-up{0%{opacity:0;-webkit-transform:translateY(800px);transform:translateY(800px)}100%{opacity:1;-webkit-transform:translateY(0);transform:translateY(0)}}.layui-m-anim-up{-webkit-animation-name:layui-m-anim-up;animation-name:layui-m-anim-up}@-webkit-keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-left{0%{-webkit-transform:translateX(100%);transform:translateX(100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-left{-webkit-animation-name:layui-m-anim-left;animation-name:layui-m-anim-left}@-webkit-keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}@keyframes layui-m-anim-right{0%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}100%{-webkit-transform:translateX(0);transform:translateX(0)}}.layui-m-anim-right{-webkit-animation-name:layui-m-anim-right;animation-name:layui-m-anim-right}@-webkit-keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}@keyframes layui-m-anim-lout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(-100%);transform:translateX(-100%)}}.layui-m-anim-lout{-webkit-animation-name:layui-m-anim-lout;animation-name:layui-m-anim-lout}@-webkit-keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}@keyframes layui-m-anim-rout{0%{-webkit-transform:translateX(0);transform:translateX(0)}100%{-webkit-transform:translateX(100%);transform:translateX(100%)}}.layui-m-anim-rout{-webkit-animation-name:layui-m-anim-rout;animation-name:layui-m-anim-rout}.layui-m-layer{position:relative;z-index:19891014}.layui-m-layer *{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}.layui-m-layermain,.layui-m-layershade{position:fixed;left:0;top:0;width:100%;height:100%}.layui-m-layershade{background-color:rgba(0,0,0,.7);pointer-events:auto}.layui-m-layermain{display:table;font-family:Helvetica,arial,sans-serif;pointer-events:none}.layui-m-layermain .layui-m-layersection{display:table-cell;vertical-align:middle;text-align:center}.layui-m-layerchild{position:relative;display:inline-block;text-align:left;background-color:#fff;font-size:14px;border-radius:5px;box-shadow:0 0 8px rgba(0,0,0,.1);pointer-events:auto;-webkit-overflow-scrolling:touch;-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-duration:.2s;animation-duration:.2s}.layui-m-layer0 .layui-m-layerchild{width:90%;max-width:640px}.layui-m-layer1 .layui-m-layerchild{border:none;border-radius:0}.layui-m-layer2 .layui-m-layerchild{width:auto;max-width:260px;min-width:40px;border:none;background:0 0;box-shadow:none;color:#fff}.layui-m-layerchild h3{padding:0 10px;height:60px;line-height:60px;font-size:16px;font-weight:400;border-radius:5px 5px 0 0;text-align:center}.layui-m-layerbtn span,.layui-m-layerchild h3{text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.layui-m-layercont{padding:50px 30px;line-height:22px;text-align:center}.layui-m-layer1 .layui-m-layercont{padding:0;text-align:left}.layui-m-layer2 .layui-m-layercont{text-align:center;padding:0;line-height:0}.layui-m-layer2 .layui-m-layercont i{width:25px;height:25px;margin-left:8px;display:inline-block;background-color:#fff;border-radius:100%;-webkit-animation:layui-m-anim-loading 1.4s infinite ease-in-out;animation:layui-m-anim-loading 1.4s infinite ease-in-out;-webkit-animation-fill-mode:both;animation-fill-mode:both}.layui-m-layerbtn,.layui-m-layerbtn span{position:relative;text-align:center;border-radius:0 0 5px 5px}.layui-m-layer2 .layui-m-layercont p{margin-top:20px}@-webkit-keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}@keyframes layui-m-anim-loading{0%,100%,80%{transform:scale(0);-webkit-transform:scale(0)}40%{transform:scale(1);-webkit-transform:scale(1)}}.layui-m-layer2 .layui-m-layercont i:first-child{margin-left:0;-webkit-animation-delay:-.32s;animation-delay:-.32s}.layui-m-layer2 .layui-m-layercont i.layui-m-layerload{-webkit-animation-delay:-.16s;animation-delay:-.16s}.layui-m-layer2 .layui-m-layercont>div{line-height:22px;padding-top:7px;margin-bottom:20px;font-size:14px}.layui-m-layerbtn{display:box;display:-moz-box;display:-webkit-box;width:100%;height:50px;line-height:50px;font-size:0;border-top:1px solid #D0D0D0;background-color:#F2F2F2}.layui-m-layerbtn span{display:block;-moz-box-flex:1;box-flex:1;-webkit-box-flex:1;font-size:14px;cursor:pointer}.layui-m-layerbtn span[yes]{color:#40AFFE}.layui-m-layerbtn span[no]{border-right:1px solid #D0D0D0;border-radius:0 0 0 5px}.layui-m-layerbtn span:active{background-color:#F6F6F6}.layui-m-layerend{position:absolute;right:7px;top:10px;width:30px;height:30px;border:0;font-weight:400;background:0 0;cursor:pointer;-webkit-appearance:none;font-size:30px}.layui-m-layerend::after,.layui-m-layerend::before{position:absolute;left:5px;top:15px;content:'';width:18px;height:1px;background-color:#999;transform:rotate(45deg);-webkit-transform:rotate(45deg);border-radius:3px}.layui-m-layerend::after{transform:rotate(-45deg);-webkit-transform:rotate(-45deg)}body .layui-m-layer .layui-m-layer-footer{position:fixed;width:95%;max-width:100%;margin:0 auto;left:0;right:0;bottom:10px;background:0 0}.layui-m-layer-footer .layui-m-layercont{padding:20px;border-radius:5px 5px 0 0;background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn{display:block;height:auto;background:0 0;border-top:none}.layui-m-layer-footer .layui-m-layerbtn span{background-color:rgba(255,255,255,.8)}.layui-m-layer-footer .layui-m-layerbtn span[no]{color:#FD482C;border-top:1px solid #c2c2c2;border-radius:0 0 5px 5px}.layui-m-layer-footer .layui-m-layerbtn span[yes]{margin-top:10px;border-radius:5px}body .layui-m-layer .layui-m-layer-msg{width:auto;max-width:90%;margin:0 auto;bottom:-150px;background-color:rgba(0,0,0,.7);color:#fff}.layui-m-layer-msg .layui-m-layercont{padding:10px 20px} --------------------------------------------------------------------------------