Twelve people die after a shoe factory collapsed in eastern China with more than 40 escaping on their own or being rescued.