diff --git a/components/spin/__tests__/__snapshots__/demo.test.js.snap b/components/spin/__tests__/__snapshots__/demo.test.js.snap
index 7d52b91d7b..026cf1db52 100644
--- a/components/spin/__tests__/__snapshots__/demo.test.js.snap
+++ b/components/spin/__tests__/__snapshots__/demo.test.js.snap
@@ -96,15 +96,19 @@ exports[`renders ./components/spin/demo/nested.md correctly 1`] = `
- Loading state:
-
+ Loading state:
-
+ class="ant-switch"
+ tabindex="0"
+ >
+
+
+
`;
diff --git a/components/spin/demo/nested.md b/components/spin/demo/nested.md
index 4c361905c9..767aa48de3 100644
--- a/components/spin/demo/nested.md
+++ b/components/spin/demo/nested.md
@@ -21,18 +21,19 @@ class Card extends React.Component {
toggle = (value) => {
this.setState({ loading: value });
}
- render() {
- const container = (
-