According to this video, Upgrade TronXY X1 Power Supply with PC Power Supply, which actually shows the power brick, the TronXY power brick is 12 V 5 A. The best screenshot of the brick is shown below:

The narrator of the video (as do other sources) states that it runs extremely hot on long print cycles.
An example replacement power supply, on AliExpress, Tronxy 3D printer accessoires power supply 240W AC110/220V DC 12V 20A for 3D print DIY kit part, is rated at 20 A.
So, in theory any 12 V 10-15+ A rated laptop power brick should suffice.
However, that was not your question. As a standard RAMPS board also runs at 12 V, then yes, you can use the TronXY power brick with a standard RAMPS board.
Nevertheless, would you want to? It would seem advisable to get a higher rated power brick1. That way, you can run the printer harder and longer without the risk of the power supply dying (or worse, catching fire) and if, at a later stage, you want to add a heated bed, then you'll be able to use the same supply brick.
1 I think the biggest laptop 12 V supply I've seen was 15 A on eBay. Earler Xbox 360 bricks go up to 16.5 A. Both of these still get rather warm, due to their (admittedly convenient) black plastic casing. It might be better to get a standard, well ventilated, aluminium cased 20-35 A LED power supply, as in the AliExpress link above.