@longline/aqua-ui 1.0.262 → 1.0.263
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -102,14 +102,13 @@ var ListViewBase = function (props) {
|
|
|
102
102
|
// Is the input data an array? If not, abort.
|
|
103
103
|
if (!Array.isArray(data))
|
|
104
104
|
return;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
return __assign(__assign({}, d), { checked: item === d ? !d.checked : !!d.checked });
|
|
105
|
+
/*
|
|
106
|
+
const newData = data.map(d => {
|
|
107
|
+
if(item === true) return { ...d, checked: true };
|
|
108
|
+
if(item === false) return { ...d, checked: false };
|
|
109
|
+
return { ...d, checked: item === d ? !d.checked : !!d.checked };
|
|
111
110
|
});
|
|
112
|
-
setData(newData)
|
|
111
|
+
setData(newData);*/
|
|
113
112
|
props.onCheck(item);
|
|
114
113
|
};
|
|
115
114
|
var handleColumns = function () {
|