wula/coolay

This package is abandoned and no longer maintained. No replacement package was suggested.

an admin UI based on layui

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 3

Forks: 1

Open Issues: 7

Language:JavaScript

Type:wula-asset

v1.0 2019-09-29 10:06 UTC

README

基于layui的后台管理界面。

使用

releases下载最新版本并解压,然后参考demo开始使用:

  1. layui文档
  2. coolay文档

composer

composer require wula/coolay

配置

相比layui,coolay扩展了三个配置: devMode, moduletheme

layui.config({
    devMode: "1",// 开发模式
    module: '/modules/',
    theme: '/themes/',
    base: '/thirdjs/'
});

layui.use(['layer','&coolay','@app.module','$default.mod','third'],function(){
    // your code is here
});
  1. &引用layui安装目录里lay/exts下的库
    • &coolay对应的文件为lay/exts/coolay.js
    • 项目开发的库(组件)都是此类
  2. @引用config.module目录下的库
    • @app.module对应的文件为/modules/app/js/module.js
  3. $引用config.theme目录下的库
    • $default.mod对应的文件为/themes/default/js/mod.js
  4. 其它
    1. layui内置模块从lay/modules目录加载
    2. 第三方库,如thirdconfig.base指定的目录加载,如从三方组件下载的库

参与开发

node version: 12.12

  1. git clone https://github.com/ninggf/coolayui.git
  2. cd coolayui && git submodule update --init --recursive
  3. npm ci
  4. npx gulp watch

欢迎提交prissue