-
- } onClick={addAddress}>
- 添加
-
-
{
const tableRef = useRef();
- const addAddress = () => {};
const form = createForm({});
const [visible, setVisible] = useState(false);
const [loading, setLoading] = useState(false);
@@ -42,13 +39,13 @@ const Address: React.FC = () => {
Editable,
},
});
- const state = {
- queryForm: {
- page: 1,
- size: 20,
- coin_type: 'tron',
- },
- };
+ // const state = {
+ // queryForm: {
+ // page: 1,
+ // size: 20,
+ // coin_type: 'tron',
+ // },
+ // };
const columns: ProColumns[] = [
{
title: '网络名称',
@@ -66,31 +63,36 @@ const Address: React.FC = () => {
{
title: 'API Key',
dataIndex: 'apiKey',
- ellipsis: true,
+ hideInSearch: true,
},
{
title: '代币符号',
dataIndex: 'symbol',
+ hideInSearch: true,
width: 150,
},
{
title: 'RPC URL',
dataIndex: 'rpcUrl',
width: 150,
+ hideInSearch: true,
},
{
title: '精度',
dataIndex: 'decimals',
+ hideInSearch: true,
width: 150,
},
{
title: '区块浏览器',
dataIndex: 'browser',
+ hideInSearch: true,
width: 150,
},
{
title: '代币合约地址',
dataIndex: 'contract',
+ hideInSearch: true,
width: 150,
},
];
@@ -112,11 +114,6 @@ const Address: React.FC = () => {
};
return (
-
- } onClick={addAddress}>
- 添加
-
-
{
+ // n.balance = getTronBalance(n.address);
+ console.log(n.address);
+ });
data?.forEach((n: any) => {
for (const key in formatObj) {
n[key] = n[formatObj[key]];
n.balance = getTronBalance(n.address);
- console.log(n.balance);
}
});
return {