We introduce function spaces $B^{p,\lambda}$ with Morrey-Campanato norms, which unify $B^{p,\lambda}$, $\newcommand{\CMO}{\mathrm{CMO}}\CMO^{p,\lambda}$ and Morrey-Campanato spaces, and prove the boundedness of the fractional integral operator $I_{\alpha}