Provided is an adapter. The adapter includes a housing and an elastic component. The elastic component is configured to connect the housing with an installation frame. The elastic component includes an installation body, a blocking portion and a clamping elastic piece, the blocking portion and the clamping elastic piece are disposed on the installation body. The installation body is configured to be detachably connected to the housing. A first clamping gap capable of accommodating the installation frame is provided between the blocking portion and the clamping elastic piece.