smallruraldog / light-box
灯箱扩展
Installs: 5 572
Dependents: 2
Suggesters: 0
Security: 0
Stars: 8
Watchers: 3
Forks: 5
Open Issues: 5
Language:CSS
Requires
- php: >=7.0.0
- encore/laravel-admin: ~1.6
Requires (Dev)
- phpunit/phpunit: ~6.0
This package is auto-updated.
Last update: 2024-11-18 18:49:02 UTC
README
- 单图浏览
- 多图浏览
安装
composer require smallruraldog/light-box
发布资源
php artisan vendor:publish --provider=SmallRuralDog\LightBox\LightBoxServiceProvider
配置
'extensions' => [
'light-box' => [
// Set to `false` if you want to disable this extension
'enable' => true,
]
]
使用方法
// simple lightbox
$grid->picture()->lightbox();
//gallery
$grid->picture()->gallery();
//zoom effect
$grid->picture()->lightbox(['zooming' => true]);
$grid->picture()->gallery(['zooming' => true]);
//width & height properties
$grid->picture()->lightbox(['width' => 50, 'height' => 50]);
$grid->picture()->gallery(['width' => 50, 'height' => 50]);
当字段为数组时为多图浏览
预览
License
Licensed under The MIT License (MIT).