The present application relates to a compound as represented by general formula (I), a pharmaceutically acceptable salt, ester, solvate or stereoisomer thereof, preparation method of the compounds, a pharmaceutical composition containing the compounds, uses thereof in the preparation of drugs for treating and/or preventing proliferative diseases, and a method using the compounds to treat and/or prevent proliferative diseases. R1, R2, R3, R4, R5, R6, X, A and B in the formula are as defined in the specification.