coringawc/filament-input-loading 问题修复 & 功能扩展

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

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

coringawc/filament-input-loading

最新稳定版本:v0.0.3

Composer 安装命令:

composer require coringawc/filament-input-loading

包简介

Input with loading spinner option

README 文档

README

Latest Version on Packagist Semantic Release Total Downloads

Filament Input Loading

A Filament Forms plugin that adds a loading spinner to TextInput fields when using Livewire's lazy() or debounce() binding modifiers. The spinner appears inside the input field while the server processes the update, giving users visual feedback.

⚠️ Compatibility: This plugin is built for Filament v2 (with Livewire v2). It is not compatible with Filament v3/v4/v5.

Screenshots

Loading spinner inside a debounced text input

Installation

You can install the package via composer:

composer require coringawc/filament-input-loading

The package auto-discovers its service provider — no manual registration needed.

Usage

Replace Filament's default TextInput import with this package's version:

use CoringaWc\FilamentInputLoading\TextInput;

Then use lazy() or debounce() as you normally would — the loading spinner appears automatically:

// Spinner appears on blur (when the user leaves the field)
TextInput::make('name')->lazy()

// Spinner appears after a debounce delay while typing
TextInput::make('search')->debounce(500)

How It Works

This package extends Filament\Forms\Components\TextInput and overrides its Blade view to inject a wire:loading spinner indicator. The spinner is positioned inside the input (right side) and only renders when isLazy() or isDebounced() returns true.

Development

This plugin uses filament-plugin-workbench for development. A custom Docker image with PHP 8.1 is used for Filament v2 compatibility.

# Clone with submodules
git clone --recurse-submodules https://github.com/CoringaWc/filament-input-loading.git
cd filament-input-loading

# Start the development environment
./packages/workbench/bin/workbench up

# Run tests
./packages/workbench/bin/sail phpunit

# Static analysis
./packages/workbench/bin/sail phpstan

# Code style
./packages/workbench/bin/sail pint

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 10
  • Watchers: 1
  • Forks: 1
  • 开发语言: Blade

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固