Skip to content

Commit c7bd257

Browse files
committed
chore: update snapshot
1 parent 4cfd626 commit c7bd257

File tree

15 files changed

+87
-40
lines changed

15 files changed

+87
-40
lines changed

internal/utils/src/catalogs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,7 @@ export const catalogs = {
9090
},
9191
tdesign: {
9292
'@tdesign/site-components': '^0.17.0',
93-
'tdesign-icons-view': '^0.3.7',
94-
'tdesign-icons-vue-next': '0.4.0',
93+
'tdesign-icons-vue-next': '~0.4.1',
9594
'tdesign-publish-cli': '^0.0.12',
9695
'tdesign-theme-generator': '^1.1.8',
9796
},

packages/components/avatar/__tests__/__snapshots__/avatar.test.tsx.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ exports[`Avatar > props > :content[string/function] 2`] = `
6161
class="t-icon t-icon-image"
6262
fill="none"
6363
height="1em"
64-
style="font-size: 24px;"
64+
style="fill: none; font-size: 24px;"
6565
viewBox="0 0 24 24"
6666
width="1em"
6767
>
@@ -178,7 +178,7 @@ exports[`Avatar > props > :default[string/function] 2`] = `
178178
class="t-icon t-icon-image"
179179
fill="none"
180180
height="1em"
181-
style="font-size: 24px;"
181+
style="fill: none; font-size: 24px;"
182182
viewBox="0 0 24 24"
183183
width="1em"
184184
>
@@ -325,7 +325,7 @@ exports[`AvatarGroup > props > :collapseAvatar[slot] 1`] = `
325325
class="t-icon t-icon-image"
326326
fill="none"
327327
height="1em"
328-
style="font-size: 24px;"
328+
style="fill: none; font-size: 24px;"
329329
viewBox="0 0 24 24"
330330
width="1em"
331331
>
@@ -456,7 +456,7 @@ exports[`AvatarGroup > props > :collapseAvatar[string/function] 1`] = `
456456
class="t-icon t-icon-image"
457457
fill="none"
458458
height="1em"
459-
style="font-size: 24px;"
459+
style="fill: none; font-size: 24px;"
460460
viewBox="0 0 24 24"
461461
width="1em"
462462
>
@@ -581,7 +581,7 @@ exports[`AvatarGroup > props > :collapseAvatar[string/function] 2`] = `
581581
class="t-icon t-icon-image"
582582
fill="none"
583583
height="1em"
584-
style="font-size: 24px;"
584+
style="fill: none; font-size: 24px;"
585585
viewBox="0 0 24 24"
586586
width="1em"
587587
>

packages/components/back-top/__tests__/__snapshots__/back-top.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ exports[`BackTop > props > :offset[Array] 1`] = `
7171
class="t-icon t-icon-backtop t-back-top__icon"
7272
fill="none"
7373
height="1em"
74+
style="fill: none;"
7475
viewBox="0 0 24 24"
7576
width="1em"
7677
>
@@ -106,6 +107,7 @@ exports[`BackTop > props > :shape[circle/square] > shape-circle 1`] = `
106107
class="t-icon t-icon-backtop t-back-top__icon"
107108
fill="none"
108109
height="1em"
110+
style="fill: none;"
109111
viewBox="0 0 24 24"
110112
width="1em"
111113
>
@@ -141,6 +143,7 @@ exports[`BackTop > props > :shape[circle/square] > shape-square 1`] = `
141143
class="t-icon t-icon-backtop t-back-top__icon"
142144
fill="none"
143145
height="1em"
146+
style="fill: none;"
144147
viewBox="0 0 24 24"
145148
width="1em"
146149
>

packages/components/color-picker/__tests__/__snapshots__/color-picker-panel.test.tsx.snap

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -327,6 +327,7 @@ exports[`ColorPickerPanel > :props > :colorModes[monochrome,linear-gradient] 1`]
327327
class="t-icon t-icon-add"
328328
fill="none"
329329
height="1em"
330+
style="fill: none;"
330331
viewBox="0 0 24 24"
331332
width="1em"
332333
>
@@ -1232,6 +1233,7 @@ exports[`ColorPickerPanel > :props > :colorModes[monochrome,linear-gradient] 2`]
12321233
class="t-icon t-icon-add"
12331234
fill="none"
12341235
height="1em"
1236+
style="fill: none;"
12351237
viewBox="0 0 24 24"
12361238
width="1em"
12371239
>
@@ -1669,6 +1671,7 @@ exports[`ColorPickerPanel > :props > :colorModes[monochrome,linear-gradient] 3`]
16691671
class="t-icon t-icon-add"
16701672
fill="none"
16711673
height="1em"
1674+
style="fill: none;"
16721675
viewBox="0 0 24 24"
16731676
width="1em"
16741677
>
@@ -2566,6 +2569,7 @@ exports[`ColorPickerPanel > :ui > :mount 1`] = `
25662569
class="t-icon t-icon-add"
25672570
fill="none"
25682571
height="1em"
2572+
style="fill: none;"
25692573
viewBox="0 0 24 24"
25702574
width="1em"
25712575
>

packages/components/date-picker/__tests__/__snapshots__/date-picker.test.tsx.snap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ exports[`DatePicker > :mode 1`] = `
3535
class="t-icon t-icon-calendar"
3636
fill="none"
3737
height="1em"
38+
style="fill: none;"
3839
viewBox="0 0 24 24"
3940
width="1em"
4041
>
@@ -146,6 +147,7 @@ exports[`DatePicker > :range 1`] = `
146147
class="t-icon t-icon-calendar"
147148
fill="none"
148149
height="1em"
150+
style="fill: none;"
149151
viewBox="0 0 24 24"
150152
width="1em"
151153
>
@@ -216,6 +218,7 @@ exports[`DatePicker > :value 1`] = `
216218
class="t-icon t-icon-calendar"
217219
fill="none"
218220
height="1em"
221+
style="fill: none;"
219222
viewBox="0 0 24 24"
220223
width="1em"
221224
>

packages/components/icon/icon.en-US.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@
44

55
Icons are published and managed as a separate npm package. If you want to use it directly in your project, please install `tdesign-icons-vue-next`. At the same time, `tdesign-vue-next` also includes icons and supports direct use through `t-icon`.
66

7+
On-demand icon importing is recommended to reduce the output size. Additionally, icons imported on-demand support arbitrary weight adjustments and up to four color fills, providing a better user experience.
8+
9+
<div style="background: #ecf2fe; display: flex; align-items: center; line-height: 20px; padding: 14px 24px; border-radius: 3px; color: #555a65;margin:16px 0">
10+
Visit <a style="margin: 0 4px" href='/icons-en'> TDesign Icons </a> to view and experience all supported icons.
11+
</div>
12+
13+
714
### Import on-demand
815

916
SVG icons can be imported on demand. When using the Icon component in component development, SVG icons are imported on demand.

packages/components/icon/icon.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
推荐按需引用图标,减少产物的体积。同时,按需引入的图标还支持`任意的粗细调整``最多四种颜色填充`功能,具有更好的使用体验。
99

1010
<div style="background: #ecf2fe; display: flex; align-items: center; line-height: 20px; padding: 14px 24px; border-radius: 3px; color: #555a65;margin:16px 0">
11-
打开 <a href='/icons'> TDesign 图标独立站点 </a> 查看全部支持的图标。
11+
打开 <a style="margin: 0 4px" href='/icons'> TDesign 图标独立站点 </a> 查看全部支持的图标。
1212
</div>
1313

1414
### 按需引入使用图标

packages/components/image-viewer/__tests__/__snapshots__/image-viewer.test.tsx.snap

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
2020
class="t-icon t-icon-chevron-down"
2121
fill="none"
2222
height="1em"
23+
style="fill: none;"
2324
viewBox="0 0 24 24"
2425
width="1em"
2526
>
@@ -78,7 +79,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
7879
class="t-icon t-icon-image"
7980
fill="none"
8081
height="1em"
81-
style="font-size: 24px;"
82+
style="fill: none; font-size: 24px;"
8283
viewBox="0 0 24 24"
8384
width="1em"
8485
>
@@ -164,7 +165,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
164165
class="t-icon t-icon-image"
165166
fill="none"
166167
height="1em"
167-
style="font-size: 24px;"
168+
style="fill: none; font-size: 24px;"
168169
viewBox="0 0 24 24"
169170
width="1em"
170171
>
@@ -250,7 +251,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
250251
class="t-icon t-icon-image"
251252
fill="none"
252253
height="1em"
253-
style="font-size: 24px;"
254+
style="fill: none; font-size: 24px;"
254255
viewBox="0 0 24 24"
255256
width="1em"
256257
>
@@ -320,7 +321,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
320321
class="t-icon t-icon-chevron-left"
321322
fill="none"
322323
height="1em"
323-
style="font-size: 24px; transform: rotate(0deg);"
324+
style="fill: none; font-size: 24px; transform: rotate(0deg);"
324325
viewBox="0 0 24 24"
325326
width="1em"
326327
>
@@ -345,7 +346,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
345346
class="t-icon t-icon-chevron-left"
346347
fill="none"
347348
height="1em"
348-
style="font-size: 24px; transform: rotate(180deg);"
349+
style="fill: none; font-size: 24px; transform: rotate(180deg);"
349350
viewBox="0 0 24 24"
350351
width="1em"
351352
>
@@ -371,7 +372,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
371372
class="t-icon t-icon-close"
372373
fill="none"
373374
height="1em"
374-
style="font-size: 24px;"
375+
style="fill: none; font-size: 24px;"
375376
viewBox="0 0 24 24"
376377
width="1em"
377378
>
@@ -402,6 +403,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
402403
class="t-icon t-icon-mirror t-size-m"
403404
fill="none"
404405
height="1em"
406+
style="fill: none;"
405407
viewBox="0 0 24 24"
406408
width="1em"
407409
>
@@ -457,6 +459,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
457459
class="t-icon t-icon-rotation t-size-m"
458460
fill="none"
459461
height="1em"
462+
style="fill: none;"
460463
viewBox="0 0 24 24"
461464
width="1em"
462465
>
@@ -483,6 +486,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
483486
class="t-icon t-icon-zoom-out t-size-m"
484487
fill="none"
485488
height="1em"
489+
style="fill: none;"
486490
viewBox="0 0 24 24"
487491
width="1em"
488492
>
@@ -530,6 +534,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
530534
class="t-icon t-icon-zoom-in t-size-m"
531535
fill="none"
532536
height="1em"
537+
style="fill: none;"
533538
viewBox="0 0 24 24"
534539
width="1em"
535540
>
@@ -570,6 +575,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
570575
class="t-icon t-icon-image t-size-m"
571576
fill="none"
572577
height="1em"
578+
style="fill: none;"
573579
viewBox="0 0 24 24"
574580
width="1em"
575581
>
@@ -616,6 +622,7 @@ exports[`Image-viewer > :props > defaultVisible 1`] = `
616622
class="t-icon t-icon-download t-size-m"
617623
fill="none"
618624
height="1em"
625+
style="fill: none;"
619626
viewBox="0 0 24 24"
620627
width="1em"
621628
>

packages/components/image/__tests__/__snapshots__/image.test.tsx.snap

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ exports[`Image Component > props.overlayContent works fine 1`] = `
105105
class="t-icon t-icon-image"
106106
fill="none"
107107
height="1em"
108-
style="font-size: 24px;"
108+
style="fill: none; font-size: 24px;"
109109
viewBox="0 0 24 24"
110110
width="1em"
111111
>
@@ -206,7 +206,7 @@ exports[`Image Component > props.placeholder works fine 1`] = `
206206
class="t-icon t-icon-image"
207207
fill="none"
208208
height="1em"
209-
style="font-size: 24px;"
209+
style="fill: none; font-size: 24px;"
210210
viewBox="0 0 24 24"
211211
width="1em"
212212
>
@@ -322,7 +322,7 @@ exports[`Image Component > slots.overlay-content works fine 1`] = `
322322
class="t-icon t-icon-image"
323323
fill="none"
324324
height="1em"
325-
style="font-size: 24px;"
325+
style="fill: none; font-size: 24px;"
326326
viewBox="0 0 24 24"
327327
width="1em"
328328
>
@@ -417,7 +417,7 @@ exports[`Image Component > slots.overlayContent works fine 1`] = `
417417
class="t-icon t-icon-image"
418418
fill="none"
419419
height="1em"
420-
style="font-size: 24px;"
420+
style="fill: none; font-size: 24px;"
421421
viewBox="0 0 24 24"
422422
width="1em"
423423
>
@@ -522,7 +522,7 @@ exports[`Image Component > slots.placeholder works fine 1`] = `
522522
class="t-icon t-icon-image"
523523
fill="none"
524524
height="1em"
525-
style="font-size: 24px;"
525+
style="fill: none; font-size: 24px;"
526526
viewBox="0 0 24 24"
527527
width="1em"
528528
>

packages/components/tabs/__tests__/__snapshots__/tabs.test.tsx.snap

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ exports[`Tabs > :props > :addable 1`] = `
4545
class="t-icon t-icon-add"
4646
fill="none"
4747
height="1em"
48+
style="fill: none;"
4849
viewBox="0 0 24 24"
4950
width="1em"
5051
>

0 commit comments

Comments
 (0)