0 ? 4 : 0, borderTop: filterConditions.length > 0 ? `1px dashed ${panelFrameColor}` : 'none' }}>
+ {sortInfo.map((s, idx) => (
+
+ {
+ const next = [...sortInfo];
+ next[idx] = { ...next[idx], enabled: e.target.checked };
+ onSort(JSON.stringify(next), '');
+ }}
+ style={{ flex: '0 0 auto' }}
+ />
+ {idx === 0 ? '排序' : '然后'}
+
+ ))}
+
} onClick={() => {
+ const next = [...sortInfo, { columnKey: displayColumnNames.find(c => !sortInfo.some(s => s.columnKey === c)) || displayColumnNames[0] || '', order: 'ascend', enabled: true }];
+ onSort(JSON.stringify(next), '');
+ }} disabled={sortInfo.length >= displayColumnNames.length} style={{ marginBottom: 4 }}>添加排序
+
0) ? 4 : 0, paddingTop: (onSort && sortInfo.length > 0) ? 6 : 0, borderTop: (onSort && sortInfo.length > 0) ? `1px dashed ${panelFrameColor}` : 'none' }}>
}>添加条件
+
+
} onClick={() => {
setFilterConditions([]);
if (onApplyFilter) onApplyFilter([]);
+ if (onSort) onSort('', '');
}}>清除