From 6957bb6983eddd153bbd176f2f5be8cd37be19c5 Mon Sep 17 00:00:00 2001 From: catchonme Date: Tue, 11 Jun 2019 10:09:44 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dgrid=E5=86=85=E5=AE=B9?= =?UTF-8?q?=E4=B8=BA=E5=85=B6=E4=BB=96=E6=97=B6=E4=B8=8D=E8=83=BD=E8=AF=86?= =?UTF-8?q?=E5=88=AB=E6=B8=B2=E6=9F=93=E5=99=A8=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Form/__snapshots__/array.test.tsx.snap | 144 +++++++++ .../Form/__snapshots__/button.test.tsx.snap | 233 +++++++++++++++ .../__snapshots__/buttonGroup.test.tsx.snap | 275 ++++++++++++++++++ .../__snapshots__/buttonToolBar.test.tsx.snap | 195 +++++++++++++ .../Form/__snapshots__/checkbox.test.tsx.snap | 62 ++++ .../__snapshots__/checkboxes.test.tsx.snap | 237 +++++++++++++++ .../Form/__snapshots__/grid.test.tsx.snap | 76 +++++ .../Form/__snapshots__/group.test.tsx.snap | 224 ++++++++++++++ .../Form/__snapshots__/hbox.test.tsx.snap | 76 +++++ .../Form/__snapshots__/index.test.tsx.snap | 13 +- .../Form/__snapshots__/list.test.tsx.snap | 270 +++++++++++++++++ .../Form/__snapshots__/panel.test.tsx.snap | 154 ++++++++++ .../Form/__snapshots__/radios.test.tsx.snap | 237 +++++++++++++++ .../Form/__snapshots__/service.test.tsx.snap | 138 +++++++++ .../Form/__snapshots__/static.test.tsx.snap | 103 +++++++ .../Form/__snapshots__/switch.test.tsx.snap | 61 ++++ .../Form/__snapshots__/tabs.test.tsx.snap | 154 ++++++++++ __tests__/renderers/Form/array.test.tsx | 46 +++ __tests__/renderers/Form/button.test.tsx | 60 ++++ __tests__/renderers/Form/buttonGroup.test.tsx | 92 ++++++ .../renderers/Form/buttonToolBar.test.tsx | 55 ++++ __tests__/renderers/Form/checkbox.test.tsx | 35 +++ __tests__/renderers/Form/checkboxes.test.tsx | 63 ++++ __tests__/renderers/Form/grid.test.tsx | 50 ++++ __tests__/renderers/Form/group.test.tsx | 88 ++++++ __tests__/renderers/Form/hbox.test.tsx | 47 +++ __tests__/renderers/Form/list.test.tsx | 93 ++++++ __tests__/renderers/Form/panel.test.tsx | 73 +++++ __tests__/renderers/Form/radios.test.tsx | 59 ++++ __tests__/renderers/Form/service.test.tsx | 73 +++++ __tests__/renderers/Form/static.test.tsx | 65 +++++ __tests__/renderers/Form/switch.test.tsx | 46 +++ __tests__/renderers/Form/tabs.test.tsx | 52 ++++ docs/renderers/Form/Combo.md | 2 +- docs/renderers/Form/FieldSet.md | 1 + docs/renderers/Grid.md | 2 +- docs/renderers/Tabs.md | 1 + src/renderers/Form/Grid.tsx | 2 +- 38 files changed, 3649 insertions(+), 8 deletions(-) create mode 100644 __tests__/renderers/Form/__snapshots__/array.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/button.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/buttonGroup.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/buttonToolBar.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/checkbox.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/checkboxes.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/grid.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/group.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/hbox.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/list.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/panel.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/radios.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/service.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/static.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/switch.test.tsx.snap create mode 100644 __tests__/renderers/Form/__snapshots__/tabs.test.tsx.snap create mode 100644 __tests__/renderers/Form/array.test.tsx create mode 100644 __tests__/renderers/Form/button.test.tsx create mode 100644 __tests__/renderers/Form/buttonGroup.test.tsx create mode 100644 __tests__/renderers/Form/buttonToolBar.test.tsx create mode 100644 __tests__/renderers/Form/checkbox.test.tsx create mode 100644 __tests__/renderers/Form/checkboxes.test.tsx create mode 100644 __tests__/renderers/Form/grid.test.tsx create mode 100644 __tests__/renderers/Form/group.test.tsx create mode 100644 __tests__/renderers/Form/hbox.test.tsx create mode 100644 __tests__/renderers/Form/list.test.tsx create mode 100644 __tests__/renderers/Form/panel.test.tsx create mode 100644 __tests__/renderers/Form/radios.test.tsx create mode 100644 __tests__/renderers/Form/service.test.tsx create mode 100644 __tests__/renderers/Form/static.test.tsx create mode 100644 __tests__/renderers/Form/switch.test.tsx create mode 100644 __tests__/renderers/Form/tabs.test.tsx diff --git a/__tests__/renderers/Form/__snapshots__/array.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/array.test.tsx.snap new file mode 100644 index 00000000..22eff785 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/array.test.tsx.snap @@ -0,0 +1,144 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:array 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+
+
+
+
+
+
+
+
+
+
+ + + + + + + + + +
+
+
+
+
+
+
+
+
+
+
+ + +
+
+
+
+ +
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/button.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/button.test.tsx.snap new file mode 100644 index 00000000..c081d6da --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/button.test.tsx.snap @@ -0,0 +1,233 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:button 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+
+`; + +exports[`Renderer:button 2`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+ +
+
+ +
+
+ +
+ +
+
+ +`; diff --git a/__tests__/renderers/Form/__snapshots__/buttonGroup.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/buttonGroup.test.tsx.snap new file mode 100644 index 00000000..a1c6127d --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/buttonGroup.test.tsx.snap @@ -0,0 +1,275 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:button-group 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + + - + + +
+
+
+
+
+
+
+`; + +exports[`Renderer:button-group:multiple clearable 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + a,b + +
+
+
+
+
+
+
+`; + +exports[`Renderer:button-group:multiple clearable 2`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+
+ + +
+
+
+
+ +
+
+ + a + +
+
+
+
+
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/buttonToolBar.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/buttonToolBar.test.tsx.snap new file mode 100644 index 00000000..812b2175 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/buttonToolBar.test.tsx.snap @@ -0,0 +1,195 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:button-toolbar 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+
+ + + +
+
+
+
+
+
+`; + +exports[`Renderer:button-toolbar 2`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+
+ + + +
+
+
+
+
+ +`; diff --git a/__tests__/renderers/Form/__snapshots__/checkbox.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/checkbox.test.tsx.snap new file mode 100644 index 00000000..eac1a7e8 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/checkbox.test.tsx.snap @@ -0,0 +1,62 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:checkbox 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+ +
+
+ +
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/checkboxes.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/checkboxes.test.tsx.snap new file mode 100644 index 00000000..50328408 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/checkboxes.test.tsx.snap @@ -0,0 +1,237 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:checkboxes 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+ + + + +
+
+
+ +
+
+ + + - + + +
+
+
+ +
+
+
+`; + +exports[`Renderer:checkboxes 2`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+ +
+ + + + +
+
+
+ +
+
+ + + - + + +
+
+
+ +
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/grid.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/grid.test.tsx.snap new file mode 100644 index 00000000..f422817e --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/grid.test.tsx.snap @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:hbox 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+
+ + 其他渲染器类型 + +
+
+
+
+
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/group.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/group.test.tsx.snap new file mode 100644 index 00000000..59cb0454 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/group.test.tsx.snap @@ -0,0 +1,224 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:group 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+ +
+
+
+ +
+
+
+
+
+
+
+ +
+
+ +
+
+
+
+ +
+
+ +
+
+
+
+
+
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/hbox.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/hbox.test.tsx.snap new file mode 100644 index 00000000..ae267380 --- /dev/null +++ b/__tests__/renderers/Form/__snapshots__/hbox.test.tsx.snap @@ -0,0 +1,76 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`Renderer:hbox 1`] = ` +
+
+
+

+ + The form + +

+
+
+
+
+
+
+
+
+
+
+ +
+
+
+
+
+ + 其他类型的渲染器 + +
+
+
+
+
+
+
+
+`; diff --git a/__tests__/renderers/Form/__snapshots__/index.test.tsx.snap b/__tests__/renderers/Form/__snapshots__/index.test.tsx.snap index 5de43e60..9adcc528 100644 --- a/__tests__/renderers/Form/__snapshots__/index.test.tsx.snap +++ b/__tests__/renderers/Form/__snapshots__/index.test.tsx.snap @@ -220,17 +220,18 @@ exports[`Renderer:Form sendOn:true 1`] = `
@@ -246,17 +247,18 @@ exports[`Renderer:Form sendOn:true 1`] = `
@@ -268,7 +270,8 @@ exports[`Renderer:Form sendOn:true 1`] = ` class="a-Panel-btnToolbar a-Panel-footer" >