Merge branch 'master' of https://github.com/sentsin/layui into sentsin-master
5
.gitignore
vendored
@ -19,11 +19,6 @@ node_modules/
|
||||
_site/
|
||||
run.bat
|
||||
dir.txt
|
||||
/**/layim/
|
||||
/**/layim.js
|
||||
/**/layim-mobile.js
|
||||
/**/layim.html
|
||||
/**/layim.m.html
|
||||
|
||||
release/
|
||||
build/
|
||||
|
18
.travis.yml
@ -1,18 +0,0 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- node
|
||||
dist: trusty
|
||||
addons:
|
||||
sauce_connect:
|
||||
username: layui
|
||||
jwt:
|
||||
secure: "c+I/AGPj+9cdZOtwGv9eFBdFNlo/BtSEnZ/mGXBLM2+FUn8Dptvhqy1XalRBul3sNiCyv2lNtcZPGw0kirI4EjGiXFfqghq9psvwOchkNM+bFxAiH+uRYCVb1ouDbpAh0w4d/nxpB11fPdVNzudwbiI/ii8LNm1sDDnJOklHiuzWBgOVN2jkzNRapacLfto6bWjnyS4r/zElLwnKpXlN6cIJFzYBU1f/RS68xaHwr/9+wvf5gNzL7OmmiIxl+UJJMejoK3G7I6DTiXyosJxsnljSxG0zbDSDL9lzPeQjFClya25ubbCFPv/UADlVAlz5Y4SLIaTUaRWD7tVphpku5S9XBwIopRQBdtp6y1Ebh/F7pDAiuN8lHzvkr6z++ld9nVcSJppSWN/tyibN7b+C7m6TyreVMHFjw+egAbd3wPVgrD30Vswu9vQXyVydcRJiP295VclgaHobdZKEwrqK7mujsOVOlZEoZWm2B+MLGfvYIjhVdpcRGlAZN+VvA+ea93t/poY1LB1/qH0vF2jMNa3ZI6AWrZaaTbToMUEj6QB9tnOGnGvINOGJDamMMB6aeCLaEgZzRqvTYXgzJAi1kYQKkCL//v3Z6od5eDBUVgMEOkTIchPjSDX5lwMedroPwnFql9ArIWnm7mLHQToEArOoKQhSlFOx+sA/nortCL4="
|
||||
sudo: false
|
||||
cache:
|
||||
directories:
|
||||
- node_modules
|
||||
script:
|
||||
- npm run test:cov
|
||||
- npm run test:sauce
|
||||
after_script:
|
||||
- npm install coveralls && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
|
22
CHANGELOG.md
@ -1,23 +1,3 @@
|
||||
|
||||
# 更新日志
|
||||
* [2.5.x](https://www.layui.com/doc/base/changelog.html#2-5-x)
|
||||
* [2.4.x](https://www.layui.com/doc/base/changelog.html#2-4-x)
|
||||
* [2.3.0](https://www.layui.com/doc/base/changelog.html#2-3-0)
|
||||
* [2.2.6](https://www.layui.com/doc/base/changelog.html#2-2-6)
|
||||
* [2.2.5](https://www.layui.com/doc/base/changelog.html#2-2-5)
|
||||
* [2.2.4](https://www.layui.com/doc/base/changelog.html#2-2-45)
|
||||
* [2.2.3](https://www.layui.com/doc/base/changelog.html#2-2-3)
|
||||
* [2.2.2](https://www.layui.com/doc/base/changelog.html#2-2-2)
|
||||
* [2.2.1](https://www.layui.com/doc/base/changelog.html#2-2-1)
|
||||
* [2.2.0](https://www.layui.com/doc/base/changelog.html#2-2-0)
|
||||
* [2.1.7](https://www.layui.com/doc/base/changelog.html#2-1-7)
|
||||
* [2.1.6](https://www.layui.com/doc/base/changelog.html#2-1-6)
|
||||
* [2.1.5](https://www.layui.com/doc/base/changelog.html#2-1-5)
|
||||
* [2.1.4](https://www.layui.com/doc/base/changelog.html#2-1-4)
|
||||
* [2.1.3](https://www.layui.com/doc/base/changelog.html#2-1-3)
|
||||
* [2.1.2](https://www.layui.com/doc/base/changelog.html#2-1-2)
|
||||
* [2.1.1](https://www.layui.com/doc/base/changelog.html#2-1-1)
|
||||
* [2.1.0](https://www.layui.com/doc/base/changelog.html#2-1-0)
|
||||
* [2.0.2](https://www.layui.com/doc/base/changelog.html#2-0-2)
|
||||
* [2.0.1](https://www.layui.com/doc/base/changelog.html#2-0-1)
|
||||
* [2.0.0](https://www.layui.com/doc/base/changelog.html#2-0-0)
|
||||
https://github.com/sentsin/layui/releases
|
||||
|
75
README.md
@ -1,31 +1,37 @@
|
||||
<p align=center>
|
||||
|
||||
<p align="center">
|
||||
<a href="http://www.layui.com">
|
||||
<img src="https://sentsin.gitee.io/res/images/layui/layui.png" alt="layui" width="360">
|
||||
</a>
|
||||
</p>
|
||||
<p align=center>
|
||||
<p align="center">
|
||||
Classic modular front-end UI framework
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<p align="center">
|
||||
<a href="https://www.npmjs.com/package/layui"><img src="https://img.shields.io/npm/v/layui.svg?sanitize=true" alt="Version"></a>
|
||||
<a href="https://www.npmjs.com/package/layui"><img src="https://img.shields.io/npm/l/layui.svg?sanitize=true" alt="License"></a>
|
||||
<a href="https://travis-ci.org/sentsin/layui"><img alt="Build Status" src="https://img.shields.io/travis/sentsin/layui/master.svg"></a>
|
||||
<a href="https://saucelabs.com/beta/builds/7e6196205e4f492496203388fc003b65"><img src="https://saucelabs.com/buildstatus/layui" alt="Build Status"></a>
|
||||
<a href="https://coveralls.io/r/sentsin/layui?branch=master"><img alt="Test Coverage" src="https://img.shields.io/coveralls/sentsin/layui/master.svg"></a>
|
||||
<!--<a href="https://saucelabs.com/beta/builds/7e6196205e4f492496203388fc003b65"><img src="https://saucelabs.com/buildstatus/layui" alt="Build Status"></a>-->
|
||||
</p>
|
||||
|
||||
<!--
|
||||
<p align="center">
|
||||
<a href="https://saucelabs.com/beta/builds/7e6196205e4f492496203388fc003b65"><img src="https://saucelabs.com/browser-matrix/layui.svg" alt="Browser Matrix"></a>
|
||||
</p>
|
||||
-->
|
||||
|
||||
---
|
||||
|
||||
layui 是一款采用自身模块规范编写的前端 UI 框架,遵循原生 HTML/CSS/JS 的书写与组织形式,门槛极低,拿来即用。其外在极简,却又不失饱满的内在,体积轻盈,组件丰盈,从核心代码到 API 的每一处细节都经过精心雕琢,非常适合界面的快速开发。layui 首个版本发布于 2016 年金秋,她区别于那些基于 MVVM 底层的 UI 框架,却并非逆道而行,而是信奉返璞归真之道。准确地说,她更多是为服务端程序员量身定做,你无需涉足各种前端工具的复杂配置,只需面对浏览器本身,让一切你所需要的元素与交互,从这里信手拈来。
|
||||
layui 是一套开源的 Web UI 解决方案,采用自身经典的模块化规范,并遵循原生 HTML/CSS/JS 的开发方式,极易上手,拿来即用。其风格简约轻盈,而组件优雅丰盈,从源代码到使用方法的每一处细节都经过精心雕琢,非常适合网页界面的快速开发。layui 区别于那些基于 MVVM 底层的前端框架,却并非逆道而行,而是信奉返璞归真之道。准确地说,它更多是面向后端开发者,你无需涉足前端的各种工具,只需面对浏览器本身,让一切你所需要的元素与交互,从这里信手拈来。
|
||||
|
||||
## 返璞归真
|
||||
|
||||
layui 定义为“经典模块化”,并非是自吹她自身有多优秀,而是有意避开当下 JS 社区的主流方案,试图以最简单的方式去诠释高效!<em>她的所谓经典,是在于对返璞归真的执念</em>,她以当前浏览器普通认可的方式去组织模块!我们认为,这恰是符合当下国内绝大多数程序员从旧时代过渡到未来新标准的最佳指引。所以 layui 本身也并不是完全遵循于AMD时代,准确地说,她试图建立自己的模式,所以你会看到:
|
||||
layui 定义为「经典模块化」,并非是自吹她自身有多优秀,而是有意避开当下 JS 社区的主流方案,试图以最简单的方式去诠释高效!<em>她的所谓经典,是在于对返璞归真的执念</em>,她以当前浏览器普通认可的方式去组织模块!我们认为,这恰是符合当下国内绝大多数程序员从旧时代过渡到未来新标准的最佳指引。所以 layui 本身也并不是完全遵循于 AMD 时代,准确地说,她试图建立自己的模式,所以你会看到:
|
||||
|
||||
```js
|
||||
//layui模块的定义
|
||||
//layui 模块的定义
|
||||
layui.define([mods], function(exports){
|
||||
|
||||
//……
|
||||
@ -41,21 +47,21 @@ layui.use(['mod1', 'mod2'], function(args){
|
||||
|
||||
});
|
||||
```
|
||||
没错,她具备AMD的影子,又并非受限于 commonjs 的那些条条框框,layui 认为这种轻量的组织方式,比 WebPack 更符合绝大多数场景。所以她坚持采用经典模块化,也正是能让人避开工具的复杂配置,回归简单,安静高效地撸一会原生态的HTML、CSS、JavaScript。
|
||||
没错,她具备 AMD 的影子,又并非受限于 CommonJS 的那些条条框框,layui 认为这种轻量的组织方式,比 WebPack 更符合绝大多数场景。所以她坚持采用经典模块化,也正是能让人避开工具的复杂配置,回归简单,安静高效地编织原生态的 HTML/CSS/JS。
|
||||
|
||||
但是 layui 又并非是 Requirejs 那样的模块加载器,而是一款 UI 解决方案,她与 Bootstrap 最大的不同恰恰在于她糅合了自身对经典模块化的理解。
|
||||
但是 layui 又并非是 RequireJS 那样的模块加载器,而是一款 UI 解决方案,她与 Bootstrap 最大的不同恰恰在于她糅合了自身对经典模块化的理解。这使得你可以在 layui 组织的框架之内,以更具可维护性的代码、去更好的编织丰富的用户界面。
|
||||
|
||||
|
||||
## 快速上手
|
||||
|
||||
获得 layui 后,将其完整地部署到你的项目目录(或静态资源服务器),你只需要引入下述两个文件:
|
||||
获得 layui 后,将其完整地部署到你的静态资源项目目录,你只需要引入下述两个文件:
|
||||
|
||||
```
|
||||
./layui/css/layui.css
|
||||
./layui/layui.js //提示:如果是采用非模块化方式(最下面有讲解),此处可换成:./layui/layui.all.js
|
||||
./layui/layui.js
|
||||
```
|
||||
|
||||
不用去管其它任何文件。因为他们(比如各模块)都是在最终使用的时候才会自动加载。这是一个基本的入门页面:
|
||||
这是一个基本的入门页面:
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
@ -63,16 +69,16 @@ layui.use(['mod1', 'mod2'], function(args){
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>开始使用layui</title>
|
||||
<title>开始使用 layui</title>
|
||||
<link rel="stylesheet" href="../layui/css/layui.css">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- 你的HTML代码 -->
|
||||
<!-- 你的 HTML 代码 -->
|
||||
|
||||
<script src="../layui/layui.js"></script>
|
||||
<script>
|
||||
//一般直接写在一个js文件中
|
||||
//一般直接写在一个 js 文件中
|
||||
layui.use(['layer', 'form'], function(){
|
||||
var layer = layui.layer
|
||||
,form = layui.form;
|
||||
@ -84,36 +90,17 @@ layui.use(['layer', 'form'], function(){
|
||||
</html>
|
||||
```
|
||||
|
||||
如果你想采用非模块化方式(即所有模块一次性加载,尽管我们并不推荐你这么做),你也可以按照下面的方式使用:
|
||||
## 阅读文档
|
||||
[**最新文档**](https://gitee.com/layui)
|
||||
|
||||
愿 layui 能成为你得心应手的 Web 界面解决方案,化作你方寸屏幕前的亿万字节!
|
||||
|
||||
```html
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
|
||||
<title>非模块化方式使用layui</title>
|
||||
<link rel="stylesheet" href="../layui/css/layui.css">
|
||||
</head>
|
||||
<body>
|
||||
## 贡献者
|
||||
> 大概是因为 layui 让开发者变得更懒,所以贡献者才如此之少。
|
||||
|
||||
<!-- 你的HTML代码 -->
|
||||
|
||||
<script src="../layui/layui.all.js"></script>
|
||||
<script>
|
||||
//由于模块都一次性加载,因此不用执行 layui.use() 来加载对应模块,直接使用即可:
|
||||
;!function(){
|
||||
var layer = layui.layer
|
||||
,form = layui.form;
|
||||
|
||||
layer.msg('Hello World');
|
||||
}();
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
## [阅读文档](http://www.layui.com/)
|
||||
从现在开始,尽情地拥抱 layui 吧!但愿她能成为你长远的开发伴侣,化作你方寸屏幕前的亿万字节!
|
||||
[贡献者列表](https://github.com/sentsin/layui/graphs/contributors)
|
||||
|
||||
## 相关
|
||||
[官网](http://www.layui.com/)、[更新日志](http://www.layui.com/doc/base/changelog.html)、[社区交流](http://fly.layui.com)
|
||||
> layui 官网已于2021年10月13日下线。
|
||||
|
||||
目前包括版本更新、文档等在内的所有日常维护,都以 Github 或 Gitee 项目主页为准。
|
||||
|
22
bower.json
@ -1,22 +0,0 @@
|
||||
{
|
||||
"name": "layui",
|
||||
"main": "dist/layui.js",
|
||||
"version": "2.5.5",
|
||||
"homepage": "https://github.com/sentsin/layui",
|
||||
"authors": [
|
||||
"sentsin <xu@sentsin.com>"
|
||||
],
|
||||
"description": "Classic modular front-end component library",
|
||||
"moduleType": [
|
||||
"amd",
|
||||
"globals"
|
||||
],
|
||||
"keywords": [
|
||||
"layui",
|
||||
"ui",
|
||||
"JavaScript Framework",
|
||||
"toolkit",
|
||||
"front-end component library"
|
||||
],
|
||||
"license": "MIT"
|
||||
}
|
3
dist/css/layui.css
vendored
2
dist/css/layui.mobile.css
vendored
3
dist/css/modules/code.css
vendored
@ -1,2 +1 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
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}
|
||||
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 #eee;border-left-width:6px;background-color:#FAFAFA;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:40px;line-height:40px;border-bottom:1px solid #eee}.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 10px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view .layui-code-ol li:first-child{padding-top:10px}.layui-code-view .layui-code-ol li:last-child{padding-bottom:10px}.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}.layui-code-demo .layui-code{visibility:visible!important;margin:-15px;border-top:none;border-right:none;border-bottom:none}.layui-code-demo .layui-tab-content{padding:15px;border-top:none}
|
3
dist/css/modules/laydate/default/laydate.css
vendored
3
dist/css/modules/layer/default/layer.css
vendored
BIN
dist/font/iconfont.eot
vendored
73
dist/font/iconfont.svg
vendored
Before Width: | Height: | Size: 277 KiB After Width: | Height: | Size: 299 KiB |
BIN
dist/font/iconfont.ttf
vendored
BIN
dist/font/iconfont.woff
vendored
BIN
dist/font/iconfont.woff2
vendored
BIN
dist/images/face/0.gif
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
dist/images/face/1.gif
vendored
Before Width: | Height: | Size: 5.4 KiB |
BIN
dist/images/face/10.gif
vendored
Before Width: | Height: | Size: 2.7 KiB |
BIN
dist/images/face/11.gif
vendored
Before Width: | Height: | Size: 4.0 KiB |
BIN
dist/images/face/12.gif
vendored
Before Width: | Height: | Size: 3.3 KiB |
BIN
dist/images/face/13.gif
vendored
Before Width: | Height: | Size: 7.3 KiB |
BIN
dist/images/face/14.gif
vendored
Before Width: | Height: | Size: 2.3 KiB |
BIN
dist/images/face/15.gif
vendored
Before Width: | Height: | Size: 1.8 KiB |
BIN
dist/images/face/16.gif
vendored
Before Width: | Height: | Size: 6.6 KiB |
BIN
dist/images/face/17.gif
vendored
Before Width: | Height: | Size: 4.3 KiB |
BIN
dist/images/face/18.gif
vendored
Before Width: | Height: | Size: 2.9 KiB |
BIN
dist/images/face/19.gif
vendored
Before Width: | Height: | Size: 3.0 KiB |
BIN
dist/images/face/2.gif
vendored
Before Width: | Height: | Size: 3.1 KiB |
BIN
dist/images/face/20.gif
vendored
Before Width: | Height: | Size: 5.0 KiB |
BIN
dist/images/face/21.gif
vendored
Before Width: | Height: | Size: 5.1 KiB |
BIN
dist/images/face/22.gif
vendored
Before Width: | Height: | Size: 9.6 KiB |
BIN
dist/images/face/23.gif
vendored
Before Width: | Height: | Size: 3.7 KiB |
BIN
dist/images/face/24.gif
vendored
Before Width: | Height: | Size: 7.9 KiB |
BIN
dist/images/face/25.gif
vendored
Before Width: | Height: | Size: 3.1 KiB |
BIN
dist/images/face/26.gif
vendored
Before Width: | Height: | Size: 3.2 KiB |
BIN
dist/images/face/27.gif
vendored
Before Width: | Height: | Size: 4.3 KiB |
BIN
dist/images/face/28.gif
vendored
Before Width: | Height: | Size: 2.7 KiB |
BIN
dist/images/face/29.gif
vendored
Before Width: | Height: | Size: 4.7 KiB |
BIN
dist/images/face/3.gif
vendored
Before Width: | Height: | Size: 3.9 KiB |
BIN
dist/images/face/30.gif
vendored
Before Width: | Height: | Size: 2.5 KiB |
BIN
dist/images/face/31.gif
vendored
Before Width: | Height: | Size: 2.0 KiB |
BIN
dist/images/face/32.gif
vendored
Before Width: | Height: | Size: 3.4 KiB |
BIN
dist/images/face/33.gif
vendored
Before Width: | Height: | Size: 2.4 KiB |
BIN
dist/images/face/34.gif
vendored
Before Width: | Height: | Size: 3.6 KiB |
BIN
dist/images/face/35.gif
vendored
Before Width: | Height: | Size: 1.8 KiB |
BIN
dist/images/face/36.gif
vendored
Before Width: | Height: | Size: 2.3 KiB |
BIN
dist/images/face/37.gif
vendored
Before Width: | Height: | Size: 1.5 KiB |
BIN
dist/images/face/38.gif
vendored
Before Width: | Height: | Size: 3.5 KiB |
BIN
dist/images/face/39.gif
vendored
Before Width: | Height: | Size: 6.3 KiB |
BIN
dist/images/face/4.gif
vendored
Before Width: | Height: | Size: 5.6 KiB |
BIN
dist/images/face/40.gif
vendored
Before Width: | Height: | Size: 3.1 KiB |
BIN
dist/images/face/41.gif
vendored
Before Width: | Height: | Size: 3.6 KiB |
BIN
dist/images/face/42.gif
vendored
Before Width: | Height: | Size: 5.2 KiB |
BIN
dist/images/face/43.gif
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
dist/images/face/44.gif
vendored
Before Width: | Height: | Size: 4.0 KiB |
BIN
dist/images/face/45.gif
vendored
Before Width: | Height: | Size: 3.3 KiB |
BIN
dist/images/face/46.gif
vendored
Before Width: | Height: | Size: 2.9 KiB |
BIN
dist/images/face/47.gif
vendored
Before Width: | Height: | Size: 2.3 KiB |
BIN
dist/images/face/48.gif
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
dist/images/face/49.gif
vendored
Before Width: | Height: | Size: 2.3 KiB |
BIN
dist/images/face/5.gif
vendored
Before Width: | Height: | Size: 4.5 KiB |
BIN
dist/images/face/50.gif
vendored
Before Width: | Height: | Size: 5.7 KiB |
BIN
dist/images/face/51.gif
vendored
Before Width: | Height: | Size: 2.7 KiB |
BIN
dist/images/face/52.gif
vendored
Before Width: | Height: | Size: 777 B |
BIN
dist/images/face/53.gif
vendored
Before Width: | Height: | Size: 2.1 KiB |
BIN
dist/images/face/54.gif
vendored
Before Width: | Height: | Size: 2.1 KiB |
BIN
dist/images/face/55.gif
vendored
Before Width: | Height: | Size: 1.9 KiB |
BIN
dist/images/face/56.gif
vendored
Before Width: | Height: | Size: 2.0 KiB |
BIN
dist/images/face/57.gif
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
dist/images/face/58.gif
vendored
Before Width: | Height: | Size: 2.2 KiB |
BIN
dist/images/face/59.gif
vendored
Before Width: | Height: | Size: 10 KiB |
BIN
dist/images/face/6.gif
vendored
Before Width: | Height: | Size: 2.2 KiB |
BIN
dist/images/face/60.gif
vendored
Before Width: | Height: | Size: 3.2 KiB |
BIN
dist/images/face/61.gif
vendored
Before Width: | Height: | Size: 2.4 KiB |
BIN
dist/images/face/62.gif
vendored
Before Width: | Height: | Size: 2.0 KiB |
BIN
dist/images/face/63.gif
vendored
Before Width: | Height: | Size: 5.7 KiB |
BIN
dist/images/face/64.gif
vendored
Before Width: | Height: | Size: 6.3 KiB |
BIN
dist/images/face/65.gif
vendored
Before Width: | Height: | Size: 3.5 KiB |
BIN
dist/images/face/66.gif
vendored
Before Width: | Height: | Size: 3.0 KiB |
BIN
dist/images/face/67.gif
vendored
Before Width: | Height: | Size: 2.6 KiB |
BIN
dist/images/face/68.gif
vendored
Before Width: | Height: | Size: 1.4 KiB |
BIN
dist/images/face/69.gif
vendored
Before Width: | Height: | Size: 2.4 KiB |
BIN
dist/images/face/7.gif
vendored
Before Width: | Height: | Size: 3.3 KiB |
BIN
dist/images/face/70.gif
vendored
Before Width: | Height: | Size: 4.5 KiB |
BIN
dist/images/face/71.gif
vendored
Before Width: | Height: | Size: 5.2 KiB |
BIN
dist/images/face/8.gif
vendored
Before Width: | Height: | Size: 4.0 KiB |
BIN
dist/images/face/9.gif
vendored
Before Width: | Height: | Size: 4.1 KiB |
2
dist/lay/modules/carousel.js
vendored
@ -1,2 +0,0 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"":"")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"":"")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});
|
2
dist/lay/modules/code.js
vendored
@ -1,2 +0,0 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/'/g,"'").replace(/"/g,""")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");
|
2
dist/lay/modules/colorpicker.js
vendored
2
dist/lay/modules/element.js
vendored
2
dist/lay/modules/flow.js
vendored
@ -1,2 +0,0 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon "></i>';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="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");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;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)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)});
|
2
dist/lay/modules/form.js
vendored
5
dist/lay/modules/jquery.js
vendored
2
dist/lay/modules/laydate.js
vendored
2
dist/lay/modules/layedit.js
vendored
2
dist/lay/modules/layer.js
vendored
2
dist/lay/modules/laypage.js
vendored
@ -1,2 +0,0 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
;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 href="javascript:;" class="layui-laypage-prev'+(1==a.curr?" "+r:"")+'" data-page="'+(a.curr-1)+'">'+a.prev+"</a>":""}(),page:function(){var e=[];if(a.count<1)return"";n>1&&a.first!==!1&&0!==t&&e.push('<a href="javascript:;" class="layui-laypage-first" data-page="1" title="首页">'+(a.first||1)+"</a>");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-r<t-1&&(r=u-t+1),a.first!==!1&&r>2&&e.push('<span class="layui-laypage-spr">…</span>');r<=u;r++)r===a.curr?e.push('<span class="layui-laypage-curr"><em class="layui-laypage-em" '+(/^#/.test(a.theme)?'style="background-color:'+a.theme+';"':"")+"></em><em>"+r+"</em></span>"):e.push('<a href="javascript:;" data-page="'+r+'">'+r+"</a>");return a.pages>t&&a.pages>u&&a.last!==!1&&(u+1<a.pages&&e.push('<span class="layui-laypage-spr">…</span>'),0!==t&&e.push('<a href="javascript:;" class="layui-laypage-last" title="尾页" data-page="'+a.pages+'">'+(a.last||a.pages)+"</a>")),e.join("")}(),next:function(){return a.next?'<a href="javascript:;" class="layui-laypage-next'+(a.curr==a.pages?" "+r:"")+'" data-page="'+(a.curr+1)+'">'+a.next+"</a>":""}(),count:'<span class="layui-laypage-count">共 '+a.count+" 条</span>",limit:function(){var e=['<span class="layui-laypage-limits"><select lay-ignore>'];return layui.each(a.limits,function(t,n){e.push('<option value="'+n+'"'+(n===a.limit?"selected":"")+">"+n+" 条/页</option>")}),e.join("")+"</select></span>"}(),refresh:['<a href="javascript:;" data-page="'+a.curr+'" class="layui-laypage-refresh">','<i class="layui-icon layui-icon-refresh"></i>',"</a>"].join(""),skip:function(){return['<span class="layui-laypage-skip">到第','<input type="text" min="1" value="'+a.curr+'" class="layui-input">','页<button type="button" class="layui-laypage-btn">确定</button>',"</span>"].join("")}()};return['<div class="layui-box layui-laypage layui-laypage-'+(a.theme?/^#/.test(a.theme)?"molv":a.theme:"default")+'" id="layui-laypage-'+a.index+'">',function(){var e=[];return layui.each(a.layout,function(a,t){i[t]&&e.push(i[t])}),e.join("")}(),"</div>"].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;o<y;o++)"a"===r[o].nodeName.toLowerCase()&&s.on(r[o],"click",function(){var e=0|this.getAttribute("data-page");e<1||e>i.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)});
|
2
dist/lay/modules/laytpl.js
vendored
@ -1,2 +0,0 @@
|
||||
/** layui-v2.5.5 MIT License By https://www.layui.com */
|
||||
;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,"'").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)});
|