From a2942e5589388c5add2befabd00343dd27c5cb75 Mon Sep 17 00:00:00 2001 From: wolfcode <37436228+wolf-leo@users.noreply.github.com> Date: Wed, 10 Jul 2024 14:30:16 +0800 Subject: [PATCH] feat(easy-admin): add laySearch support for search boxes in lists Introduce the `laySearch` option to enable the search functionality on list page search boxes. This improvement allows users to have a more intuitive and interactive way of searching through the list data by providing a search box with clear and concise feedback. When `laySearch` is set to true, the corresponding search box will now be equipped with the `lay-search` class which enhances the user interface and experience. --- public/static/admin/js/mall/goods.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/static/admin/js/mall/goods.js b/public/static/admin/js/mall/goods.js index faed6b2..30118ca 100644 --- a/public/static/admin/js/mall/goods.js +++ b/public/static/admin/js/mall/goods.js @@ -31,7 +31,7 @@ define(["jquery", "easy-admin"], function ($, ea) { {type: "checkbox"}, {field: 'id', width: 80, title: 'ID', searchOp: '='}, {field: 'sort', width: 80, title: '排序', edit: 'text'}, - {field: 'cate_id', minWidth: 80, title: '商品分类', search: 'select', selectList: cateSelects}, + {field: 'cate_id', minWidth: 80, title: '商品分类', search: 'select', selectList: cateSelects, laySearch: true}, {field: 'title', minWidth: 80, title: '商品名称'}, {field: 'logo', minWidth: 80, title: '分类图片', search: false, templet: ea.table.image}, {field: 'market_price', width: 100, title: '市场价', templet: ea.table.price},