lushdog@outlook.com пре 2 недеља
родитељ
комит
3df3c832c5
1 измењених фајлова са 9 додато и 0 уклоњено
  1. 9 0
      src/app/components/DataTable.tsx

+ 9 - 0
src/app/components/DataTable.tsx

@@ -587,6 +587,12 @@ function DataTableContent() {
 		fetchData(1, 100, selectedPoolAddress, sortField)
 	}
 
+	function handleReset() {
+		setPriceLower(0)
+		setPriceUpper(0)
+		setQuickCopyAmount(1)
+	}
+
 	// 子表格的列定义
 	const childColumns = [
 		{
@@ -750,6 +756,9 @@ function DataTableContent() {
 					max={100000}
 					onChange={(value) => setPriceUpper(value as number)}
 				/>
+				<Button type="primary" className="ml-2 mr-2" onClick={handleReset}>
+					重置
+				</Button>
 				{selectedRowKeys.length > 0 && (
 					<Button
 						type="primary"