hy-app 0.6.8 → 0.6.9

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.
Files changed (34) hide show
  1. package/components/hy-action-sheet/index.scss +2 -2
  2. package/components/hy-avatar/index.scss +2 -2
  3. package/components/hy-cell-item/index.scss +8 -9
  4. package/components/hy-code-input/index.scss +2 -2
  5. package/components/hy-config-provider/hy-config-provider.vue +3 -3
  6. package/components/hy-config-provider/props.ts +1 -1
  7. package/components/hy-float-button/index.scss +1 -1
  8. package/components/hy-index-bar/index.scss +1 -1
  9. package/components/hy-line-progress/index.scss +3 -3
  10. package/components/hy-menu/index.scss +1 -1
  11. package/components/hy-modal/index.scss +2 -2
  12. package/components/hy-notice-bar/index.scss +1 -1
  13. package/components/hy-popover/index.scss +6 -6
  14. package/components/hy-popup/index.scss +5 -5
  15. package/components/hy-scroll-list/index.scss +2 -2
  16. package/components/hy-search/index.scss +1 -1
  17. package/components/hy-signature/index.scss +1 -1
  18. package/components/hy-skeleton/index.scss +4 -4
  19. package/components/hy-slider/index.scss +3 -3
  20. package/components/hy-steps/index.scss +3 -3
  21. package/components/hy-subsection/index.scss +8 -8
  22. package/components/hy-swiper/index.scss +2 -2
  23. package/components/hy-switch/index.scss +3 -3
  24. package/components/hy-tabbar-group/index.scss +2 -2
  25. package/components/hy-tabs/index.scss +1 -1
  26. package/components/hy-tag/index.scss +1 -1
  27. package/components/hy-textarea/index.scss +4 -4
  28. package/components/hy-toast/index.scss +1 -1
  29. package/components/hy-tooltip/index.scss +6 -6
  30. package/components/hy-warn/index.scss +1 -1
  31. package/libs/css/_mixin.scss +3 -3
  32. package/libs/css/common.scss +1 -1
  33. package/libs/css/theme.scss +53 -24
  34. package/package.json +1 -1
@@ -75,7 +75,7 @@
75
75
  top: 20px;
76
76
  right: 15px;
77
77
  background-color: rgba(128, 128, 128, 0.25);
78
- border-radius: $hy-border-radius-circle;
78
+ border-radius: $hy-radius-circle;
79
79
  padding: $hy-border-margin-padding-sm;
80
80
  }
81
81
 
@@ -112,7 +112,7 @@
112
112
  width: $hy-img-size-base;
113
113
  height: $hy-img-size-base;
114
114
  margin: 0 auto 7px;
115
- border-radius: $hy-border-radius-base;
115
+ border-radius: $hy-radius-base;
116
116
  }
117
117
 
118
118
  @include e(panel-title) {
@@ -7,7 +7,7 @@
7
7
  justify-content: center;
8
8
 
9
9
  @include m(circle) {
10
- border-radius: $hy-border-radius-circle;
10
+ border-radius: $hy-radius-circle;
11
11
  }
12
12
 
13
13
  @include m(square) {
@@ -34,7 +34,7 @@
34
34
  height: 100%;
35
35
 
36
36
  @include m(circle) {
37
- border-radius: $hy-border-radius-circle;
37
+ border-radius: $hy-radius-circle;
38
38
  overflow: hidden;
39
39
  }
40
40
 
@@ -12,22 +12,22 @@
12
12
  /* 大 */
13
13
  @include m(large) {
14
14
  font-size: $hy-font-size-lg;
15
- padding: 35rpx;
16
- line-height: 25px;
15
+ padding: $hy-border-margin-padding-lg;
16
+ line-height: $hy-line-height-lg;
17
17
  }
18
18
 
19
19
  /* 默认 */
20
20
  @include m(medium) {
21
21
  font-size: $hy-font-size-base;
22
- padding: 30rpx;
23
- line-height: 20px;
22
+ padding: $hy-border-margin-padding-base;
23
+ line-height: $hy-line-height-base;
24
24
  }
25
25
 
26
26
  /* 小 */
27
27
  @include m(small) {
28
28
  font-size: $hy-font-size-sm;
29
- padding: 25rpx;
30
- line-height: 15px;
29
+ padding: $hy-border-margin-padding-sm;
30
+ line-height: $hy-line-height-sm;
31
31
  }
32
32
 
33
33
  /*点击状态*/
@@ -51,9 +51,8 @@
51
51
 
52
52
  /*sub值*/
53
53
  @include e(sub) {
54
- margin-top: $hy-border-margin-padding-sm;
55
54
  color: $hy-text-color--grey;
56
- font-size: 24rpx;
55
+ font-size: $hy-font-size-sm;
57
56
  }
58
57
  }
59
58
  }
@@ -64,7 +63,7 @@
64
63
  max-width: 90%;
65
64
  flex: 1;
66
65
  @include m(value) {
67
- line-height: 24px;
66
+ line-height: $hy-line-height-base;
68
67
  color: $hy-text-color--grey;
69
68
  margin-right: $hy-border-margin-padding-sm;
70
69
  }
@@ -27,7 +27,7 @@
27
27
  /* 无边框 */
28
28
  @include e(no) {
29
29
  background-color: $hy-background--track;
30
- border-radius: $hy-border-radius-sm;
30
+ border-radius: $hy-radius-sm;
31
31
  @include m(active) {
32
32
  &:before {
33
33
  content: "";
@@ -67,7 +67,7 @@
67
67
  content: "";
68
68
  position: absolute;
69
69
  bottom: 0;
70
- border-radius: $hy-border-radius-semicircle;
70
+ border-radius: $hy-radius-semicircle;
71
71
  width: 40px;
72
72
  background-color: $hy-border-color--2;
73
73
  }
@@ -38,9 +38,9 @@ const themeStyle = computed(() => {
38
38
  {
39
39
  '--hy-theme-color': props.themeColor,
40
40
  '--hy-theme--light':
41
- props.theme === 'light'
42
- ? colorGradient(props.themeColor)[80]
43
- : colorGradient(props.themeColor, '#000')[60],
41
+ props.theme === 'dark'
42
+ ? colorGradient(props.themeColor, '#000')[60]
43
+ : colorGradient(props.themeColor)[80],
44
44
  padding: addUnit(props.padding)
45
45
  },
46
46
  props.customStyle
@@ -8,7 +8,7 @@ const configProviderProps = {
8
8
  * */
9
9
  theme: {
10
10
  type: String,
11
- default: 'light'
11
+ default: ''
12
12
  },
13
13
  /** 主题色 */
14
14
  themeColor: {
@@ -11,7 +11,7 @@
11
11
  @include borderRadio(square);
12
12
 
13
13
  @include e(shadow) {
14
- box-shadow: $hy-box-shadow;
14
+ box-shadow: $hy-shadow-base;
15
15
  }
16
16
 
17
17
  //@include e(animation) {
@@ -34,7 +34,7 @@
34
34
  justify-content: center;
35
35
  color: $hy-text-color--3;
36
36
  margin: 2rpx 0;
37
- border-radius: $hy-border-radius-sm;
37
+ border-radius: $hy-radius-sm;
38
38
 
39
39
  @include is(active) {
40
40
  position: relative;
@@ -8,11 +8,11 @@
8
8
  flex: 1;
9
9
  width: 100%;
10
10
  overflow: hidden;
11
- border-radius: $hy-border-radius-semicircle;
11
+ border-radius: $hy-radius-semicircle;
12
12
 
13
13
  @include e(background) {
14
14
  background-color: $hy-background--empty;
15
- border-radius: $hy-border-radius-semicircle;
15
+ border-radius: $hy-radius-semicircle;
16
16
  flex: 1;
17
17
  }
18
18
 
@@ -24,7 +24,7 @@
24
24
  align-items: center;
25
25
  @include flex(row);
26
26
  color: #ffffff;
27
- border-radius: $hy-border-radius-semicircle;
27
+ border-radius: $hy-radius-semicircle;
28
28
  transition: width 0.5s ease;
29
29
  justify-content: flex-end;
30
30
  background-color: $hy-primary;
@@ -33,7 +33,7 @@
33
33
  height: 15px;
34
34
  background: $hy-primary;
35
35
  transform: translateY(-50%);
36
- border-radius: $hy-border-radius-semicircle;
36
+ border-radius: $hy-radius-semicircle;
37
37
  }
38
38
 
39
39
  &:active {
@@ -3,7 +3,7 @@
3
3
 
4
4
  @include b(modal) {
5
5
  max-width: 650rpx;
6
- border-radius: $hy-border-radius-base;
6
+ border-radius: $hy-radius-base;
7
7
  overflow: hidden;
8
8
 
9
9
  /* 标题 */
@@ -65,7 +65,7 @@
65
65
  justify-content: center;
66
66
  align-items: center;
67
67
  height: 43px;
68
- border-radius: $hy-border-radius-semicircle;
68
+ border-radius: $hy-radius-semicircle;
69
69
 
70
70
  /* 确认 */
71
71
  @include m(confirm) {
@@ -13,7 +13,7 @@
13
13
  flex: 1;
14
14
  background-color: #FFF6C8;
15
15
  color: $hy-warning;
16
- border-radius: $hy-border-radius-sm;
16
+ border-radius: $hy-radius-sm;
17
17
  }
18
18
 
19
19
  @include e(left-icon) {
@@ -32,7 +32,7 @@ $z-index: 998;
32
32
  z-index: $z-index;
33
33
  position: relative;
34
34
  background-color: $hy-background--box;
35
- border-radius: $hy-border-radius-sm;
35
+ border-radius: $hy-radius-sm;
36
36
  }
37
37
 
38
38
  @include edeep(pos) {
@@ -43,8 +43,8 @@ $z-index: 998;
43
43
  min-height: 36px;
44
44
  z-index: $z-index;
45
45
  transition: opacity 0.2s;
46
- box-shadow: $hy-box-shadow;
47
- border-radius: $hy-border-radius-sm;
46
+ box-shadow: $hy-shadow-base;
47
+ border-radius: $hy-radius-sm;
48
48
  }
49
49
 
50
50
 
@@ -55,7 +55,7 @@ $z-index: 998;
55
55
 
56
56
  @include e(container) {
57
57
  position: relative;
58
- border-radius: $hy-border-radius-sm;
58
+ border-radius: $hy-radius-sm;
59
59
  }
60
60
 
61
61
  @include e(inner) {
@@ -64,7 +64,7 @@ $z-index: 998;
64
64
  line-height: 22px;
65
65
  z-index: $z-index;
66
66
  background-color: $hy-background--box;
67
- border-radius: $hy-border-radius-sm;
67
+ border-radius: $hy-radius-sm;
68
68
  box-sizing: content-box;
69
69
  width: 200px;
70
70
  }
@@ -79,5 +79,5 @@ $z-index: 998;
79
79
  z-index: $z-index;
80
80
  }
81
81
 
82
- @include squareArrow(6px, $hy-background--box, $z-index, $hy-box-shadow);
82
+ @include squareArrow(6px, $hy-background--box, $z-index, $hy-shadow-base);
83
83
  }
@@ -13,23 +13,23 @@
13
13
  @include m(round) {
14
14
 
15
15
  &-top {
16
- border-radius: 0 0 $hy-border-radius-lg $hy-border-radius-lg;
16
+ border-radius: 0 0 $hy-radius-lg $hy-radius-lg;
17
17
  }
18
18
 
19
19
  &-left {
20
- border-radius: 0 $hy-border-radius-lg $hy-border-radius-lg 0;
20
+ border-radius: 0 $hy-radius-lg $hy-radius-lg 0;
21
21
  }
22
22
 
23
23
  &-right {
24
- border-radius: $hy-border-radius-lg 0 0 $hy-border-radius-lg;
24
+ border-radius: $hy-radius-lg 0 0 $hy-radius-lg;
25
25
  }
26
26
 
27
27
  &-bottom {
28
- border-radius: $hy-border-radius-lg $hy-border-radius-lg 0 0;
28
+ border-radius: $hy-radius-lg $hy-radius-lg 0 0;
29
29
  }
30
30
 
31
31
  &-center {
32
- border-radius: $hy-border-radius-lg;
32
+ border-radius: $hy-radius-lg;
33
33
  }
34
34
  }
35
35
 
@@ -28,14 +28,14 @@
28
28
  @include m(line) {
29
29
  width: 60px;
30
30
  height: 4px;
31
- border-radius: $hy-border-radius-semicircle;
31
+ border-radius: $hy-radius-semicircle;
32
32
  overflow: hidden;
33
33
  background-color: $hy-background--empty;
34
34
 
35
35
  @include e(bar) {
36
36
  width: 20px;
37
37
  height: 4px;
38
- border-radius: $hy-border-radius-semicircle;
38
+ border-radius: $hy-radius-semicircle;
39
39
  background-color: $hy-primary;
40
40
  }
41
41
  }
@@ -42,7 +42,7 @@ $hy-search-close-size: 20px !default;
42
42
  @include e(close) {
43
43
  width: $hy-search-close-size;
44
44
  height: $hy-search-close-size;
45
- border-radius: $hy-border-radius-circle;
45
+ border-radius: $hy-radius-circle;
46
46
  background-color: $hy-background--track;
47
47
  @include flex(row);
48
48
  align-items: center;
@@ -8,7 +8,7 @@
8
8
  display: flex;
9
9
  overflow: hidden;
10
10
  background: $hy-background--3;
11
- border-radius: $hy-border-radius-base;
11
+ border-radius: $hy-radius-base;
12
12
  border: $hy-border-line;
13
13
  }
14
14
 
@@ -17,7 +17,7 @@
17
17
  }
18
18
  }
19
19
  @include e(col) {
20
- border-radius: $hy-border-radius-sm;
20
+ border-radius: $hy-radius-sm;
21
21
  background-color: $hy-background--skeleton;
22
22
  display: flex;
23
23
  align-items: center;
@@ -32,20 +32,20 @@
32
32
  &-text {
33
33
  width: 100%;
34
34
  height: 20px;
35
- border-radius: $hy-border-radius-sm;
35
+ border-radius: $hy-radius-sm;
36
36
  }
37
37
 
38
38
  &-rect {
39
39
  width: 100%;
40
40
  height: 20px;
41
- border-radius: $hy-border-radius-base;
41
+ border-radius: $hy-radius-base;
42
42
  }
43
43
 
44
44
  &-circle {
45
45
  flex-shrink: 0;
46
46
  width: 48px;
47
47
  height: 48px;
48
- border-radius: $hy-border-radius-circle;
48
+ border-radius: $hy-radius-circle;
49
49
  }
50
50
  }
51
51
  @include m(animation) {
@@ -15,7 +15,7 @@
15
15
  flex: 1;
16
16
  @include flex(column);
17
17
  position: relative;
18
- border-radius: $hy-border-radius-semicircle;
18
+ border-radius: $hy-radius-semicircle;
19
19
  padding: $hy-border-margin-padding-base $hy-border-margin-padding-lg;
20
20
  justify-content: center;
21
21
  }
@@ -34,7 +34,7 @@
34
34
 
35
35
  @include e(base) {
36
36
  background-color: $hy-background--empty;
37
- border-radius: $hy-border-radius-semicircle;
37
+ border-radius: $hy-radius-semicircle;
38
38
  }
39
39
 
40
40
  /* #ifndef APP-NVUE */
@@ -51,7 +51,7 @@
51
51
 
52
52
  @include e(gap) {
53
53
  position: relative;
54
- border-radius: $hy-border-radius-semicircle;
54
+ border-radius: $hy-radius-semicircle;
55
55
  transition: width 0.2s;
56
56
  background-color: $hy-primary;
57
57
  &-0 {
@@ -40,7 +40,7 @@
40
40
  align-items: center;
41
41
  position: relative;
42
42
  background-color: transparent;
43
- border-radius: $hy-border-radius-semicircle;
43
+ border-radius: $hy-radius-semicircle;
44
44
 
45
45
  /* 选择 */
46
46
  &.process {
@@ -70,7 +70,7 @@
70
70
  @include e(item) {
71
71
  width: 10px;
72
72
  height: 10px;
73
- border-radius: $hy-border-radius-circle;
73
+ border-radius: $hy-radius-circle;
74
74
  background-color: $hy-info;
75
75
  border: none;
76
76
  }
@@ -89,7 +89,7 @@
89
89
  box-sizing: border-box;
90
90
  flex-shrink: 0;
91
91
  /* #endif */
92
- border-radius: $hy-border-radius-semicircle;
92
+ border-radius: $hy-radius-semicircle;
93
93
  border: $hy-border-line;
94
94
  @include flex(row);
95
95
  align-items: center;
@@ -15,12 +15,12 @@
15
15
  height: 35px;
16
16
  background-color: $hy-background--3;
17
17
  padding: 3px;
18
- border-radius: $hy-border-radius-sm;
18
+ border-radius: $hy-radius-sm;
19
19
  align-items: stretch;
20
20
 
21
21
  @include m(bar) {
22
22
  background-color: $hy-background--container !important;
23
- border-radius: $hy-border-radius-sm;
23
+ border-radius: $hy-radius-sm;
24
24
  }
25
25
  }
26
26
 
@@ -38,7 +38,7 @@
38
38
  background-color: $hy-primary;
39
39
 
40
40
  @include m(first) {
41
- border-radius: $hy-border-radius-sm 0 0 $hy-border-radius-sm;
41
+ border-radius: $hy-radius-sm 0 0 $hy-radius-sm;
42
42
  }
43
43
 
44
44
  @include m(center) {
@@ -46,7 +46,7 @@
46
46
  }
47
47
 
48
48
  @include m(last) {
49
- border-radius: 0 $hy-border-radius-sm $hy-border-radius-sm 0;
49
+ border-radius: 0 $hy-radius-sm $hy-radius-sm 0;
50
50
  }
51
51
  }
52
52
 
@@ -67,13 +67,13 @@
67
67
  }
68
68
 
69
69
  @include m(first) {
70
- border-top-left-radius: $hy-border-radius-sm;
71
- border-bottom-left-radius: $hy-border-radius-sm;
70
+ border-top-left-radius: $hy-radius-sm;
71
+ border-bottom-left-radius: $hy-radius-sm;
72
72
  }
73
73
 
74
74
  @include m(last) {
75
- border-top-right-radius: $hy-border-radius-sm;
76
- border-bottom-right-radius: $hy-border-radius-sm;
75
+ border-top-right-radius: $hy-radius-sm;
76
+ border-bottom-right-radius: $hy-radius-sm;
77
77
  }
78
78
 
79
79
  @include m(text) {
@@ -61,7 +61,7 @@
61
61
  @include e(bar) {
62
62
  width: 22px;
63
63
  height: 4px;
64
- border-radius: $hy-border-radius-semicircle;
64
+ border-radius: $hy-radius-semicircle;
65
65
  background-color: #ffffff;
66
66
  transition: transform 0.3s;
67
67
  }
@@ -70,7 +70,7 @@
70
70
  @include m(dot) {
71
71
  width: 5px;
72
72
  height: 5px;
73
- border-radius: $hy-border-radius-semicircle;
73
+ border-radius: $hy-radius-semicircle;
74
74
  margin: 0 $hy-border-margin-padding-sm;
75
75
 
76
76
  @include e(active) {
@@ -8,7 +8,7 @@
8
8
  /* #endif */
9
9
  background-color: $hy-background--3;
10
10
  position: relative;
11
- border-radius: $hy-border-radius-semicircle;
11
+ border-radius: $hy-radius-semicircle;
12
12
  transition: background-color 0.4s;
13
13
  border: 1px solid rgba(0, 0, 0, 0.12);
14
14
  justify-content: flex-end;
@@ -25,7 +25,7 @@
25
25
  align-items: center;
26
26
  justify-content: center;
27
27
  background-color: $hy-background--container;
28
- border-radius: $hy-border-radius-semicircle;
28
+ border-radius: $hy-radius-semicircle;
29
29
  box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.25);
30
30
  transition-property: transform;
31
31
  transition-duration: 0.4s;
@@ -34,7 +34,7 @@
34
34
 
35
35
  @include e(bg) {
36
36
  position: absolute;
37
- border-radius: $hy-border-radius-semicircle;
37
+ border-radius: $hy-radius-semicircle;
38
38
  background-color: $hy-background--3;
39
39
  transition-property: transform;
40
40
  transition-duration: 0.4s;
@@ -19,8 +19,8 @@
19
19
  @include m(circle) {
20
20
  margin-left: $hy-border-margin-padding-lg;
21
21
  margin-right: $hy-border-margin-padding-lg;
22
- border-radius: $hy-border-radius-semicircle;
23
- box-shadow: $hy-box-shadow;
22
+ border-radius: $hy-radius-semicircle;
23
+ box-shadow: $hy-shadow-base;
24
24
 
25
25
  @include is(fixed) {
26
26
  @include is(safe) {
@@ -62,7 +62,7 @@
62
62
  width: 30px;
63
63
  position: absolute;
64
64
  bottom: 2px;
65
- border-radius: $hy-border-radius-semicircle;
65
+ border-radius: $hy-radius-semicircle;
66
66
  transition-property: transform;
67
67
  transition-duration: 300ms;
68
68
  }
@@ -88,7 +88,7 @@ $hy-background--disabled);
88
88
 
89
89
  /* 关闭按钮 */
90
90
  @include e(close) {
91
- border-radius: $hy-border-radius-semicircle;
91
+ border-radius: $hy-radius-semicircle;
92
92
  background-color: #C6C7CB;
93
93
  margin-left: $hy-border-margin-padding-sm;
94
94
  @include flex(row);
@@ -2,7 +2,7 @@
2
2
  @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(textarea) {
5
- border-radius: $hy-border-radius-sm;
5
+ border-radius: $hy-radius-sm;
6
6
  position: relative;
7
7
  @include flex;
8
8
  flex: 1;
@@ -13,11 +13,11 @@
13
13
  }
14
14
 
15
15
  @include e(radius) {
16
- border-radius: $hy-border-radius-sm;
16
+ border-radius: $hy-radius-sm;
17
17
  }
18
18
 
19
19
  @include e(no-radius) {
20
- border-radius: $hy-border-radius-no;
20
+ border-radius: $hy-radius-no;
21
21
  }
22
22
 
23
23
  @include e(disabled) {
@@ -48,6 +48,6 @@
48
48
  font-size: 12px;
49
49
  background-color: $hy-background--3;
50
50
  padding: 1px 4px;
51
- border-radius: $hy-border-radius-sm;
51
+ border-radius: $hy-radius-sm;
52
52
  }
53
53
  }
@@ -23,7 +23,7 @@
23
23
  @include m(icon) {
24
24
  width: 60rpx;
25
25
  height: 60rpx;
26
- border-radius: $hy-border-radius-semicircle;
26
+ border-radius: $hy-radius-semicircle;
27
27
  box-sizing: border-box;
28
28
  margin-right: $hy-border-margin-padding-base;
29
29
  display: flex;
@@ -8,7 +8,7 @@ $hy-tooltip--background-color: rgb(50, 50, 51);
8
8
  position: relative;
9
9
  @include flex;
10
10
 
11
- @include squareArrow(6px, $hy-tooltip--background-color, -1, $hy-box-shadow);
11
+ @include squareArrow(6px, $hy-tooltip--background-color, -1, $hy-shadow-base);
12
12
 
13
13
  @include edeep(popup) {
14
14
  position: absolute;
@@ -17,8 +17,8 @@ $hy-tooltip--background-color: rgb(50, 50, 51);
17
17
  text-align: center;
18
18
  min-height: 36px;
19
19
  transition: opacity 0.2s;
20
- box-shadow: $hy-box-shadow;
21
- border-radius: $hy-border-radius-sm;
20
+ box-shadow: $hy-shadow-base;
21
+ border-radius: $hy-radius-sm;
22
22
  }
23
23
 
24
24
 
@@ -29,7 +29,7 @@ $hy-tooltip--background-color: rgb(50, 50, 51);
29
29
 
30
30
  @include e(container) {
31
31
  position: relative;
32
- border-radius: $hy-border-radius-sm;
32
+ border-radius: $hy-radius-sm;
33
33
  }
34
34
 
35
35
  @include e(inner) {
@@ -37,7 +37,7 @@ $hy-tooltip--background-color: rgb(50, 50, 51);
37
37
  padding: $hy-border-margin-padding-base;
38
38
  line-height: 22px;
39
39
  z-index: $hy-tooltip--z-index;
40
- border-radius: $hy-border-radius-sm;
40
+ border-radius: $hy-radius-sm;
41
41
  box-sizing: content-box;
42
42
  width: 200px;
43
43
  }
@@ -58,7 +58,7 @@ $hy-tooltip--background-color: rgb(50, 50, 51);
58
58
  background-color: $hy-tooltip--background-color;
59
59
  position: relative;
60
60
  flex: 1;
61
- border-radius: $hy-border-radius-sm;
61
+ border-radius: $hy-radius-sm;
62
62
  padding: 0;
63
63
  @include flex(row);
64
64
  align-items: center;
@@ -7,7 +7,7 @@
7
7
  padding: $hy-border-margin-padding-base;
8
8
  @include flex(row);
9
9
  align-items: center;
10
- border-radius: $hy-border-radius-sm;
10
+ border-radius: $hy-radius-sm;
11
11
 
12
12
  @include e(primary) {
13
13
 
@@ -151,13 +151,13 @@
151
151
  @mixin borderRadio($shape) {
152
152
  @include m($shape) {
153
153
  @if $shape == circle {
154
- border-radius: theme.$hy-border-radius-semicircle;
154
+ border-radius: theme.$hy-radius-semicircle;
155
155
  }
156
156
  @else if($shape == square) {
157
- border-radius: theme.$hy-border-radius-sm;
157
+ border-radius: theme.$hy-radius-sm;
158
158
  }
159
159
  @else {
160
- border-radius: 28rpx theme.$hy-border-radius-sm;
160
+ border-radius: 28rpx theme.$hy-radius-sm;
161
161
  }
162
162
  }
163
163
  }
@@ -38,7 +38,7 @@
38
38
  width: 4px;
39
39
  height: 18px;
40
40
  background: $hy-primary;
41
- border-radius: $hy-border-radius-semicircle;
41
+ border-radius: $hy-radius-semicircle;
42
42
  }
43
43
  }
44
44
 
@@ -34,9 +34,27 @@ $hy-icon-color: var(--hy-icon-color, #606266) !default; // 一般用于icon
34
34
  $hy-text-color--grey: var(--hy-text-color--grey, #999) !default; // 辅助灰色,如加载更多的提示信息
35
35
  $hy-text-color--placeholder: var(--hy-text-color--placeholder, #909399) !default; // 输入框提示颜色
36
36
  $hy-text-color--disabled: var(--hy-text-color--disabled, #FFFFFF3F) !default; // 禁用文字颜色
37
- $hy-border-color: var(--hy-border-color, #c0c0c0) !default; // 边框颜色
38
37
  $hy-text-color--hover: var(--hy-text-color--hover, #58595b)!default; // 点击状态文字颜色
39
38
 
39
+ /* 文字大小 */
40
+ $hy-font-size-xs: var(--hy-font-size-xs, 20rpx)!default; // 超小字体
41
+ $hy-font-size-sm: var(--hy-font-size-sm, 24rpx)!default; // 小号字体
42
+ $hy-font-size-base: var(--hy-font-size-base, 28rpx)!default; // 基础字体
43
+ $hy-font-size-md: var(--hy-font-size-md, 32rpx)!default; // 中等字体
44
+ $hy-font-size-lg: var(--hy-font-size-lg, 36rpx)!default; // 大号字体
45
+ $hy-font-size-xl: var(--hy-font-size-xl, 40rpx)!default; // 超大字体
46
+ $hy-font-size-xxl: var(--hy-font-size-xxl, 48rpx)!default; // 特大字体
47
+
48
+ /* 字体样式 */
49
+ $hy-font-weight-normal: var(--hy-font-weight-normal, 400)!default; // 正常字重
50
+ $hy-font-weight-medium: var(--hy-font-weight-medium, 500)!default; // 中等字重
51
+ $hy-font-weight-bold: var(--hy-font-weight-bold, 600)!default; // 粗体
52
+
53
+ /* 字体行高 */
54
+ $hy-line-height-sm: var(--hy-line-height-sm, 1.4)!default; // 小行高
55
+ $hy-line-height-base: var(--hy-line-height-base, 1.5)!default; // 基础行高
56
+ $hy-line-height-lg: var(--hy-line-height-lg, 1.8)!default; // 大行高
57
+
40
58
 
41
59
  /* 背景色 */
42
60
  $hy-background: var(--hy-background, #f8f8f8) !default; // 页面背景色
@@ -45,7 +63,7 @@ $hy-background--3: var(--hy-background--3, rgb(238, 238, 239)) !default; // 弹
45
63
  $hy-background--container: var(--hy-background--container, #ffffff) !default; // 容器背景色
46
64
  $hy-background--disabled: var(--hy-background--disabled, rgba(0, 0, 0, 0.04)); // 禁用背景色
47
65
  $hy-background--track: var(--hy-background--track, #F6F6F6) !default; // 轨道背景色
48
- $hy-background--empty: var(--hy-background--empty, #F3F3F3) !default; // 搜索背景色
66
+ $hy-background--empty: var(--hy-background--empty, #F3F3F3) !default; // 空状态、搜索背景色
49
67
  $hy-background--skeleton: var(--hy-background--skeleton, #eee) !default; // 骨架屏背景色
50
68
  $hy-background--hover: var(--hy-background--hover, rgba(0,0,0,0.05)) !default; // 点击状态
51
69
  $hy-background-mask: var(--hy-background-mask, rgba(0, 0, 0, 0.5)) !default; //遮罩颜色
@@ -57,17 +75,6 @@ $hy-background--table-header: var(--hy-background--table-header, #FAFAFA) !defau
57
75
  $hy-background-image--mask--two-flanks: var(--hy-background-image--mask--two-flanks, linear-gradient(180deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6)),
58
76
  linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6))) !default; // 向两边形成雾霾形状
59
77
 
60
- /* 文字尺寸 */
61
- $hy-font-size-sm: 24rpx; // 提示文字大小
62
- $hy-font-size-base: 32rpx; // 基本文字大小
63
- $hy-font-size-lg: 40rpx; // 标题文字大小
64
-
65
-
66
- /* 边框颜色 */
67
- $hy-border-color-light: var(--hy-border-color-light, #c8c7cc) !default;
68
- $hy-border-color: var(--hy-border-color, #c2c2c4) !default;
69
- $hy-border-color--2: var(--hy-border-color--2, #c9cacc) !default;
70
-
71
78
  /* 图片尺寸 */
72
79
  $hy-img-size-sm: var(--hy-img-size-sm, 45rpx) !default;
73
80
  $hy-img-size-base: var(--hy-img-size-base, 80rpx) !default;
@@ -78,18 +85,13 @@ $hy-avatar-size-sm: var(--hy-avatar-size-sm, 80rpx) !default;
78
85
  $hy-avatar-size-base: var(--hy-avatar-size-base, 100rpx) !default;
79
86
  $hy-avatar-size-lg: var(--hy-avatar-size-lg, 120rpx) !default;
80
87
 
81
- /* 透明度 */
82
- $hy-opacity-disabled: var(--hy-opacity-disabled, 0.3) !default; // 组件禁用态的透明度
83
-
84
88
  /* 盒子的圆角 */
85
- $hy-border-radius-no: var(--hy-border-radius-no, 0) !default;
86
- $hy-border-radius-sm: var(--hy-border-radius-sm, 8rpx) !default;
87
- $hy-border-radius-base: var(--hy-border-radius-base, 20rpx) !default;
88
- $hy-border-radius-lg: var(--hy-border-radius-lg, 32rpx) !default;
89
- $hy-border-radius-circle: var(--hy-border-radius-circle, 50%) !default;
90
- $hy-border-radius-semicircle: var(--hy-border-radius-semicircle, 100px) !default;
91
- /* 盒子阴影 */
92
- $hy-box-shadow: var(--hy-box-shadow, 0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)) !default;
89
+ $hy-radius-no: var(--hy-radius-no, 0) !default;
90
+ $hy-radius-sm: var(--hy-radius-sm, 8rpx) !default;
91
+ $hy-radius-base: var(--hy-radius-base, 20rpx) !default;
92
+ $hy-radius-lg: var(--hy-radius-lg, 32rpx) !default;
93
+ $hy-radius-circle: var(--hy-radius-circle, 50%) !default;
94
+ $hy-radius-semicircle: var(--hy-radius-semicircle, 100px) !default;
93
95
  /* 盒内盒外间距 */
94
96
  $hy-border-margin-padding-sm: var(--hy-border-margin-padding-sm, 10rpx) !default;
95
97
  $hy-border-margin-padding-base: var(--hy-border-margin-padding-base, 20rpx) !default;
@@ -97,3 +99,30 @@ $hy-border-margin-padding-lg: var(--hy-border-margin-padding-lg, 30rpx) !default
97
99
  /* 底部线条 */
98
100
  /* TODO: 边框不能写1rpx否则在某些机型无法显示 */
99
101
  $hy-border-line: var(--hy-border-line, 1px solid #e8e8e8) !default;
102
+ /* 边框颜色 */
103
+ $hy-border-color: var(--hy-border-color, #c2c2c4) !default;
104
+ $hy-border-color-light: var(--hy-border-color-light, #c8c7cc) !default;
105
+ $hy-border-color--2: var(--hy-border-color--2, #c9cacc) !default;
106
+ /* 边框宽度 */
107
+ $hy-border-width-xs: var(--hy-border-width-xs, 1rpx) !default;
108
+ $hy-border-width-sm: var(--hy-border-width-sm, 2rpx) !default;
109
+ $hy-border-width-base: var(--hy-border-width-base, 4rpx) !default;
110
+ $hy-border-width-lg: var(--hy-border-width-lg, 8rpx) !default;
111
+
112
+ /* 盒子阴影 */
113
+ $hy-border-shadow-base: var(--hy-border-box-shadow, 0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)) !default;
114
+ $hy-shadow-sm: var(--hy-shadow-sm, 0 2rpx 8rpx rgba(0, 0, 0, 0.06)) !default; // 轻微阴影
115
+ $hy-shadow-base: var(--hy-shadow-base, 0 4rpx 16rpx rgba(0, 0, 0, 0.08)) !default; // 基础阴影
116
+ $hy-shadow-lg: var(--hy-shadow-lg, 0 8rpx 24rpx rgba(0, 0, 0, 0.12)) !default; // 强烈阴影
117
+ $hy-shadow-xl: var(--hy-shadow-xl, 0 12rpx 40rpx rgba(0, 0, 0, 0.16)) !default; // 极强烈阴影
118
+
119
+ /* 透明度 */
120
+ $hy-opacity-xs: var(--hy-opacity-xs, 0.1) !default; // 极低透明度
121
+ $hy-opacity-sm: var(--hy-opacity-sm, 0.3) !default; // 低透明度
122
+ $hy-opacity-base: var(--hy-opacity-base, 0.5) !default; // 中等透明度
123
+ $hy-opacity-lg: var(--hy-opacity-lg, 0.7) !default; // 高透明度
124
+ $hy-opacity-disabled: var(--hy-opacity-disabled, 0.4) !default; // 禁用态透明度
125
+
126
+ /* 过渡曲线 */
127
+ $hy-transition-ease: var(--hy-transition-ease, cubic-bezier(0.4, 0, 0.2, 1)) !default; // 标准曲线
128
+ $hy-transition-bounce: var(--hy-transition-bounce, cubic-bezier(0.34, 1.56, 0.64, 1)) !default; // 弹跳曲线
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hy-app",
3
- "version": "0.6.8",
3
+ "version": "0.6.9",
4
4
  "description": "📱一个基于vue3+ts构建的uni-app组件库,拥有八十多个精美组件,适配多端,支持自定义主题",
5
5
  "main": "./index.ts",
6
6
  "private": false,