An eight-month-old girl is in a serious condition after being attacked by a dog and airlifted to hospital.