hy-app 0.5.8 → 0.5.10

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 (103) hide show
  1. package/components/hy-action-sheet/index.scss +1 -1
  2. package/components/hy-address-picker/index.scss +1 -1
  3. package/components/hy-avatar/index.scss +1 -1
  4. package/components/hy-back-top/index.scss +1 -1
  5. package/components/hy-badge/index.scss +1 -1
  6. package/components/hy-button/index.scss +1 -1
  7. package/components/hy-calendar/index.scss +1 -1
  8. package/components/hy-card/hy-card.vue +1 -1
  9. package/components/hy-card/index.scss +1 -1
  10. package/components/hy-cell-item/hy-cell-item.vue +1 -0
  11. package/components/hy-cell-item/index.scss +1 -1
  12. package/components/hy-check-button/hy-check-button.vue +4 -4
  13. package/components/hy-checkbox/index.scss +1 -1
  14. package/components/hy-checkbox-group/index.scss +1 -1
  15. package/components/hy-checkbox-item/index.scss +1 -1
  16. package/components/hy-code-input/hy-code-input.vue +1 -1
  17. package/components/hy-code-input/index.scss +1 -1
  18. package/components/hy-config-provider/hy-config-provider.vue +4 -2
  19. package/components/hy-config-provider/index.scss +1 -1
  20. package/components/hy-count-down/index.scss +1 -1
  21. package/components/hy-count-to/index.scss +1 -1
  22. package/components/hy-coupon/index.scss +1 -1
  23. package/components/hy-datetime-picker/index.scss +1 -1
  24. package/components/hy-divider/index.scss +1 -1
  25. package/components/hy-dropdown/index.scss +1 -1
  26. package/components/hy-dropdown-item/index.scss +1 -1
  27. package/components/hy-empty/index.scss +1 -1
  28. package/components/hy-flex/index.scss +1 -1
  29. package/components/hy-float-button/index.scss +1 -1
  30. package/components/hy-folding-panel-item/index.scss +1 -1
  31. package/components/hy-form-item/index.scss +1 -1
  32. package/components/hy-grid/index.scss +1 -1
  33. package/components/hy-icon/index.scss +1 -1
  34. package/components/hy-image/index.scss +1 -1
  35. package/components/hy-input/hy-input.vue +1 -1
  36. package/components/hy-input/index.scss +6 -1
  37. package/components/hy-input/props.ts +1 -1
  38. package/components/hy-input/typing.d.ts +4 -0
  39. package/components/hy-line/index.scss +1 -1
  40. package/components/hy-line-progress/index.scss +2 -1
  41. package/components/hy-list/index.scss +1 -1
  42. package/components/hy-loading/index.scss +1 -1
  43. package/components/hy-menu/index.scss +1 -1
  44. package/components/hy-modal/index.scss +1 -1
  45. package/components/hy-navbar/hy-navbar.vue +26 -23
  46. package/components/hy-navbar/index.scss +2 -2
  47. package/components/hy-notice-bar/index.scss +1 -1
  48. package/components/hy-notify/index.scss +1 -1
  49. package/components/hy-number-step/index.scss +1 -1
  50. package/components/hy-overlay/index.scss +1 -1
  51. package/components/hy-pagination/index.scss +1 -1
  52. package/components/hy-picker/hy-picker.vue +92 -87
  53. package/components/hy-picker/index.scss +2 -2
  54. package/components/hy-picker/props.ts +1 -1
  55. package/components/hy-popover/index.scss +1 -1
  56. package/components/hy-popup/hy-popup.vue +3 -3
  57. package/components/hy-popup/index.scss +2 -1
  58. package/components/hy-price/index.scss +1 -1
  59. package/components/hy-qrcode/index.scss +1 -1
  60. package/components/hy-radio/index.scss +1 -1
  61. package/components/hy-rate/index.scss +1 -1
  62. package/components/hy-read-more/index.scss +2 -2
  63. package/components/hy-rolling-num/hy-rolling-num.vue +2 -12
  64. package/components/hy-rolling-num/index.scss +1 -1
  65. package/components/hy-scroll-list/index.scss +1 -1
  66. package/components/hy-search/index.scss +1 -1
  67. package/components/hy-signature/index.scss +1 -1
  68. package/components/hy-slider/index.scss +1 -1
  69. package/components/hy-status-bar/index.scss +1 -1
  70. package/components/hy-steps/index.scss +1 -1
  71. package/components/hy-sticky/index.scss +1 -1
  72. package/components/hy-submit-bar/index.scss +1 -1
  73. package/components/hy-subsection/index.scss +1 -1
  74. package/components/hy-swipe-action/index.scss +1 -1
  75. package/components/hy-swiper/index.scss +2 -2
  76. package/components/hy-switch/index.scss +1 -1
  77. package/components/hy-tabbar/index.scss +1 -1
  78. package/components/hy-tabbar-group/index.scss +1 -1
  79. package/components/hy-tabbar-item/index.scss +1 -1
  80. package/components/hy-table/hy-table.vue +358 -0
  81. package/components/hy-table/index.scss +197 -0
  82. package/components/hy-table/props.ts +47 -0
  83. package/components/hy-table/typing.d.ts +34 -0
  84. package/components/hy-tabs/index.scss +1 -1
  85. package/components/hy-tag/index.scss +1 -1
  86. package/components/hy-text/hy-text.vue +1 -1
  87. package/components/hy-text/index.scss +1 -1
  88. package/components/hy-textarea/hy-textarea.vue +1 -1
  89. package/components/hy-textarea/index.scss +6 -1
  90. package/components/hy-toast/index.scss +2 -1
  91. package/components/hy-tooltip/index.scss +2 -2
  92. package/components/hy-upload/index.scss +1 -1
  93. package/components/hy-warn/hy-warn.vue +2 -2
  94. package/components/hy-warn/index.scss +1 -1
  95. package/components/hy-waterfall/index.scss +1 -1
  96. package/components/hy-watermark/index.scss +1 -1
  97. package/index.scss +1 -1
  98. package/libs/css/{mixin.scss → _mixin.scss} +27 -13
  99. package/libs/css/theme.scss +5 -2
  100. package/libs/css/vars.scss +6 -0
  101. package/libs/utils/inside.ts +260 -271
  102. package/package.json +2 -2
  103. package/components/hy-rolling-num/README.md +0 -137
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  @include b(toast){
@@ -13,6 +13,7 @@
13
13
  max-width: 600rpx;
14
14
  /* #endif */
15
15
  position: relative;
16
+ z-index: 10090;
16
17
 
17
18
  @include m(loading) {
18
19
  flex-direction: column;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  $hy-tooltip--z-index: 998;
5
5
  $hy-tooltip--background-color: rgb(50, 50, 51);
@@ -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, $hy-tooltip--z-index, $hy-box-shadow);
11
+ @include squareArrow(6px, $hy-tooltip--background-color, -1, $hy-box-shadow);
12
12
 
13
13
  @include edeep(popup) {
14
14
  position: absolute;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
  @use "../../libs/css/theme" as *;
3
3
 
4
4
  $hy-upload-image-width: 80px !default;
@@ -6,7 +6,7 @@
6
6
  :style="customStyle"
7
7
  >
8
8
  <view class="hy-warn__icon--left tips" v-if="showIcon">
9
- <HyIcon :name="iconName(type)" size="21" :color="iconColor"></HyIcon>
9
+ <hy-icon :name="iconName(type)" size="21" :color="iconColor"></hy-icon>
10
10
  </view>
11
11
  <view
12
12
  class="hy-warn__content"
@@ -51,7 +51,7 @@
51
51
  <slot name="right"></slot>
52
52
  </view>
53
53
  <view class="hy-warn__close" v-if="closable" @tap.stop="closeHandler">
54
- <HyIcon :name="IconConfig.CLOSE" :color="iconColor" size="15"></HyIcon>
54
+ <hy-icon :name="IconConfig.CLOSE" :color="iconColor" size="15"></hy-icon>
55
55
  </view>
56
56
  </view>
57
57
  </HyTransition>
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(warn) {
5
5
  position: relative;
@@ -1,4 +1,4 @@
1
- @use "../../libs/css/mixin.scss" as *;
1
+ @use "../../libs/css/mixin" as *;
2
2
 
3
3
  @include b(waterfall) {
4
4
  @include flex;
@@ -1,5 +1,5 @@
1
1
  @use "../../libs/css/theme" as *;
2
- @use "../../libs/css/mixin.scss" as *;
2
+ @use "../../libs/css/mixin" as *;
3
3
 
4
4
  @include b(watermark) {
5
5
  position: absolute;
package/index.scss CHANGED
@@ -1,4 +1,4 @@
1
1
  @use "./libs/css/common.scss";
2
2
  @use "./libs/css/vars.scss";
3
- @use "./libs/css/mixin.scss";
3
+ @use "libs/css/mixin";
4
4
  @use "./libs/css/theme.scss";
@@ -12,24 +12,37 @@
12
12
  }
13
13
 
14
14
  /* 加上-- */
15
- @mixin m($modifier) {
16
- $selector: &;
17
- $currentSelector: '';
18
- @each $unit in $modifier {
19
- $currentSelector: #{$currentSelector +
20
- $selector +
21
- config.$modifier-separator +
22
- $unit +
23
- ','};
15
+ @mixin m($modifier...) {
16
+ $selectors: "";
17
+
18
+ @each $item in $modifier {
19
+ $selectors: #{$selectors + & + config.$modifier-separator + $item + ","};
24
20
  }
25
21
 
26
22
  @at-root {
27
- #{$currentSelector} {
23
+ #{$selectors} {
28
24
  @content;
29
25
  }
30
26
  }
31
27
  }
32
28
 
29
+ /* 定义状态(m) */
30
+ @mixin mdeep($modifier...) {
31
+ $selectors: "";
32
+
33
+ @each $item in $modifier {
34
+ $selectors: #{$selectors + & + config.$modifier-separator + $item + ","};
35
+ }
36
+
37
+ @at-root {
38
+ :deep() {
39
+ #{$selectors} {
40
+ @content;
41
+ }
42
+ }
43
+ }
44
+ }
45
+
33
46
  /* 定义元素(e)__,对于伪类,会自动将 e 嵌套在 伪类 底下 */
34
47
  @mixin e($element...) {
35
48
  $selector: &;
@@ -101,14 +114,15 @@
101
114
 
102
115
  /* 状态,生成 is-$state 类名 */
103
116
  @mixin is($states...) {
104
- @at-root {
105
- @each $state in $states {
106
- &.#{config.$state-prefix + $state} {
117
+ @each $state in $states {
118
+ @at-root {
119
+ #{&}.#{config.$state-prefix + $state} {
107
120
  @content;
108
121
  }
109
122
  }
110
123
  }
111
124
  }
125
+
112
126
  /* 添加伪类元素 */
113
127
  @mixin pseudo($pseudo) {
114
128
  @at-root #{&}#{':#{$pseudo}'} {
@@ -47,10 +47,13 @@ $hy-background--disabled: var(--hy-background--disabled, rgba(0, 0, 0, 0.04)); /
47
47
  $hy-background--track: var(--hy-background--track, #F6F6F6) !default; // 轨道背景色
48
48
  $hy-background--empty: var(--hy-background--empty, #F3F3F3) !default; // 搜索背景色
49
49
  $hy-background--hover: var(--hy-background--hover, rgba(0,0,0,0.05)) !default; // 点击状态
50
- $hy-light-background-mask: var(--hy-light-background-mask, rgba(0, 0, 0, 0.5)); //遮罩颜色
50
+ $hy-background-mask: var(--hy-background-mask, rgba(0, 0, 0, 0.5)); //遮罩颜色
51
51
  $hy-background--active: var(--hy-background--active, #FFFFFF); // 选中背景色
52
52
  $hy-background--close: var(--hy-background--close, #f0f0f0); // 关闭背景色
53
53
  $hy-background--box: var(--hy-background--box, #FFFFFF); // 盒子背景色
54
+ $hy-background--table-header: var(--hy-background--table-header, #FAFAFA); // 表头背景色
55
+ $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)),
56
+ linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6))); // 向两边形成雾霾形状
54
57
 
55
58
  /* 文字尺寸 */
56
59
  $hy-font-size-sm: 24rpx; // 提示文字大小
@@ -90,4 +93,4 @@ $hy-border-margin-padding-sm: var(--hy-border-margin-padding-sm, 10rpx) !default
90
93
  $hy-border-margin-padding-base: var(--hy-border-margin-padding-base, 20rpx) !default;
91
94
  $hy-border-margin-padding-lg: var(--hy-border-margin-padding-lg, 30rpx) !default;
92
95
  /* 底部线条 */
93
- $hy-border-line: var(--hy-border-line, 1rpx solid #e8e8e8) !default;
96
+ $hy-border-line: var(--hy-border-line, 1px solid #e8e8e8) !default;
@@ -21,6 +21,9 @@
21
21
  --hy-background--active: #FFFFFF;
22
22
  --hy-background--close: #f0f0f0;
23
23
  --hy-background--box: #FFFFFF;
24
+ --hy-background--table-header: #FAFAFA;
25
+ --hy-background-image--mask--two-flanks: linear-gradient(180deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6)),
26
+ linear-gradient(0deg, hsla(0, 0%, 100%, 0.95), hsla(0, 0%, 100%, 0.6));
24
27
 
25
28
  --hy-border-line: 1rpx solid #e8e8e8;
26
29
  --hy-border-color: #c2c2c4;
@@ -54,6 +57,9 @@
54
57
  --hy-background--active: #000000;
55
58
  --hy-background--close: #323233;
56
59
  --hy-background--box: #4b4c4d;
60
+ --hy-background--table-header: #1D1D1D;
61
+ --hy-background-image--mask--two-flanks: linear-gradient(180deg, hsla(0, 0%, 15%, 0.95), hsla(0, 0%, 10%, 0.6)),
62
+ linear-gradient(0deg, hsla(0, 0%, 15%, 0.95), hsla(0, 0%, 10%, 0.6));
57
63
 
58
64
  --hy-border-line: 1rpx solid #3c3f44;
59
65
  --hy-border-color: #3c3f44;