From 654a675532b5829bf1150fd06e6b648bfa01810d Mon Sep 17 00:00:00 2001 From: David Broder-Rodgers Date: Tue, 29 Oct 2019 03:24:07 +0000 Subject: [PATCH] docs: Responsive fixes for examples pages (#19448) * Remove fixed width from cascader examples * Replace fixed vertical slider example height with clearfix div * Replace fixed width on TreeSelect examples with percentage width * Update test snapshots * Use inline-block rather than float left for vertical slider example --- components/cascader/index.en-US.md | 6 ------ components/cascader/index.zh-CN.md | 6 ------ .../slider/__tests__/__snapshots__/demo.test.js.snap | 10 ++++------ components/slider/demo/vertical.md | 4 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 12 ++++++------ components/tree-select/demo/async.md | 2 +- components/tree-select/demo/basic.md | 2 +- components/tree-select/demo/checkable.md | 2 +- components/tree-select/demo/multiple.md | 2 +- components/tree-select/demo/suffix.md | 2 +- components/tree-select/demo/treeData.md | 2 +- 11 files changed, 18 insertions(+), 32 deletions(-) diff --git a/components/cascader/index.en-US.md b/components/cascader/index.en-US.md index 073f2a3bda..88c60d06b3 100644 --- a/components/cascader/index.en-US.md +++ b/components/cascader/index.en-US.md @@ -72,9 +72,3 @@ interface Option { | ------- | ------------ | ------- | | blur() | remove focus | | | focus() | get focus | | - - diff --git a/components/cascader/index.zh-CN.md b/components/cascader/index.zh-CN.md index 84733d02b8..adc0bbdef4 100644 --- a/components/cascader/index.zh-CN.md +++ b/components/cascader/index.zh-CN.md @@ -74,10 +74,4 @@ interface Option { | blur() | 移除焦点 | | | focus() | 获取焦点 | | - - > 注意,如果需要获得中国省市区数据,可以参考 [china-division](https://gist.github.com/afc163/7582f35654fd03d5be7009444345ea17)。 diff --git a/components/slider/__tests__/__snapshots__/demo.test.js.snap b/components/slider/__tests__/__snapshots__/demo.test.js.snap index 5050e82983..642fce56b6 100644 --- a/components/slider/__tests__/__snapshots__/demo.test.js.snap +++ b/components/slider/__tests__/__snapshots__/demo.test.js.snap @@ -1032,11 +1032,9 @@ exports[`renders ./components/slider/demo/tip-formatter.md correctly 1`] = ` `; exports[`renders ./components/slider/demo/vertical.md correctly 1`] = ` -
+
+
diff --git a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap index 01b9863e09..ad79807158 100644 --- a/components/tree-select/__tests__/__snapshots__/demo.test.js.snap +++ b/components/tree-select/__tests__/__snapshots__/demo.test.js.snap @@ -5,7 +5,7 @@ exports[`renders ./components/tree-select/demo/async.md correctly 1`] = ` aria-haspopup="listbox" class="ant-select ant-select-enabled" role="combobox" - style="width:300px" + style="width:100%" tabindex="0" > ; diff --git a/components/tree-select/demo/multiple.md b/components/tree-select/demo/multiple.md index 44d8674ed3..a94090a095 100644 --- a/components/tree-select/demo/multiple.md +++ b/components/tree-select/demo/multiple.md @@ -32,7 +32,7 @@ class Demo extends React.Component { return (