unika-components 1.0.358 → 1.0.360

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,36 +1,4 @@
1
1
 
2
- .ele-shape {
3
- position: absolute;
4
- overflow: hidden;
5
- }
6
-
7
- .ani-wrap {
8
- width: 100%;
9
- height: 100%;
10
- box-sizing: border-box;
11
- }
12
-
13
- .e-shape {
14
- width: 100%;
15
- height: 100%;
16
- }
17
-
18
- .svg-container :deep(svg) {
19
- width: 100%;
20
- height: 100%;
21
- display: block;
22
- }
23
-
24
- .svg-loading,
25
- .svg-error {
26
- display: flex;
27
- align-items: center;
28
- justify-content: center;
29
- width: 100%;
30
- height: 100%;
31
- background: rgba(0,0,0,0.05);
32
- }
33
-
34
2
  .ele-text {
35
3
  position: relative;
36
4
  }
@@ -150,6 +118,79 @@
150
118
  }
151
119
  }
152
120
 
121
+ #audio {
122
+ position: absolute;
123
+ right: 10px;
124
+ top: 10px;
125
+ z-index: 103;
126
+ width: 30px;
127
+ height: 30px;
128
+ display: flex;
129
+ align-items: center;
130
+ }
131
+
132
+ #audio .mrotate {
133
+ animation: mrotate 5s linear infinite;
134
+ }
135
+
136
+ @keyframes mrotate {
137
+ to {
138
+ transform: rotate(1turn);
139
+ }
140
+ }
141
+
142
+ #audio .audio {
143
+ width: 100%;
144
+ height: 100%;
145
+ display: flex;
146
+ align-items: center;
147
+ justify-content: center;
148
+ color: #fff;
149
+ background: #666;
150
+ border-radius: 50%;
151
+ overflow: hidden;
152
+ cursor: pointer;
153
+ transition: all 0.3s ease;
154
+ }
155
+
156
+ #audio .audio.a-border {
157
+ border: 1px solid #fff;
158
+ }
159
+
160
+ #audio .audio .music-icon {
161
+ display: block;
162
+ width: 60%;
163
+ height: 60%;
164
+ object-fit: contain;
165
+ }
166
+
167
+ #audio .audio .iconfont {
168
+ font-size: 2opx;
169
+ line-height: 1;
170
+ }
171
+ #audio .icon-cancel {
172
+ position: absolute;
173
+ width: 100%;
174
+ height: 100%;
175
+ border-radius: 50%;
176
+ overflow: hidden;
177
+ padding: 15px 0;
178
+ }
179
+ #audio .icon-cancel .icon-h {
180
+ transform: rotate(45deg);
181
+ width: 100%;
182
+ height: 2px;
183
+ margin-top: 15px;
184
+ background: #fff;
185
+ }
186
+ #audio .icon-cancel .icon-h:before, #audio .icon-cancel .icon-h:after {
187
+ content: '';
188
+ position: absolute;
189
+ width: 100%;
190
+ height: 2px;
191
+ background: #fff;
192
+ }
193
+
153
194
  .video-player {
154
195
  position: absolute;
155
196
  overflow: hidden;
@@ -191,41 +232,6 @@
191
232
  opacity: 1;
192
233
  }
193
234
 
194
- .ant-input-number {
195
- box-sizing: border-box;
196
- margin: 0;
197
- padding: 0;
198
- color: rgba(0, 0, 0, 0.88);
199
- font-size: 14px;
200
- line-height: 1.5714285714285714;
201
- list-style: none;
202
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
203
- position: relative;
204
- display: inline-block;
205
- width: 100%;
206
- min-width: 0;
207
- background-color: #ffffff;
208
- background-image: none;
209
- border-width: 1px;
210
- border-style: solid;
211
- border-color: #d9d9d9;
212
- border-radius: 6px;
213
- transition: all 0.2s;
214
- border: 1px solid #d9d9d9;
215
- }
216
- .ant-form-item {
217
- box-sizing: border-box;
218
- margin: 0;
219
- padding: 0;
220
- color: rgba(0, 0, 0, 0.88);
221
- font-size: 14px;
222
- line-height: 1.5714285714285714;
223
- list-style: none;
224
- font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
225
- margin-bottom: 0px;
226
- vertical-align: top;
227
- }
228
-
229
235
  .count-down .drag-point {
230
236
  cursor: default!important
231
237
  }
@@ -391,28 +397,6 @@
391
397
 
392
398
 
393
399
 
394
- .like-button {
395
- display: flex;
396
- flex-direction: column;
397
- align-items: center;
398
- cursor: pointer;
399
- }
400
-
401
- .icon-heart {
402
- font-size: 24px;
403
- color: #e74c3c;
404
- }
405
-
406
- .liked {
407
- color: #f00; /* 更改颜色以示已赞 */
408
- }
409
-
410
- .like-count {
411
- margin-top: 4px;
412
- font-size: 16px;
413
- color: #333;
414
- }
415
-
416
400
  @font-face {
417
401
  font-family: "iconfont"; /* Project id 3350423 */
418
402
  src: url('//at.alicdn.com/t/c/font_3350423_yo5fsq7j90g.woff2?t=1737679854669') format('woff2'),
@@ -548,252 +532,227 @@
548
532
  content: "\e6aa";
549
533
  }
550
534
 
551
- .uni-lotties-component {
552
- width: 100%;
553
- height: 100%;
554
- }
555
-
556
- /* 设计稿尺寸(如375px下20px的按钮) */
557
- .btn {
558
- width: 20px; /* 直接写设计稿px */
559
- height: 10px;
560
- font-size: 14px;
561
- }
562
-
563
- .element-ditu .ani-wrap {
564
- width: 100%;
565
- height: 100%;
566
- overflow: hidden
567
- }
568
-
569
- .element-ditu .map {
570
- width: 100%;
571
- height: 100%
572
- }
573
-
574
- .element-ditu .map .el-button {
575
- width: 100%;
576
- height: 100%;
577
- display: -webkit-box;
578
- display: -ms-flexbox;
579
- display: flex;
580
- -webkit-box-align: center;
581
- -ms-flex-align: center;
582
- align-items: center;
583
- padding: 0;
584
- -webkit-box-pack: center;
585
- -ms-flex-pack: center;
586
- justify-content: center;
587
- background: inherit;
588
- color: inherit;
589
- border: none
590
- }
591
-
592
- .element-ditu .center-map {
593
- width: 100%;
594
- height: 100%;
595
- background: #fff
596
- }
597
-
598
- .element-ditu .mask-map {
599
- position: absolute;
600
- width: 100%;
601
- height: 100%;
602
- top: 0
535
+ .bohao-button {
536
+ position: absolute;
537
+ cursor: pointer;
538
+ user-select: none;
603
539
  }
604
540
 
605
-
606
- #audio {
607
- position: absolute;
608
- right: 10px;
609
- top: 10px;
610
- z-index: 103;
611
- width: 30px;
612
- height: 30px;
541
+ .bohao-container {
613
542
  display: flex;
543
+ justify-content: center;
614
544
  align-items: center;
545
+ width: 100%;
546
+ height: 100%;
547
+ overflow: hidden;
548
+ transition: opacity 0.2s;
615
549
  }
616
550
 
617
- #audio .mrotate {
618
- animation: mrotate 5s linear infinite;
619
- }
620
-
621
- @keyframes mrotate {
622
- to {
623
- transform: rotate(1turn);
624
- }
551
+ .bohao-container:hover {
552
+ opacity: 0.9;
625
553
  }
626
554
 
627
- #audio .audio {
628
- width: 100%;
629
- height: 100%;
555
+ .bohao-content {
630
556
  display: flex;
631
557
  align-items: center;
632
558
  justify-content: center;
633
- color: #fff;
634
- background: #666;
635
- border-radius: 50%;
636
- overflow: hidden;
637
- cursor: pointer;
638
- transition: all 0.3s ease;
639
559
  }
640
560
 
641
- #audio .audio.a-border {
642
- border: 1px solid #fff;
561
+ .btn-text {
562
+ margin-left: 10px;
643
563
  }
644
564
 
645
- #audio .audio .music-icon {
646
- display: block;
647
- width: 60%;
648
- height: 60%;
649
- object-fit: contain;
650
- }
651
-
652
- #audio .audio .iconfont {
653
- font-size: 2opx;
654
- line-height: 1;
655
- }
656
- #audio .icon-cancel {
657
- position: absolute;
658
- width: 100%;
659
- height: 100%;
660
- border-radius: 50%;
661
- overflow: hidden;
662
- padding: 15px 0;
565
+ /* 这里可以添加实际的电话图标样式 */
566
+ .iconfont.hb-tel {
567
+ display: inline-block;
568
+ width: 16px;
569
+ height: 16px;
570
+ background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"/></svg>');
571
+ background-repeat: no-repeat;
572
+ background-position: center;
573
+ background-size: contain;
663
574
  }
664
- #audio .icon-cancel .icon-h {
665
- transform: rotate(45deg);
666
- width: 100%;
667
- height: 2px;
668
- margin-top: 15px;
669
- background: #fff;
670
- }
671
- #audio .icon-cancel .icon-h:before, #audio .icon-cancel .icon-h:after {
672
- content: '';
673
- position: absolute;
674
- width: 100%;
675
- height: 2px;
676
- background: #fff;
677
- }
678
575
 
679
- .form-input {
576
+ .ele-shape {
680
577
  position: absolute;
578
+ overflow: hidden;
681
579
  }
682
580
 
683
- .input-wrapper {
684
- display: flex;
685
- align-items: center;
581
+ .ani-wrap {
686
582
  width: 100%;
687
583
  height: 100%;
688
- padding: 0 10px;
689
584
  box-sizing: border-box;
690
- position: relative; /* 为错误提示添加定位上下文 */
691
- transition: border-color 0.3s;
692
- }
693
-
694
- .required-marker {
695
- color: red;
696
- margin-right: 5px;
697
585
  }
698
586
 
699
- input {
700
- flex: 1;
701
- border: none;
702
- outline: none;
703
- background: transparent;
587
+ .e-shape {
588
+ width: 100%;
704
589
  height: 100%;
705
- padding: 0;
706
- margin: 0;
707
- padding-right: 20px; /* 为错误图标留出空间 */
708
590
  }
709
591
 
710
- input::placeholder {
711
- color: #ccc;
712
- opacity: 1;
592
+ .svg-container :deep(svg) {
593
+ width: 100%;
594
+ height: 100%;
595
+ display: block;
713
596
  }
714
597
 
715
- /* 内联错误样式 */
716
- .inline-error {
717
- position: absolute;
718
- right: 10px;
598
+ .svg-loading,
599
+ .svg-error {
719
600
  display: flex;
720
601
  align-items: center;
602
+ justify-content: center;
603
+ width: 100%;
604
+ height: 100%;
605
+ background: rgba(0,0,0,0.05);
721
606
  }
722
607
 
723
- .error-icon {
608
+ .uni-svg-component {
724
609
  display: inline-block;
725
- width: 16px;
726
- height: 16px;
727
- line-height: 16px;
728
- text-align: center;
729
- border-radius: 50%;
730
- background-color: #ff4d4f;
731
- color: white;
732
- font-size: 12px;
733
- font-weight: bold;
734
- margin-left: 5px;
735
- }
736
-
737
- .error-tooltip {
738
- position: absolute;
739
- right: 0;
740
- top: 100%;
741
- background-color: #ff4d4f;
742
- color: white;
743
- padding: 4px 8px;
744
- border-radius: 4px;
745
- font-size: 12px;
746
- white-space: nowrap;
747
- opacity: 0;
748
- transition: opacity 0.3s;
749
- pointer-events: none;
750
- }
751
-
752
- .error-icon:hover + .error-tooltip {
753
- opacity: 1;
754
610
  }
755
611
 
756
- .bohao-button {
757
- position: absolute;
758
- cursor: pointer;
759
- user-select: none;
760
- }
612
+ .uni-build-up-component {
613
+ }
761
614
 
762
- .bohao-container {
615
+ .like-button {
763
616
  display: flex;
764
- justify-content: center;
617
+ flex-direction: column;
765
618
  align-items: center;
619
+ cursor: pointer;
620
+ }
621
+
622
+ .icon-heart {
623
+ font-size: 24px;
624
+ color: #e74c3c;
625
+ }
626
+
627
+ .liked {
628
+ color: #f00; /* 更改颜色以示已赞 */
629
+ }
630
+
631
+ .like-count {
632
+ margin-top: 4px;
633
+ font-size: 16px;
634
+ color: #333;
635
+ }
636
+
637
+ .uni-lotties-component {
766
638
  width: 100%;
767
639
  height: 100%;
768
- overflow: hidden;
769
- transition: opacity 0.2s;
770
640
  }
771
641
 
772
- .bohao-container:hover {
773
- opacity: 0.9;
642
+ .element-ditu .ani-wrap {
643
+ width: 100%;
644
+ height: 100%;
645
+ overflow: hidden
774
646
  }
775
647
 
776
- .bohao-content {
777
- display: flex;
778
- align-items: center;
779
- justify-content: center;
648
+ .element-ditu .map {
649
+ width: 100%;
650
+ height: 100%
780
651
  }
781
652
 
782
- .btn-text {
783
- margin-left: 10px;
653
+ .element-ditu .map .el-button {
654
+ width: 100%;
655
+ height: 100%;
656
+ display: -webkit-box;
657
+ display: -ms-flexbox;
658
+ display: flex;
659
+ -webkit-box-align: center;
660
+ -ms-flex-align: center;
661
+ align-items: center;
662
+ padding: 0;
663
+ -webkit-box-pack: center;
664
+ -ms-flex-pack: center;
665
+ justify-content: center;
666
+ background: inherit;
667
+ color: inherit;
668
+ border: none
784
669
  }
785
670
 
786
- /* 这里可以添加实际的电话图标样式 */
787
- .iconfont.hb-tel {
671
+ .element-ditu .center-map {
672
+ width: 100%;
673
+ height: 100%;
674
+ background: #fff
675
+ }
676
+
677
+ .element-ditu .mask-map {
678
+ position: absolute;
679
+ width: 100%;
680
+ height: 100%;
681
+ top: 0
682
+ }
683
+
684
+
685
+ .ant-input-number {
686
+ box-sizing: border-box;
687
+ margin: 0;
688
+ padding: 0;
689
+ color: rgba(0, 0, 0, 0.88);
690
+ font-size: 14px;
691
+ line-height: 1.5714285714285714;
692
+ list-style: none;
693
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
694
+ position: relative;
788
695
  display: inline-block;
789
- width: 16px;
790
- height: 16px;
791
- background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="white"><path d="M20.01 15.38c-1.23 0-2.42-.2-3.53-.56-.35-.12-.74-.03-1.01.24l-1.57 1.97c-2.83-1.35-5.48-3.9-6.89-6.83l1.95-1.66c.27-.28.35-.67.24-1.02-.37-1.11-.56-2.3-.56-3.53 0-.54-.45-.99-.99-.99H4.19C3.65 3 3 3.24 3 3.99 3 13.28 10.73 21 20.01 21c.71 0 .99-.63.99-1.18v-3.45c0-.54-.45-.99-.99-.99z"/></svg>');
792
- background-repeat: no-repeat;
793
- background-position: center;
794
- background-size: contain;
696
+ width: 100%;
697
+ min-width: 0;
698
+ background-color: #ffffff;
699
+ background-image: none;
700
+ border-width: 1px;
701
+ border-style: solid;
702
+ border-color: #d9d9d9;
703
+ border-radius: 6px;
704
+ transition: all 0.2s;
705
+ border: 1px solid #d9d9d9;
706
+ }
707
+ .ant-form-item {
708
+ box-sizing: border-box;
709
+ margin: 0;
710
+ padding: 0;
711
+ color: rgba(0, 0, 0, 0.88);
712
+ font-size: 14px;
713
+ line-height: 1.5714285714285714;
714
+ list-style: none;
715
+ font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
716
+ margin-bottom: 0px;
717
+ vertical-align: top;
795
718
  }
796
719
 
720
+ /* 设计稿尺寸(如375px下20px的按钮) */
721
+ .btn {
722
+ width: 20px; /* 直接写设计稿px */
723
+ height: 10px;
724
+ font-size: 14px;
725
+ }
726
+
727
+ .form-submit {
728
+ cursor: pointer;
729
+ transition: all 0.2s;
730
+ outline: none;
731
+ border: none;
732
+ }
733
+
734
+ .form-submit:hover {
735
+ opacity: 0.9;
736
+ transform: translateY(-1px);
737
+ }
738
+
739
+ .form-submit:active {
740
+ opacity: 0.8;
741
+ transform: translateY(0);
742
+ }
743
+
744
+ .form-submit:disabled {
745
+ opacity: 0.6;
746
+ cursor: not-allowed;
747
+ transform: none !important;
748
+ }
749
+
750
+ .form-container {
751
+ position: relative;
752
+ width: 100%;
753
+ height: 100%;
754
+ }
755
+
797
756
  .effect-container {
798
757
  will-change: transform;
799
758
  }
@@ -850,39 +809,80 @@ input::placeholder {
850
809
  -webkit-animation: snow 5s linear infinite;
851
810
  animation: snow 5s linear infinite
852
811
  }
853
-
854
- .uni-build-up-component {
855
- }
856
812
 
857
- .form-container {
858
- position: relative;
813
+ .form-input {
814
+ position: absolute;
815
+ }
816
+
817
+ .input-wrapper {
818
+ display: flex;
819
+ align-items: center;
859
820
  width: 100%;
860
821
  height: 100%;
822
+ padding: 0 10px;
823
+ box-sizing: border-box;
824
+ position: relative; /* 为错误提示添加定位上下文 */
825
+ transition: border-color 0.3s;
861
826
  }
862
827
 
863
- .uni-svg-component {
864
- display: inline-block;
828
+ .required-marker {
829
+ color: red;
830
+ margin-right: 5px;
865
831
  }
866
832
 
867
- .form-submit {
868
- cursor: pointer;
869
- transition: all 0.2s;
870
- outline: none;
833
+ input {
834
+ flex: 1;
871
835
  border: none;
836
+ outline: none;
837
+ background: transparent;
838
+ height: 100%;
839
+ padding: 0;
840
+ margin: 0;
841
+ padding-right: 20px; /* 为错误图标留出空间 */
872
842
  }
873
843
 
874
- .form-submit:hover {
875
- opacity: 0.9;
876
- transform: translateY(-1px);
844
+ input::placeholder {
845
+ color: #ccc;
846
+ opacity: 1;
877
847
  }
878
848
 
879
- .form-submit:active {
880
- opacity: 0.8;
881
- transform: translateY(0);
849
+ /* 内联错误样式 */
850
+ .inline-error {
851
+ position: absolute;
852
+ right: 10px;
853
+ display: flex;
854
+ align-items: center;
882
855
  }
883
856
 
884
- .form-submit:disabled {
885
- opacity: 0.6;
886
- cursor: not-allowed;
887
- transform: none !important;
857
+ .error-icon {
858
+ display: inline-block;
859
+ width: 16px;
860
+ height: 16px;
861
+ line-height: 16px;
862
+ text-align: center;
863
+ border-radius: 50%;
864
+ background-color: #ff4d4f;
865
+ color: white;
866
+ font-size: 12px;
867
+ font-weight: bold;
868
+ margin-left: 5px;
869
+ }
870
+
871
+ .error-tooltip {
872
+ position: absolute;
873
+ right: 0;
874
+ top: 100%;
875
+ background-color: #ff4d4f;
876
+ color: white;
877
+ padding: 4px 8px;
878
+ border-radius: 4px;
879
+ font-size: 12px;
880
+ white-space: nowrap;
881
+ opacity: 0;
882
+ transition: opacity 0.3s;
883
+ pointer-events: none;
884
+ }
885
+
886
+ .error-icon:hover + .error-tooltip {
887
+ opacity: 1;
888
888
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unika-components",
3
- "version": "1.0.358",
3
+ "version": "1.0.360",
4
4
  "private": false,
5
5
  "main": "dist/unika-components.umd.js",
6
6
  "module": "dist/unika-components.esm.js",