Revert "给Layer增加自定义class方法"

This reverts commit 773d425e4988d3c77c639781eea4f4819be4da71.
Revert "Revert "给Layer增加自定义class方法""

This reverts commit 86d571da692eda7a2f91df6031cc0522a2587af9.