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.
- package/components/hy-action-sheet/index.scss +1 -1
- package/components/hy-address-picker/index.scss +1 -1
- package/components/hy-avatar/index.scss +1 -1
- package/components/hy-back-top/index.scss +1 -1
- package/components/hy-badge/index.scss +1 -1
- package/components/hy-button/index.scss +1 -1
- package/components/hy-calendar/index.scss +1 -1
- package/components/hy-card/hy-card.vue +1 -1
- package/components/hy-card/index.scss +1 -1
- package/components/hy-cell-item/hy-cell-item.vue +1 -0
- package/components/hy-cell-item/index.scss +1 -1
- package/components/hy-check-button/hy-check-button.vue +4 -4
- package/components/hy-checkbox/index.scss +1 -1
- package/components/hy-checkbox-group/index.scss +1 -1
- package/components/hy-checkbox-item/index.scss +1 -1
- package/components/hy-code-input/hy-code-input.vue +1 -1
- package/components/hy-code-input/index.scss +1 -1
- package/components/hy-config-provider/hy-config-provider.vue +4 -2
- package/components/hy-config-provider/index.scss +1 -1
- package/components/hy-count-down/index.scss +1 -1
- package/components/hy-count-to/index.scss +1 -1
- package/components/hy-coupon/index.scss +1 -1
- package/components/hy-datetime-picker/index.scss +1 -1
- package/components/hy-divider/index.scss +1 -1
- package/components/hy-dropdown/index.scss +1 -1
- package/components/hy-dropdown-item/index.scss +1 -1
- package/components/hy-empty/index.scss +1 -1
- package/components/hy-flex/index.scss +1 -1
- package/components/hy-float-button/index.scss +1 -1
- package/components/hy-folding-panel-item/index.scss +1 -1
- package/components/hy-form-item/index.scss +1 -1
- package/components/hy-grid/index.scss +1 -1
- package/components/hy-icon/index.scss +1 -1
- package/components/hy-image/index.scss +1 -1
- package/components/hy-input/hy-input.vue +1 -1
- package/components/hy-input/index.scss +6 -1
- package/components/hy-input/props.ts +1 -1
- package/components/hy-input/typing.d.ts +4 -0
- package/components/hy-line/index.scss +1 -1
- package/components/hy-line-progress/index.scss +2 -1
- package/components/hy-list/index.scss +1 -1
- package/components/hy-loading/index.scss +1 -1
- package/components/hy-menu/index.scss +1 -1
- package/components/hy-modal/index.scss +1 -1
- package/components/hy-navbar/hy-navbar.vue +26 -23
- package/components/hy-navbar/index.scss +2 -2
- package/components/hy-notice-bar/index.scss +1 -1
- package/components/hy-notify/index.scss +1 -1
- package/components/hy-number-step/index.scss +1 -1
- package/components/hy-overlay/index.scss +1 -1
- package/components/hy-pagination/index.scss +1 -1
- package/components/hy-picker/hy-picker.vue +92 -87
- package/components/hy-picker/index.scss +2 -2
- package/components/hy-picker/props.ts +1 -1
- package/components/hy-popover/index.scss +1 -1
- package/components/hy-popup/hy-popup.vue +3 -3
- package/components/hy-popup/index.scss +2 -1
- package/components/hy-price/index.scss +1 -1
- package/components/hy-qrcode/index.scss +1 -1
- package/components/hy-radio/index.scss +1 -1
- package/components/hy-rate/index.scss +1 -1
- package/components/hy-read-more/index.scss +2 -2
- package/components/hy-rolling-num/hy-rolling-num.vue +2 -12
- package/components/hy-rolling-num/index.scss +1 -1
- package/components/hy-scroll-list/index.scss +1 -1
- package/components/hy-search/index.scss +1 -1
- package/components/hy-signature/index.scss +1 -1
- package/components/hy-slider/index.scss +1 -1
- package/components/hy-status-bar/index.scss +1 -1
- package/components/hy-steps/index.scss +1 -1
- package/components/hy-sticky/index.scss +1 -1
- package/components/hy-submit-bar/index.scss +1 -1
- package/components/hy-subsection/index.scss +1 -1
- package/components/hy-swipe-action/index.scss +1 -1
- package/components/hy-swiper/index.scss +2 -2
- package/components/hy-switch/index.scss +1 -1
- package/components/hy-tabbar/index.scss +1 -1
- package/components/hy-tabbar-group/index.scss +1 -1
- package/components/hy-tabbar-item/index.scss +1 -1
- package/components/hy-table/hy-table.vue +358 -0
- package/components/hy-table/index.scss +197 -0
- package/components/hy-table/props.ts +47 -0
- package/components/hy-table/typing.d.ts +34 -0
- package/components/hy-tabs/index.scss +1 -1
- package/components/hy-tag/index.scss +1 -1
- package/components/hy-text/hy-text.vue +1 -1
- package/components/hy-text/index.scss +1 -1
- package/components/hy-textarea/hy-textarea.vue +1 -1
- package/components/hy-textarea/index.scss +6 -1
- package/components/hy-toast/index.scss +2 -1
- package/components/hy-tooltip/index.scss +2 -2
- package/components/hy-upload/index.scss +1 -1
- package/components/hy-warn/hy-warn.vue +2 -2
- package/components/hy-warn/index.scss +1 -1
- package/components/hy-waterfall/index.scss +1 -1
- package/components/hy-watermark/index.scss +1 -1
- package/index.scss +1 -1
- package/libs/css/{mixin.scss → _mixin.scss} +27 -13
- package/libs/css/theme.scss +5 -2
- package/libs/css/vars.scss +6 -0
- package/libs/utils/inside.ts +260 -271
- package/package.json +2 -2
- package/components/hy-rolling-num/README.md +0 -137
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@use "../../libs/css/mixin
|
|
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
|
|
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,
|
|
11
|
+
@include squareArrow(6px, $hy-tooltip--background-color, -1, $hy-box-shadow);
|
|
12
12
|
|
|
13
13
|
@include edeep(popup) {
|
|
14
14
|
position: absolute;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
:style="customStyle"
|
|
7
7
|
>
|
|
8
8
|
<view class="hy-warn__icon--left tips" v-if="showIcon">
|
|
9
|
-
<
|
|
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
|
-
<
|
|
54
|
+
<hy-icon :name="IconConfig.CLOSE" :color="iconColor" size="15"></hy-icon>
|
|
55
55
|
</view>
|
|
56
56
|
</view>
|
|
57
57
|
</HyTransition>
|
package/index.scss
CHANGED
|
@@ -12,24 +12,37 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
/* 加上-- */
|
|
15
|
-
@mixin m($modifier) {
|
|
16
|
-
$
|
|
17
|
-
|
|
18
|
-
@each $
|
|
19
|
-
$
|
|
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
|
-
#{$
|
|
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
|
-
@
|
|
105
|
-
@
|
|
106
|
-
|
|
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}'} {
|
package/libs/css/theme.scss
CHANGED
|
@@ -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-
|
|
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,
|
|
96
|
+
$hy-border-line: var(--hy-border-line, 1px solid #e8e8e8) !default;
|
package/libs/css/vars.scss
CHANGED
|
@@ -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;
|