From a3c9b21818231fc65305c65636609c08c3114ff6 Mon Sep 17 00:00:00 2001 From: AqingCyan Date: Mon, 19 Sep 2022 20:54:33 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix(tag=20component):=20=E4=BF=AE=E5=A4=8Ds?= =?UTF-8?q?electinput=E4=BD=BF=E7=94=A8valueDisplay=E6=B8=B2=E6=9F=93?= =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89tag=E7=AD=9B=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=B1=95=E7=A4=BA=E5=B1=85=E4=B8=AD=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit tag组件采用display: inline-flex 布局,在selectinput使用valueDisplay渲染自定义tag筛选项时,没有父元素造成垂直居中失效 fix #1463 --- .../__snapshots__/calendar.test.tsx.snap | 4 +- .../__snapshots__/card.test.tsx.snap | 4 +- .../__snapshots__/cascader.test.tsx.snap | 40 +++-- .../__snapshots__/collapse.test.tsx.snap | 32 +++- .../__snapshots__/image.test.tsx.snap | 68 ++++---- .../__snapshots__/select.test.tsx.snap | 72 ++++++--- .../__snapshots__/table.test.tsx.snap | 4 +- src/tag/Tag.tsx | 2 +- .../__tests__/__snapshots__/tag.test.tsx.snap | 148 +++++++++++++----- src/tag/__tests__/tag.test.tsx | 4 +- .../__snapshots__/tree-select.test.tsx.snap | 40 +++-- 11 files changed, 292 insertions(+), 126 deletions(-) diff --git a/src/calendar/__tests__/__snapshots__/calendar.test.tsx.snap b/src/calendar/__tests__/__snapshots__/calendar.test.tsx.snap index 04aa38ed9..09e03b3a5 100644 --- a/src/calendar/__tests__/__snapshots__/calendar.test.tsx.snap +++ b/src/calendar/__tests__/__snapshots__/calendar.test.tsx.snap @@ -7574,7 +7574,9 @@ exports[`cell-append.jsx 1`] = ` - 今天 + + 今天 + diff --git a/src/card/__tests__/__snapshots__/card.test.tsx.snap b/src/card/__tests__/__snapshots__/card.test.tsx.snap index 70211cf71..14ff70239 100644 --- a/src/card/__tests__/__snapshots__/card.test.tsx.snap +++ b/src/card/__tests__/__snapshots__/card.test.tsx.snap @@ -139,7 +139,9 @@ exports[`footer.jsx 1`] = ` - 默认标签 + + 默认标签 + diff --git a/src/cascader/__tests__/__snapshots__/cascader.test.tsx.snap b/src/cascader/__tests__/__snapshots__/cascader.test.tsx.snap index f823142a0..77227bb11 100644 --- a/src/cascader/__tests__/__snapshots__/cascader.test.tsx.snap +++ b/src/cascader/__tests__/__snapshots__/cascader.test.tsx.snap @@ -118,7 +118,9 @@ exports[`check-strictly.jsx 1`] = ` - 1/1.1/1.1.2/1.1.2.1 + + 1/1.1/1.1.2/1.1.2.1 + - 2 + + 2 + - 选项一/子选项一 + + 选项一/子选项一 + - +2 + + +2 + - 选项一/子选项一 + + 选项一/子选项一 + - 选项一/子选项一 + + 选项一/子选项一 + - 当选项一数据展示文本过长时/子选项一 + + 当选项一数据展示文本过长时/子选项一 + - 选项一/子选项一 + + 选项一/子选项一 + - 选项一/子选项一 + + 选项一/子选项一 + - 选项一/子选项二 + + 选项一/子选项二 + - Vue + + Vue + - React + + React + - Vue + + Vue + - React + + React + - Vue + + Vue + - React + + React + - Vue + + Vue + - React + + React + - - - - 高清 + + + + + 高清 + @@ -177,21 +179,23 @@ exports[`extra-always.jsx 1`] = ` class="t-tag t-tag--warning t-tag--dark t-tag--medium t-tag--mark" style="position: absolute; right: 8px; bottom: 8px; border-radius: 3px; background: rgb(236, 242, 254); color: rgb(0, 82, 217);" > - - - - 高清 + + + + + 高清 + @@ -1369,7 +1373,9 @@ exports[`gallery-cover.jsx 1`] = ` class="t-tag t-tag--warning t-tag--dark t-tag--medium t-tag--mark" style="margin: 8px; border-radius: 3px; background: rgb(236, 242, 254); color: rgb(0, 82, 217);" > - 标签一 + + 标签一 + diff --git a/src/select/__tests__/__snapshots__/select.test.tsx.snap b/src/select/__tests__/__snapshots__/select.test.tsx.snap index ce45b403f..19860eb74 100644 --- a/src/select/__tests__/__snapshots__/select.test.tsx.snap +++ b/src/select/__tests__/__snapshots__/select.test.tsx.snap @@ -80,7 +80,9 @@ exports[`collapsed.jsx 1`] = ` - 选项一 + + 选项一 + - +1 + + +1 + - 选项一 + + 选项一 + - 选项一选项 + + 选项一选项 + - 选项二选项 + + 选项二选项 + - 选项三选项 + + 选项三选项 + - 选项一 + + 选项一 + - 上海 + + 上海 + - Apple + + Apple + - 选项一 + + 选项一 + - 区块链 + + 区块链 + - 人工智能 + + 人工智能 + - 云服务器 + + 云服务器 + - 云数据库 + + 云数据库 + - 域名注册 + + 域名注册 + - 网站备案 + + 网站备案 + - 对象存储 + + 对象存储 + - 低代码平台 + + 低代码平台 + - A + + A + {icon} - {maxWidth ? {children || content} : children || content} + {children || content} {closable && deleteIcon} ); diff --git a/src/tag/__tests__/__snapshots__/tag.test.tsx.snap b/src/tag/__tests__/__snapshots__/tag.test.tsx.snap index 86cecf7d4..791e3d2c4 100644 --- a/src/tag/__tests__/__snapshots__/tag.test.tsx.snap +++ b/src/tag/__tests__/__snapshots__/tag.test.tsx.snap @@ -76,13 +76,17 @@ Object {
+ > + +
, "container":
+ > + +
, "debug": [Function], "findAllByAltText": [Function], @@ -166,6 +170,7 @@ Object { fill-rule="evenodd" /> + , @@ -193,6 +198,7 @@ Object { fill-rule="evenodd" /> + , "debug": [Function], @@ -268,7 +274,9 @@ exports[`base.jsx 1`] = ` - 标签一 + + 标签一 +
- 超链接 + + 超链接 +
@@ -301,7 +311,9 @@ exports[`base.jsx 1`] = ` - 标签一 + + 标签一 +
- 标签二 + + 标签二 +
- 标签三 + + 标签三 +
- 标签四 + + 标签四 +
@@ -346,7 +364,9 @@ exports[`base.jsx 1`] = ` - 标签一 + + 标签一 +
- 标签二 + + 标签二 +
- 标签三 + + 标签三 +
- 标签四 + + 标签四 +
@@ -391,7 +417,9 @@ exports[`base.jsx 1`] = ` - 标签一 + + 标签一 +
- 标签二 + + 标签二 +
- 标签三 + + 标签三 +
- 标签四 + + 标签四 +
@@ -447,7 +481,9 @@ exports[`delete.jsx 1`] = ` class="t-tag t-tag--default t-tag--dark t-tag--medium t-tag--square" style="margin-right: 30px;" > - 可删除标签0 + + 可删除标签0 + - 可删除标签1 + + 可删除标签1 + - 可删除标签2 + + 可删除标签2 + - - - - 可添加标签 + + + + + 可添加标签 + @@ -586,7 +628,9 @@ exports[`icon.jsx 1`] = ` fill-rule="evenodd" /> - 默认标签 + + 默认标签 + `; @@ -662,7 +706,9 @@ exports[`shape.jsx 1`] = ` - 标签一 + + 标签一 +
- 标签一 + + 标签一 +
@@ -690,7 +738,9 @@ exports[`shape.jsx 1`] = ` class="t-tag t-tag--default t-tag--dark t-tag--medium t-tag--round" style="margin-right: 5px;" > - 标签一 + + 标签一 +
- 标签一 + + 标签一 +
@@ -717,7 +769,9 @@ exports[`shape.jsx 1`] = ` - 标签一 + + 标签一 +
- 标签一 + + 标签一 +
@@ -754,7 +810,9 @@ exports[`size.jsx 1`] = ` - 小型标签 + + 小型标签 +
- 默认标签 + + 默认标签 +
- 大型标签 + + 大型标签 +
diff --git a/src/tag/__tests__/tag.test.tsx b/src/tag/__tests__/tag.test.tsx index 7f719c6b1..4d84e269f 100644 --- a/src/tag/__tests__/tag.test.tsx +++ b/src/tag/__tests__/tag.test.tsx @@ -12,10 +12,10 @@ describe('Tag 组件测试', () => { test('closable and onClose', async () => { const tagRegExp = /可删除标签/; - const { queryAllByText, getByText } = render(); + const { queryAllByText, container } = render(); // 点击i标签后,关闭一个,3个变2个 expect(queryAllByText(tagRegExp).length).toEqual(3); - fireEvent.click(getByText('可删除标签0').querySelector('.t-icon-close')); + fireEvent.click(container.querySelector('.t-tag').querySelector('.t-icon-close')); expect(queryAllByText(tagRegExp).length).toEqual(2); }); diff --git a/src/tree-select/__tests__/__snapshots__/tree-select.test.tsx.snap b/src/tree-select/__tests__/__snapshots__/tree-select.test.tsx.snap index 187b8935d..b6a5e8d14 100644 --- a/src/tree-select/__tests__/__snapshots__/tree-select.test.tsx.snap +++ b/src/tree-select/__tests__/__snapshots__/tree-select.test.tsx.snap @@ -73,7 +73,9 @@ exports[`collapsed.jsx 1`] = ` - 广州市 + + 广州市 + - +1 + + +1 + - 广州市 + + 广州市 + - 更多... + + 更多... + - 广州市 + + 广州市 + - 深圳市 + + 深圳市 + - 广州市(guangzhou) + + 广州市(guangzhou) + - 深圳市(shenzhen) + + 深圳市(shenzhen) + - 广州市 + + 广州市 + - 深圳市 + + 深圳市 + Date: Tue, 20 Sep 2022 12:40:38 +0800 Subject: [PATCH 2/2] chore: update snapshot --- test/ssr/__snapshots__/ssr.test.js.snap | 66 ++++++++++++------------- 1 file changed, 33 insertions(+), 33 deletions(-) diff --git a/test/ssr/__snapshots__/ssr.test.js.snap b/test/ssr/__snapshots__/ssr.test.js.snap index 94a66d32c..9166f31c1 100644 --- a/test/ssr/__snapshots__/ssr.test.js.snap +++ b/test/ssr/__snapshots__/ssr.test.js.snap @@ -96,7 +96,7 @@ exports[`ssr snapshot test renders ./src/calendar/_example/card.jsx correctly 1` exports[`ssr snapshot test renders ./src/calendar/_example/cell.jsx correctly 1`] = `"
请选择
请选择
隐藏周末
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
错误事件
警告事件
正常事件
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
1
2
3
4
"`; -exports[`ssr snapshot test renders ./src/calendar/_example/cell-append.jsx correctly 1`] = `"
请选择
请选择
隐藏周末
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
今天
01
02
03
04
"`; +exports[`ssr snapshot test renders ./src/calendar/_example/cell-append.jsx correctly 1`] = `"
请选择
请选择
隐藏周末
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
今天
01
02
03
04
"`; exports[`ssr snapshot test renders ./src/calendar/_example/controller-config.jsx correctly 1`] = `"
控件全局



控件局部






请选择
请选择
隐藏周末
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
01
02
03
04
"`; @@ -126,7 +126,7 @@ exports[`ssr snapshot test renders ./src/card/_example/bordered.jsx correctly 1` exports[`ssr snapshot test renders ./src/card/_example/bordered-none.jsx correctly 1`] = `"
标题
仅有内容区域的卡片形式。卡片内容区域可以是文字、图片、表单、表格等形式信息内容。可使用大中小不同的卡片尺寸,按业务需求进行呈现。
"`; -exports[`ssr snapshot test renders ./src/card/_example/footer.jsx correctly 1`] = `"
默认标签
\\"\\"/
"`; +exports[`ssr snapshot test renders ./src/card/_example/footer.jsx correctly 1`] = `"
默认标签
\\"\\"/
"`; exports[`ssr snapshot test renders ./src/card/_example/footer-actions.jsx correctly 1`] = `"
\\"\\"/
\\"\\"/
\\"\\"/
"`; @@ -190,13 +190,13 @@ exports[`ssr snapshot test renders ./src/checkbox/_example/link.jsx correctly 1` exports[`ssr snapshot test renders ./src/checkbox/_example/max.jsx correctly 1`] = `"
最多可选:
选中值: 北京
"`; -exports[`ssr snapshot test renders ./src/collapse/_example/base.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
设置默认展开项
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
自定义折叠面板内容
VueReact
当前折叠面板折叠时,销毁面板内容
嵌套使用折叠面板
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
"`; +exports[`ssr snapshot test renders ./src/collapse/_example/base.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
设置默认展开项
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
自定义折叠面板内容
VueReact
当前折叠面板折叠时,销毁面板内容
嵌套使用折叠面板
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
"`; -exports[`ssr snapshot test renders ./src/collapse/_example/icon.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
"`; +exports[`ssr snapshot test renders ./src/collapse/_example/icon.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
"`; -exports[`ssr snapshot test renders ./src/collapse/_example/mutex.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
"`; +exports[`ssr snapshot test renders ./src/collapse/_example/mutex.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
"`; -exports[`ssr snapshot test renders ./src/collapse/_example/other.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
当前展开的Collapse Panel:
"`; +exports[`ssr snapshot test renders ./src/collapse/_example/other.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
折叠后自动销毁
自定义折叠面板内容
VueReact
当前展开的Collapse Panel:
"`; exports[`ssr snapshot test renders ./src/collapse/_example/rightSlot.jsx correctly 1`] = `"
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
这是一个折叠标题
这部分是每个折叠面板折叠或展开的内容,可根据不同业务或用户的使用诉求,进行自定义填充。可以是纯文本、图文、子列表等内容形式。
"`; @@ -236,7 +236,7 @@ exports[`ssr snapshot test renders ./src/config-provider/_example/dialog.jsx cor exports[`ssr snapshot test renders ./src/config-provider/_example/global.jsx correctly 1`] = `"

使用ConfigProvider包裹业务功能的最外层组件,点击下方图标查看示例代码

英文语言包引入路径:import enConfig from 'tdesign-react/es/locale/en_US';

中文语言包引入路径:import zhConfig from 'tdesign-react/es/locale/zh_CN';

日文语言包引入路径:import jpConfig from 'tdesign-react/es/locale/ja_JP';

韩文语言包引入路径:import koConfig from 'tdesign-react/es/locale/ko_KR';

"`; -exports[`ssr snapshot test renders ./src/config-provider/_example/others.jsx correctly 1`] = `"
Feature Tag
Feature Tag
Feature Tag
Feature Tag
Tree Empty Data
First Step
You need to click the blue button
Second Step
Fill your base information into the form
Error Step
Something Wrong! Custom Error Icon!
4
Last Step
You haven't finish this step.
"`; +exports[`ssr snapshot test renders ./src/config-provider/_example/others.jsx correctly 1`] = `"
Feature Tag
Feature Tag
Feature Tag
Feature Tag
Tree Empty Data
First Step
You need to click the blue button
Second Step
Fill your base information into the form
Error Step
Something Wrong! Custom Error Icon!
4
Last Step
You haven't finish this step.
"`; exports[`ssr snapshot test renders ./src/config-provider/_example/pagination.jsx correctly 1`] = `"
Total 36 items
请选择
jump to
/ 4 页
"`; @@ -392,7 +392,7 @@ exports[`ssr snapshot test renders ./src/icon/_example/IconFontExample.jsx corre exports[`ssr snapshot test renders ./src/icon/_example/IconSelect.jsx correctly 1`] = `"
"`; -exports[`ssr snapshot test renders ./src/image/_example/extra-always.jsx correctly 1`] = `"
有遮罩
图片加载中
高清
无遮罩
图片加载中
高清
"`; +exports[`ssr snapshot test renders ./src/image/_example/extra-always.jsx correctly 1`] = `"
有遮罩
图片加载中
高清
无遮罩
图片加载中
高清
"`; exports[`ssr snapshot test renders ./src/image/_example/extra-hover.jsx correctly 1`] = `"
图片加载中
预览
"`; @@ -400,7 +400,7 @@ exports[`ssr snapshot test renders ./src/image/_example/fill-mode.jsx correctly exports[`ssr snapshot test renders ./src/image/_example/fill-position.jsx correctly 1`] = `"
图片加载中
cover center
图片加载中
cover left
图片加载中
cover right
图片加载中
cover top
图片加载中
cover bottom
图片加载中
contain top
图片加载中
contain bottom
图片加载中
contain center
图片加载中
contain left
图片加载中
contain right
"`; -exports[`ssr snapshot test renders ./src/image/_example/gallery-cover.jsx correctly 1`] = `"
图片加载中
标签一
"`; +exports[`ssr snapshot test renders ./src/image/_example/gallery-cover.jsx correctly 1`] = `"
图片加载中
标签一
"`; exports[`ssr snapshot test renders ./src/image/_example/lazy-list.jsx correctly 1`] = `"
"`; @@ -730,21 +730,21 @@ exports[`ssr snapshot test renders ./src/select-input/_example/autocomplete.jsx exports[`ssr snapshot test renders ./src/select-input/_example/autowidth.jsx correctly 1`] = `"
tdesign-vue
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/autowidth-multiple.jsx correctly 1`] = `"
Vue+2
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/autowidth-multiple.jsx correctly 1`] = `"
Vue+2
"`; exports[`ssr snapshot test renders ./src/select-input/_example/borderless.jsx correctly 1`] = `"
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/borderless-multiple.jsx correctly 1`] = `"
Vue+2
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/borderless-multiple.jsx correctly 1`] = `"
Vue+2
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/collapsed-items.jsx correctly 1`] = `"
tdesign-vue+5


tdesign-vuetdesign-reactMore(+4)
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/collapsed-items.jsx correctly 1`] = `"
tdesign-vue+5


tdesign-vuetdesign-reactMore(+4)
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/custom-tag.jsx correctly 1`] = `"
tdesign-vue


tdesign-vuetdesign-react


tdesign-vuetdesign-reacttdesign-mobile-vue
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/custom-tag.jsx correctly 1`] = `"
tdesign-vue


tdesign-vuetdesign-react


tdesign-vuetdesign-reacttdesign-mobile-vue
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/excess-tags-display-type.jsx correctly 1`] = `"

第一种呈现方式:超出时滚动显示


tdesign-vuetdesign-reacttdesign-miniprogramtdesign-angulartdesign-mobile-vuetdesign-mobile-react



第二种呈现方式:超出时换行显示


tdesign-vuetdesign-reacttdesign-miniprogramtdesign-angulartdesign-mobile-vuetdesign-mobile-react
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/excess-tags-display-type.jsx correctly 1`] = `"

第一种呈现方式:超出时滚动显示


tdesign-vuetdesign-reacttdesign-miniprogramtdesign-angulartdesign-mobile-vuetdesign-mobile-react



第二种呈现方式:超出时换行显示


tdesign-vuetdesign-reacttdesign-miniprogramtdesign-angulartdesign-mobile-vuetdesign-mobile-react
"`; exports[`ssr snapshot test renders ./src/select-input/_example/label-suffix.jsx correctly 1`] = `"
前置内容:


单位:元
"`; -exports[`ssr snapshot test renders ./src/select-input/_example/multiple.jsx correctly 1`] = `"



VueReactMiniprogram
"`; +exports[`ssr snapshot test renders ./src/select-input/_example/multiple.jsx correctly 1`] = `"



VueReactMiniprogram
"`; exports[`ssr snapshot test renders ./src/select-input/_example/single.jsx correctly 1`] = `"
"`; @@ -912,39 +912,39 @@ exports[`ssr snapshot test renders ./src/tabs/_example/size.jsx correctly 1`] = exports[`ssr snapshot test renders ./src/tabs/_example/theme.jsx correctly 1`] = `"
选项卡1
选项卡2
选项卡1内容区
选项卡1
选项卡2
选项卡1内容区
"`; -exports[`ssr snapshot test renders ./src/tag/_example/base.jsx correctly 1`] = `"
标签一
标签一
标签二
标签三
标签四
标签一
标签二
标签三
标签四
标签一
标签二
标签三
标签四
"`; +exports[`ssr snapshot test renders ./src/tag/_example/base.jsx correctly 1`] = `"
标签一
标签一
标签二
标签三
标签四
标签一
标签二
标签三
标签四
标签一
标签二
标签三
标签四
"`; -exports[`ssr snapshot test renders ./src/tag/_example/delete.jsx correctly 1`] = `"
可删除标签0
可删除标签1
可删除标签2
可添加标签
"`; +exports[`ssr snapshot test renders ./src/tag/_example/delete.jsx correctly 1`] = `"
可删除标签0
可删除标签1
可删除标签2
可添加标签
"`; -exports[`ssr snapshot test renders ./src/tag/_example/icon.jsx correctly 1`] = `"默认标签"`; +exports[`ssr snapshot test renders ./src/tag/_example/icon.jsx correctly 1`] = `"默认标签"`; exports[`ssr snapshot test renders ./src/tag/_example/long-text.jsx correctly 1`] = `"默认超八个字超长文本标签超长省略文本标签"`; exports[`ssr snapshot test renders ./src/tag/_example/selectable.jsx correctly 1`] = `"
选中
未选
禁用
"`; -exports[`ssr snapshot test renders ./src/tag/_example/shape.jsx correctly 1`] = `"
标签一
标签一
标签一
标签一
标签一
标签一
"`; +exports[`ssr snapshot test renders ./src/tag/_example/shape.jsx correctly 1`] = `"
标签一
标签一
标签一
标签一
标签一
标签一
"`; -exports[`ssr snapshot test renders ./src/tag/_example/size.jsx correctly 1`] = `"
小型标签
默认标签
大型标签
小型标签
默认标签
大型标签
"`; +exports[`ssr snapshot test renders ./src/tag/_example/size.jsx correctly 1`] = `"
小型标签
默认标签
大型标签
小型标签
默认标签
大型标签
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/auto-width.jsx correctly 1`] = `"
VueReact
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/auto-width.jsx correctly 1`] = `"
VueReact
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/base.jsx correctly 1`] = `"
VueReactAngular
Controlled:
VueReact
UnControlled:
VueReact
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/base.jsx correctly 1`] = `"
VueReactAngular
Controlled:
VueReact
UnControlled:
VueReact
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/collapsed.jsx correctly 1`] = `"
Vue+4
VueReactMiniprogramMore(2)
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/collapsed.jsx correctly 1`] = `"
Vue+4
VueReactMiniprogramMore(2)
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/custom-tag.jsx correctly 1`] = `"
StudentAStudentB+1


StudentA
StudentB
StudentC
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/custom-tag.jsx correctly 1`] = `"
StudentAStudentB+1


StudentA
StudentB
StudentC
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/draggable.jsx correctly 1`] = `"
VueReactAngular
Controlled:
VueReactAngularMiniprogram
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/draggable.jsx correctly 1`] = `"
VueReactAngular
Controlled:
VueReactAngularMiniprogram
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/excess.jsx correctly 1`] = `"
Scroll:
VueReact
BreakLine:
VueReact
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/excess.jsx correctly 1`] = `"
Scroll:
VueReact
BreakLine:
VueReact
"`; exports[`ssr snapshot test renders ./src/tag-input/_example/max.jsx correctly 1`] = `"
最多只能输入 3 个标签
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/size.jsx correctly 1`] = `"
VueReact
VueReact
VueReact
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/size.jsx correctly 1`] = `"
VueReact
VueReact
VueReact
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/status.jsx correctly 1`] = `"
VueReactMiniprogram
VueReactMiniprogram
这是普通文本提示
VueReactMiniprogram
校验通过文本提示
VueReactMiniprogram
校验不通过文本提示
VueReactMiniprogram
校验存在严重问题文本提示
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/status.jsx correctly 1`] = `"
VueReactMiniprogram
VueReactMiniprogram
这是普通文本提示
VueReactMiniprogram
校验通过文本提示
VueReactMiniprogram
校验不通过文本提示
VueReactMiniprogram
校验存在严重问题文本提示
"`; -exports[`ssr snapshot test renders ./src/tag-input/_example/theme.jsx correctly 1`] = `"
VueReactMiniprogram
VueReactMiniprogram
VueReactMiniprogram
VueReactMiniprogram
"`; +exports[`ssr snapshot test renders ./src/tag-input/_example/theme.jsx correctly 1`] = `"
VueReactMiniprogram
VueReactMiniprogram
VueReactMiniprogram
VueReactMiniprogram
"`; exports[`ssr snapshot test renders ./src/textarea/_example/base.jsx correctly 1`] = `"
"`; @@ -1056,21 +1056,21 @@ exports[`ssr snapshot test renders ./src/tree/_example/sync.jsx correctly 1`] = exports[`ssr snapshot test renders ./src/tree-select/_example/base.jsx correctly 1`] = `"
"`; -exports[`ssr snapshot test renders ./src/tree-select/_example/collapsed.jsx correctly 1`] = `"
广州市+1
广州市更多...
"`; +exports[`ssr snapshot test renders ./src/tree-select/_example/collapsed.jsx correctly 1`] = `"
广州市+1
广州市更多...
"`; exports[`ssr snapshot test renders ./src/tree-select/_example/filterable.jsx correctly 1`] = `"
请选择
"`; exports[`ssr snapshot test renders ./src/tree-select/_example/lazy.jsx correctly 1`] = `"
"`; -exports[`ssr snapshot test renders ./src/tree-select/_example/multiple.jsx correctly 1`] = `"
广州市深圳市
"`; +exports[`ssr snapshot test renders ./src/tree-select/_example/multiple.jsx correctly 1`] = `"
广州市深圳市
"`; exports[`ssr snapshot test renders ./src/tree-select/_example/prefix.jsx correctly 1`] = `"
"`; exports[`ssr snapshot test renders ./src/tree-select/_example/props.jsx correctly 1`] = `"
"`; -exports[`ssr snapshot test renders ./src/tree-select/_example/valuedisplay.jsx correctly 1`] = `"
广州市(guangzhou)
广州市(guangzhou)深圳市(shenzhen)
"`; +exports[`ssr snapshot test renders ./src/tree-select/_example/valuedisplay.jsx correctly 1`] = `"
广州市(guangzhou)
广州市(guangzhou)深圳市(shenzhen)
"`; -exports[`ssr snapshot test renders ./src/tree-select/_example/valuetype.jsx correctly 1`] = `"
广州市深圳市
"`; +exports[`ssr snapshot test renders ./src/tree-select/_example/valuetype.jsx correctly 1`] = `"
广州市深圳市
"`; exports[`ssr snapshot test renders ./src/upload/_example/base.jsx correctly 1`] = `"

要求文件大小在 1M 以内
文件上传失败示例
"`;