From 30e8f11424b01bc051ebe372289c0a9e460da0dc Mon Sep 17 00:00:00 2001 From: jonyshi Date: Mon, 16 Jul 2018 16:19:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E5=9B=9E=E8=B0=83=E5=87=BD?= =?UTF-8?q?=E6=95=B0(sorterClick)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- demo/demolist/Demo13.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/demo/demolist/Demo13.js b/demo/demolist/Demo13.js index 0c3544d..a83af39 100644 --- a/demo/demolist/Demo13.js +++ b/demo/demolist/Demo13.js @@ -1,7 +1,7 @@ /** * * @title 列排序、全选功能、合计 - * @description 列排序、全选功能、合计(通过使用的封装好的功能方法实现复杂功能,简单易用!) + * @description 列排序、全选功能、合计(通过使用的封装好的功能方法实现复杂功能,简单易用!)新增回调函数(sorterClick) * */ @@ -33,7 +33,10 @@ const columns13 = [ key: "c", width: 200, sumCol: true, - sorter: (a, b) => a.c - b.c + sorter: (a, b) => a.c - b.c, + sorterClick:data=>{//排序的回调函数 + console.log("data",data); + } }, { title: "武功级别",