tourze/easy-admin-image-preview-field-bundle 问题修复 & 功能扩展

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

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

tourze/easy-admin-image-preview-field-bundle

最新稳定版本:1.0.0

Composer 安装命令:

composer require tourze/easy-admin-image-preview-field-bundle

包简介

EasyAdmin image preview field with modal support

README 文档

README

English | 中文

EasyAdmin bundle providing image preview fields with modal support.

Usage

use Tourze\EasyAdminImagePreviewFieldBundle\Field\ImagePreviewField;

public function configureFields(string $pageName): iterable
{
    // Basic usage
    yield ImagePreviewField::new('url', 'Image');
    
    // Custom configuration
    yield ImagePreviewField::new('imageUrl', 'Preview')
        ->setWidthProperty('imageWidth')    // default: 'width'
        ->setHeightProperty('imageHeight')  // default: 'height'  
        ->setFilenameProperty('originalName') // default: 'fileName'
        ->setMaxSize(120, 80)              // list view size
        ->setDetailMaxSize(400, 300);      // detail view size
}

Features

  • List view: Small thumbnails with modal preview on click
  • Detail view: Larger preview images with "open in new window" link
  • Configurable: Customize property names and sizes
  • Responsive: Modal closes on click/ESC key

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-31