bubu-framework/flash 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

bubu-framework/flash

Composer 安装命令:

composer require bubu-framework/flash

包简介

Flash message (Bubu Framework)

README 文档

README

Flash message property

  • General style:

    • margin & padding: 10px
    • border-radius: 75px
    • font-weight: 1000
    • font-size: 18px
    • display: grid
  • Valid

    • text color: #3C763D
    • background color: #DFFFD8
    • icon: &#10003
  • Info

    • text color: #31708F
    • background color: #D9EDF7
    • icon: &#128712
  • Alert

    • text color: #FF5D00
    • background color: #FFB149
    • icon: &#9888
  • Error

    • text color: #FF3331
    • background color: #FFABAB
    • icon: &#10754

Create flash message

  • Create flash message with default property

    Flash::type($message);

    With:

    • type -> in ['valid', 'info', 'alert', 'error']
    • message -> (string)
  • Create flash message without default property but with general style

    Flash::other($message, $colorText, $backgroundColor, $iconCode)

    With:

    • message -> (string) message to show
    • colorText -> (string) color of text (all color type supported by css suported)
    • colorBackgroud -> (string) same of colorText but for background
    • iconCode -> Code for icon (prefer hex code)

Generate flash message

  • Generate message with css style: Flash::generate();
  • Generate message without default style: Flash::rawGenerate()

Note: for the 2 methods, a class flash is added, but, for rawGenerate, a second class named by flash-type (with type, the type of message (valid, info, alert, error, other)) is added.

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-11-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固