-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnew_widgets_preview.html
More file actions
1617 lines (1498 loc) · 64.4 KB
/
new_widgets_preview.html
File metadata and controls
1617 lines (1498 loc) · 64.4 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>EmailWidget - 新控件预览</title>
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
line-height: 1.6;
margin: 0;
padding: 20px;
background: #f5f7fa;
}
.container {
max-width: 1200px;
margin: 0 auto;
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}
.header {
text-align: center;
margin-bottom: 40px;
border-bottom: 3px solid #0078d4;
padding-bottom: 20px;
}
.header h1 {
color: #323130;
font-size: 2.5em;
margin: 0;
}
.header p {
color: #605e5c;
font-size: 1.1em;
margin: 10px 0 0 0;
}
.widget-section {
margin-bottom: 50px;
border: 1px solid #e1dfdd;
border-radius: 8px;
overflow: hidden;
}
.widget-header {
background: #f8f9fa;
padding: 20px;
border-bottom: 1px solid #e1dfdd;
}
.widget-title {
color: #0078d4;
font-size: 1.5em;
margin: 0 0 10px 0;
font-weight: 600;
}
.widget-description {
color: #323130;
margin: 0 0 15px 0;
font-size: 1.1em;
}
.widget-api {
background: #fff3cd;
padding: 15px;
border-radius: 6px;
margin-top: 15px;
}
.api-title {
color: #856404;
font-weight: 600;
margin: 0 0 10px 0;
}
.api-list {
color: #856404;
margin: 0;
padding-left: 20px;
}
.widget-previews {
display: flex;
gap: 20px;
padding: 20px;
flex-wrap: wrap;
}
.preview-item {
flex: 1;
min-width: 300px;
border: 1px solid #e1dfdd;
border-radius: 6px;
padding: 15px;
background: #ffffff;
}
.preview-title {
color: #605e5c;
font-size: 0.9em;
margin: 0 0 10px 0;
font-weight: 600;
text-align: center;
}
.preview-content {
border: 1px solid #e1dfdd;
border-radius: 4px;
padding: 15px;
background: #ffffff;
min-height: 80px;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
}
/* 分隔符样式 */
.separator-solid {
width: 100%;
height: 2px;
background: #0078d4;
margin: 20px 0;
}
.separator-dashed {
width: 100%;
height: 2px;
background: repeating-linear-gradient(
to right,
#ff8c00 0px,
#ff8c00 8px,
transparent 8px,
transparent 16px
);
margin: 20px 0;
}
.separator-dotted {
width: 100%;
height: 2px;
background: repeating-linear-gradient(
to right,
#107c10 0px,
#107c10 4px,
transparent 4px,
transparent 8px
);
margin: 20px 0;
}
/* 指标组件样式 */
.metric-container {
text-align: center;
padding: 20px;
}
.metric-value {
font-size: 2.5em;
font-weight: 700;
color: #0078d4;
margin: 0;
line-height: 1;
}
.metric-label {
font-size: 1.1em;
color: #605e5c;
margin: 8px 0 0 0;
}
.metric-change {
font-size: 0.9em;
font-weight: 600;
margin: 5px 0 0 0;
}
.metric-up {
color: #107c10;
}
.metric-down {
color: #d13438;
}
/* 评分组件样式 */
.rating-container {
text-align: center;
padding: 15px;
}
.rating-stars {
font-size: 1.5em;
color: #ffd700;
margin: 0 0 8px 0;
}
.rating-text {
color: #323130;
font-size: 1em;
margin: 0;
}
.rating-number {
font-size: 2em;
font-weight: 700;
color: #0078d4;
margin: 0;
}
.rating-scale {
font-size: 0.9em;
color: #605e5c;
margin: 5px 0 0 0;
}
/* 标签组件样式 */
.tag-container {
display: flex;
gap: 8px;
flex-wrap: wrap;
padding: 10px;
justify-content: center;
}
.tag {
background: #f3f2f1;
color: #323130;
padding: 6px 12px;
border-radius: 16px;
font-size: 0.9em;
font-weight: 500;
white-space: nowrap;
}
.tag-blue {
background: #cfe2f3;
color: #0078d4;
}
.tag-green {
background: #c6efce;
color: #107c10;
}
.tag-orange {
background: #ffe4cc;
color: #ff8c00;
}
.tag-red {
background: #fde7e9;
color: #d13438;
}
/* 联系信息组件样式 */
.contact-container {
padding: 15px;
}
.contact-item {
display: flex;
align-items: center;
margin: 8px 0;
padding: 8px;
border-radius: 4px;
background: #f8f9fa;
}
.contact-icon {
width: 20px;
text-align: center;
margin-right: 10px;
font-size: 1.1em;
}
.contact-text {
color: #323130;
text-decoration: none;
font-size: 0.95em;
}
.contact-text:hover {
color: #0078d4;
}
/* 社交媒体组件样式 */
.social-container {
display: flex;
gap: 15px;
justify-content: center;
padding: 15px;
}
.social-item {
display: flex;
align-items: center;
padding: 8px 12px;
border-radius: 6px;
text-decoration: none;
color: white;
font-size: 0.9em;
font-weight: 500;
}
.social-facebook {
background: #1877f2;
}
.social-twitter {
background: #1da1f2;
}
.social-linkedin {
background: #0a66c2;
}
.social-icon {
margin-right: 6px;
}
/* 价格组件样式 */
.pricing-container {
text-align: center;
padding: 20px;
}
.price-original {
font-size: 1.1em;
color: #8e8e93;
text-decoration: line-through;
margin: 0;
}
.price-current {
font-size: 2.2em;
font-weight: 700;
color: #d13438;
margin: 5px 0;
}
.price-discount {
background: #107c10;
color: white;
padding: 4px 8px;
border-radius: 4px;
font-size: 0.8em;
font-weight: 600;
margin: 5px 0 0 0;
display: inline-block;
}
.price-period {
color: #605e5c;
font-size: 0.9em;
margin: 5px 0 0 0;
}
/* 徽章组件样式 */
.badge-container {
display: flex;
gap: 15px;
justify-content: center;
align-items: center;
padding: 20px;
}
.badge {
background: #0078d4;
color: white;
padding: 6px 12px;
border-radius: 20px;
font-size: 0.85em;
font-weight: 600;
white-space: nowrap;
}
.badge-number {
background: #d13438;
color: white;
min-width: 24px;
height: 24px;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
font-size: 0.8em;
font-weight: 600;
}
.badge-success {
background: #107c10;
}
.badge-warning {
background: #ff8c00;
}
/* 检查清单组件样式 */
.checklist-container {
padding: 15px;
}
.checklist-item {
display: flex;
align-items: center;
margin: 8px 0;
padding: 8px;
border-radius: 4px;
background: #f8f9fa;
}
.checklist-checkbox {
width: 20px;
text-align: center;
margin-right: 10px;
font-size: 1.2em;
}
.checklist-text {
color: #323130;
font-size: 0.95em;
}
.checklist-completed {
color: #107c10;
}
.checklist-pending {
color: #8e8e93;
}
/* 时间线组件样式 */
.timeline-container {
padding: 15px;
}
.timeline-item {
display: flex;
margin: 15px 0;
position: relative;
}
.timeline-time {
width: 80px;
font-size: 0.85em;
color: #605e5c;
font-weight: 500;
text-align: right;
margin-right: 15px;
}
.timeline-marker {
width: 12px;
height: 12px;
border-radius: 50%;
background: #0078d4;
margin-right: 15px;
margin-top: 3px;
position: relative;
}
.timeline-marker::after {
content: '';
position: absolute;
left: 50%;
top: 12px;
width: 2px;
height: 30px;
background: #e1dfdd;
transform: translateX(-50%);
}
.timeline-item:last-child .timeline-marker::after {
display: none;
}
.timeline-content {
flex: 1;
color: #323130;
font-size: 0.9em;
}
/* 趋势组件样式 */
.trend-container {
text-align: center;
padding: 20px;
}
.trend-value {
font-size: 2em;
font-weight: 700;
margin: 0;
display: flex;
align-items: center;
justify-content: center;
gap: 10px;
}
.trend-up {
color: #107c10;
}
.trend-down {
color: #d13438;
}
.trend-neutral {
color: #605e5c;
}
.trend-arrow {
font-size: 1.2em;
}
.trend-label {
color: #605e5c;
font-size: 1em;
margin: 5px 0 0 0;
}
/* 链接预览组件样式 */
.link-preview-container {
border: 1px solid #e1dfdd;
border-radius: 6px;
overflow: hidden;
margin: 10px;
}
.link-preview-image {
width: 100%;
height: 80px;
background: #f3f2f1;
display: flex;
align-items: center;
justify-content: center;
color: #605e5c;
font-size: 0.9em;
}
.link-preview-content {
padding: 12px;
}
.link-preview-title {
font-size: 1em;
font-weight: 600;
color: #0078d4;
margin: 0 0 5px 0;
text-decoration: none;
}
.link-preview-description {
font-size: 0.85em;
color: #605e5c;
margin: 0 0 5px 0;
line-height: 1.3;
}
.link-preview-url {
font-size: 0.8em;
color: #8e8e93;
margin: 0;
}
/* 统计网格组件样式 */
.stat-grid-container {
display: flex;
flex-wrap: wrap;
gap: 15px;
padding: 15px;
}
.stat-item {
flex: 1;
min-width: 120px;
text-align: center;
padding: 15px;
border: 1px solid #e1dfdd;
border-radius: 6px;
background: #f8f9fa;
}
.stat-value {
font-size: 1.8em;
font-weight: 700;
color: #0078d4;
margin: 0;
}
.stat-label {
font-size: 0.85em;
color: #605e5c;
margin: 5px 0 0 0;
}
/* 强调框组件样式 */
.callout-container {
border-left: 4px solid #0078d4;
padding: 15px;
margin: 15px 0;
}
.callout-info {
background: #f0f8ff;
border-left-color: #0078d4;
}
.callout-warning {
background: #fff8dc;
border-left-color: #ff8c00;
}
.callout-error {
background: #ffe4e1;
border-left-color: #d13438;
}
.callout-success {
background: #f0fff0;
border-left-color: #107c10;
}
.callout-header {
display: flex;
align-items: center;
margin-bottom: 8px;
}
.callout-icon {
margin-right: 8px;
font-size: 1.1em;
}
.callout-title {
font-weight: 600;
color: #323130;
margin: 0;
}
.callout-content {
color: #323130;
margin: 0;
font-size: 0.95em;
line-height: 1.4;
}
/* 代码块组件样式 */
.code-container {
background: #f8f9fa;
border: 1px solid #e1dfdd;
border-radius: 6px;
padding: 15px;
margin: 15px 0;
}
.code-header {
color: #605e5c;
font-size: 0.85em;
margin: 0 0 10px 0;
font-weight: 500;
}
.code-content {
font-family: 'Courier New', Monaco, monospace;
font-size: 0.9em;
color: #323130;
margin: 0;
white-space: pre-wrap;
line-height: 1.4;
}
/* 响应式设计 */
@media (max-width: 768px) {
.widget-previews {
flex-direction: column;
}
.preview-item {
min-width: auto;
}
.social-container {
flex-direction: column;
gap: 10px;
}
.stat-grid-container {
flex-direction: column;
}
}
</style>
</head>
<body>
<div class="container">
<div class="header">
<h1>📧 EmailWidget 新控件预览</h1>
<p>基于邮件兼容性设计的13个新控件建议(含NumericWidget系列抽象设计)</p>
</div>
<!-- 1. SeparatorWidget 分隔符组件 -->
<div class="widget-section">
<div class="widget-header">
<h2 class="widget-title">📏 SeparatorWidget 分隔符组件</h2>
<p class="widget-description">
<strong>功能:</strong>创建视觉分隔线,支持多种样式(实线、虚线、点线),用于分割邮件内容区块,提升可读性。
</p>
<div class="widget-api">
<div class="api-title">🔧 可配置API:</div>
<ul class="api-list">
<li>set_type(type) - 设置分隔符类型:solid(实线)、dashed(虚线)、dotted(点线)</li>
<li>set_color(color) - 设置分隔符颜色</li>
<li>set_thickness(thickness) - 设置分隔符粗细</li>
<li>set_margin(margin) - 设置上下边距</li>
<li>set_width(width) - 设置分隔符宽度百分比</li>
</ul>
</div>
</div>
<div class="widget-previews">
<div class="preview-item">
<div class="preview-title">实线分隔符</div>
<div class="preview-content">
<div style="width: 100%;">
<div>上方内容</div>
<div class="separator-solid"></div>
<div>下方内容</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">虚线分隔符</div>
<div class="preview-content">
<div style="width: 100%;">
<div>上方内容</div>
<div class="separator-dashed"></div>
<div>下方内容</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">点线分隔符</div>
<div class="preview-content">
<div style="width: 100%;">
<div>上方内容</div>
<div class="separator-dotted"></div>
<div>下方内容</div>
</div>
</div>
</div>
</div>
</div>
<!-- 2. NumericWidget 数值组件系列 -->
<div class="widget-section">
<div class="widget-header">
<h2 class="widget-title">🔢 NumericWidget 数值组件系列</h2>
<p class="widget-description">
<strong>设计理念:</strong>抽象出 NumericWidget 父类,统一实现 MetricWidget(指标)、PricingWidget(价格)、TrendWidget(趋势)三个子类,实现代码复用和一致性。
</p>
<div class="widget-api">
<div class="api-title">🏗️ 抽象父类 NumericWidget:</div>
<ul class="api-list">
<li>set_main_value(value) - 设置主要数值</li>
<li>set_label(label) - 设置标签文本</li>
<li>set_prefix(prefix) - 设置前缀(如货币符号)</li>
<li>set_suffix(suffix) - 设置后缀(如单位)</li>
<li>set_theme(theme) - 设置主题色:primary、success、warning、danger、neutral</li>
<li>set_size(size) - 设置尺寸:small、medium、large、xlarge</li>
<li>set_alignment(alignment) - 设置对齐方式</li>
<li>set_background(color) - 设置背景色</li>
</ul>
</div>
</div>
<div class="widget-previews">
<div class="preview-item">
<div class="preview-title">MetricWidget - 指标组件</div>
<div class="preview-content">
<div class="metric-container">
<div class="metric-value">¥125,000</div>
<div class="metric-label">月度收入</div>
<div class="metric-change metric-up">↗ +15.2%</div>
</div>
<div style="margin-top: 15px; font-size: 0.8em; color: #605e5c;">
<strong>专有API:</strong>set_change(), set_comparison(), set_target(), set_unit()
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">PricingWidget - 价格组件</div>
<div class="preview-content">
<div class="pricing-container">
<div class="price-original">¥199</div>
<div class="price-current">¥99</div>
<div class="price-discount">限时5折</div>
</div>
<div style="margin-top: 15px; font-size: 0.8em; color: #605e5c;">
<strong>专有API:</strong>set_original_price(), set_discount(), set_period(), set_currency()
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">TrendWidget - 趋势组件</div>
<div class="preview-content">
<div class="trend-container">
<div class="trend-value trend-up">
<span class="trend-arrow">↗</span>
+15.2%
</div>
<div class="trend-label">月环比增长</div>
</div>
<div style="margin-top: 15px; font-size: 0.8em; color: #605e5c;">
<strong>专有API:</strong>set_trend(), set_arrow(), set_change_value(), set_auto_color()
</div>
</div>
</div>
</div>
</div>
<!-- 3. RatingWidget 评分组件 -->
<div class="widget-section">
<div class="widget-header">
<h2 class="widget-title">⭐ RatingWidget 评分组件</h2>
<p class="widget-description">
<strong>功能:</strong>显示星级评分或数字评分,支持不同评分系统,用于产品评价、服务评分、满意度调查结果。
</p>
<div class="widget-api">
<div class="api-title">🔧 可配置API:</div>
<ul class="api-list">
<li>set_rating(rating) - 设置评分数值</li>
<li>set_max_rating(max) - 设置最高分</li>
<li>set_type(type) - 设置类型:stars(星级)、number(数字)、percentage(百分比)</li>
<li>set_color(color) - 设置颜色</li>
<li>set_show_text(show) - 是否显示文字描述</li>
<li>set_text(text) - 设置描述文字</li>
</ul>
</div>
</div>
<div class="widget-previews">
<div class="preview-item">
<div class="preview-title">星级评分</div>
<div class="preview-content">
<div class="rating-container">
<div class="rating-stars">★★★★☆</div>
<div class="rating-text">4.2/5.0</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">数字评分</div>
<div class="preview-content">
<div class="rating-container">
<div class="rating-number">8.5</div>
<div class="rating-scale">满分10分</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">百分比评分</div>
<div class="preview-content">
<div class="rating-container">
<div class="rating-number">92%</div>
<div class="rating-text">满意度评分</div>
</div>
</div>
</div>
</div>
</div>
<!-- 4. TagWidget 标签组件 -->
<div class="widget-section">
<div class="widget-header">
<h2 class="widget-title">🏷️ TagWidget 标签组件</h2>
<p class="widget-description">
<strong>功能:</strong>显示标签集合,支持不同颜色和样式,用于分类标识、技能标签、状态标记。
</p>
<div class="widget-api">
<div class="api-title">🔧 可配置API:</div>
<ul class="api-list">
<li>add_tag(text, color) - 添加标签</li>
<li>set_tags(tags) - 批量设置标签</li>
<li>set_layout(layout) - 设置布局:horizontal(水平)、vertical(垂直)</li>
<li>set_size(size) - 设置标签大小</li>
<li>set_spacing(spacing) - 设置标签间距</li>
<li>clear_tags() - 清空所有标签</li>
</ul>
</div>
</div>
<div class="widget-previews">
<div class="preview-item">
<div class="preview-title">技能标签</div>
<div class="preview-content">
<div class="tag-container">
<span class="tag tag-blue">Python</span>
<span class="tag tag-green">Django</span>
<span class="tag tag-orange">React</span>
<span class="tag tag-blue">MySQL</span>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">状态标签</div>
<div class="preview-content">
<div class="tag-container">
<span class="tag tag-green">已完成</span>
<span class="tag tag-orange">进行中</span>
<span class="tag tag-red">已延期</span>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">分类标签</div>
<div class="preview-content">
<div class="tag-container">
<span class="tag">前端</span>
<span class="tag">后端</span>
<span class="tag">数据库</span>
<span class="tag">运维</span>
</div>
</div>
</div>
</div>
</div>
<!-- 5. ContactWidget 联系信息组件 -->
<div class="widget-section">
<div class="widget-header">
<h2 class="widget-title">📍 ContactWidget 联系信息组件</h2>
<p class="widget-description">
<strong>功能:</strong>结构化显示联系方式(电话、邮箱、地址等),用于联系卡片、公司信息、客服信息。
</p>
<div class="widget-api">
<div class="api-title">🔧 可配置API:</div>
<ul class="api-list">
<li>set_name(name) - 设置联系人姓名</li>
<li>set_phone(phone) - 设置电话号码</li>
<li>set_email(email) - 设置邮箱地址</li>
<li>set_address(address) - 设置地址</li>
<li>set_website(website) - 设置网站</li>
<li>set_layout(layout) - 设置布局方式</li>
</ul>
</div>
</div>
<div class="widget-previews">
<div class="preview-item">
<div class="preview-title">个人联系信息</div>
<div class="preview-content">
<div class="contact-container">
<div class="contact-item">
<div class="contact-icon">📧</div>
<a href="mailto:john@example.com" class="contact-text">john@example.com</a>
</div>
<div class="contact-item">
<div class="contact-icon">📞</div>
<a href="tel:+1234567890" class="contact-text">+1 (234) 567-890</a>
</div>
<div class="contact-item">
<div class="contact-icon">🌐</div>
<a href="https://example.com" class="contact-text">www.example.com</a>
</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">公司信息</div>
<div class="preview-content">
<div class="contact-container">
<div class="contact-item">
<div class="contact-icon">🏢</div>
<span class="contact-text">ABC科技有限公司</span>
</div>
<div class="contact-item">
<div class="contact-icon">📍</div>
<span class="contact-text">北京市朝阳区xxx路123号</span>
</div>
<div class="contact-item">
<div class="contact-icon">📞</div>
<a href="tel:+86-10-12345678" class="contact-text">+86-10-12345678</a>
</div>
</div>
</div>
</div>
<div class="preview-item">
<div class="preview-title">客服信息</div>
<div class="preview-content">
<div class="contact-container">
<div class="contact-item">
<div class="contact-icon">💬</div>
<span class="contact-text">客服热线:400-123-4567</span>
</div>
<div class="contact-item">
<div class="contact-icon">⏰</div>
<span class="contact-text">服务时间:9:00-18:00</span>
</div>