定制 davide-casiraghi/bootstrap-accordion-integrator 二次开发

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

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

davide-casiraghi/bootstrap-accordion-integrator

Composer 安装命令:

composer require davide-casiraghi/bootstrap-accordion-integrator

包简介

Add accordions in your application. The accordions are based on the Bootstrap 4 collapse component.

README 文档

README

Latest Stable Version Build Status StyleCI Coverage Status GitHub last commit

Bootstrap 4 Accordion Integrator is a PHP library to add accordions in your application.
The accordions are based on the Bootstrap 4 collapse component.

The library replace all the occurances of this snippet

{accordion=Title First Slide}This is the first slide. {/accordion}

With the HTML code of a bootstrap 4 accordion.

<div class="accordion">
    <div class="accordion-header collapsed" data-toggle="collapse" data-target="#collapse_1" aria-expanded="false">
        <div class="icon caret-svg"></div>
        Title First Slide
    </div>
    <div class="accordion-body collapse" id="collapse_1" style="">
        <div class="accordion-body-content">This is the first slide. </div>
    </div>
</div>

Installation

To use the package you should import it trough composer.

composer require davide-casiraghi/bootstrap-accordion-integrator

Import the scss files

Add this line to your resources/sass/app.scss file:
@import 'vendor/bootstrap-accordion-integrator/accordion';
and then run in console:
npm run dev

Usage

To replace all the occurrance of the accordion snippets:

$accordion = new BootstrapAccordion('caret-svg');
$accordion->replace_accordion_strings_with_template($text);

or using the facade

$text = BootstrapAccordion::getAccordions($text, 'plus-minus-circle');

Icon styles (open/close)

At the moment are available these icon styles that can be specified when the class get instantiated

  • caret-svg (default - use svg with mask-image)
  • angle-svg (use svg with mask-image)
  • plus-minus-circle (use default font)
  • angle-fontawesome-pro (use Font Awesome Pro 5 font-family)
  • angle-fontawesome-free (use Font Awesome Free 4.7.0 font-family)
  • caret-fontawesome-pro (use Font Awesome Pro 5 font-family)
  • caret-fontawesome-free (use Font Awesome Free 4.7.0 font-family)

To use FontAwesome styles you need FontAwesome already loaded in your application.

Load the CSS and JS files

Without Laravel

You can import the JS and the CSS files in the vendor/bootstrap-accordion/ folder.

With Laravel

Publish the JS, CSS and IMAGES

It's possible to customize the scss and the js publishing them in your Laravel application.

php artisan vendor:publish

This command will publish in your application this folders:

  • /resources/scss/vendor/bootstrap-accordion/
  • /resources/js/vendor/bootstrap-accordion/
  • /public/vendor/bootstrap-accordion-integrator/images/

Load the JS file

In your app.js file you can require the accordion.js file before the Vue object get instanciated:

require('./bootstrap');
window.Vue = require('vue');

require('./vendor/bootstrap-accordion/accordion');

window.myApp = new Vue({  
    el: '#app'
});

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

davide-casiraghi/bootstrap-accordion-integrator 适用场景与选型建议

davide-casiraghi/bootstrap-accordion-integrator 是一款 基于 CSS 开发的 Composer 扩展包,目前已累计 166 次下载、GitHub Stars 达 1, 最近一次更新时间为 2019 年 03 月 12 日, 在 PHP 生态内属于活跃度较高的组件。

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

围绕 davide-casiraghi/bootstrap-accordion-integrator 我们能提供哪些服务?
定制开发 / 二次开发

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

BUG 修复 & 性能优化

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

项目外包 & 长期维护

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

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

统计信息

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

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 0
  • 开发语言: CSS

其他信息

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