定制 luisozparr/adminlte_laravel_components 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luisozparr/adminlte_laravel_components

Composer 安装命令:

composer require luisozparr/adminlte_laravel_components

包简介

This package contain multiple components for jeroennoten/laravel-adminlte

README 文档

README

This package provided some laravel components using AdminLTE template https://adminlte.io/ to use this template in laravel, this package require of jeroennoten/laravel-adminlte

Install

  1. Require the package using composer:

     luisozparr/adminlte_laravel_components 
    
  2. Add the service provider to the providers in config/app.php:

     Ozparr\AdminlteComponents\AdminlteComponentServiceProvider::class
     JeroenNoten\LaravelAdminLte\ServiceProvider::class,
    
  3. Publish the public assets of jeroennoten/laravel-adminlte:

     php artisan vendor:publish --provider="JeroenNoten\LaravelAdminLte\ServiceProvider" --tag=assets
    

Usage

Note: if you want use layout of AdminLTE we recommend read about usage of jeroennoten/laravel-adminlte https://github.com/jeroennoten/Laravel-AdminLTE#3-usage

You can use this components in the following way:

Callout

  • Parameters:
    • icon string (default 'fas fa-info')
    • title string
    • col (Like col-md-*)
  • Slots:
    • body (or slot)
  • Example:
<x-callout col="12" class="callout-info" title="Importante">
    Hola mundo :D
</x-callout>

Card

  • Parameters:
    • title string (default '')
  • Slots:
    • body (or slot)
    • tools
    • footer
    • actionbar
  • Example:
<x-card title="Card" class="collapsed-card card-primary">
    <x-slot name="tools">
        <button type="button" class="btn btn-tool" data-card-widget="collapse"><i class="fas fa-plus"></i></button>
        <button type="button" class="btn btn-tool" data-card-widget="remove"><i class="fas fa-times"></i></button>
    </x-slot>
    
    This is the body :D
    
    <x-slot name="footer">
        <div class="pull-right">
            <button type="submit" class="btn btn-primary" >Success</button>
        </div>
    </x-slot>
</x-card>

Form

form

  • Parameters:
    • method string
  • Example:
<x-form.index :action="route('lotes.create')" method="GET">
    Form body :D
</x-form.index> 

input

  • Parameters:
    • name null|string (default null)
    • icon string|null (default null)
    • iconPosition string(left/right) (default left)
  • Example:
<x-form.input icon="fas fa-barcode" name="example" id="example_id">
    This is a label
</x-form.input>

select

  • Slot:
    • options
  • Example:
<x-form.select name="proveedor_id">
    This is a label
    
    <x-slot name="options">
        @foreach($items as $item)
            <option value="{!! $item->id !!}">Option :D </option>
        @endforeach
    </x-slot>
</x-form.select>

textarea

  • Parameters:
    • name string
<x-form.textarea name="description">
    Description
</x-form.textarea>

Dropdown

  • Parameters:
    • title string
  • slot:
    • options
  • Example:
<x-dropdown title="Options">
    <a class="dropdown-item" href="#">
        <i class="fas fa-edit"></i>
        Edit
    </a>
    <a class="dropdown-item" href="#">
        <i class="fas fa-trash-alt"></i>
        Delete
    </a>
</x-dropdown>

infoBox

  • Parameters:
    • iconColor null|string (default null)
    • icon null|string icon (default null)
    • number null|string number (default null)
  • Example:
<x-infoBox title="Vendidos" icon="fas fa-boxes" number="5"/>

Modal

  • Parameters:
    • sizeModal null|string (default null)
    • title string (default '')
  • Slots:
    • footer
  • Example:
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModal">
    modal open
</button>

<x-modal.index 'title'=>'Modal' id="myModal" size-modal="modal-xl">
    Hello world
    <x-footer>
         <button type="submit" class="btn btn-primary" >Success</button>
    </x-footer>
</x-modal.index>

Tabs

  • Slots:
    • options required tabs.option component
      • Parameters:
        • reference string
    • contents required tabs.content component
      • Parameters:
        • reference string
  • Example:
<x-tabs.index>
    <x-slot name="options">
        <x-tabs.option class="active" reference="tab1">
            Option1
        </x-tabs.option>
        <x-tabs.option reference="tab2">
            Option2
        </x-tabs.option>
        <x-tabs.option reference="tab3">
            Option3
        </x-tabs.option>
    </x-slot>

    <x-slot name="contents">
        <x-tabs.content class="active show" reference="tab1">
            Hello world 1
        </x-tabs.content>
        <x-tabs.content reference="tab2">
            Hello world 2
        </x-tabs.content>
        <x-tabs.content reference="tab3">
            Hello world 3
        </x-tabs.content>
    </x-slot>
</x-tabs.index>

luisozparr/adminlte_laravel_components 适用场景与选型建议

luisozparr/adminlte_laravel_components 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 234 次下载、GitHub Stars 达 1, 最近一次更新时间为 2018 年 12 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

我们在过去多个企业项目中使用过 luisozparr/adminlte_laravel_components 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 luisozparr/adminlte_laravel_components 我们能提供哪些服务?
定制开发 / 二次开发

基于 luisozparr/adminlte_laravel_components 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 234
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 4
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-12-12