wula / coolay
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
Requires
- wula/wula-installer: ^2.0
- dev-master
- v1.0
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/ini-1.3.8
- dev-dependabot/npm_and_yarn/websocket-extensions-0.1.4
- dev-dependabot/npm_and_yarn/acorn-5.7.4
This package is auto-updated.
Last update: 2021-06-25 17:05:26 UTC
README
基于layui的后台管理界面。
使用
到releases下载最新版本并解压,然后参考demo
开始使用:
composer
composer require wula/coolay
配置
相比layui,coolay扩展了三个配置: devMode
, module
和theme
:
layui.config({ devMode: "1",// 开发模式 module: '/modules/', theme: '/themes/', base: '/thirdjs/' }); layui.use(['layer','&coolay','@app.module','$default.mod','third'],function(){ // your code is here });
&
引用layui安装目录里lay/exts
下的库&coolay
对应的文件为lay/exts/coolay.js
- 项目开发的库(组件)都是此类
@
引用config.module
目录下的库@app.module
对应的文件为/modules/app/js/module.js
$
引用config.theme
目录下的库$default.mod
对应的文件为/themes/default/js/mod.js
- 其它
- layui内置模块从
lay/modules
目录加载 - 第三方库,如
third
从config.base
指定的目录加载,如从三方组件下载的库
- layui内置模块从
参与开发
node version: 12.12
git clone https://github.com/ninggf/coolayui.git
cd coolayui && git submodule update --init --recursive
npm ci
npx gulp watch
欢迎提交
pr
或issue
。