Giter Club home page Giter Club logo

grid-sortable's People

Contributors

jqhph avatar oopok avatar ycq3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

grid-sortable's Issues

拖不动,不知道哪里没用对😫!

`
class UserTag extends BaseModel implements Sortable
{
use SortableTrait;

public $sortable = [
    'order_column_name' => 'popular',
    'sort_when_creating' => true,
];

}

return Grid::make(new UserTag(), function (Grid $grid) {
$grid->popular->sortable();
});
`

incorrect vendor folder name

The vendor folder is giving 404 because 'vendor/dcat-admin-extensions/grid-sortable/sortable.min.js', should be 'vendors/dcat-admin-extensions/grid-sortable/sortable.min.js',

    protected static $js = [
        'vendor/dcat-admin-extensions/grid-sortable/sortable.min.js',
    ];

daat2.x以上版本安装报错,应该是插件停留在1.x版本

PHP版本:PHP 7.4.29 (cli) (built: Apr 21 2022 10:16:17) ( NTS )
Laravel版本:6
Dcat版本:v2.2.0-beta

报错信息如下:
image
Package swiftmailer/swiftmailer is abandoned, you should avoid using it. Use symfony/mailer instead.
Generating optimized autoload files

post-autoload-dump: Illuminate\Foundation\ComposerScripts::postAutoloadDump
PHP Fatal error: Uncaught Error: Call to undefined method Dcat\Admin\Admin::extend() in /home/longfei/www/test_larave/vendor/dcat-admin-extension/grid-sortable/src/bootstrap.php:4

保存時出現 Class name must be a valid object or a string?

Class name must be a valid object or a string

我數據庫名欄位就是叫sort int(6)

//App/Models/xxx.php
public $sortable = [
        'order_column_name' => 'sort',
        'sort_when_creating' => true,
    ];

在admin 的相關Controller 中grid() 加入了 $grid->sortable();

但還是報這個錯

可以拖動,也沒報錯,只有按下保存的那一刻才報錯

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.