2021-04-07 00:33:58 +08:00
|
|
|
|
<p align="center">
|
2022-06-08 11:12:06 +08:00
|
|
|
|
<a href="https://layui.github.io/">
|
|
|
|
|
<img src="https://unpkg.com/outeres@0.0.6/img/layui/icon-1.png" width="81" alt="Layui">
|
|
|
|
|
</a>
|
2017-08-21 08:51:13 +08:00
|
|
|
|
</p>
|
2022-06-08 11:09:20 +08:00
|
|
|
|
<h1 align="center">Layui</h1>
|
2021-04-07 00:33:58 +08:00
|
|
|
|
<p align="center">
|
2022-05-24 18:19:06 +08:00
|
|
|
|
Classic modular front-end UI library
|
2017-08-21 08:51:13 +08:00
|
|
|
|
</p>
|
|
|
|
|
|
2021-04-07 00:56:02 +08:00
|
|
|
|
<p align="center">
|
2022-05-24 18:19:06 +08:00
|
|
|
|
<a href="https://www.npmjs.com/package/layui">
|
|
|
|
|
<img src="https://img.shields.io/npm/v/layui" alt="Version">
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://www.npmjs.com/package/layui">
|
|
|
|
|
<img src="https://img.shields.io/github/license/layui/layui" alt="License">
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://github.com/layui/layui/blob/master/dist/css/layui.css">
|
|
|
|
|
<img src="https://img.badgesize.io/layui/layui/master/dist/css/layui.css?compression=brotli&label=CSS Brotli size" alt="CSS Brotli size">
|
|
|
|
|
</a>
|
|
|
|
|
<a href="https://github.com/layui/layui/blob/master/dist/layui.js">
|
|
|
|
|
<img src="https://img.badgesize.io/layui/layui/master/dist/layui.js?compression=brotli&label=JS Brotli size" alt="JS Brotli size">
|
|
|
|
|
</a>
|
2017-09-01 20:28:59 +08:00
|
|
|
|
</p>
|
2021-04-07 00:33:58 +08:00
|
|
|
|
|
2017-08-21 08:51:13 +08:00
|
|
|
|
---
|
|
|
|
|
|
2022-06-23 00:03:41 +08:00
|
|
|
|
Layui 是一套开源的 Web UI 组件库,采用自身轻量级模块化规范,遵循原生态的 HTML/CSS/JavaScript 开发模式,极易上手,拿来即用。其风格简约,而内在丰盈,利于实现网页界面的快速构建。Layui 区别于一众主流的前端框架,却并非逆道而行,而是信奉返璞归真之道。确切地说,它更多是面向于追求简单的务实主义者,他们无需涉足各类构建工具,只需面向浏览器本身,即可轻松掌握页面所需的元素与交互,进而信手拈来。
|
2017-08-21 08:51:13 +08:00
|
|
|
|
|
|
|
|
|
|
2022-06-23 00:05:18 +08:00
|
|
|
|
## 快速上手
|
2017-08-21 08:51:13 +08:00
|
|
|
|
|
2022-06-23 00:03:41 +08:00
|
|
|
|
使用 Layui 只需在页面中引入核心文件即可:
|
2017-08-21 08:51:13 +08:00
|
|
|
|
|
2017-10-10 12:17:51 +08:00
|
|
|
|
```html
|
2017-08-21 08:51:13 +08:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html>
|
2022-06-22 01:39:26 +08:00
|
|
|
|
<head>
|
|
|
|
|
<meta charset="utf-8">
|
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
|
<title>开始使用 Layui</title>
|
2022-06-22 01:40:14 +08:00
|
|
|
|
<link href="./layui/css/layui.css" rel="stylesheet">
|
2022-06-22 01:39:26 +08:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
2022-06-23 00:03:41 +08:00
|
|
|
|
<!-- HTML -->
|
2022-06-22 01:39:26 +08:00
|
|
|
|
|
|
|
|
|
<script src="./layui/layui.js"></script>
|
|
|
|
|
<script>
|
|
|
|
|
// 使用组件
|
|
|
|
|
layui.use(['layer', 'form'], function(){
|
|
|
|
|
var layer = layui.layer;
|
|
|
|
|
var form = layui.form;
|
|
|
|
|
|
|
|
|
|
// 欢迎语
|
|
|
|
|
layer.msg('Hello World');
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
2017-08-21 08:51:13 +08:00
|
|
|
|
</html>
|
|
|
|
|
```
|
|
|
|
|
|
2022-06-23 00:05:18 +08:00
|
|
|
|
## 使用文档
|
2022-06-23 00:03:41 +08:00
|
|
|
|
[**最新文档**](https://layui.github.io)
|
2017-08-21 08:51:13 +08:00
|
|
|
|
|
2022-06-23 00:05:18 +08:00
|
|
|
|
## 项目参与
|
2022-06-23 00:03:41 +08:00
|
|
|
|
[项目参与者](https://github.com/layui/layui/graphs/contributors)
|
2022-05-18 23:36:23 +08:00
|
|
|
|
|
2022-12-07 10:36:35 +08:00
|
|
|
|
## 在 Cloud IDE 中预览
|
|
|
|
|
[https://idegithub.com/layui/layui](https://idegithub.com/layui/layui)
|
|
|
|
|
|
2022-06-23 00:05:18 +08:00
|
|
|
|
## 破旧立新 🌱
|
2022-09-02 13:39:25 +08:00
|
|
|
|
Layui 原官网已于2021年10月13日下线。详见:
|
|
|
|
|
> 1. <a href="https://unpkg.com/outeres@0.0.7/img/layui/notice-2021.png" target="_blank">Layui 原官网下线公告</a> 2. <a href="https://www.zhihu.com/question/488668647/answer/2159962082" target="_blank">Layui 原官网为什么要下线?</a>
|
2022-03-16 09:43:58 +08:00
|
|
|
|
|
2022-06-23 00:03:41 +08:00
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
鉴于 Layui 相对庞大的受众群体,从此 Github 和 Gitee 平台将支撑起 Layui 的后续。<br>
|
2022-12-07 10:36:35 +08:00
|
|
|
|
**Layui 将继续陪伴着所有为之热爱的人们,共同去探索和论证「Layui 开发模式的可行性」**
|