Ptychography is a lensless, wide-field, diffraction imaging method that can reconstruct the object transmittance function and the probe distribution simultaneously. Traditionally, lateral mechanical movement is necessary in the time-consuming data acquisition process, resulting in disability to investigate dynamic phenomena. Single-shot ptychography is therefore proposed which divides the incident light into multiple tilted sub-probes through a beam splitting element, e.g., pinhole array and Dammann grating, meanwhile the diffraction patterns are recorded simultaneously in spatial multiplexing mode. In this study, we propose a single-shot ptychography approach using a phase-only spatial light modulator. In order to realize multi-angle modulation, four different grey images are loaded in different quadrants of the modulator, which generates a specific phase delay. Considering the inconsistent wavefront of the probe beams, multi-mode ptychographic algorithm is also adopted which treats probe beams differently. The proposed method is expected to promote single-shot ptychography for piratical applications.