diff --git a/demo/demolist/Demo0903.js b/demo/demolist/Demo0903.js
index ed5d0f2..b20b769 100644
--- a/demo/demolist/Demo0903.js
+++ b/demo/demolist/Demo0903.js
@@ -56,7 +56,13 @@ const columns13 = [
key: "e",
width: 200,
sumCol: true,
- sorter: (pre, after) => pre.e - after.e,
+ sorter: (pre, after) => pre.e.value - after.e.value,
+ getMultiSorterValue: data => {
+ return data.value
+ },
+ render: (text, data) => {
+ return text.value
+ }
},
{
title: "供应商",
@@ -67,14 +73,13 @@ const columns13 = [
];
const data13 = [
- { a: "NU0391001", b: 675, c: 30, d: "xx供应商",e:100, key: "2" },
- { a: "NU0391002", b: 43, c: 41, d: "yy供应商",e:90, key: "1" },
- { a: "NU0391003", b: 43, c: 81, d: "zz供应商", e:120,key: "4" },
- { a: "NU0391004", b: 43, c: 81, d: "aa供应商", e:130,key: "5" },
- { a: "NU0391005", b: 153, c: 25, d: "bb供应商",e:90, key: "3" }
+ { a: "NU0391001", b: 675, c: 30, d: "xx供应商",e:{value: 120}, key: "2" },
+ { a: "NU0391002", b: 43, c: 41, d: "yy供应商",e:{value: 90}, key: "1" },
+ { a: "NU0391003", b: 43, c: 81, d: "zz供应商", e:{value: 120},key: "4" },
+ { a: "NU0391004", b: 43, c: 81, d: "aa供应商", e:{value: 110},key: "5" },
+ { a: "NU0391005", b: 153, c: 25, d: "bb供应商",e:{value: 90}, key: "3" }
];
-
//拼接成复杂功能的table组件不能在render中定义,需要像此例子声明在组件的外侧,不然操作state会导致功能出现异常
let ComplexTable = multiSelect(sort(sum(Table, Icon)), Checkbox);
diff --git a/demo/index.js b/demo/index.js
index fdcfa6d..dda7f4c 100644
--- a/demo/index.js
+++ b/demo/index.js
@@ -9,7 +9,7 @@ import Button from '../src';
-var Demo0101 = require("./demolist/Demo0101");var Demo0102 = require("./demolist/Demo0102");var Demo0103 = require("./demolist/Demo0103");var Demo0104 = require("./demolist/Demo0104");var Demo0105 = require("./demolist/Demo0105");var Demo0106 = require("./demolist/Demo0106");var Demo0107 = require("./demolist/Demo0107");var Demo0201 = require("./demolist/Demo0201");var Demo0202 = require("./demolist/Demo0202");var Demo0301 = require("./demolist/Demo0301");var Demo0302 = require("./demolist/Demo0302");var Demo0401 = require("./demolist/Demo0401");var Demo0402 = require("./demolist/Demo0402");var Demo0404 = require("./demolist/Demo0404");var Demo0405 = require("./demolist/Demo0405");var Demo0406 = require("./demolist/Demo0406");var Demo0501 = require("./demolist/Demo0501");var Demo0502 = require("./demolist/Demo0502");var Demo0503 = require("./demolist/Demo0503");var Demo0505 = require("./demolist/Demo0505");var Demo0601 = require("./demolist/Demo0601");var Demo0602 = require("./demolist/Demo0602");var Demo0603 = require("./demolist/Demo0603");var Demo0701 = require("./demolist/Demo0701");var Demo0702 = require("./demolist/Demo0702");var Demo0802 = require("./demolist/Demo0802");var Demo0901 = require("./demolist/Demo0901");var Demo0902 = require("./demolist/Demo0902");var Demo0903 = require("./demolist/Demo0903");var Demo1001 = require("./demolist/Demo1001");var Demo1002 = require("./demolist/Demo1002");var Demo1101 = require("./demolist/Demo1101");var Demo1102 = require("./demolist/Demo1102");var Demo1103 = require("./demolist/Demo1103");var Demo1105 = require("./demolist/Demo1105");var Demo1106 = require("./demolist/Demo1106");var Demo1107 = require("./demolist/Demo1107");var Demo1108 = require("./demolist/Demo1108");var Demo1201 = require("./demolist/Demo1201");var Demo1301 = require("./demolist/Demo1301");var Demo1302 = require("./demolist/Demo1302");var Demo1401 = require("./demolist/Demo1401");var Demo1402 = require("./demolist/Demo1402");var Demo1403 = require("./demolist/Demo1403");var Demo1404 = require("./demolist/Demo1404");var Demo1601 = require("./demolist/Demo1601");var DemoArray = [{"example":