From 913f9f13e7451a99de7218ba7fe80d47db1f8c30 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Fri, 30 Oct 2020 17:22:34 +0800 Subject: [PATCH 1/2] chore: update snapshot --- tests/__snapshots__/index.spec.js.snap | 638 ++++++++----------------- 1 file changed, 199 insertions(+), 439 deletions(-) diff --git a/tests/__snapshots__/index.spec.js.snap b/tests/__snapshots__/index.spec.js.snap index 808e9fae..890c3942 100644 --- a/tests/__snapshots__/index.spec.js.snap +++ b/tests/__snapshots__/index.spec.js.snap @@ -52,469 +52,229 @@ exports[`Cascader should not show title when title is falsy 1`] = ` `; exports[`Cascader should render custom dropdown correctly 1`] = ` -Array [ - +
-
-
- -
-
    -
  • - 福建 - - > - -
  • -
  • - 浙江 - - > - -
  • -
  • - 北京 - - > - -
  • -
-
-
-
- - Hello, DropdownRender - -
-
- , -
-
- -
-
    +
    +
      +
    • -
    • - 福建 - - > - -
    • -
    • +
    • +
    • + 浙江 + - 浙江 - - > - -
    • -
    • +
    • +
    • + 北京 + - 北京 - - > - -
    • -
    -
    - -
    - - Hello, DropdownRender - -
-
, -] + > + + + +
+ +
+ + Hello, DropdownRender + +
+ `; From cda633eac2004640c971f137fc006bc760a7f860 Mon Sep 17 00:00:00 2001 From: yoyo837 Date: Fri, 30 Oct 2020 17:28:20 +0800 Subject: [PATCH 2/2] add peerDependencies --- package.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package.json b/package.json index 87411d0a..92c8adf3 100644 --- a/package.json +++ b/package.json @@ -63,5 +63,9 @@ "rc-trigger": "^5.0.4", "rc-util": "^5.0.1", "warning": "^4.0.1" + }, + "peerDependencies": { + "react": ">=16.9.0", + "react-dom": ">=16.9.0" } }