hy-app 0.2.0 → 0.2.1
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/README.md +2 -1
- package/components/hy-back-top/index.scss +1 -10
- package/components/hy-badge/index.scss +5 -5
- package/components/hy-button/hy-button.vue +6 -7
- package/components/hy-button/index.scss +0 -11
- package/components/hy-calendar/index.scss +21 -24
- package/components/hy-calendar/month.vue +28 -6
- package/components/hy-calendar/props.ts +1 -1
- package/components/hy-card/index.scss +2 -11
- package/components/hy-cell/index.scss +9 -22
- package/components/hy-checkbox/hy-checkbox.vue +9 -6
- package/components/hy-checkbox/index.scss +14 -17
- package/components/hy-config-provider/hy-config-provider.vue +3 -1
- package/components/hy-config-provider/index.scss +2 -6
- package/components/hy-count-down/index.scss +0 -9
- package/components/hy-count-to/index.scss +1 -9
- package/components/hy-divider/index.scss +2 -1
- package/components/hy-divider/props.ts +2 -2
- package/components/hy-dropdown/index.scss +1 -1
- package/components/hy-dropdown-item/index.scss +3 -18
- package/components/hy-empty/index.scss +1 -10
- package/components/hy-float-button/index.scss +4 -9
- package/components/hy-form/index.scss +1 -8
- package/components/hy-grid/index.scss +1 -1
- package/components/hy-icon/index.scss +3 -9
- package/components/hy-image/hy-image.vue +5 -5
- package/components/hy-image/index.scss +2 -2
- package/components/hy-image/props.ts +1 -1
- package/components/hy-input/hy-input.vue +9 -14
- package/components/hy-input/index.scss +10 -12
- package/components/hy-input/props.ts +1 -1
- package/components/hy-line/index.scss +1 -0
- package/components/hy-line/props.ts +1 -1
- package/components/hy-line-progress/index.scss +1 -12
- package/components/hy-loading/index.scss +2 -2
- package/components/hy-modal/hy-modal.vue +3 -0
- package/components/hy-modal/index.scss +8 -20
- package/components/hy-modal/props.ts +3 -3
- package/components/hy-navbar/index.scss +3 -14
- package/components/hy-notice-bar/index.scss +31 -41
- package/components/hy-notice-bar/props.ts +2 -2
- package/components/hy-number-step/index.scss +6 -24
- package/components/hy-picker/index.scss +1 -1
- package/components/hy-popup/index.scss +1 -10
- package/components/hy-price/index.scss +0 -6
- package/components/hy-qrcode/index.scss +1 -1
- package/components/hy-radio/hy-radio.vue +8 -5
- package/components/hy-radio/index.scss +16 -18
- package/components/hy-rate/index.scss +1 -6
- package/components/hy-read-more/index.scss +3 -20
- package/components/hy-search/index.scss +5 -24
- package/components/hy-slider/index.scss +1 -1
- package/components/hy-slider/props.ts +2 -2
- package/components/hy-steps/hy-steps.vue +38 -20
- package/components/hy-steps/index.scss +6 -17
- package/components/hy-submit-bar/index.scss +1 -9
- package/components/hy-subsection/index.scss +2 -16
- package/components/hy-swipe-action/index.scss +0 -9
- package/components/hy-swiper/index.scss +0 -10
- package/components/hy-switch/index.scss +19 -18
- package/components/hy-switch/props.ts +0 -1
- package/components/hy-tabs/index.scss +2 -16
- package/components/hy-tag/index.scss +3 -3
- package/components/hy-text/hy-text.vue +5 -4
- package/components/hy-text/index.scss +3 -15
- package/components/hy-textarea/index.scss +4 -15
- package/components/hy-toast/index.scss +5 -22
- package/components/hy-tooltip/index.scss +5 -3
- package/components/hy-upload/index.scss +4 -14
- package/index.scss +1 -0
- package/libs/css/mixin.scss +6 -0
- package/libs/css/vars.css +47 -0
- package/package.json +1 -1
- package/theme.scss +41 -30
|
@@ -1,21 +1,12 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme) {
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(popup__content) {
|
|
8
|
-
background-color: $hy-dark-background--2;
|
|
9
|
-
color: $hy-dark-color;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
4
|
|
|
14
5
|
@include b(popup) {
|
|
15
6
|
flex: 1;
|
|
16
7
|
|
|
17
8
|
&__content {
|
|
18
|
-
background-color:
|
|
9
|
+
background-color: $hy-background--2;
|
|
19
10
|
position: relative;
|
|
20
11
|
|
|
21
12
|
&--round-top {
|
|
@@ -35,7 +35,10 @@
|
|
|
35
35
|
>
|
|
36
36
|
<slot name="label" :record="item">
|
|
37
37
|
<text
|
|
38
|
-
class="
|
|
38
|
+
:class="[
|
|
39
|
+
'hy-radio__text',
|
|
40
|
+
disabled && 'hy-radio__label-wrap--disabled',
|
|
41
|
+
]"
|
|
39
42
|
:style="{
|
|
40
43
|
color: labelColor,
|
|
41
44
|
fontSize: addUnit(sizeType[size] ?? labelSize),
|
|
@@ -51,13 +54,13 @@
|
|
|
51
54
|
|
|
52
55
|
<script lang="ts">
|
|
53
56
|
export default {
|
|
54
|
-
name:
|
|
57
|
+
name: "hy-radio",
|
|
55
58
|
options: {
|
|
56
59
|
addGlobalClass: true,
|
|
57
60
|
virtualHost: true,
|
|
58
|
-
styleIsolation:
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
+
styleIsolation: "shared",
|
|
62
|
+
},
|
|
63
|
+
};
|
|
61
64
|
</script>
|
|
62
65
|
|
|
63
66
|
<script setup lang="ts">
|
|
@@ -1,14 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(radio__label-wrap) {
|
|
8
|
-
color: $hy-dark-color;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
4
|
|
|
13
5
|
@include b(radio) {
|
|
14
6
|
@include flex(row);
|
|
@@ -64,28 +56,34 @@
|
|
|
64
56
|
|
|
65
57
|
/* #endif */
|
|
66
58
|
|
|
67
|
-
|
|
59
|
+
@include m(circle) {
|
|
68
60
|
border-radius: 50%;
|
|
69
61
|
}
|
|
70
62
|
|
|
71
|
-
|
|
63
|
+
@include m(square) {
|
|
72
64
|
border-radius: 3px;
|
|
73
65
|
}
|
|
74
66
|
|
|
75
|
-
|
|
67
|
+
@include m(checked) {
|
|
76
68
|
color: #FFFFFF;
|
|
77
69
|
background-color: $hy-primary;
|
|
78
70
|
border-color: $hy-primary;
|
|
79
71
|
}
|
|
80
72
|
|
|
81
|
-
|
|
82
|
-
background-color: $hy-
|
|
73
|
+
@include m(disabled) {
|
|
74
|
+
background-color: $hy-text-color--disabled;
|
|
75
|
+
:deep(.hy-icon) {
|
|
76
|
+
display: none;
|
|
77
|
+
}
|
|
83
78
|
}
|
|
84
79
|
|
|
85
|
-
|
|
80
|
+
@include m(disabled--checked) {
|
|
86
81
|
background-color: $hy-primary;
|
|
87
82
|
border-color: $hy-primary;
|
|
88
83
|
opacity: 0.5;
|
|
84
|
+
:deep(.hy-icon) {
|
|
85
|
+
display: block;
|
|
86
|
+
}
|
|
89
87
|
}
|
|
90
88
|
}
|
|
91
89
|
|
|
@@ -93,13 +91,13 @@
|
|
|
93
91
|
/* #ifndef APP-NVUE */
|
|
94
92
|
word-wrap: break-word;
|
|
95
93
|
/* #endif */
|
|
96
|
-
|
|
97
|
-
$hy-
|
|
94
|
+
|
|
95
|
+
color: $hy-text-color;
|
|
98
96
|
font-size: $hy-font-size-base;
|
|
99
97
|
margin-right: $hy-border-margin-padding-sm;
|
|
100
98
|
|
|
101
|
-
|
|
102
|
-
color: $hy-text-color
|
|
99
|
+
@include m(disabled) {
|
|
100
|
+
color: $hy-text-color--disabled;
|
|
103
101
|
}
|
|
104
102
|
}
|
|
105
103
|
}
|
|
@@ -1,21 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(read-more) {
|
|
8
|
-
color: $hy-dark-color;
|
|
9
|
-
&__toggle--mask {
|
|
10
|
-
background-image:
|
|
11
|
-
linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, $hy-dark-background 80%);
|
|
12
|
-
padding-top: 100px;
|
|
13
|
-
margin-top: -100px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
|
|
19
4
|
@include b(read-more) {
|
|
20
5
|
&__content {
|
|
21
6
|
overflow: hidden;
|
|
@@ -31,7 +16,7 @@
|
|
|
31
16
|
|
|
32
17
|
&--mask {
|
|
33
18
|
background-image:
|
|
34
|
-
linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%,
|
|
19
|
+
linear-gradient(-180deg, rgba(0, 0, 0, 0) 0%, $hy-background--2 80%);
|
|
35
20
|
padding-top: 100px;
|
|
36
21
|
margin-top: -100px;
|
|
37
22
|
}
|
|
@@ -42,10 +27,8 @@
|
|
|
42
27
|
justify-content: center;
|
|
43
28
|
margin-top: 5px;
|
|
44
29
|
color: $hy-primary;
|
|
45
|
-
:deep() {
|
|
46
|
-
|
|
47
|
-
color: $hy-primary;
|
|
48
|
-
}
|
|
30
|
+
:deep(.hy-icon) {
|
|
31
|
+
color: $hy-primary;
|
|
49
32
|
}
|
|
50
33
|
}
|
|
51
34
|
}
|
|
@@ -10,24 +10,6 @@ $hy-search-close-size: 20px !default;
|
|
|
10
10
|
}
|
|
11
11
|
/* #endif */
|
|
12
12
|
|
|
13
|
-
/* 暗色主题 */
|
|
14
|
-
@include b(theme){
|
|
15
|
-
@include m(dark) {
|
|
16
|
-
@include b(search) {
|
|
17
|
-
color: $hy-dark-color;
|
|
18
|
-
&__content {
|
|
19
|
-
background-color: $hy-dark-background--empty;
|
|
20
|
-
&__input {
|
|
21
|
-
color: $hy-dark-color;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
&__action {
|
|
25
|
-
color: $hy-dark-color;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
|
|
31
13
|
@include b(search) {
|
|
32
14
|
@include flex(row);
|
|
33
15
|
align-items: center;
|
|
@@ -43,6 +25,7 @@ $hy-search-close-size: 20px !default;
|
|
|
43
25
|
border-color: transparent;
|
|
44
26
|
border-style: solid;
|
|
45
27
|
overflow: hidden;
|
|
28
|
+
background-color: $hy-background--empty;
|
|
46
29
|
|
|
47
30
|
&__icon {
|
|
48
31
|
@include flex;
|
|
@@ -61,7 +44,7 @@ $hy-light-color;
|
|
|
61
44
|
width: $hy-search-close-size;
|
|
62
45
|
height: $hy-search-close-size;
|
|
63
46
|
border-radius: $hy-border-radius-circle;
|
|
64
|
-
background-color:
|
|
47
|
+
background-color: $hy-background--track;
|
|
65
48
|
@include flex(row);
|
|
66
49
|
align-items: center;
|
|
67
50
|
justify-content: center;
|
|
@@ -74,19 +57,17 @@ $hy-light-color;
|
|
|
74
57
|
font-size: $hy-font-size-base;
|
|
75
58
|
line-height: 1;
|
|
76
59
|
margin: 0 $hy-border-margin-padding-sm;
|
|
77
|
-
color:
|
|
78
|
-
$hy-light-color;
|
|
60
|
+
color: $hy-text-color;
|
|
79
61
|
|
|
80
62
|
&--placeholder {
|
|
81
|
-
color: $hy-text-color
|
|
63
|
+
color: $hy-text-color--placeholder;
|
|
82
64
|
}
|
|
83
65
|
}
|
|
84
66
|
}
|
|
85
67
|
|
|
86
68
|
&__action {
|
|
87
69
|
font-size: $hy-font-size-base;
|
|
88
|
-
color:
|
|
89
|
-
$hy-light-color;
|
|
70
|
+
color: $hy-text-color;
|
|
90
71
|
width: 0;
|
|
91
72
|
overflow: hidden;
|
|
92
73
|
transition-property: width;
|
|
@@ -8,7 +8,11 @@
|
|
|
8
8
|
<!-- 线条 -->
|
|
9
9
|
<view
|
|
10
10
|
v-if="i > 0"
|
|
11
|
-
:class="[
|
|
11
|
+
:class="[
|
|
12
|
+
`hy-steps-item__line--${direction}`,
|
|
13
|
+
'hy-steps-item__line',
|
|
14
|
+
statusClass(i, item.error),
|
|
15
|
+
]"
|
|
12
16
|
:style="lineStyle(item, i)"
|
|
13
17
|
></view>
|
|
14
18
|
<!-- 线条 -->
|
|
@@ -18,13 +22,16 @@
|
|
|
18
22
|
:class="[
|
|
19
23
|
`hy-steps-item__wrapper--${direction}`,
|
|
20
24
|
dot ? `hy-steps-item__wrapper--dot` : statusClass(i, item.error),
|
|
21
|
-
'hy-steps-item__wrapper'
|
|
25
|
+
'hy-steps-item__wrapper',
|
|
22
26
|
]"
|
|
23
27
|
:style="itemStyleInner"
|
|
24
28
|
>
|
|
25
29
|
<slot name="icon" :error="item?.error" :index="i">
|
|
26
30
|
<view
|
|
27
|
-
:class="[
|
|
31
|
+
:class="[
|
|
32
|
+
'hy-steps-item__wrapper--dot__item',
|
|
33
|
+
`hy-steps-item__wrapper--dot__${statusClass(i, item.error)}`,
|
|
34
|
+
]"
|
|
28
35
|
v-if="dot"
|
|
29
36
|
:style="{
|
|
30
37
|
backgroundColor: statusColor(i, item?.error),
|
|
@@ -90,10 +97,12 @@
|
|
|
90
97
|
<slot name="content" :record="item" :index="i">
|
|
91
98
|
<slot name="title" :title="item.title" :index="i">
|
|
92
99
|
<text
|
|
100
|
+
:class="[
|
|
101
|
+
current == i && 'hy-steps-item__content__title--active',
|
|
102
|
+
]"
|
|
93
103
|
:style="{
|
|
94
104
|
lineHeight: '20px',
|
|
95
105
|
fontSize: current == i ? '14px' : '13px',
|
|
96
|
-
color: i == current ? '#2c405a' : '#555555',
|
|
97
106
|
}"
|
|
98
107
|
>{{ item.title }}</text
|
|
99
108
|
>
|
|
@@ -113,28 +122,37 @@
|
|
|
113
122
|
|
|
114
123
|
<script lang="ts">
|
|
115
124
|
export default {
|
|
116
|
-
name:
|
|
125
|
+
name: "hy-steps",
|
|
117
126
|
options: {
|
|
118
127
|
addGlobalClass: true,
|
|
119
128
|
virtualHost: true,
|
|
120
|
-
styleIsolation:
|
|
121
|
-
}
|
|
122
|
-
}
|
|
129
|
+
styleIsolation: "shared",
|
|
130
|
+
},
|
|
131
|
+
};
|
|
123
132
|
</script>
|
|
124
133
|
|
|
125
134
|
<script setup lang="ts">
|
|
126
|
-
import {
|
|
135
|
+
import {
|
|
136
|
+
computed,
|
|
137
|
+
type CSSProperties,
|
|
138
|
+
toRefs,
|
|
139
|
+
ref,
|
|
140
|
+
onMounted,
|
|
141
|
+
getCurrentInstance,
|
|
142
|
+
watch,
|
|
143
|
+
} from "vue";
|
|
127
144
|
import defaultProps from "./props";
|
|
128
145
|
import type IProps from "./typing";
|
|
129
146
|
import type { StepListVo } from "./typing";
|
|
130
|
-
import {addUnit, getRect} from "../../utils";
|
|
147
|
+
import { addUnit, getRect } from "../../utils";
|
|
131
148
|
import { ColorConfig, IconConfig } from "../../config";
|
|
132
149
|
|
|
133
150
|
// 组件
|
|
134
151
|
import HyIcon from "../hy-icon/hy-icon.vue";
|
|
135
152
|
|
|
136
153
|
const props = withDefaults(defineProps<IProps>(), defaultProps);
|
|
137
|
-
const { current, list, direction, dot, inactiveColor, activeColor } =
|
|
154
|
+
const { current, list, direction, dot, inactiveColor, activeColor } =
|
|
155
|
+
toRefs(props);
|
|
138
156
|
const emit = defineEmits(["click", "update:current"]);
|
|
139
157
|
|
|
140
158
|
const size = ref<UniApp.NodeInfo>({
|
|
@@ -144,14 +162,14 @@ const size = ref<UniApp.NodeInfo>({
|
|
|
144
162
|
const instance = getCurrentInstance();
|
|
145
163
|
|
|
146
164
|
watch(
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}
|
|
165
|
+
() => current.value,
|
|
166
|
+
(newVal: number) => {
|
|
167
|
+
if (list.value[newVal - 1]?.error) {
|
|
168
|
+
const index = list.value.findIndex((item) => item.error);
|
|
169
|
+
emit("update:current", index);
|
|
153
170
|
}
|
|
154
|
-
|
|
171
|
+
},
|
|
172
|
+
);
|
|
155
173
|
|
|
156
174
|
/**
|
|
157
175
|
* @description 线条样式
|
|
@@ -164,10 +182,10 @@ const lineStyle = computed(() => {
|
|
|
164
182
|
style.left = addUnit(-size.value.width! / 2 + 12);
|
|
165
183
|
} else {
|
|
166
184
|
style.height = addUnit(size.value.height! - 30);
|
|
167
|
-
style.top = addUnit(25)
|
|
185
|
+
style.top = addUnit(25);
|
|
168
186
|
}
|
|
169
187
|
style.backgroundColor = temp.error
|
|
170
|
-
?
|
|
188
|
+
? ""
|
|
171
189
|
: index < current.value
|
|
172
190
|
? activeColor.value
|
|
173
191
|
: inactiveColor.value;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(steps) {
|
|
8
|
-
//color: $hy-dark-color;
|
|
9
|
-
&__wrapper__nav__item--active {
|
|
10
|
-
.hy-tabs__wrapper__nav__item--text {
|
|
11
|
-
color: $hy-dark-color;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
4
|
@include b(steps) {
|
|
19
5
|
@include flex;
|
|
20
6
|
|
|
@@ -104,14 +90,14 @@
|
|
|
104
90
|
flex-shrink: 0;
|
|
105
91
|
/* #endif */
|
|
106
92
|
border-radius: $hy-border-radius-semicircle;
|
|
107
|
-
border:
|
|
93
|
+
border: $hy-border-line;
|
|
108
94
|
@include flex(row);
|
|
109
95
|
align-items: center;
|
|
110
96
|
justify-content: center;
|
|
111
97
|
transition: background-color 0.3s;
|
|
112
98
|
|
|
113
99
|
&__text {
|
|
114
|
-
color: $hy-
|
|
100
|
+
color: $hy-text-color--grey;
|
|
115
101
|
font-size: 11px;
|
|
116
102
|
@include flex(row);
|
|
117
103
|
align-items: center;
|
|
@@ -125,6 +111,9 @@
|
|
|
125
111
|
&__content {
|
|
126
112
|
@include flex;
|
|
127
113
|
flex: 1;
|
|
114
|
+
&__title--active {
|
|
115
|
+
color: $hy-primary;
|
|
116
|
+
}
|
|
128
117
|
|
|
129
118
|
&--row {
|
|
130
119
|
flex-direction: column;
|
|
@@ -142,7 +131,7 @@
|
|
|
142
131
|
/* 线条样式 */
|
|
143
132
|
&__line {
|
|
144
133
|
position: absolute;
|
|
145
|
-
background: $hy-
|
|
134
|
+
background: $hy-border-color;
|
|
146
135
|
|
|
147
136
|
&.finish {
|
|
148
137
|
background-color: $hy-primary;
|
|
@@ -1,18 +1,10 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(submit-bar) {
|
|
8
|
-
background-color: $hy-dark-background;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
4
|
|
|
13
5
|
@include b(submit-bar) {
|
|
14
6
|
display: flex;
|
|
15
|
-
background-color: $hy-
|
|
7
|
+
background-color: $hy-background--container;
|
|
16
8
|
padding: $hy-border-margin-padding-base;
|
|
17
9
|
width: 100%;
|
|
18
10
|
box-sizing: border-box;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(subsection) {
|
|
8
|
-
color: $hy-dark-color;
|
|
9
|
-
@include m(button) {
|
|
10
|
-
background-color: $hy-dark-background--track;
|
|
11
|
-
&__bar {
|
|
12
|
-
background-color: $hy-dark-background--container;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
4
|
|
|
19
5
|
@include b(subsection) {
|
|
20
6
|
@include flex;
|
|
@@ -27,13 +13,13 @@
|
|
|
27
13
|
|
|
28
14
|
@include m(button) {
|
|
29
15
|
height: 35px;
|
|
30
|
-
background-color:
|
|
16
|
+
background-color: $hy-background--3;
|
|
31
17
|
padding: 3px;
|
|
32
18
|
border-radius: $hy-border-radius-sm;
|
|
33
19
|
align-items: stretch;
|
|
34
20
|
|
|
35
21
|
&__bar {
|
|
36
|
-
background-color:
|
|
22
|
+
background-color: $hy-background--container !important;
|
|
37
23
|
border-radius: $hy-border-radius-sm;
|
|
38
24
|
}
|
|
39
25
|
}
|
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme) {
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(swiper__wrapper) {
|
|
8
|
-
:deep(.uni-swiper-wrapper) {
|
|
9
|
-
background-color: $hy-dark-background--container;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
4
|
|
|
15
5
|
@include b(swiper) {
|
|
16
6
|
@include flex;
|
|
@@ -2,28 +2,29 @@
|
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
4
|
/* 暗色主题 */
|
|
5
|
-
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(switch) {
|
|
8
|
-
color: $hy-dark-color;
|
|
9
|
-
@include m(container) {
|
|
10
|
-
background-color: $hy-dark-background--track;
|
|
11
|
-
}
|
|
12
|
-
@include m(node) {
|
|
13
|
-
background-color: $hy-dark-background--container;
|
|
14
|
-
}
|
|
15
|
-
@include m(bg) {
|
|
16
|
-
background-color: $hy-dark-background--track;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
}
|
|
5
|
+
//@include b(theme){
|
|
6
|
+
// @include m(dark) {
|
|
7
|
+
// @include b(switch) {
|
|
8
|
+
// color: $hy-dark-color;
|
|
9
|
+
// @include m(container) {
|
|
10
|
+
// background-color: $hy-dark-background--track;
|
|
11
|
+
// }
|
|
12
|
+
// @include m(node) {
|
|
13
|
+
// background-color: $hy-dark-background--container;
|
|
14
|
+
// }
|
|
15
|
+
// @include m(bg) {
|
|
16
|
+
// background-color: $hy-dark-background--track;
|
|
17
|
+
// }
|
|
18
|
+
// }
|
|
19
|
+
// }
|
|
20
|
+
//}
|
|
21
21
|
|
|
22
22
|
@include b(switch) {
|
|
23
23
|
@include flex(row);
|
|
24
24
|
/* #ifndef APP-NVUE */
|
|
25
25
|
box-sizing: border-box;
|
|
26
26
|
/* #endif */
|
|
27
|
+
background-color: $hy-background--3;
|
|
27
28
|
position: relative;
|
|
28
29
|
border-radius: $hy-border-radius-semicircle;
|
|
29
30
|
transition: background-color 0.4s;
|
|
@@ -41,7 +42,7 @@
|
|
|
41
42
|
@include flex(row);
|
|
42
43
|
align-items: center;
|
|
43
44
|
justify-content: center;
|
|
44
|
-
background-color:
|
|
45
|
+
background-color: $hy-background--container;
|
|
45
46
|
border-radius: $hy-border-radius-semicircle;
|
|
46
47
|
box-shadow: 1px 1px 1px 0 rgba(0, 0, 0, 0.25);
|
|
47
48
|
transition-property: transform;
|
|
@@ -52,7 +53,7 @@
|
|
|
52
53
|
@include m(bg) {
|
|
53
54
|
position: absolute;
|
|
54
55
|
border-radius: $hy-border-radius-semicircle;
|
|
55
|
-
background-color:
|
|
56
|
+
background-color: $hy-background--3;
|
|
56
57
|
transition-property: transform;
|
|
57
58
|
transition-duration: 0.4s;
|
|
58
59
|
transition-timing-function: ease;
|
|
@@ -1,20 +1,6 @@
|
|
|
1
1
|
@use "../../theme.scss" as *;
|
|
2
2
|
@use "../../libs/css/mixin.scss" as *;
|
|
3
3
|
|
|
4
|
-
/* 暗色主题 */
|
|
5
|
-
@include b(theme){
|
|
6
|
-
@include m(dark) {
|
|
7
|
-
@include b(tabs) {
|
|
8
|
-
color: $hy-dark-color;
|
|
9
|
-
&__wrapper__nav__item--active {
|
|
10
|
-
.hy-tabs__wrapper__nav__item--text {
|
|
11
|
-
color: $hy-dark-color;
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
4
|
@include b(tabs) {
|
|
19
5
|
&__wrapper {
|
|
20
6
|
@include flex;
|
|
@@ -54,13 +40,13 @@
|
|
|
54
40
|
|
|
55
41
|
&--active {
|
|
56
42
|
.hy-tabs__wrapper__nav__item--text {
|
|
57
|
-
color:
|
|
43
|
+
color: $hy-text-color;
|
|
58
44
|
}
|
|
59
45
|
}
|
|
60
46
|
|
|
61
47
|
&--text {
|
|
62
48
|
font-size: 15px;
|
|
63
|
-
color:
|
|
49
|
+
color: $hy-text-color;
|
|
64
50
|
white-space: nowrap !important;
|
|
65
51
|
|
|
66
52
|
&--disabled {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
/*禁用*/
|
|
16
|
-
@include themeColor(disabled, $hy-
|
|
17
|
-
$hy-
|
|
16
|
+
@include themeColor(disabled, $hy-background--disabled, $hy-color-disable-icon,
|
|
17
|
+
$hy-background--disabled);
|
|
18
18
|
|
|
19
19
|
/*圆角*/
|
|
20
20
|
@include borderRadio(circle);
|
|
@@ -75,7 +75,7 @@ $hy-light-background-disabled);
|
|
|
75
75
|
@include themeColor(info--plain, transparent, $hy-info, $hy-info);
|
|
76
76
|
|
|
77
77
|
/* 主题色镂空带背景色 */
|
|
78
|
-
@include themeColor(primary--plain__fill,
|
|
78
|
+
@include themeColor(primary--plain__fill, $hy-primary-light, $hy-primary, $hy-primary);
|
|
79
79
|
@include themeColor(error--plain__fill, $hy-error-light, $hy-error, $hy-error);
|
|
80
80
|
@include themeColor(warning--plain__fill, $hy-warning-light, $hy-warning, $hy-warning);
|
|
81
81
|
@include themeColor(success--plain__fill, $hy-success-light, $hy-success, $hy-success);
|