From fb1955573ee5a5bd43dde41856892306098311d3 Mon Sep 17 00:00:00 2001 From: MadCcc <1075746765@qq.com> Date: Thu, 17 Feb 2022 16:41:12 +0800 Subject: [PATCH] feat: TreeSelect support status (#34093) * feat: TreeSelect support status * chore: code clean * docs: add demo version --- .../__snapshots__/demo-extend.test.ts.snap | 25 +- .../__tests__/__snapshots__/demo.test.js.snap | 25 +- .../__snapshots__/demo-extend.test.ts.snap | 243 ++++++++++++++++++ .../__tests__/__snapshots__/demo.test.js.snap | 123 +++++++++ components/tree-select/demo/status.md | 33 +++ components/tree-select/index.en-US.md | 1 + components/tree-select/index.tsx | 16 ++ components/tree-select/index.zh-CN.md | 1 + components/tree-select/style/index.tsx | 2 +- 9 files changed, 466 insertions(+), 3 deletions(-) create mode 100644 components/tree-select/demo/status.md diff --git a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap index 4d50418bc6..93ee9fb299 100644 --- a/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/form/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -18836,7 +18836,7 @@ exports[`renders ./components/form/demo/validate-static.md extend context correc class="ant-form-item-control-input-content" >
+ + + + +
diff --git a/components/form/__tests__/__snapshots__/demo.test.js.snap b/components/form/__tests__/__snapshots__/demo.test.js.snap index 26f1110f36..55159464ff 100644 --- a/components/form/__tests__/__snapshots__/demo.test.js.snap +++ b/components/form/__tests__/__snapshots__/demo.test.js.snap @@ -8012,7 +8012,7 @@ exports[`renders ./components/form/demo/validate-static.md correctly 1`] = ` class="ant-form-item-control-input-content" >
+ + + + +
diff --git a/components/tree-select/__tests__/__snapshots__/demo-extend.test.ts.snap b/components/tree-select/__tests__/__snapshots__/demo-extend.test.ts.snap index 3cc9b89f0f..6524f9010c 100644 --- a/components/tree-select/__tests__/__snapshots__/demo-extend.test.ts.snap +++ b/components/tree-select/__tests__/__snapshots__/demo-extend.test.ts.snap @@ -1571,6 +1571,249 @@ Array [ ] `; +exports[`renders ./components/tree-select/demo/status.md extend context correctly 1`] = ` +
+
+
+
+ + + + + Error + +
+
+
+
+
+
+
+ + + + + + + + + +
+
+ No Data +
+
+
+
+
+
+ +
+
+
+ +
+
+`; + exports[`renders ./components/tree-select/demo/suffix.md extend context correctly 1`] = ` +`; + exports[`renders ./components/tree-select/demo/suffix.md correctly 1`] = `