1 Star 0 Fork 3

danny543boy / dcat-amis

forked from Slowlyo / dcat-amis
关闭
 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MIT

Dcat Amis Extensions

Dcat Admin 的 amis组件扩展, 可以在 dcat 中轻松使用 amis 组件, 让你开发自定义页面变得更简单
给 dcat 扩展了 120余个组件 (Doge) 🤣

Dcat Admin

Dcat Admin 基于laravel-admin二开的, 超好用的高颜值后台框架

Amis

百度开源的一个低代码前端框架,它使用 JSON 配置来生成页面,可以减少页面开发工作量,极大提升效率。

安装

获取 composer 包

composer require slowlyo/dcat-amis

发布静态资源

php artisan vendor:publish --provider="Slowlyo\DcatAmis\DcatAmisServiceProvider" --force

配置

app/Admin/bootstrap.php 中添加 (加载 amis 静态资源)

\Slowlyo\DcatAmis\DcatAmis::requireAssets();

使用

推荐用来构建完整页面

public function index(Content $content){
    $page = \Slowlyo\DcatAmis\Renderers\Page::make()->body(
        \Slowlyo\DcatAmis\Renderers\Button::make()->label('Button')
    );
    
    // 所有组件都可使用render()方法, 可自行灵活搭配
    return $content->body($page->render());
}
MIT License Copyright (c) 2022 Slowlyo Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

简介

Dcat Admin 的 amis组件扩展, 可以在 dcat 中轻松使用 amis 组件, 让你开发自定义页面变得更简单 展开 收起
MIT
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/danny543boy/dcat-amis.git
git@gitee.com:danny543boy/dcat-amis.git
danny543boy
dcat-amis
dcat-amis
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891