Skip to content

Commit 81244de

Browse files
authored
feat(Icon): upgrade cdn-iconfont to 0.4.3 (#4561)
* feat(Icon): upgrade cdn-iconfont to 0.4.3 * chore: update snapshot
1 parent 5869539 commit 81244de

8 files changed

Lines changed: 911 additions & 873 deletions

File tree

packages/components/common/style/icons.less

Lines changed: 433 additions & 431 deletions
Large diffs are not rendered by default.

packages/components/icon/__test__/__snapshots__/demo.test.js.snap

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28790,6 +28790,36 @@ exports[`Icon Icon base demo works fine 1`] = `
2879028790
speechless
2879128791
</wx-view>
2879228792
</wx-view>
28793+
<wx-view
28794+
class="demo__card"
28795+
>
28796+
<t-icon
28797+
data-name="star-1-filled"
28798+
name="star-1-filled"
28799+
size="48rpx"
28800+
bind:click="onIconTap"
28801+
/>
28802+
<wx-view
28803+
class="demo__card-name"
28804+
>
28805+
star-1-filled
28806+
</wx-view>
28807+
</wx-view>
28808+
<wx-view
28809+
class="demo__card"
28810+
>
28811+
<t-icon
28812+
data-name="star-1"
28813+
name="star-1"
28814+
size="48rpx"
28815+
bind:click="onIconTap"
28816+
/>
28817+
<wx-view
28818+
class="demo__card-name"
28819+
>
28820+
star-1
28821+
</wx-view>
28822+
</wx-view>
2879328823
<wx-view
2879428824
class="demo__card"
2879528825
>

packages/components/icon/_example/data.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,6 +1918,8 @@ const icons = [
19181918
'speechless-1',
19191919
'speechless-filled',
19201920
'speechless',
1921+
'star-1-filled',
1922+
'star-1',
19211923
'star-filled',
19221924
'star',
19231925
'statue-of-jesus-filled',

packages/components/icon/icon.less

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
@font-face {
55
font-family: @prefix;
66
src:
7-
url('https://tdesign.gtimg.com/icon/0.4.2/fonts/t.eot'),
8-
url('https://tdesign.gtimg.com/icon/0.4.2/fonts/t.eot?#iefix') format('ded-opentype'),
9-
url('https://tdesign.gtimg.com/icon/0.4.2/fonts/t.woff') format('woff'),
10-
url('https://tdesign.gtimg.com/icon/0.4.2/fonts/t.ttf') format('truetype'),
11-
url('https://tdesign.gtimg.com/icon/0.4.2/fonts/t.svg') format('svg'); /* iOS 4.1- */
7+
url('https://tdesign.gtimg.com/icon/0.4.3/fonts/t.eot'),
8+
url('https://tdesign.gtimg.com/icon/0.4.3/fonts/t.eot?#iefix') format('ded-opentype'),
9+
url('https://tdesign.gtimg.com/icon/0.4.3/fonts/t.woff') format('woff'),
10+
url('https://tdesign.gtimg.com/icon/0.4.3/fonts/t.ttf') format('truetype'),
11+
url('https://tdesign.gtimg.com/icon/0.4.3/fonts/t.svg') format('svg'); /* iOS 4.1- */
1212
font-weight: normal;
1313
font-style: normal;
1414
}

0 commit comments

Comments
 (0)