From 3a05f3e9925df09ba08f84ef9fe63d880b8848b7 Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Fri, 24 Feb 2023 20:00:30 +0800 Subject: [PATCH 01/15] feat(cascader): support aria --- src/cascader/cascader.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 735484ee0..ceb087fe4 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -8,7 +8,7 @@ - + From e0218f4f5fb652289b0afb9dd5c5d5a74312775b Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Fri, 24 Feb 2023 20:25:18 +0800 Subject: [PATCH 02/15] feat(cascader): label and hidden --- src/cascader/cascader.wxml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index ceb087fe4..3cc8ac146 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -13,7 +13,15 @@ - + @@ -43,6 +51,7 @@ class="{{name}}__options" scroll-y scroll-top="{{scrollTopList[index]}}" + aria-hidden="{{ stepIndex !== index}}" > Date: Mon, 6 Mar 2023 14:36:50 +0800 Subject: [PATCH 03/15] feat(cascader): hidden --- src/cascader/cascader.wxml | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 3cc8ac146..f29b9dc56 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -19,7 +19,7 @@ class="{{name}}__step" bind:tap="onStepClick" data-index="{{index}}" - aria-role="button" + aria-role="{{ item === defaultOptionLabel ? 'text' : 'button' }}" aria-label="{{ item === defaultOptionLabel ? item : '已选中,' + item }}" > - {{subTitles[stepIndex]}} + + {{subTitles[stepIndex]}} + - + Date: Fri, 24 Mar 2023 11:40:34 +0800 Subject: [PATCH 04/15] feat(cascader): text change to option --- src/cascader/cascader.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index f29b9dc56..5b7f38cf0 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -19,7 +19,7 @@ class="{{name}}__step" bind:tap="onStepClick" data-index="{{index}}" - aria-role="{{ item === defaultOptionLabel ? 'text' : 'button' }}" + aria-role="{{ item === defaultOptionLabel ? 'option' : 'button' }}" aria-label="{{ item === defaultOptionLabel ? item : '已选中,' + item }}" > Date: Fri, 24 Mar 2023 11:44:26 +0800 Subject: [PATCH 05/15] feat(cascader): add index label --- src/cascader/cascader.wxml | 3 ++- src/cascader/cascader.wxs | 7 +++++++ 2 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 src/cascader/cascader.wxs diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 5b7f38cf0..8fa5cb301 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -1,4 +1,5 @@ + @@ -20,7 +21,7 @@ bind:tap="onStepClick" data-index="{{index}}" aria-role="{{ item === defaultOptionLabel ? 'option' : 'button' }}" - aria-label="{{ item === defaultOptionLabel ? item : '已选中,' + item }}" + aria-label="{{ item === defaultOptionLabel ? item : aria.getAriaLabel(index, item) }}" > Date: Mon, 10 Apr 2023 17:09:43 +0800 Subject: [PATCH 06/15] feat(cascader): change dom to no-dom --- src/cascader/cascader.wxml | 24 +++++++----------------- 1 file changed, 7 insertions(+), 17 deletions(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 15feec2cc..66f84702a 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -41,26 +41,16 @@ {{subTitles[stepIndex]}} - - - + + + From 7a016fd1c8ac1236503add3b2104dd3fb2dbda15 Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Mon, 10 Apr 2023 17:11:52 +0800 Subject: [PATCH 07/15] chore(cascader): update sanp --- .../__test__/__virtualHostSnapshot__/index.test.js.snap | 4 ---- src/switch/__test__/__virtualHostSnapshot__/demo.test.js.snap | 4 ++-- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap index be5b2624b..b980c3e87 100644 --- a/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -412,10 +412,6 @@ exports[`date-time-picker :base 1`] = ` - Date: Mon, 10 Apr 2023 17:35:21 +0800 Subject: [PATCH 08/15] feat(cascader): placement --- src/cascader/cascader.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 66f84702a..163bf5fc2 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -50,7 +50,7 @@ options="{{items[stepIndex]}}" bind:change="handleSelect" data-level="{{stepIndex}}" - align="right" + placement="right" icon="line" borderless > From 53ad712273108fceb6f22b758ebd537225a6f10e Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Mon, 10 Apr 2023 17:37:52 +0800 Subject: [PATCH 09/15] chore(cascader): update sanp --- .../index.test.js.snap | 50 +- .../index.test.js.snap | 1386 ++++++++--------- .../index.test.js.snap | 80 +- .../index.test.js.snap | 260 ++-- .../index.test.js.snap | 64 +- .../index.test.js.snap | 702 ++++----- .../index.test.js.snap | 74 +- .../index.test.js.snap | 18 +- .../index.test.js.snap | 16 +- .../index.test.js.snap | 216 +-- .../index.test.js.snap | 103 +- .../index.test.js.snap | 332 ++-- .../index.test.js.snap | 142 +- .../index.test.js.snap | 210 ++- .../index.test.js.snap | 116 +- .../index.test.js.snap | 20 +- .../index.test.js.snap | 236 ++- .../index.test.js.snap | 78 +- .../index.test.js.snap | 216 ++- .../index.test.js.snap | 104 +- .../index.test.js.snap | 30 +- .../index.test.js.snap | 88 +- 22 files changed, 2069 insertions(+), 2472 deletions(-) diff --git a/src/avatar/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/avatar/__test__/__virtualHostSnapshot__/index.test.js.snap index c292c83f6..5cd6176dc 100644 --- a/src/avatar/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/avatar/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,45 +2,35 @@ exports[`Avatar & Avatar Groups Avatar Props : style && customStyle 1`] = `
-
- - - - - + class="t-avatar__text t-class-content" + /> - + -
+
`; diff --git a/src/calendar/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/calendar/__test__/__virtualHostSnapshot__/index.test.js.snap index 750455c3f..5e9f6aaf6 100644 --- a/src/calendar/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/calendar/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,785 +2,721 @@ exports[`calendar :base 1`] = `
- - + + + 请选择日期 + + + + + + + 日 + + + 一 + + + 二 + + + 三 + + + 四 + + + 五 + + + 六 + + + + + 2022 年 10 月 + + + + + + + + - - 请选择日期 - - - - - - - - - - 日 - - - 一 - - - 二 - - - 三 - - - 四 - - - 五 - - - 六 - - - - - 2022 年 10 月 - - - - - - - - - - + ariaDisabled="{{false}}" + ariaLabel="10月1日, 星期六" + ariaRole="button" + class="t-calendar__dates-item t-calendar__dates-item--" + data-date="{{ + Object { + "date": Object {}, + "day": 1, + "type": "", + } + }}" + data-month="{{9}}" + data-year="{{2022}}" + bind:tap="handleSelect" + > + 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 - - - - - - - - - 确定 - - - @@ -823,22 +759,20 @@ exports[`calendar :base 1`] = ` - - - - - + + + +
`; diff --git a/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap index 049933a34..9bfb5aec0 100644 --- a/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,66 +2,56 @@ exports[`cell :base 1`] = `
-
+ - - - - + + + - - - - - + -
+
`; exports[`cell :with group 1`] = `
-
- -
+
`; diff --git a/src/collapse/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/collapse/__test__/__virtualHostSnapshot__/index.test.js.snap index 3c2af13a0..bbad0465c 100644 --- a/src/collapse/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/collapse/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -1,183 +1,151 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`collapse :defaultExpandAll 1`] = ` - - + + - - - - - - first - - - - - - - - - - - - - + first + + + - - - - 内容1 + - - + + + + + + + 内容1 + + +
+ + + - - - - - - second - - - - - - - - - - - - - + second + + + - - - - 内容2 + - + + + + + + + 内容2 + + - + `; diff --git a/src/count-down/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/count-down/__test__/__virtualHostSnapshot__/index.test.js.snap index 311f3161a..c4b88938b 100644 --- a/src/count-down/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/count-down/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,58 +2,48 @@ exports[`countdown :autoStart 1`] = `
- - - 00 : 00 : 01 - - + + 00 : 00 : 01 +
`; exports[`countdown :base 1`] = `
- - - 00 : 00 : 01 - - + + 00 : 00 : 01 +
`; exports[`countdown :base 2`] = `
- - - 00 : 00 : 00 - - + + 00 : 00 : 00 +
`; exports[`countdown :millisecond 1`] = `
- - - 00 : 00 : 00 - - + 00 : 00 : 00 +
`; diff --git a/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap index ed00fef4e..b980c3e87 100644 --- a/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/date-time-picker/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,470 +2,442 @@ exports[`date-time-picker :base 1`] = `
- - + - + 取消 + + + 选择日期 + + + 确定 + + + + - - 取消 - - - 选择日期 - - - 确定 - - - - - - - - + class="t-picker-item__item" + data-index="{{0}}" + > + 2000年 - - - + + + 2001年 - - - + + + 2002年 - - - + + + 2003年 - - - + + + 2004年 - - - + + + 2005年 - - - + + + 2006年 - - - + + + 2007年 - - - + + + 2008年 - - - + + + 2009年 - - - + + + 2010年 - - - + + + 2011年 - - - + + + 2012年 - - - + + + 2013年 - - - + + + 2014年 - - - + + + 2015年 - - - + + + 2016年 - - - + + + 2017年 - - - + + + 2018年 - - - + + + 2019年 - - - + + + 2020年 - - - + + + 2021年 - - - + + + 2022年 - - - + + + 2023年 - - - + + + 2024年 - - - + + + 2025年 - - - + + + 2026年 - - - + + + 2027年 - - - + + + 2028年 - - - + + + 2029年 - - - + + + 2030年 - - - - - - - - - + + + + + + + 1月 - - - + + + 2月 - - - + + + 3月 - - - + + + 4月 - - - + + + 5月 - - - + + + 6月 - - - + + + 7月 - - - + + + 8月 - - - + + + 9月 - - - + + + 10月 - - - + + + 11月 - - - + + + 12月 - - - - - - - - - - - - - + + + + + + + +
`; diff --git a/src/dialog/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/dialog/__test__/__virtualHostSnapshot__/index.test.js.snap index 45a54cb24..0ffdddadb 100644 --- a/src/dialog/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/dialog/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,57 +2,41 @@ exports[`dialog :base 1`] = `
- - - - - - - - - - + class="t-dialog__content t-class-content" + /> - - - + + + + +
`; diff --git a/src/divider/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/divider/__test__/__virtualHostSnapshot__/index.test.js.snap index 473ce46af..4fd1b24d2 100644 --- a/src/divider/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/divider/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,21 +2,17 @@ exports[`Divider :base 1`] = `
- - - + class="t-class-content t-divider__content" + /> - +
`; diff --git a/src/footer/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/footer/__test__/__virtualHostSnapshot__/index.test.js.snap index a75d29e0d..663b4673d 100644 --- a/src/footer/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/footer/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,17 +2,15 @@ exports[`Footer :base 1`] = `
-
+ - - - + -
+
`; diff --git a/src/image-viewer/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/image-viewer/__test__/__virtualHostSnapshot__/index.test.js.snap index 7b844a6a8..c361b1971 100644 --- a/src/image-viewer/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/image-viewer/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -1,11 +1,10 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`image-viewer :base 1`] = ` - - - - - - - - - + class="t-loading__dot" + style="animation-duration: 0.8s; animation-delay:0s; animation-play-state: running;" + /> + + + + - +
`; exports[`image-viewer :base 2`] = ` - - - - - - - - - + class="t-loading__dot" + style="animation-duration: 0.8s; animation-delay:0s; animation-play-state: running;" + /> + + + + - + `; exports[`image-viewer :base 3`] = ` - - - - - - - - - + class="t-loading__dot" + style="animation-duration: 0.8s; animation-delay:0s; animation-play-state: running;" + /> + + + + - + `; diff --git a/src/image/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/image/__test__/__virtualHostSnapshot__/index.test.js.snap index 445831548..73c7d73ee 100644 --- a/src/image/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/image/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,72 +2,63 @@ exports[`image :base 1`] = `
- + - - - - - + - + +
`; exports[`image :success 1`] = `
- - +
`; diff --git a/src/input/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/input/__test__/__virtualHostSnapshot__/index.test.js.snap index 2b1c4656a..595e9792e 100644 --- a/src/input/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/input/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -1,218 +1,198 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`input props : clearable && label && suffix 1`] = ` - + - - - - tdesign - - + tdesign + + + + - - - - - - - - - - 后置内容 - + + + + + 后置内容 + + + - - - - - + - + `; exports[`input slots : label 1`] = ` - + - - + 标签文字 - 标签文字 - - * - + * - + + + + - - - - + class="t-input__wrap--suffix t-class-suffix" + bind:tap="onSuffixClick" + /> + - + `; diff --git a/src/message/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/message/__test__/__virtualHostSnapshot__/index.test.js.snap index 67aa8f6c8..8d7f31dc6 100644 --- a/src/message/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/message/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,98 +2,82 @@ exports[`message props : style && customStyle 1`] = `
- - - - - - + + + - - 这是一条带关闭的消息通知 - + 这是一条带关闭的消息通知 + + - - - - - + - +
`; diff --git a/src/navbar/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/navbar/__test__/__virtualHostSnapshot__/index.test.js.snap index 18d9bf08e..c8109c4a7 100644 --- a/src/navbar/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/navbar/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,175 +2,165 @@ exports[`navbar :base 1`] = `
- + + - - - - + + + - - test - - + test + - +
`; exports[`navbar :base 2`] = `
- + + - - - - + + + - - test - - + test + - +
`; exports[`navbar :base 3`] = `
- + + - - - - + + + - - test - - + test + - +
`; exports[`navbar :fixed 1`] = `
- + + - - - - + + + - - test - - + test + - +
`; exports[`navbar :menu button 1`] = `
- + + - - - - + + + - - test - - + test + - +
`; diff --git a/src/notice-bar/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/notice-bar/__test__/__virtualHostSnapshot__/index.test.js.snap index 7dd7671db..e190e8a3e 100644 --- a/src/notice-bar/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/notice-bar/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,79 +2,69 @@ exports[`notice-bar props : marquee 1`] = `
- - - - - - + + + - - 提示文字描述提示文字描述提示文字描述提示文字描述文 - - + }, + ], + } + }}" + class="t-notice-bar__content t-class-content " + > + 提示文字描述提示文字描述提示文字描述提示文字描述文 + - - + +
`; diff --git a/src/overlay/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/overlay/__test__/__virtualHostSnapshot__/index.test.js.snap index 7a06bb8be..3288499cb 100644 --- a/src/overlay/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/overlay/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,16 +2,14 @@ exports[`overlay :base 1`] = `
- - - +
`; diff --git a/src/picker/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/picker/__test__/__virtualHostSnapshot__/index.test.js.snap index 9801b437f..4fa9f7066 100644 --- a/src/picker/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/picker/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -1,176 +1,144 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`picker :base 1`] = ` - - + 取消 + + + + + + 确认 + + + + - 取消 + + 2021年 + + 2020年 + - 确认 + + 2019年 + + + - - - - - - 2021年 - - - - - 2020年 - - - - - 2019年 - - - - - - - - - - + + 春 - - - + + + 夏 - - - + + + 秋 - - - + + + 冬 - - - - - - - + + + - - - - - + + + `; diff --git a/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap index f3abf4ef5..e48ef901d 100644 --- a/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,58 +2,50 @@ exports[`search Props :base 1`] = `
- - - - - - - - - + + + + 提交 - - +
`; diff --git a/src/skeleton/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/skeleton/__test__/__virtualHostSnapshot__/index.test.js.snap index 9271cabc9..90d44529c 100644 --- a/src/skeleton/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/skeleton/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,162 +2,150 @@ exports[`skeleton Props :inner rowCol 1`] = `
- - - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:24%;height:32rpx;margin-right:32rpx" + /> - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:76%;height:32rpx" + /> + + + - +
`; exports[`skeleton Props :text rowCol 1`] = `
- - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:686rpx;height:32rpx" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="" + /> + + + - - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:38rpx;height:32rpx" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:440rpx" + /> - +
`; exports[`skeleton Props :text rowCol2 1`] = `
- - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:343px;height:16px" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="" + /> + + + - - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:small;height:small" + /> + + - - + class="t-skeleton__col t-skeleton--type-text t-skeleton--animation-none t-class-col" + style="width:220px" + /> - +
`; diff --git a/src/stepper/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/stepper/__test__/__virtualHostSnapshot__/index.test.js.snap index 24d454a7f..cd20881f7 100644 --- a/src/stepper/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/stepper/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -12,22 +12,18 @@ exports[`stepper event : input 1`] = ` class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus" catch:tap="minusValue" > - - - - - + + - - - - - + + `; @@ -82,22 +74,18 @@ exports[`stepper event : input 2`] = ` class="t-stepper__minus t-stepper__minus--normal t-stepper__icon--medium t-class-minus" catch:tap="minusValue" > - - - - - + + - - - - - + + `; diff --git a/src/switch/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/switch/__test__/__virtualHostSnapshot__/index.test.js.snap index 4f9ce97ac..938cc604e 100644 --- a/src/switch/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/switch/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -2,28 +2,26 @@ exports[`switch Props :base 1`] = `
- + - - + class="t-switch__label t-switch__label--medium t-class-label" + /> - +
`; diff --git a/src/textarea/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/textarea/__test__/__virtualHostSnapshot__/index.test.js.snap index 3e3ba44f9..5da505a7c 100644 --- a/src/textarea/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/textarea/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -1,55 +1,51 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP exports[`textarea slots : label 1`] = ` - - - - 标签文字 - - - - - + 标签文字 + + + + - + `; From 36e57681f56225bf2e683a9b7ac4a3b550e6a195 Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Tue, 30 May 2023 11:14:06 +0800 Subject: [PATCH 10/15] refactor(cascader): optimization --- src/cascader/cascader.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 163bf5fc2..645443114 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -25,7 +25,7 @@ > + /> {{ item }} From f857cd0880d8c8e44c02683483d5fada25c73e3f Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Tue, 30 May 2023 15:46:06 +0800 Subject: [PATCH 11/15] fix: babel transform-class-properties --- babel.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/babel.config.js b/babel.config.js index dd4e3d695..b30cffacc 100644 --- a/babel.config.js +++ b/babel.config.js @@ -3,6 +3,6 @@ module.exports = { presets: [['@babel/preset-env', { targets: { node: 'current' } }], '@babel/preset-typescript'], plugins: [ ['@babel/plugin-proposal-decorators', { legacy: true }], - ['@babel/plugin-proposal-class-properties', { loose: true }], + ['@babel/plugin-transform-class-properties', { loose: true }], ], }; From 225481e34189f982f8d8b099bcf28c5da8e95909 Mon Sep 17 00:00:00 2001 From: zhangpaopao Date: Tue, 30 May 2023 17:58:29 +0800 Subject: [PATCH 12/15] chore: update snap --- src/dropdown-menu/__test__/__snapshots__/index.test.js.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dropdown-menu/__test__/__snapshots__/index.test.js.snap b/src/dropdown-menu/__test__/__snapshots__/index.test.js.snap index 05b2393fb..d15c7cbb1 100644 --- a/src/dropdown-menu/__test__/__snapshots__/index.test.js.snap +++ b/src/dropdown-menu/__test__/__snapshots__/index.test.js.snap @@ -89,7 +89,7 @@ exports[`dropdown-menu :base 1`] = ` @@ -621,7 +621,7 @@ exports[`dropdown-menu :base 1`] = ` Date: Tue, 30 May 2023 18:03:15 +0800 Subject: [PATCH 13/15] chore: update snap --- .../__test__/__virtualHostSnapshot__/index.test.js.snap | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dropdown-menu/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/dropdown-menu/__test__/__virtualHostSnapshot__/index.test.js.snap index c2a04a589..6cbb256a4 100644 --- a/src/dropdown-menu/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/dropdown-menu/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -68,7 +68,7 @@ exports[`dropdown-menu :base 1`] = ` @@ -523,7 +523,7 @@ exports[`dropdown-menu :base 1`] = ` Date: Fri, 14 Jul 2023 18:29:36 +0800 Subject: [PATCH 14/15] chore: update snap --- .../__test__/__virtualHostSnapshot__/index.test.js.snap | 7 ------- .../__test__/__virtualHostSnapshot__/index.test.js.snap | 5 ----- .../__test__/__virtualHostSnapshot__/index.test.js.snap | 5 ----- 3 files changed, 17 deletions(-) diff --git a/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap index d52e4ec77..2173e21cf 100644 --- a/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/cell/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -49,18 +49,11 @@ exports[`cell :base 1`] = ` exports[`cell :with group 1`] = `
-<<<<<<< HEAD - -=======
->>>>>>> develop
`; diff --git a/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap b/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap index 10d729be5..7224092aa 100644 --- a/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap +++ b/src/search/__test__/__virtualHostSnapshot__/index.test.js.snap @@ -17,10 +17,6 @@ exports[`search Props :base 1`] = ` style="font-size: 24px;" bind:tap="onTap" > -<<<<<<< HEAD - @@ -52,7 +48,6 @@ exports[`search Props :base 1`] = ` bind:confirm="onConfirm" bind:focus="onFocus" bind:input="onInput" ->>>>>>> develop />
-<<<<<<< HEAD - 标签文字 - -======= @@ -54,7 +50,6 @@ exports[`textarea slots : label 1`] = ` bind:linechange="onLineChange" />
->>>>>>> develop
Date: Mon, 17 Jul 2023 10:55:25 +0800 Subject: [PATCH 15/15] feat(cascader): icon hidden --- src/cascader/cascader.wxml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cascader/cascader.wxml b/src/cascader/cascader.wxml index 645443114..efcc0fb78 100644 --- a/src/cascader/cascader.wxml +++ b/src/cascader/cascader.wxml @@ -29,7 +29,7 @@ {{ item }} - +