Download the PHP package abbotton/dcat-infinity-select without Composer
On this page you can find all versions of the php package abbotton/dcat-infinity-select. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download abbotton/dcat-infinity-select
More information about abbotton/dcat-infinity-select
Files in abbotton/dcat-infinity-select
Download abbotton/dcat-infinity-select
More information about abbotton/dcat-infinity-select
Files in abbotton/dcat-infinity-select
Vendor abbotton
Package dcat-infinity-select
Short Description 基于Dcat Admin开发的无限级联动Select组件,主要解决不确定层级的树形数据的操作问题。
License MIT
Homepage https://github.com/abbotton/dcat-infinity-select
Package dcat-infinity-select
Short Description 基于Dcat Admin开发的无限级联动Select组件,主要解决不确定层级的树形数据的操作问题。
License MIT
Homepage https://github.com/abbotton/dcat-infinity-select
Keywords extensiondcat-admin
Please rate this library. Is it a good library?
Informations about the package dcat-infinity-select
Dcat Admin 无限级联动Select组件
如果感觉好用,还请给个Star
鼓励一下,谢谢 :beers: 。
该插件是 Dcat Admin 的插件,安装方式遵循Dcat Admin官方文档。
界面展示

实现原理
该组件继承自Dcat\Admin\Form\Field\Select
类,兼容原组件的属性和方法,并新增了一个list()
方法用来在编辑时设定创建时生成的有序链表。
- 页面初次渲染成功后,会调用
option()
方法中设定的接口地址,取得顶层数据,并实例化select2
前端组件; - 监听
select2
前端组件的change
事件,在选择项发生变动时通过向接口传入已选择项的值来获取下级数据,并生成新的DOM; - 监听
select2
前端组件的select2:unselected
事件,在取消选择某一项的时候,修改页面DOM并处理一些其他的业务逻辑;
安装
composer安装
应用商店安装
使用
表单:
路由:
接口:
接口返回值必须满足如下数据结构:
License
MIT
All versions of dcat-infinity-select with dependencies
PHP Build Version
Package Version
The package abbotton/dcat-infinity-select contains the following files
Loading the files please wait ....