From 61ab3a4a9e7b4bd88bf78a3fd6dfe0d3501cead8 Mon Sep 17 00:00:00 2001 From: afc163 Date: Wed, 6 Dec 2017 20:20:32 +0800 Subject: [PATCH] update switch demo --- .../__tests__/__snapshots__/demo.test.js.snap | 14 +++++++------- components/switch/demo/basic.md | 2 +- components/switch/demo/size.md | 4 ++-- components/switch/demo/text.md | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/switch/__tests__/__snapshots__/demo.test.js.snap b/components/switch/__tests__/__snapshots__/demo.test.js.snap index 018c3e377f..7d52ae2424 100644 --- a/components/switch/__tests__/__snapshots__/demo.test.js.snap +++ b/components/switch/__tests__/__snapshots__/demo.test.js.snap @@ -2,7 +2,7 @@ exports[`renders ./components/switch/demo/basic.md correctly 1`] = `
- 关 + 开
@@ -102,14 +102,14 @@ exports[`renders ./components/switch/demo/text.md correctly 1`] = `

diff --git a/components/switch/demo/basic.md b/components/switch/demo/basic.md index 37d01d02f4..7321018728 100644 --- a/components/switch/demo/basic.md +++ b/components/switch/demo/basic.md @@ -21,7 +21,7 @@ function onChange(checked) { } ReactDOM.render( - , + , mountNode ); ```` diff --git a/components/switch/demo/size.md b/components/switch/demo/size.md index d1ef8ff8d9..49a1f58618 100644 --- a/components/switch/demo/size.md +++ b/components/switch/demo/size.md @@ -18,9 +18,9 @@ import { Switch } from 'antd'; ReactDOM.render(
- +
- +
, mountNode); ```` diff --git a/components/switch/demo/text.md b/components/switch/demo/text.md index d269530f0d..53df8dff09 100644 --- a/components/switch/demo/text.md +++ b/components/switch/demo/text.md @@ -18,11 +18,11 @@ import { Switch, Icon } from 'antd'; ReactDOM.render(
- +

- } unCheckedChildren={} /> + } unCheckedChildren={} defaultChecked />
, mountNode); ````