From 0dd57a54f623ee561417adfa435fe09fed0f69f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=9D=A4?= Date: Fri, 2 Aug 2024 18:52:34 +0800 Subject: [PATCH] chore: test --- .../__tests__/__snapshots__/demo.test.js.snap | 87 +- .../__tests__/__snapshots__/demo.test.js.snap | 889 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 671 ++- .../__tests__/__snapshots__/demo.test.js.snap | 5 +- .../__tests__/__snapshots__/demo.test.js.snap | 236 +- .../__tests__/__snapshots__/demo.test.js.snap | 650 ++- .../__tests__/__snapshots__/demo.test.js.snap | 853 ++-- .../__tests__/__snapshots__/demo.test.js.snap | 297 +- .../__snapshots__/index.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 2831 +++--------- .../__tests__/__snapshots__/demo.test.js.snap | 191 +- .../__tests__/__snapshots__/demo.test.js.snap | 3829 ++++++++-------- .../__tests__/__snapshots__/demo.test.js.snap | 10 +- .../__tests__/__snapshots__/demo.test.js.snap | 543 ++- .../__tests__/__snapshots__/demo.test.js.snap | 3901 +++++++++-------- .../__tests__/__snapshots__/demo.test.js.snap | 152 +- .../__tests__/__snapshots__/demo.test.js.snap | 2080 +++++---- .../__tests__/__snapshots__/demo.test.js.snap | 5 +- .../__tests__/__snapshots__/demo.test.js.snap | 48 +- .../__tests__/__snapshots__/demo.test.js.snap | 543 ++- 20 files changed, 8648 insertions(+), 9183 deletions(-) diff --git a/components/accordion/__tests__/__snapshots__/demo.test.js.snap b/components/accordion/__tests__/__snapshots__/demo.test.js.snap index 6f54e091f..42021c821 100644 --- a/components/accordion/__tests__/__snapshots__/demo.test.js.snap +++ b/components/accordion/__tests__/__snapshots__/demo.test.js.snap @@ -113,13 +113,22 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = ` onLayout={[Function]} style={Object {}} > - + @@ -166,27 +175,19 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = ` ] } > - - - Content 1 - - + Content 1 + @@ -233,27 +234,19 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = ` ] } > - - - Content 2 - - + Content 2 + @@ -300,38 +293,28 @@ exports[`renders ./components/accordion/demo/basic.tsx correctly 1`] = ` ] } > - - - Content 3 - - + Content 3 + - - - + - 基本用法 - - + } + > + 基本用法 + @@ -155,6 +161,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -181,17 +188,26 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` false, ] } - /> + > + + - - - + - 不可用 - - + } + > + 不可用 + @@ -356,6 +378,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -383,7 +406,18 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` false, ] } - /> + > + + + > + + - - - + - 受控的Checkbox - - + } + > + 受控的Checkbox + @@ -721,6 +771,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -747,17 +798,26 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` false, ] } - /> + > + + - + - - - Uncheck - - + Uncheck + + + - - - Disable - - + Disable + - - - + - AgreeItem - - + } + > + AgreeItem + @@ -1065,6 +1129,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1077,11 +1142,9 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` - - - + - CheckboxItem - - + } + > + CheckboxItem + @@ -1253,6 +1322,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1280,10 +1350,14 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` > - + + /> + + + - @@ -1869,11 +1980,9 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` - - - + - 全选 + } + > + 全选 在实现全选效果时,你可能会用到 indeterminate 属性。 - - + @@ -2036,6 +2151,7 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -2063,10 +2179,14 @@ exports[`renders ./components/checkbox/demo/basic.tsx correctly 1`] = ` > - - - + - 手风琴模式 - - + } + > + 手风琴模式 + - + @@ -82,48 +97,33 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` ] } > - - + - 第一项 - - - - - + - 第二项 - - - - - + - 第三项 - - - - - - + - 自定义折叠图标 - - + } + > + 自定义折叠图标 + - + @@ -552,43 +533,53 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` ] } > - - - 第一项 - - - + -  - + +  + + @@ -661,32 +652,24 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` ] } > - - - 你可以通过 Collapse 的 arrow 属性来控制全部面板的箭头 - - + 你可以通过 Collapse 的 arrow 属性来控制全部面板的箭头 + @@ -735,48 +718,33 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` ] } > - - + - 第二项 - - - - - - 第三项 - - - + -  - + +  + + @@ -939,11 +917,9 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` - - - + - 动态内容 - - + } + > + 动态内容 + - + @@ -1047,48 +1036,33 @@ exports[`renders ./components/collapse/demo/basic.tsx correctly 1`] = ` ] } > - - + - 第一项 - - - - - + - 第二项 - - - - - - + - 基本 - - + } + > + 基本 + @@ -587,91 +593,39 @@ exports[`renders ./components/input-item/demo/basic.tsx correctly 1`] = ` ] } > - - - - - 点击获取光标 - - - - + 点击获取光标 + - - - + - 固定标签字数 - - + } + > + 固定标签字数 + @@ -919,11 +879,9 @@ exports[`renders ./components/input-item/demo/basic.tsx correctly 1`] = ` - - - + - 格式 - - + } + > + 格式 + @@ -1352,11 +1316,9 @@ exports[`renders ./components/input-item/demo/basic.tsx correctly 1`] = ` - - - + - basic - - + } + > + basic + @@ -82,27 +88,19 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` ] } > - - - 标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏 - - + 标题文字点击无反馈,文字超长则隐藏,文字超长则隐藏 + @@ -149,26 +147,18 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` ] } > - - - 文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行 - - + 文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行 + @@ -215,51 +205,34 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` ] } > - - - 标题文字 - - - + - - 箭头向右 - - + 箭头向右 + - - - 标题文字 - - - + - - 箭头向下 - - + 箭头向下 + - - - 标题文字 - - - + - - 箭头向上 - - + 箭头向上 + - - - 标题文字 - - - + - - 没有箭头 - - + 没有箭头 + - - + - 垂直居中对齐 - - - - + }, + undefined, + ] + } + > + 内容内容 垂直居中对齐 @@ -805,30 +722,21 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` - - - 内容内容 - - + 内容内容 + @@ -882,20 +790,21 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` 顶部对齐 @@ -951,29 +860,20 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` - - - 文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行 - - + 文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行文字超长折行 + - - + - 底部对齐 - - - - + }, + undefined, + ] + } + > + 内容内容 - - - + - 带缩略图 - - + } + > + 带缩略图 + @@ -1213,27 +1111,19 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` ] } > - - - thumb - - + thumb + @@ -1297,27 +1187,19 @@ exports[`renders ./components/list/demo/basic.tsx correctly 1`] = ` ] } > - - - thumb - - + thumb + - - - extra为Image - - - + + > + + - - - + - 自定义颜色 - - + } + > + 自定义颜色 + @@ -432,11 +438,9 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` - - - + - 可关闭 - - + } + > + 可关闭 + @@ -609,11 +619,9 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` - - - + - 超长滚动 - - + } + > + 超长滚动 + @@ -889,11 +903,9 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` - - - + - 自定义 - - + } + > + 自定义 + @@ -1376,11 +1394,9 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` - - - + - 方向/播放/暂停控制 - - + } + > + 方向/播放/暂停控制 + @@ -1586,115 +1608,125 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` ] } > - - + - Play - - - - + + /> + + @@ -1743,115 +1775,125 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` ] } > - - + - AutoFill - - - - + + /> + + @@ -1900,117 +1942,129 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` ] } > - - + - Direction - - - - - L - + + + L + + @@ -2062,8 +2116,10 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` @@ -2123,7 +2179,7 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` @@ -2493,11 +2548,9 @@ exports[`renders ./components/notice-bar/demo/basic.tsx correctly 1`] = ` - - List Children - - + + List Children + @@ -64,51 +77,34 @@ exports[`renders ./components/picker/demo/basic.tsx correctly 1`] = ` ] } > - - - 省市选择 - - - + - - 请选择 - - + 请选择 + - - - 省市选择(异步加载) - - - + - - 请选择 - - + 请选择 + - - visible 控制显示/隐藏 - - + visible 控制显示/隐藏 + + - - 选择 + + + 选择 + + + + + 未选择 + - - 未选择 - `; diff --git a/components/picker/__tests__/__snapshots__/index.test.js.snap b/components/picker/__tests__/__snapshots__/index.test.js.snap index d251e421c..9ace3096b 100644 --- a/components/picker/__tests__/__snapshots__/index.test.js.snap +++ b/components/picker/__tests__/__snapshots__/index.test.js.snap @@ -111,6 +111,7 @@ Array [ Array [ Object { "alignItems": "center", + "backgroundColor": "#ffffff", "borderBottomColor": "#eeeeee", "borderBottomWidth": 0.5, "flexDirection": "row", @@ -212,9 +213,13 @@ Array [ style={ Array [ Object { - "height": "auto", "justifyContent": "center", + "minHeight": 34, "overflow": "hidden", + "paddingHorizontal": 5, + }, + Object { + "height": "auto", }, ] } @@ -224,10 +229,9 @@ Array [ style={ Array [ Object { - "color": "#333", + "color": "#000000", "fontSize": 16, "includeFontPadding": false, - "padding": 8, "textAlign": "center", }, undefined, diff --git a/components/popover/__tests__/__snapshots__/demo.test.js.snap b/components/popover/__tests__/__snapshots__/demo.test.js.snap index 02146b1c5..c6fa26b24 100644 --- a/components/popover/__tests__/__snapshots__/demo.test.js.snap +++ b/components/popover/__tests__/__snapshots__/demo.test.js.snap @@ -2,13 +2,22 @@ exports[`renders ./components/popover/demo/basic.tsx correctly 1`] = ` Array [ - + @@ -57,284 +66,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - - + option + 1 + + , + + + option + 2 + + , + + + option + 3 + + , + + - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -384,284 +208,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + + + option + 3 + + , + - - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -711,284 +350,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + - + option + 3 + + , + + - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - - - - + disabled opt + + , + + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -1038,284 +492,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + - + option + 2 + + , + + + option + 3 + + , + + - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -1365,284 +634,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + + + option + 3 + + , + - - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -1692,284 +776,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + - + option + 3 + + , + + - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -2019,284 +918,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + + + option + 3 + + , + - - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -2346,284 +1060,99 @@ Array [ > - - - 选择了: - - + + 选择了: + - - - - 菜单 - - - - - - + + option + 1 + + , + + + option + 2 + + , + - + option + 3 + + , + + - - - - - option - 1 - - - - - option - 2 - - - - - option - 3 - - - - - disabled opt - - - - - 关闭 - - - - - - + , + - - - + } + value="button ct" + > + + 关闭 + + , + ] + } + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + triggerStyle={ + Object { + "paddingHorizontal": 6, + } + } + > + + 菜单 + @@ -2631,11 +1160,9 @@ Array [ - - - Choose language - - - + - - 请选择 - - + 请选择 + @@ -443,51 +431,34 @@ exports[`renders ./components/provider/demo/basic.tsx correctly 1`] = ` ] } > - - - DatePicker - - - + - - please select - - + please select + - - - Picker - - - + - - please select - - + please select + - - - + - 基本用法 - - + } + > + 基本用法 + @@ -165,6 +171,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -191,17 +198,26 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` false, ] } - /> + > + + - - - + - 不可用 - - + } + > + 不可用 + @@ -280,277 +302,274 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` } > + - - - + } + /> - - Disabled - - - + Disabled + + + + + + - - - + } + /> - - Disabled - + + Disabled + @@ -559,11 +578,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - + - - - Toggle disabled - - + Toggle disabled + - - - + - RadioItem - - + } + > + RadioItem + @@ -717,10 +738,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -915,10 +959,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > + - - + > + + + + - @@ -1061,11 +1128,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - - - + - 单选组合 RadioGroup + } + > + 单选组合 RadioGroup 一组互斥的 Radio 配合使用 - - + @@ -1230,6 +1301,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1350,6 +1422,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1470,6 +1543,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1590,6 +1664,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -1603,11 +1678,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - - - + - Radio.Group 垂直 + } + > + Radio.Group 垂直 垂直的 Radio.Group,配合更多输入框选项 - - + @@ -1703,10 +1782,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -1901,10 +2002,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -2096,10 +2219,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -2382,6 +2527,7 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` Array [ Object { "backgroundColor": "transparent", + "color": "#000000", "marginLeft": 8, "marginRight": 8, }, @@ -2409,10 +2555,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - - - + - Radio.Group 组合 - 配置方式 + } + > + Radio.Group 组合 - 配置方式 可通过配置 options 参数来渲染单选框。 - - + - - - + - PlainOptions - - + } + > + PlainOptions + @@ -2564,10 +2724,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -2762,10 +2945,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -2957,10 +3163,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - - + > + + + + - @@ -3104,11 +3333,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - - - + - Options - - + } + > + Options + @@ -3203,10 +3436,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -3401,10 +3657,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -3596,10 +3875,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -3743,11 +4045,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - - - + - OptionsWithDisabled - - + } + > + OptionsWithDisabled + @@ -3842,10 +4148,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -4040,10 +4369,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -4235,10 +4587,14 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` > - + > + + + + - @@ -4384,11 +4759,9 @@ exports[`renders ./components/radio/demo/basic.tsx correctly 1`] = ` - - - + - 基础用法 - - + } + > + 基础用法 + @@ -73,11 +79,17 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -240,11 +251,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 显示刻度(ticks)并指定步距(step) - - + } + > + 显示刻度(ticks)并指定步距(step) + @@ -323,12 +338,20 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -720,11 +742,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 传入刻度标记(marks) - - + } + > + 传入刻度标记(marks) + @@ -803,12 +829,29 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -1269,11 +1311,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 最大(max)/最小值(min) - - + } + > + 最大(max)/最小值(min) + @@ -1352,12 +1398,22 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -1722,11 +1777,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 双滑块(range) - - + } + > + 双滑块(range) + @@ -1805,12 +1864,35 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -2110,11 +2191,7 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` onStartShouldSetResponder={[Function]} style={ Object { - "backgroundColor": "#ffffff", - "borderRadius": 32, "elevation": 3, - "height": 32, - "marginLeft": -16, "shadowColor": "#000000", "shadowOffset": Object { "height": 1, @@ -2127,7 +2204,6 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` "translateX": 0, }, ], - "width": 32, "zIndex": 2, } } @@ -2136,9 +2212,13 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` style={ Object { "alignItems": "center", + "backgroundColor": "#ffffff", + "borderRadius": 32, "flex": 1, "flexDirection": "row", + "height": 32, "justifyContent": "center", + "width": 32, } } > @@ -2369,11 +2449,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 在拖动时显示悬浮提示 - - + } + > + 在拖动时显示悬浮提示 + @@ -2452,11 +2536,17 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` } > @@ -2629,11 +2718,9 @@ exports[`renders ./components/slider/demo/basic.tsx correctly 1`] = ` - - - + - 基础用法 - - + } + > + 基础用法 + @@ -80,42 +86,32 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 基础用法 - - + 基础用法 + - - - - + + - + + - - - - + - - + - + + + + + @@ -364,42 +391,32 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - + - 步长设置 - - - - - - - + + - + + - - - - + - - + - + + + + + @@ -648,42 +696,32 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 限制输入范围 - - + 限制输入范围 + - - - - + + - + + - - - - + - - + - + + + + + @@ -932,42 +1001,31 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 格式化到一位小数 - - + 格式化到一位小数 + - + - - - + + - + + - - - - + - - + - + + + + + @@ -1216,42 +1305,34 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 自定义格式 - - + 自定义格式 + - - - - + + - + + - - - - + - - + - + + + + + @@ -1460,11 +1572,9 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` - - - + - 状态/样式 - - + } + > + 状态/样式 + @@ -1542,42 +1658,31 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 禁用状态 - - + 禁用状态 + - - - - + + - + + - - - - + - - + - + + + + + @@ -1836,42 +1972,31 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 输入框只读状态 - - + 输入框只读状态 + - - - - + + - + + - - - - + - - + - + + + + + @@ -2120,42 +2276,32 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 获得/失去焦点 - - + } + > + 获得/失去焦点 + - - - - + + - + + - - - - + - - + - + + + + + @@ -2404,42 +2581,34 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 允许清空 - - + 允许清空 + - - - - + + - + + - - - - + - - + - + + + + + @@ -2692,42 +2892,32 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` ] } > - - - 自定义样式 - - + 自定义样式 + - - - - + + - + + - - - - + - - + - + + + + + @@ -2936,11 +3157,9 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` - - - + - stringMode - - + } + > + stringMode + @@ -3019,11 +3244,22 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` } > - - - + - stringMode control - - + } + > + stringMode control + @@ -3319,12 +3572,23 @@ exports[`renders ./components/stepper/demo/basic.tsx correctly 1`] = ` } > - + @@ -445,51 +454,34 @@ exports[`renders ./components/swipe-action/demo/basic.tsx correctly 1`] = ` ] } > - - - Simple example: left and right buttons - - - + - - extra content - - + extra content + @@ -498,11 +490,9 @@ exports[`renders ./components/swipe-action/demo/basic.tsx correctly 1`] = ` - + @@ -948,51 +947,34 @@ exports[`renders ./components/swipe-action/demo/basic.tsx correctly 1`] = ` ] } > - - - Simple example: left and right buttons - - - + - - extra content - - + extra content + @@ -1001,11 +983,9 @@ exports[`renders ./components/swipe-action/demo/basic.tsx correctly 1`] = ` - - - + - 基本 - - + } + > + 基本 + @@ -72,115 +78,123 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` ] } > - - + - 最简单的用法 - - - - + + /> + + @@ -189,11 +203,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 不可用 - - + } + > + 不可用 + @@ -271,119 +289,128 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` ] } > - - + - Switch 失效状态 - - - - + + /> + + @@ -479,11 +506,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 文字和图标 - - + } + > + 文字和图标 + @@ -562,95 +593,124 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` } > + - - 开 - + + + 开 + + @@ -700,95 +760,123 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` } > + - - 0 - + + + 0 + + @@ -838,109 +926,150 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` } > + + } + defaultChecked={true} + style={ + Array [ + Object { + "color": "#888888", + "fontSize": 17, + "maxWidth": "70%", + "paddingLeft": 8, + "textAlign": "right", + "textAlignVertical": "center", + }, + undefined, + ] + } + unCheckedChildren={ + + } > - - + -  - + +  + + @@ -950,11 +1079,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 加载中 - - + } + > + 加载中 + @@ -1032,141 +1165,151 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` ] } > - - + - 标识开关操作仍在执行中 - - - - + - + + + - - + /> + @@ -1216,119 +1359,146 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` } > + - + - + + + - - + /> + @@ -1337,11 +1507,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 颜色 - - + } + > + 颜色 + @@ -1419,119 +1593,129 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` ] } > - - + - color="red" - - - - + + /> + + @@ -1540,11 +1724,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 异步 - - + } + > + 异步 + @@ -1622,115 +1810,125 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` ] } > - - + - onChange 返回 Promise - - - - + + /> + + @@ -1739,11 +1937,9 @@ exports[`renders ./components/switch/demo/basic.tsx correctly 1`] = ` - - - + - 基本 - - + } + > + 基本 + @@ -459,11 +465,9 @@ exports[`renders ./components/textarea-item/demo/basic.tsx correctly 1`] = ` - + @@ -59,21 +68,22 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` Enable mask @@ -105,93 +115,111 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` - + + /> + + @@ -243,21 +271,22 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` Enable stackable @@ -289,93 +318,111 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` - + + /> + + @@ -384,11 +431,9 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` - - - + - 图标 - - + } + > + 图标 + @@ -751,11 +802,9 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` - - - + - 更多功能 - - + } + > + 更多功能 + @@ -988,11 +1043,9 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = ` - - - + - 手动清除 - - + } + > + 手动清除 + @@ -1225,11 +1284,9 @@ exports[`renders ./components/toast/demo/basic.tsx correctly 1`] = `