From 2740c77b9a4182b4107c8ec581dbf5c6193d3d74 Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Thu, 28 Sep 2023 17:56:02 +0800 Subject: [PATCH 1/5] feat: add_info_slot --- .../test/__snapshots__/demo.spec.ts.snap | 9 +- .../test/__snapshots__/demo.spec.ts.snap | 44 +++-- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../cell/test/__snapshots__/demo.spec.ts.snap | 36 +++- .../test/__snapshots__/demo.spec.ts.snap | 76 ++++++-- .../test/__snapshots__/demo.spec.ts.snap | 48 +++-- .../test/__snapshots__/demo.spec.ts.snap | 40 +++- .../test/__snapshots__/demo.spec.ts.snap | 12 +- .../test/__snapshots__/demo.spec.ts.snap | 20 +- .../test/__snapshots__/demo.spec.ts.snap | 8 +- .../test/__snapshots__/demo.spec.ts.snap | 96 +++++---- .../grid/test/__snapshots__/demo.spec.ts.snap | 164 +++++++++++----- packages/icon/README.md | 7 + packages/icon/index.ts | 1 + packages/icon/index.wxml | 15 +- .../icon/test/__snapshots__/demo.spec.ts.snap | 81 +++++--- .../test/__snapshots__/demo.spec.ts.snap | 72 +++++-- .../test/__snapshots__/demo.spec.ts.snap | 12 +- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../test/__snapshots__/demo.spec.ts.snap | 36 +++- .../test/__snapshots__/demo.spec.ts.snap | 64 ++++-- .../rate/test/__snapshots__/demo.spec.ts.snap | 184 +++++++++++++----- .../test/__snapshots__/demo.spec.ts.snap | 24 ++- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../test/__snapshots__/demo.spec.ts.snap | 40 +++- .../test/__snapshots__/demo.spec.ts.snap | 4 +- .../tab/test/__snapshots__/demo.spec.ts.snap | 4 +- .../test/__snapshots__/demo.spec.ts.snap | 88 ++++++--- .../tag/test/__snapshots__/demo.spec.ts.snap | 8 +- .../test/__snapshots__/demo.spec.ts.snap | 40 +++- .../test/__snapshots__/demo.spec.ts.snap | 4 +- .../test/__snapshots__/demo.spec.ts.snap | 64 ++++-- 32 files changed, 977 insertions(+), 372 deletions(-) diff --git a/packages/button/test/__snapshots__/demo.spec.ts.snap b/packages/button/test/__snapshots__/demo.spec.ts.snap index 8e563a55f..33a193156 100644 --- a/packages/button/test/__snapshots__/demo.spec.ts.snap +++ b/packages/button/test/__snapshots__/demo.spec.ts.snap @@ -792,7 +792,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star-o" style="font-size:1.2em;line-height: inherit;" bind:tap="onClick" - /> + > + + + > + + + + > + + @@ -73,7 +75,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -106,7 +110,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -150,7 +156,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -183,7 +191,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -227,7 +237,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -260,7 +272,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -293,7 +307,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -326,7 +342,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -359,7 +377,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -392,7 +412,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/cascader/test/__snapshots__/demo.spec.ts.snap b/packages/cascader/test/__snapshots__/demo.spec.ts.snap index 0f5973dc5..b27fbe01e 100644 --- a/packages/cascader/test/__snapshots__/demo.spec.ts.snap +++ b/packages/cascader/test/__snapshots__/demo.spec.ts.snap @@ -95,7 +95,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -206,7 +208,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -317,7 +321,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -428,7 +434,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/cell/test/__snapshots__/demo.spec.ts.snap b/packages/cell/test/__snapshots__/demo.spec.ts.snap index 3970018c8..e6a5929be 100644 --- a/packages/cell/test/__snapshots__/demo.spec.ts.snap +++ b/packages/cell/test/__snapshots__/demo.spec.ts.snap @@ -223,7 +223,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-location-o" style="" bind:tap="onClick" - /> + > + + + > + + @@ -305,7 +309,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -336,7 +342,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow-down" style="" bind:tap="onClick" - /> + > + + @@ -376,7 +384,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -405,7 +415,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -515,7 +527,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-shop-o" style="" bind:tap="onClick" - /> + > + + + > + + @@ -580,7 +596,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-search" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/checkbox/test/__snapshots__/demo.spec.ts.snap b/packages/checkbox/test/__snapshots__/demo.spec.ts.snap index 09e87e7ad..bba125c1a 100644 --- a/packages/checkbox/test/__snapshots__/demo.spec.ts.snap +++ b/packages/checkbox/test/__snapshots__/demo.spec.ts.snap @@ -32,7 +32,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-success" style="font-size:0.8em;line-height: 1.25em;" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + @@ -107,7 +109,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -160,7 +164,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -233,7 +239,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -286,7 +294,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -339,7 +349,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -414,7 +426,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -467,7 +481,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -520,7 +536,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -603,7 +621,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -649,7 +669,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-shop-o" style="" bind:tap="onClick" - /> + > + + + > + + diff --git a/packages/config-provider/test/__snapshots__/demo.spec.ts.snap b/packages/config-provider/test/__snapshots__/demo.spec.ts.snap index ba0aeba01..5858ad957 100644 --- a/packages/config-provider/test/__snapshots__/demo.spec.ts.snap +++ b/packages/config-provider/test/__snapshots__/demo.spec.ts.snap @@ -77,7 +77,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -438,7 +448,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + diff --git a/packages/count-down/test/__snapshots__/demo.spec.ts.snap b/packages/count-down/test/__snapshots__/demo.spec.ts.snap index e70ddaf5c..09670c8d1 100644 --- a/packages/count-down/test/__snapshots__/demo.spec.ts.snap +++ b/packages/count-down/test/__snapshots__/demo.spec.ts.snap @@ -134,7 +134,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-play-circle-o" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + @@ -72,7 +74,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -103,7 +107,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -149,7 +155,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -180,7 +188,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/field/test/__snapshots__/demo.spec.ts.snap b/packages/field/test/__snapshots__/demo.spec.ts.snap index 0d5526f58..fc23deb18 100644 --- a/packages/field/test/__snapshots__/demo.spec.ts.snap +++ b/packages/field/test/__snapshots__/demo.spec.ts.snap @@ -177,7 +177,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-question-o" style="" bind:tap="onClick" - /> + > + + + > + + - + + + - + + + - - + - - - + + + + + - - + - 5 - - + + 5 + + + - + + + - + + + - + + + - + + + - + + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + - - + - - - + + + + + @@ -1215,16 +1279,18 @@ exports[`should render demo and match snapshot 1`] = ` style="" bind:tap="onClick" > - - + - 99+ - - + + 99+ + + + diff --git a/packages/icon/README.md b/packages/icon/README.md index 0872f3c92..550402af7 100644 --- a/packages/icon/README.md +++ b/packages/icon/README.md @@ -89,6 +89,7 @@ | size `v1.10.20` | 图标大小,如 `20px`,`2em`,默认单位为`px` | _string \| number_ | `inherit` | | custom-style | 自定义样式 | _string_ | - | | class-prefix | 类名前缀 | _string_ | `van-icon` | +| use-info-slot | 是否使用 info slot | _boolean_ | `false` | ### Events @@ -103,6 +104,12 @@ | custom-class | 根节点样式类 | | info-class | 图标右上角文字样式类 | +### Slot + +| 类名 | 说明 | +| ------------ | ------------ | +| info-slot | 自定义info内容,开启useInfoSlot有效 | + ## 常见问题 ### 开发者工具上提示 Failed to load font 是什么情况? diff --git a/packages/icon/index.ts b/packages/icon/index.ts index b1ccf4d86..84ca67bd2 100644 --- a/packages/icon/index.ts +++ b/packages/icon/index.ts @@ -13,6 +13,7 @@ VantComponent({ value: 'van-icon', }, name: String, + useInfoSlot: Boolean, }, methods: { diff --git a/packages/icon/index.wxml b/packages/icon/index.wxml index 91b47f914..60f6110c5 100644 --- a/packages/icon/index.wxml +++ b/packages/icon/index.wxml @@ -5,12 +5,15 @@ style="{{ computed.rootStyle({ customStyle, color, size }) }}" bindtap="onClick" > - + + + + + > + + @@ -163,6 +165,7 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > + - - + - - - + + + + + @@ -227,16 +232,18 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > - - + - 9 - - + + 9 + + + @@ -256,16 +263,18 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > - - + - 99+ - - + + 99+ + + + @@ -295,7 +304,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="color:#1989fa;font-size:32px" bind:tap="onClick" - /> + > + + @@ -313,7 +324,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="color:#07c160;font-size:32px" bind:tap="onClick" - /> + > + + @@ -342,7 +355,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="font-size:40px" bind:tap="onClick" - /> + > + + @@ -360,7 +375,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="font-size:3rem" bind:tap="onClick" - /> + > + + diff --git a/packages/image/test/__snapshots__/demo.spec.ts.snap b/packages/image/test/__snapshots__/demo.spec.ts.snap index 87d3916dc..50c23f907 100644 --- a/packages/image/test/__snapshots__/demo.spec.ts.snap +++ b/packages/image/test/__snapshots__/demo.spec.ts.snap @@ -42,7 +42,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -96,7 +98,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -139,7 +143,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -182,7 +188,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -225,7 +233,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -268,7 +278,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -311,7 +323,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -354,7 +368,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -415,7 +431,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -458,7 +476,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -501,7 +521,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -544,7 +566,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -587,7 +611,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -630,7 +656,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -673,7 +701,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -734,7 +764,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -882,7 +914,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + @@ -925,7 +959,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap b/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap index ea26da637..2ef353c85 100644 --- a/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap @@ -33,7 +33,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow-left" style="font-size:16px" bind:tap="onClick" - /> + > + + + > + + + > + + diff --git a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap index b82ab08e0..c102f35f6 100644 --- a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap @@ -24,7 +24,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-volume-o" style="" bind:tap="onClick" - /> + > + + + > + + @@ -198,7 +202,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -227,7 +233,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-info-o" style="" bind:tap="onClick" - /> + > + + + > + + @@ -93,7 +95,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -124,7 +128,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -155,7 +161,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -186,7 +194,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -280,7 +290,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -311,7 +323,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -342,7 +356,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -423,7 +439,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/radio/test/__snapshots__/demo.spec.ts.snap b/packages/radio/test/__snapshots__/demo.spec.ts.snap index 6bb232301..efdb7f7a9 100644 --- a/packages/radio/test/__snapshots__/demo.spec.ts.snap +++ b/packages/radio/test/__snapshots__/demo.spec.ts.snap @@ -38,7 +38,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-success" style=";line-height:20px;font-size:.8em;display:block" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + @@ -143,7 +153,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-like" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -253,7 +273,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="color:#ffd21e" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -363,7 +393,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + @@ -538,7 +588,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + @@ -666,7 +728,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -776,7 +848,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -887,7 +969,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + diff --git a/packages/search/test/__snapshots__/demo.spec.ts.snap b/packages/search/test/__snapshots__/demo.spec.ts.snap index 28df75870..fe7ff6896 100644 --- a/packages/search/test/__snapshots__/demo.spec.ts.snap +++ b/packages/search/test/__snapshots__/demo.spec.ts.snap @@ -49,7 +49,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-search" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + + > + + @@ -109,7 +111,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -176,7 +180,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -243,7 +249,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/steps/test/__snapshots__/demo.spec.ts.snap b/packages/steps/test/__snapshots__/demo.spec.ts.snap index 4406f9f05..aef9f2fcc 100644 --- a/packages/steps/test/__snapshots__/demo.spec.ts.snap +++ b/packages/steps/test/__snapshots__/demo.spec.ts.snap @@ -82,7 +82,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-checked" style="color:#07c160" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + @@ -404,7 +414,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-location-o" style="color:#07c160" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + @@ -601,7 +619,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-checked" style="color:#ee0a24" bind:tap="onClick" - /> + > + + + > + + + > + + diff --git a/packages/tabbar/test/__snapshots__/demo.spec.ts.snap b/packages/tabbar/test/__snapshots__/demo.spec.ts.snap index 2433e3ff2..aeb28dda6 100644 --- a/packages/tabbar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/tabbar/test/__snapshots__/demo.spec.ts.snap @@ -36,7 +36,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-home-o" style="" bind:tap="onClick" - /> + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + + > + + @@ -347,7 +349,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/transition/test/__snapshots__/demo.spec.ts.snap b/packages/transition/test/__snapshots__/demo.spec.ts.snap index 1d19b3f51..86036c3f9 100644 --- a/packages/transition/test/__snapshots__/demo.spec.ts.snap +++ b/packages/transition/test/__snapshots__/demo.spec.ts.snap @@ -38,7 +38,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -69,7 +71,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -100,7 +104,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -131,7 +137,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -162,7 +170,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -193,7 +203,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -224,7 +236,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -255,7 +269,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -286,7 +302,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + @@ -317,7 +335,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/tree-select/test/__snapshots__/demo.spec.ts.snap b/packages/tree-select/test/__snapshots__/demo.spec.ts.snap index a2ab8b617..bb232ef3c 100644 --- a/packages/tree-select/test/__snapshots__/demo.spec.ts.snap +++ b/packages/tree-select/test/__snapshots__/demo.spec.ts.snap @@ -427,7 +427,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - /> + > + + diff --git a/packages/uploader/test/__snapshots__/demo.spec.ts.snap b/packages/uploader/test/__snapshots__/demo.spec.ts.snap index 80945da00..6aedb62a4 100644 --- a/packages/uploader/test/__snapshots__/demo.spec.ts.snap +++ b/packages/uploader/test/__snapshots__/demo.spec.ts.snap @@ -38,7 +38,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + @@ -81,7 +83,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + @@ -135,7 +139,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -165,7 +171,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -185,7 +193,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + @@ -239,7 +249,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -269,7 +281,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -353,7 +367,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -381,7 +397,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-close" style="" bind:tap="onClick" - /> + > + + + > + + @@ -456,7 +476,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - /> + > + + @@ -476,7 +498,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + @@ -545,7 +569,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="font-size:1.2em;line-height: inherit;" bind:tap="onClick" - /> + > + + + > + + @@ -612,7 +640,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + @@ -657,7 +687,9 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - /> + > + + From 82b4ecd1690071a8309e9665fd9fea3aa6cf81fe Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Sat, 7 Oct 2023 15:29:53 +0800 Subject: [PATCH 2/5] feat(Icon): add version support --- packages/icon/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icon/README.md b/packages/icon/README.md index 550402af7..056f6565f 100644 --- a/packages/icon/README.md +++ b/packages/icon/README.md @@ -108,7 +108,7 @@ | 类名 | 说明 | | ------------ | ------------ | -| info-slot | 自定义info内容,开启useInfoSlot有效 | +| info-slot `v1.11.1` | 自定义info内容,开启useInfoSlot有效 | ## 常见问题 From e7a6cb8ece2491a10848c7dc331c72fa2271fb85 Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Wed, 11 Oct 2023 16:17:34 +0800 Subject: [PATCH 3/5] =?UTF-8?q?feat(Icon):=20=E8=B0=83=E6=95=B4=E6=88=90bl?= =?UTF-8?q?ock?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/icon/index.wxml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/icon/index.wxml b/packages/icon/index.wxml index 60f6110c5..859c7f96e 100644 --- a/packages/icon/index.wxml +++ b/packages/icon/index.wxml @@ -6,14 +6,14 @@ bindtap="onClick" > - + - + Date: Wed, 11 Oct 2023 16:20:19 +0800 Subject: [PATCH 4/5] feat(Icon): jest update --- .../test/__snapshots__/demo.spec.ts.snap | 9 +- .../test/__snapshots__/demo.spec.ts.snap | 44 ++--- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../cell/test/__snapshots__/demo.spec.ts.snap | 36 +--- .../test/__snapshots__/demo.spec.ts.snap | 76 ++------ .../test/__snapshots__/demo.spec.ts.snap | 48 ++--- .../test/__snapshots__/demo.spec.ts.snap | 40 +--- .../test/__snapshots__/demo.spec.ts.snap | 12 +- .../test/__snapshots__/demo.spec.ts.snap | 20 +- .../test/__snapshots__/demo.spec.ts.snap | 8 +- .../test/__snapshots__/demo.spec.ts.snap | 96 ++++----- .../grid/test/__snapshots__/demo.spec.ts.snap | 164 +++++----------- .../icon/test/__snapshots__/demo.spec.ts.snap | 81 +++----- .../test/__snapshots__/demo.spec.ts.snap | 72 ++----- .../test/__snapshots__/demo.spec.ts.snap | 12 +- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../test/__snapshots__/demo.spec.ts.snap | 36 +--- .../test/__snapshots__/demo.spec.ts.snap | 64 ++---- .../rate/test/__snapshots__/demo.spec.ts.snap | 184 +++++------------- .../test/__snapshots__/demo.spec.ts.snap | 24 +-- .../test/__snapshots__/demo.spec.ts.snap | 16 +- .../test/__snapshots__/demo.spec.ts.snap | 40 +--- .../test/__snapshots__/demo.spec.ts.snap | 4 +- .../tab/test/__snapshots__/demo.spec.ts.snap | 4 +- .../test/__snapshots__/demo.spec.ts.snap | 88 +++------ .../tag/test/__snapshots__/demo.spec.ts.snap | 8 +- .../test/__snapshots__/demo.spec.ts.snap | 40 +--- .../test/__snapshots__/demo.spec.ts.snap | 4 +- .../test/__snapshots__/demo.spec.ts.snap | 64 ++---- 29 files changed, 366 insertions(+), 960 deletions(-) diff --git a/packages/button/test/__snapshots__/demo.spec.ts.snap b/packages/button/test/__snapshots__/demo.spec.ts.snap index 33a193156..8e563a55f 100644 --- a/packages/button/test/__snapshots__/demo.spec.ts.snap +++ b/packages/button/test/__snapshots__/demo.spec.ts.snap @@ -792,9 +792,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star-o" style="font-size:1.2em;line-height: inherit;" bind:tap="onClick" - > - - + /> - - + /> - - - + /> @@ -75,9 +73,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -110,9 +106,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -156,9 +150,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -191,9 +183,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -237,9 +227,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -272,9 +260,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -307,9 +293,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -342,9 +326,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -377,9 +359,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -412,9 +392,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/cascader/test/__snapshots__/demo.spec.ts.snap b/packages/cascader/test/__snapshots__/demo.spec.ts.snap index b27fbe01e..0f5973dc5 100644 --- a/packages/cascader/test/__snapshots__/demo.spec.ts.snap +++ b/packages/cascader/test/__snapshots__/demo.spec.ts.snap @@ -95,9 +95,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -208,9 +206,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -321,9 +317,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -434,9 +428,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/cell/test/__snapshots__/demo.spec.ts.snap b/packages/cell/test/__snapshots__/demo.spec.ts.snap index e6a5929be..3970018c8 100644 --- a/packages/cell/test/__snapshots__/demo.spec.ts.snap +++ b/packages/cell/test/__snapshots__/demo.spec.ts.snap @@ -223,9 +223,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-location-o" style="" bind:tap="onClick" - > - - + /> - - + /> @@ -309,9 +305,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -342,9 +336,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow-down" style="" bind:tap="onClick" - > - - + /> @@ -384,9 +376,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -415,9 +405,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -527,9 +515,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-shop-o" style="" bind:tap="onClick" - > - - + /> - - + /> @@ -596,9 +580,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-search" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/checkbox/test/__snapshots__/demo.spec.ts.snap b/packages/checkbox/test/__snapshots__/demo.spec.ts.snap index bba125c1a..09e87e7ad 100644 --- a/packages/checkbox/test/__snapshots__/demo.spec.ts.snap +++ b/packages/checkbox/test/__snapshots__/demo.spec.ts.snap @@ -32,9 +32,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-success" style="font-size:0.8em;line-height: 1.25em;" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -109,9 +107,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -164,9 +160,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -239,9 +233,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -294,9 +286,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -349,9 +339,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -426,9 +414,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -481,9 +467,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -536,9 +520,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -621,9 +603,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -669,9 +649,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-shop-o" style="" bind:tap="onClick" - > - - + /> - - + /> diff --git a/packages/config-provider/test/__snapshots__/demo.spec.ts.snap b/packages/config-provider/test/__snapshots__/demo.spec.ts.snap index 5858ad957..ba0aeba01 100644 --- a/packages/config-provider/test/__snapshots__/demo.spec.ts.snap +++ b/packages/config-provider/test/__snapshots__/demo.spec.ts.snap @@ -77,9 +77,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -448,9 +438,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> diff --git a/packages/count-down/test/__snapshots__/demo.spec.ts.snap b/packages/count-down/test/__snapshots__/demo.spec.ts.snap index 09670c8d1..e70ddaf5c 100644 --- a/packages/count-down/test/__snapshots__/demo.spec.ts.snap +++ b/packages/count-down/test/__snapshots__/demo.spec.ts.snap @@ -134,9 +134,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-play-circle-o" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> @@ -74,9 +72,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -107,9 +103,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -155,9 +149,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -188,9 +180,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/field/test/__snapshots__/demo.spec.ts.snap b/packages/field/test/__snapshots__/demo.spec.ts.snap index fc23deb18..0d5526f58 100644 --- a/packages/field/test/__snapshots__/demo.spec.ts.snap +++ b/packages/field/test/__snapshots__/demo.spec.ts.snap @@ -177,9 +177,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-question-o" style="" bind:tap="onClick" - > - - + /> - - + /> - - - + - - - + - - + - - - - - + + + - - + - - 5 - - - + 5 + + - - - + - - - + - - - + - - - + - - - + - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + - - - - - + + + @@ -1279,18 +1215,16 @@ exports[`should render demo and match snapshot 1`] = ` style="" bind:tap="onClick" > - - + - - 99+ - - - + 99+ + + diff --git a/packages/icon/test/__snapshots__/demo.spec.ts.snap b/packages/icon/test/__snapshots__/demo.spec.ts.snap index 1f406630d..ce919dae0 100644 --- a/packages/icon/test/__snapshots__/demo.spec.ts.snap +++ b/packages/icon/test/__snapshots__/demo.spec.ts.snap @@ -144,9 +144,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="font-size:32px" bind:tap="onClick" - > - - + /> @@ -165,7 +163,6 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > - - - + - - - - - + + + @@ -232,18 +227,16 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > - - + - - 9 - - - + 9 + + @@ -263,18 +256,16 @@ exports[`should render demo and match snapshot 1`] = ` style="font-size:32px" bind:tap="onClick" > - - + - - 99+ - - - + 99+ + + @@ -304,9 +295,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="color:#1989fa;font-size:32px" bind:tap="onClick" - > - - + /> @@ -324,9 +313,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="color:#07c160;font-size:32px" bind:tap="onClick" - > - - + /> @@ -355,9 +342,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="font-size:40px" bind:tap="onClick" - > - - + /> @@ -375,9 +360,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-chat-o" style="font-size:3rem" bind:tap="onClick" - > - - + /> diff --git a/packages/image/test/__snapshots__/demo.spec.ts.snap b/packages/image/test/__snapshots__/demo.spec.ts.snap index 50c23f907..87d3916dc 100644 --- a/packages/image/test/__snapshots__/demo.spec.ts.snap +++ b/packages/image/test/__snapshots__/demo.spec.ts.snap @@ -42,9 +42,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -98,9 +96,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -143,9 +139,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -188,9 +182,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -233,9 +225,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -278,9 +268,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -323,9 +311,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -368,9 +354,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -431,9 +415,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -476,9 +458,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -521,9 +501,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -566,9 +544,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -611,9 +587,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -656,9 +630,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -701,9 +673,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -764,9 +734,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -914,9 +882,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> @@ -959,9 +925,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap b/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap index 2ef353c85..ea26da637 100644 --- a/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/nav-bar/test/__snapshots__/demo.spec.ts.snap @@ -33,9 +33,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow-left" style="font-size:16px" bind:tap="onClick" - > - - + /> - - + /> - - + /> diff --git a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap index c102f35f6..b82ab08e0 100644 --- a/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/notice-bar/test/__snapshots__/demo.spec.ts.snap @@ -24,9 +24,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-volume-o" style="" bind:tap="onClick" - > - - + /> - - + /> @@ -202,9 +198,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -233,9 +227,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-info-o" style="" bind:tap="onClick" - > - - + /> - - + /> @@ -95,9 +93,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -128,9 +124,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -161,9 +155,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -194,9 +186,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -290,9 +280,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -323,9 +311,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -356,9 +342,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -439,9 +423,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/radio/test/__snapshots__/demo.spec.ts.snap b/packages/radio/test/__snapshots__/demo.spec.ts.snap index efdb7f7a9..6bb232301 100644 --- a/packages/radio/test/__snapshots__/demo.spec.ts.snap +++ b/packages/radio/test/__snapshots__/demo.spec.ts.snap @@ -38,9 +38,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-success" style=";line-height:20px;font-size:.8em;display:block" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -153,9 +143,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-like" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -273,9 +253,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="color:#ffd21e" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -393,9 +363,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -588,9 +538,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -728,9 +666,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -848,9 +776,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -969,9 +887,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-star" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> diff --git a/packages/search/test/__snapshots__/demo.spec.ts.snap b/packages/search/test/__snapshots__/demo.spec.ts.snap index fe7ff6896..28df75870 100644 --- a/packages/search/test/__snapshots__/demo.spec.ts.snap +++ b/packages/search/test/__snapshots__/demo.spec.ts.snap @@ -49,9 +49,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-search" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -111,9 +109,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -180,9 +176,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -249,9 +243,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/steps/test/__snapshots__/demo.spec.ts.snap b/packages/steps/test/__snapshots__/demo.spec.ts.snap index aef9f2fcc..4406f9f05 100644 --- a/packages/steps/test/__snapshots__/demo.spec.ts.snap +++ b/packages/steps/test/__snapshots__/demo.spec.ts.snap @@ -82,9 +82,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-checked" style="color:#07c160" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> @@ -414,9 +404,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-location-o" style="color:#07c160" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> @@ -619,9 +601,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-checked" style="color:#ee0a24" bind:tap="onClick" - > - - + /> - - + /> - - + /> diff --git a/packages/tabbar/test/__snapshots__/demo.spec.ts.snap b/packages/tabbar/test/__snapshots__/demo.spec.ts.snap index aeb28dda6..2433e3ff2 100644 --- a/packages/tabbar/test/__snapshots__/demo.spec.ts.snap +++ b/packages/tabbar/test/__snapshots__/demo.spec.ts.snap @@ -36,9 +36,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-home-o" style="" bind:tap="onClick" - > - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> - - + /> @@ -349,9 +347,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/transition/test/__snapshots__/demo.spec.ts.snap b/packages/transition/test/__snapshots__/demo.spec.ts.snap index 86036c3f9..1d19b3f51 100644 --- a/packages/transition/test/__snapshots__/demo.spec.ts.snap +++ b/packages/transition/test/__snapshots__/demo.spec.ts.snap @@ -38,9 +38,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -71,9 +69,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -104,9 +100,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -137,9 +131,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -170,9 +162,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -203,9 +193,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -236,9 +224,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -269,9 +255,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -302,9 +286,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> @@ -335,9 +317,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-arrow" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/tree-select/test/__snapshots__/demo.spec.ts.snap b/packages/tree-select/test/__snapshots__/demo.spec.ts.snap index bb232ef3c..a2ab8b617 100644 --- a/packages/tree-select/test/__snapshots__/demo.spec.ts.snap +++ b/packages/tree-select/test/__snapshots__/demo.spec.ts.snap @@ -427,9 +427,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="" bind:tap="onClick" - > - - + /> diff --git a/packages/uploader/test/__snapshots__/demo.spec.ts.snap b/packages/uploader/test/__snapshots__/demo.spec.ts.snap index 6aedb62a4..80945da00 100644 --- a/packages/uploader/test/__snapshots__/demo.spec.ts.snap +++ b/packages/uploader/test/__snapshots__/demo.spec.ts.snap @@ -38,9 +38,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> @@ -83,9 +81,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> @@ -139,9 +135,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -171,9 +165,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -193,9 +185,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> @@ -249,9 +239,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -281,9 +269,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -367,9 +353,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -397,9 +381,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-close" style="" bind:tap="onClick" - > - - + /> - - + /> @@ -476,9 +456,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-cross" style="" bind:tap="onClick" - > - - + /> @@ -498,9 +476,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> @@ -569,9 +545,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photo" style="font-size:1.2em;line-height: inherit;" bind:tap="onClick" - > - - + /> - - + /> @@ -640,9 +612,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> @@ -687,9 +657,7 @@ exports[`should render demo and match snapshot 1`] = ` class="custom-class van-icon van-icon-photograph" style="" bind:tap="onClick" - > - - + /> From 752fa1a05a268958ff6789a0e67d0728c2c83488 Mon Sep 17 00:00:00 2001 From: johnsonwong666 <1067100250@qq.com> Date: Wed, 11 Oct 2023 16:23:08 +0800 Subject: [PATCH 5/5] feat(Icon): update support version --- packages/icon/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/icon/README.md b/packages/icon/README.md index 056f6565f..1f6a7d5c9 100644 --- a/packages/icon/README.md +++ b/packages/icon/README.md @@ -108,7 +108,7 @@ | 类名 | 说明 | | ------------ | ------------ | -| info-slot `v1.11.1` | 自定义info内容,开启useInfoSlot有效 | +| info-slot `v1.11.2` | 自定义info内容,开启useInfoSlot有效 | ## 常见问题