Fastadmin常用到的知识点记录

浏览:1614 发布日期:2019/01/28 分类:用法示例 关键字: Fastadmin
Fastadmin常用到的知识点记录
阿里云搞活动,想要抓紧买:https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=4hy76kwx

Fastadmin是一种非常好用的工具,一开始应用的时候,好多都是用PHP原生的功能去实现,其实它已经有更好的实现方法,我整理了一下在最近使用中经常用到的代码,以后会持续更新
一、时间搜索: {field: 'xieche_time', title: __('Xieche_time'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},二、搜索中不显示:operate:false{field: 'addtime', title: __('Addtime'), operate:false}, 三、between搜索{field: 'gai_yunfei', title: __('Gai_yunfei'), operate:'BETWEEN'},四、列表中隐藏visible:false五、selectpage表单传递参数
data-params='{"custom[is_del]":"0"}'
六、点击添加或者编辑按钮的时候弹窗的大小
在js中设置
$(".btn-edit,.btn-add,.btn-editone").data("area", ["100%","100%"]);

欢迎加入我的QQ群:282882201



阿里云搞活动,想要抓紧买:https://promotion.aliyun.com/ntms/act/qwbk.html?userCode=4hy76kwx
评论( 相关
后面还有条评论,点击查看>>