PHPackages                             chieh12lee/dcat-admin-grid-sotrable - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. chieh12lee/dcat-admin-grid-sotrable

ActiveLibrary

chieh12lee/dcat-admin-grid-sotrable
===================================

基於Pstldz DcatAdminGridSotrable修正版本問題

14JavaScript

Since May 3Pushed 3y agoCompare

[ Source](https://github.com/chieh12lee/dcat-admin-grid-sotrable)[ Packagist](https://packagist.org/packages/chieh12lee/dcat-admin-grid-sotrable)[ RSS](/packages/chieh12lee-dcat-admin-grid-sotrable/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

DCAT-ADMIN GRID-SORTABLE
========================

[](#dcat-admin-grid-sortable)

这个插件可以帮助你通过拖动数据列表的行来进行排序，前端基于[SortableJS](https://github.com/SortableJS/Sortable), 后端基于[eloquent-sortable](https://github.com/spatie/eloquent-sortable)。

[Dcat-admin](https://github.com/jqhph/dcat-admin) 官方的插件[DCAT-ADMIN GRID-SORTABLE](https://github.com/dcat-admin/grid-sortable) 只支持 1.\* 的版本 ，在此基础上制作了这个仅2.\* 可用的版本。

添加了不同的拖动方式，可以在设置中选择。

添加了取消的按钮，可以在设置中选择显示与否。

安装
--

[](#安装)

```
composer require chieh12lee/dcat-admin-grid-sotrable
```

然后打开`http://yourhost/admin/auth/extensions` ，依次点击 `更新` 和 `启用` 。

使用
--

[](#使用)

修改模型

```
