defstudio / wired-tables
Laravel Livewire 数据表格
v0.2.43
2024-07-15 14:15 UTC
Requires
- php: ^8.1
- illuminate/contracts: ^9.0|^10.0
- illuminate/database: ^9.0|^10.0
- livewire/livewire: ^2.5
- spatie/laravel-package-tools: ^1.9.2
Requires (Dev)
- friendsofphp/php-cs-fixer: ^v3.1
- nunomaduro/collision: ^6.0|^7.0
- nunomaduro/larastan: ^2.0.1
- orchestra/testbench: ^6.22|^v7.1|^8.0
- pestphp/pest: ^1.21
- pestphp/pest-plugin-laravel: ^1.1
- phpstan/extension-installer: ^1.1
- phpstan/phpstan-deprecation-rules: ^1.0
- phpstan/phpstan-phpunit: ^1.0
- phpunit/phpunit: ^9.5|^10.0
- spatie/invade: ^1.1
- spatie/laravel-ray: ^1.26
- spatie/pest-plugin-snapshots: ^1.1
- spatie/x-ray: dev-main
- dev-main
- 1.x-dev
- v0.2.43
- v0.2.42
- v0.2.41
- v0.2.40
- v0.2.39
- v0.2.38
- v0.2.37
- v0.2.36
- v0.2.35
- v0.2.34
- v0.2.33
- v0.2.32
- v0.2.31
- v0.2.30
- v0.2.29
- v0.2.28
- v0.2.26
- v0.2.25
- v0.2.24
- v0.2.23
- v0.2.22
- v0.2.21
- v0.2.20
- v0.2.19
- v0.2.18
- v0.2.17
- v0.2.16
- v0.2.15
- v0.2.14
- v0.2.13
- v0.2.12
- v0.2.11
- v0.2.10
- v0.2.9
- v0.2.8
- v0.2.7
- v0.2.6
- v0.2.5
- v0.2.4
- v0.2.3
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.27
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
- dev-fix-clamp-z_index
- dev-fix-errors-on-prefix
- dev-fix_td_noWrap_in_limit_case
- dev-implement_compactTable_with_truncate_column_method
- dev-fix_sort_closure
- dev-fix_column_date
- dev-cached-page-size
- dev-revert-7-getField
- dev-getField
This package is auto-updated.
Last update: 2024-09-24 12:06:26 UTC
README
Laravel Livewire 数据表格
在这里应该放你的描述。尽量限制在一两段之内。考虑添加一个小示例。
支持我们
我们投入了大量资源来创建 最佳类别的开源包。您可以通过 购买我们的付费产品之一 来支持我们。
我们非常感谢您从家乡寄来明信片,并提到您正在使用哪些我们的包。您可以在 我们的联系页面 上找到我们的地址。我们将发布所有收到的明信片在 我们的虚拟明信片墙上。
安装
您可以通过 composer 安装此包
composer require defstudio/wired-tables
您可以使用以下命令发布配置文件
php artisan vendor:publish --tag="wired-tables-config"
这是发布配置文件的内容
return [
];
可选地,您可以使用以下命令发布视图
php artisan vendor:publish --tag="wired-tables-views"
tailwind 配置
为了保留 wired tables 的 tailwind 类,请将以下内容添加到您的 tailwind.config.js
module.exports = { content: [ //... './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/wire-elements/modal/resources/views/*.blade.php', //... ], theme: { extend: {}, }, plugins: [], prefix: 'tw-', corePlugins: { preflight: false, } }
与其他框架(例如 bootstrap)一起使用 tailwind
在 configs/wired-tables.php
中设置 style = tailwind_3_prefixed
配置(有关发布配置文件的信息,请参阅上面)(
并将以下内容添加到您的 tailwind.config.js
module.exports = { content: [ //... './vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php', './vendor/wire-elements/modal/resources/views/*.blade.php', ], //... prefix: 'tw-', corePlugins: { //... preflight: false, } }
使用方法
$wiredTables = new DefStudio\WiredTables(); echo $wiredTables->echoPhrase('Hello, DefStudio!');
测试
composer test
变更日志
请参阅 CHANGELOG 了解最近更改的详细信息。
贡献
请参阅 CONTRIBUTING 了解详细信息。
安全漏洞
请查看 我们的安全策略 了解如何报告安全漏洞。
鸣谢
许可证
MIT 许可证 (MIT)。有关更多信息,请参阅 许可证文件。
待办事项文档
可以通过发布它们来覆盖视图
php artisan vendor:publish --tag="wired-tables-views"
也可以在单个表格上覆盖视图
MyTable extends WiredTable{ public function mainView(): string { return 'custom-main-view'; }
以下视图方法可以被覆盖
mainView()
:表格的主要容器视图tableView()
:主要表格视图