hy-app 0.1.2 → 0.1.4
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 +1 -1
- package/api/http.ts +8 -8
- package/components/dialog/index.ts +2 -2
- package/components/hy-address-picker/hy-address-picker.vue +3 -29
- package/components/hy-address-picker/index.scss +27 -0
- package/components/hy-avatar/hy-avatar.vue +1 -45
- package/components/hy-avatar/index.scss +45 -0
- package/components/hy-avatar/typing.d.ts +1 -1
- package/components/hy-back-top/hy-back-top.vue +7 -22
- package/components/hy-back-top/index.scss +16 -0
- package/components/hy-back-top/props.ts +4 -4
- package/components/hy-back-top/typing.d.ts +2 -3
- package/components/hy-badge/hy-badge.vue +1 -72
- package/components/hy-badge/index.scss +72 -0
- package/components/hy-button/hy-button.vue +17 -128
- package/components/hy-button/index.scss +116 -0
- package/components/hy-button/typing.d.ts +1 -1
- package/components/hy-calendar/header.vue +76 -0
- package/components/hy-calendar/hy-calendar.vue +366 -0
- package/components/hy-calendar/index.scss +171 -0
- package/components/hy-calendar/month.vue +524 -0
- package/components/hy-calendar/props.ts +37 -0
- package/components/hy-calendar/typing.d.ts +126 -0
- package/components/hy-card/hy-card.vue +21 -84
- package/components/hy-card/index.scss +57 -0
- package/components/hy-card/props.ts +2 -2
- package/components/hy-card/typing.d.ts +1 -1
- package/components/hy-cell/hy-cell.vue +1 -137
- package/components/hy-cell/index.scss +137 -0
- package/components/hy-check-button/hy-check-button.vue +1 -0
- package/components/hy-check-button/index.scss +5 -0
- package/components/hy-checkbox/hy-checkbox.vue +2 -95
- package/components/hy-checkbox/index.scss +94 -0
- package/components/hy-checkbox/typing.d.ts +1 -2
- package/components/hy-count-down/hy-count-down.vue +150 -0
- package/components/hy-count-down/index.scss +6 -0
- package/components/hy-count-down/index.ts +52 -0
- package/components/hy-count-down/props.ts +10 -0
- package/components/hy-count-down/typing.d.ts +20 -0
- package/components/hy-count-to/hy-count-to.vue +213 -0
- package/components/hy-count-to/index.scss +6 -0
- package/components/hy-count-to/props.ts +17 -0
- package/components/hy-count-to/typing.d.ts +48 -0
- package/components/hy-datetime-picker/hy-datetime-picker.vue +2 -28
- package/components/hy-datetime-picker/index.scss +28 -0
- package/components/hy-divider/hy-divider.vue +24 -49
- package/components/hy-divider/index.scss +26 -0
- package/components/hy-divider/props.ts +2 -2
- package/components/hy-divider/typing.d.ts +1 -1
- package/components/hy-dropdown/hy-dropdown.vue +43 -0
- package/components/hy-dropdown/index.scss +17 -0
- package/components/hy-dropdown/props.ts +17 -0
- package/components/hy-dropdown/typing.d.ts +48 -0
- package/components/hy-dropdown-item/hy-dropdown-item.vue +194 -0
- package/components/hy-dropdown-item/index.scss +96 -0
- package/components/hy-dropdown-item/props.ts +10 -0
- package/components/hy-dropdown-item/typing.d.ts +31 -0
- package/components/hy-empty/hy-empty.vue +8 -26
- package/components/hy-empty/index.scss +19 -0
- package/components/hy-empty/props.ts +2 -2
- package/components/hy-empty/typing.d.ts +1 -1
- package/components/hy-float-button/hy-float-button.vue +217 -0
- package/components/hy-float-button/index.scss +67 -0
- package/components/hy-float-button/props.ts +25 -0
- package/components/hy-float-button/typing.d.ts +93 -0
- package/components/hy-folding-panel/hy-folding-panel.vue +9 -12
- package/components/hy-folding-panel/index.scss +6 -0
- package/components/hy-folding-panel/props.ts +2 -2
- package/components/hy-folding-panel/typing.d.ts +2 -2
- package/components/hy-form/hy-form.vue +17 -34
- package/components/hy-form/index.scss +30 -0
- package/components/hy-form/props.ts +2 -0
- package/components/hy-form/typing.d.ts +9 -1
- package/components/hy-grid/hy-grid.vue +1 -43
- package/components/hy-grid/index.scss +40 -0
- package/components/hy-icon/hy-icon.vue +1 -93
- package/components/hy-icon/index.scss +84 -0
- package/components/hy-image/hy-image.vue +216 -0
- package/components/hy-image/index.scss +26 -0
- package/components/hy-image/props.ts +24 -0
- package/components/hy-image/typing.d.ts +76 -0
- package/components/hy-input/hy-input.vue +2 -72
- package/components/hy-input/index.scss +65 -0
- package/components/hy-line/hy-line.vue +4 -8
- package/components/hy-line/index.scss +5 -0
- package/components/hy-line/props.ts +3 -3
- package/components/hy-line/typing.d.ts +2 -2
- package/components/hy-line-progress/hy-line-progress.vue +15 -44
- package/components/hy-line-progress/index.scss +38 -0
- package/components/hy-line-progress/props.ts +2 -2
- package/components/hy-line-progress/typing.d.ts +1 -1
- package/components/hy-list/hy-list.vue +11 -41
- package/components/hy-list/index.scss +32 -0
- package/components/hy-list/props.ts +2 -2
- package/components/hy-loading/hy-loading.vue +95 -0
- package/components/hy-loading/index.scss +103 -0
- package/components/hy-loading/props.ts +17 -0
- package/components/hy-loading/typing.d.ts +53 -0
- package/components/hy-login/TheUserLogin.vue +20 -88
- package/components/hy-login/hy-login.vue +9 -9
- package/components/hy-login/props.ts +4 -4
- package/components/hy-modal/hy-modal.vue +11 -89
- package/components/hy-modal/index.scss +77 -0
- package/components/hy-modal/props.ts +2 -2
- package/components/hy-modal/typing.d.ts +1 -1
- package/components/hy-navbar/hy-navbar.vue +20 -92
- package/components/hy-navbar/index.scss +67 -0
- package/components/hy-navbar/props.ts +2 -2
- package/components/hy-navbar/typing.d.ts +1 -1
- package/components/hy-notice-bar/hy-column-notice.vue +11 -39
- package/components/hy-notice-bar/hy-notice-bar.vue +10 -12
- package/components/hy-notice-bar/hy-row-notice.vue +16 -58
- package/components/hy-notice-bar/index.scss +93 -0
- package/components/hy-notice-bar/props.ts +4 -2
- package/components/hy-notice-bar/typing.d.ts +13 -3
- package/components/hy-number-step/hy-number-step.vue +1 -70
- package/components/hy-number-step/index.scss +71 -0
- package/components/hy-overlay/hy-overlay.vue +2 -14
- package/components/hy-overlay/index.scss +9 -0
- package/components/hy-parse/hy-parse.vue +499 -0
- package/components/hy-parse/index.scss +9 -0
- package/components/hy-parse/node/node.vue +584 -0
- package/components/hy-parse/parser.js +1337 -0
- package/components/hy-parse/props.ts +19 -0
- package/components/hy-parse/typing.d.ts +68 -0
- package/components/hy-picker/hy-picker.vue +1 -68
- package/components/hy-picker/index.scss +68 -0
- package/components/hy-popup/hy-popup.vue +1 -74
- package/components/hy-popup/index.scss +60 -0
- package/components/hy-price/hy-price.vue +7 -19
- package/components/hy-price/index.scss +11 -0
- package/components/hy-price/props.ts +4 -3
- package/components/hy-price/typing.d.ts +8 -4
- package/components/hy-qrcode/hy-qrcode.vue +15 -37
- package/components/hy-qrcode/index.scss +23 -0
- package/components/hy-qrcode/props.ts +2 -2
- package/components/hy-qrcode/typing.d.ts +2 -2
- package/components/hy-radio/hy-radio.vue +2 -101
- package/components/hy-radio/index.scss +93 -0
- package/components/hy-radio/typing.d.ts +1 -2
- package/components/hy-rate/hy-rate.vue +1 -33
- package/components/hy-rate/index.scss +33 -0
- package/components/hy-read-more/hy-read-more.vue +7 -30
- package/components/hy-read-more/index.scss +25 -0
- package/components/hy-read-more/props.ts +3 -3
- package/components/hy-read-more/typing.d.ts +1 -1
- package/components/hy-safe-bottom/hy-safe-bottom.vue +5 -9
- package/components/hy-safe-bottom/index.scss +5 -0
- package/components/hy-scroll-list/hy-scroll-list.vue +13 -43
- package/components/hy-scroll-list/index.scss +34 -0
- package/components/hy-scroll-list/props.ts +2 -2
- package/components/hy-scroll-list/typing.d.ts +1 -1
- package/components/hy-search/hy-search.vue +1 -83
- package/components/hy-search/index.scss +83 -0
- package/components/hy-slider/hy-slider.vue +18 -95
- package/components/hy-slider/index.scss +77 -0
- package/components/hy-status-bar/hy-status-bar.vue +41 -0
- package/components/hy-status-bar/index.scss +6 -0
- package/components/hy-status-bar/props.ts +8 -0
- package/components/hy-status-bar/typing.d.ts +12 -0
- package/components/hy-steps/hy-steps.vue +36 -163
- package/components/hy-steps/index.scss +131 -0
- package/components/hy-steps/props.ts +2 -2
- package/components/hy-steps/typing.d.ts +2 -2
- package/components/hy-submitBar/Index.vue +17 -0
- package/components/hy-submitBar/hy-submitBar.vue +216 -0
- package/components/hy-submitBar/index.scss +9 -0
- package/components/hy-submitBar/props.ts +22 -0
- package/components/hy-submitBar/typing.d.ts +88 -0
- package/components/hy-subsection/hy-subsection.vue +40 -132
- package/components/hy-subsection/index.scss +82 -0
- package/components/hy-subsection/props.ts +1 -0
- package/components/hy-subsection/typing.d.ts +13 -4
- package/components/hy-swipe-action/hy-swipe-action.vue +294 -0
- package/components/hy-swipe-action/index.scss +9 -0
- package/components/hy-swipe-action/index.wxs +235 -0
- package/components/hy-swipe-action/props.ts +16 -0
- package/components/hy-swipe-action/typing.d.ts +55 -0
- package/components/hy-swipe-action/wxs.js +15 -0
- package/components/hy-swiper/hy-swiper-indicator.vue +5 -35
- package/components/hy-swiper/hy-swiper.vue +1 -54
- package/components/hy-swiper/index.scss +82 -0
- package/components/hy-switch/hy-switch.vue +62 -72
- package/components/hy-switch/index.scss +46 -0
- package/components/hy-switch/props.ts +4 -1
- package/components/hy-switch/typing.d.ts +14 -1
- package/components/hy-tabs/hy-tabs.vue +22 -81
- package/components/hy-tabs/index.scss +63 -0
- package/components/hy-tabs/props.ts +5 -5
- package/components/hy-tabs/typing.d.ts +1 -1
- package/components/hy-tag/hy-tag.vue +25 -220
- package/components/hy-tag/index.scss +205 -0
- package/components/hy-text/hy-text.vue +238 -0
- package/components/hy-text/index.scss +70 -0
- package/components/hy-text/index.ts +0 -0
- package/components/hy-text/props.ts +30 -0
- package/components/hy-text/typing.d.ts +98 -0
- package/components/hy-textarea/hy-textarea.vue +1 -46
- package/components/hy-textarea/index.scss +40 -0
- package/components/hy-toast/hy-toast.vue +175 -0
- package/components/hy-toast/index.scss +77 -0
- package/components/hy-toast/props.ts +3 -0
- package/components/hy-toast/typing.d.ts +38 -0
- package/components/hy-tooltip/hy-tooltip.vue +42 -95
- package/components/hy-tooltip/index.scss +64 -0
- package/components/hy-tooltip/props.ts +2 -2
- package/components/hy-tooltip/typing.d.ts +1 -1
- package/components/hy-transition/hy-transition.vue +4 -2
- package/components/hy-transition/typing.d.ts +1 -13
- package/components/hy-upload/hy-upload.vue +37 -182
- package/components/hy-upload/index.scss +147 -0
- package/components/hy-upload/props.ts +2 -2
- package/components/hy-upload/typing.d.ts +11 -11
- package/components/hy-warn/hy-warn.vue +17 -144
- package/components/hy-warn/index.scss +109 -0
- package/components/hy-warn/props.ts +3 -3
- package/components/hy-warn/typing.d.ts +4 -3
- package/components/hy-waterfall/hy-waterfall.vue +168 -38
- package/components/hy-waterfall/index.scss +16 -0
- package/components/hy-waterfall/props.ts +4 -5
- package/components/hy-waterfall/typing.d.ts +5 -9
- package/components/index.ts +25 -1
- package/components/message/index.ts +54 -54
- package/composables/index.ts +1 -0
- package/composables/useShare.ts +27 -0
- package/config/color.ts +3 -2
- package/config/icon.ts +21 -1
- package/global/index.ts +6 -6
- package/global/register-properties.ts +2 -2
- package/index.scss +2 -1
- package/index.ts +9 -8
- package/libs/css/common.scss +14 -2
- package/package.json +3 -2
- package/{libs/css → public/font}/iconfont.css +4 -4
- package/theme.scss +6 -4
- package/typing/index.ts +1 -1
- package/typing/modules/common.d.ts +36 -1
- package/utils/calendar.js +1021 -0
- package/utils/colorGradient.ts +112 -0
- package/utils/index.ts +2 -0
- package/utils/inside.ts +80 -34
- package/utils/inspect.ts +115 -0
- package/utils/utils.ts +20 -19
- package/libs/css/download.zip +0 -0
- /package/{libs/css → public/font}/iconfont.ttf +0 -0
- /package/{libs/css → public/font}/iconfont.woff +0 -0
- /package/{libs/css → public/font}/iconfont.woff2 +0 -0
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
class="hy-card__head"
|
|
6
6
|
:style="[{ padding: addUnit(paddingHead || padding) }, headStyle]"
|
|
7
7
|
:class="{
|
|
8
|
-
'hy-
|
|
8
|
+
'hy-border__bottom': headBorderBottom,
|
|
9
9
|
}"
|
|
10
10
|
@tap="headClick"
|
|
11
11
|
>
|
|
@@ -19,14 +19,14 @@
|
|
|
19
19
|
:style="{
|
|
20
20
|
height: addUnit(thumbWidth),
|
|
21
21
|
width: addUnit(thumbWidth),
|
|
22
|
-
borderRadius: thumbCircle ? '50px' : '4px'
|
|
22
|
+
borderRadius: thumbCircle ? '50px' : '4px',
|
|
23
23
|
}"
|
|
24
24
|
></image>
|
|
25
25
|
<text
|
|
26
26
|
class="hy-card__head--left__title"
|
|
27
27
|
:style="{
|
|
28
28
|
fontSize: addUnit(titleSize),
|
|
29
|
-
color: titleColor
|
|
29
|
+
color: titleColor,
|
|
30
30
|
}"
|
|
31
31
|
>
|
|
32
32
|
{{ title }}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
class="hy-card__head__title__text"
|
|
38
38
|
:style="{
|
|
39
39
|
fontSize: addUnit(subTitleSize),
|
|
40
|
-
color: subTitleColor
|
|
40
|
+
color: subTitleColor,
|
|
41
41
|
}"
|
|
42
42
|
>
|
|
43
43
|
{{ subTitle }}
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
@tap="footClick"
|
|
60
60
|
:style="[
|
|
61
61
|
{ padding: $slots.foot ? addUnit(paddingFoot || padding) : 0 },
|
|
62
|
-
footStyle
|
|
62
|
+
footStyle,
|
|
63
63
|
]"
|
|
64
64
|
:class="{
|
|
65
|
-
'hy-border-top': footBorderTop
|
|
65
|
+
'hy-border-top': footBorderTop,
|
|
66
66
|
}"
|
|
67
67
|
>
|
|
68
68
|
<slot name="footer" />
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
|
|
73
73
|
<script setup lang="ts">
|
|
74
74
|
import defaultProps from "./props";
|
|
75
|
-
import IProps from "./typing";
|
|
75
|
+
import type IProps from "./typing";
|
|
76
76
|
import { addUnit } from "../../utils";
|
|
77
77
|
import { computed, toRefs } from "vue";
|
|
78
78
|
|
|
@@ -89,19 +89,22 @@ const cardClass = computed(() => {
|
|
|
89
89
|
(typeof borderRadius.value === "number"
|
|
90
90
|
? borderRadius.value
|
|
91
91
|
: parseInt(borderRadius.value.replace(/px|rpx|vw|vh/g, "")) > 0) &&
|
|
92
|
-
"hy-card--border"
|
|
92
|
+
"hy-card--border",
|
|
93
93
|
].filter(Boolean);
|
|
94
94
|
});
|
|
95
95
|
const cardStyle = computed(() => {
|
|
96
|
-
return Object.assign(
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
?
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
96
|
+
return Object.assign(
|
|
97
|
+
{
|
|
98
|
+
borderRadius: addUnit(borderRadius.value),
|
|
99
|
+
margin: margin.value,
|
|
100
|
+
boxShadow: boxShadow.value
|
|
101
|
+
? typeof boxShadow.value === "boolean"
|
|
102
|
+
? "0 0 10rpx 4rpx rgba(0, 0, 0, 0.16)"
|
|
103
|
+
: boxShadow.value
|
|
104
|
+
: "",
|
|
105
|
+
},
|
|
106
|
+
customStyle.value,
|
|
107
|
+
);
|
|
105
108
|
});
|
|
106
109
|
|
|
107
110
|
const click = () => {
|
|
@@ -128,71 +131,5 @@ const footClick = () => {
|
|
|
128
131
|
</script>
|
|
129
132
|
|
|
130
133
|
<style lang="scss" scoped>
|
|
131
|
-
@import "
|
|
132
|
-
@import "../../theme.scss";
|
|
133
|
-
|
|
134
|
-
.hy-card {
|
|
135
|
-
position: relative;
|
|
136
|
-
overflow: hidden;
|
|
137
|
-
font-size: 28rpx;
|
|
138
|
-
background-color: #ffffff;
|
|
139
|
-
box-sizing: border-box;
|
|
140
|
-
|
|
141
|
-
&-full {
|
|
142
|
-
// 如果是与屏幕之间不留空隙,应该设置左右边距为0
|
|
143
|
-
margin-left: 0 !important;
|
|
144
|
-
margin-right: 0 !important;
|
|
145
|
-
width: 100%;
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
&--border:after {
|
|
149
|
-
border-radius: 16rpx;
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
&__head {
|
|
153
|
-
&--flex {
|
|
154
|
-
display: flex;
|
|
155
|
-
align-items: center;
|
|
156
|
-
justify-content: space-between;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
&--left {
|
|
160
|
-
color: #303133ff;
|
|
161
|
-
display: flex;
|
|
162
|
-
|
|
163
|
-
&__thumb {
|
|
164
|
-
margin-right: 16rpx;
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
&__title {
|
|
168
|
-
max-width: 400rpx;
|
|
169
|
-
height: 20px;
|
|
170
|
-
@include line-feed;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
&--right {
|
|
175
|
-
color: $hy-text-color-grey;
|
|
176
|
-
margin-left: 6rpx;
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
&__body {
|
|
181
|
-
color: $hy-bg-color;
|
|
182
|
-
}
|
|
183
|
-
|
|
184
|
-
&__foot {
|
|
185
|
-
color: $hy-text-color-grey;
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
.hy-border-bottom {
|
|
189
|
-
border-bottom: $hy-border-line;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
.hy-border-top {
|
|
193
|
-
border-top: $hy-border-line;
|
|
194
|
-
}
|
|
195
|
-
.hy-border {
|
|
196
|
-
border: $hy-border-line;
|
|
197
|
-
}
|
|
134
|
+
@import "./index.scss";
|
|
198
135
|
</style>
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
@use "../../libs/css/mixin.scss" as *;
|
|
2
|
+
@use "../../theme.scss" as *;
|
|
3
|
+
|
|
4
|
+
.hy-card {
|
|
5
|
+
position: relative;
|
|
6
|
+
overflow: hidden;
|
|
7
|
+
font-size: 28rpx;
|
|
8
|
+
background-color: #ffffff;
|
|
9
|
+
box-sizing: border-box;
|
|
10
|
+
|
|
11
|
+
&-full {
|
|
12
|
+
// 如果是与屏幕之间不留空隙,应该设置左右边距为0
|
|
13
|
+
margin-left: 0 !important;
|
|
14
|
+
margin-right: 0 !important;
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&--border:after {
|
|
19
|
+
border-radius: 16rpx;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
&__head {
|
|
23
|
+
&--flex {
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
justify-content: space-between;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
&--left {
|
|
30
|
+
color: #303133ff;
|
|
31
|
+
display: flex;
|
|
32
|
+
|
|
33
|
+
&__thumb {
|
|
34
|
+
margin-right: 16rpx;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&__title {
|
|
38
|
+
max-width: 400rpx;
|
|
39
|
+
height: 20px;
|
|
40
|
+
@include line-feed;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&--right {
|
|
45
|
+
color: $hy-text-color-grey;
|
|
46
|
+
margin-left: 6rpx;
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&__body {
|
|
51
|
+
color: $hy-bg-color;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&__foot {
|
|
55
|
+
color: $hy-text-color-grey;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import IProps from "./typing";
|
|
1
|
+
import type IProps from "./typing";
|
|
2
2
|
|
|
3
3
|
const defaultProps: IProps = {
|
|
4
4
|
full: false,
|
|
@@ -23,7 +23,7 @@ const defaultProps: IProps = {
|
|
|
23
23
|
paddingFoot: "",
|
|
24
24
|
showHead: true,
|
|
25
25
|
showFoot: true,
|
|
26
|
-
boxShadow: true
|
|
26
|
+
boxShadow: true,
|
|
27
27
|
};
|
|
28
28
|
|
|
29
29
|
export default defaultProps;
|
|
@@ -163,141 +163,5 @@ const clickHandler = (e: Event, temp: CellContentVo, index: number) => {
|
|
|
163
163
|
</script>
|
|
164
164
|
|
|
165
165
|
<style lang="scss" scoped>
|
|
166
|
-
@import "
|
|
167
|
-
@import "../../theme.scss";
|
|
168
|
-
|
|
169
|
-
.hy-cell {
|
|
170
|
-
flex: 1;
|
|
171
|
-
|
|
172
|
-
/*标题*/
|
|
173
|
-
&__title {
|
|
174
|
-
padding: $hy-border-margin-padding-lg $hy-border-margin-padding-sm;
|
|
175
|
-
|
|
176
|
-
&-nav {
|
|
177
|
-
display: flex;
|
|
178
|
-
align-items: center;
|
|
179
|
-
|
|
180
|
-
&--ver {
|
|
181
|
-
border-radius: 4rpx;
|
|
182
|
-
width: 4px;
|
|
183
|
-
height: 20px;
|
|
184
|
-
margin-right: 16rpx;
|
|
185
|
-
}
|
|
186
|
-
&--text {
|
|
187
|
-
font-size: $hy-font-size-subtitle;
|
|
188
|
-
line-height: 16px;
|
|
189
|
-
color: $hy-color-title;
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
/*row内容*/
|
|
195
|
-
&__body {
|
|
196
|
-
/* #ifndef APP-NVUE */
|
|
197
|
-
box-sizing: border-box;
|
|
198
|
-
/* #endif */
|
|
199
|
-
font-size: $hy-font-size-paragraph;
|
|
200
|
-
color: $hy-color-paragraph;
|
|
201
|
-
// line-height: $u-cell-line-height;
|
|
202
|
-
align-items: center;
|
|
203
|
-
//justify-content: space-between;
|
|
204
|
-
|
|
205
|
-
&--container {
|
|
206
|
-
@include flex(row);
|
|
207
|
-
align-items: center;
|
|
208
|
-
justify-content: space-between;
|
|
209
|
-
flex: 1;
|
|
210
|
-
|
|
211
|
-
/* 大 */
|
|
212
|
-
&__large {
|
|
213
|
-
font-size: $hy-font-size-lg;
|
|
214
|
-
padding: 35rpx;
|
|
215
|
-
line-height: 25px;
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
/* 默认 */
|
|
219
|
-
&__medium {
|
|
220
|
-
font-size: $hy-font-size-base;
|
|
221
|
-
padding: 30rpx;
|
|
222
|
-
line-height: 20px;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
/* 小 */
|
|
226
|
-
&__small {
|
|
227
|
-
font-size: $hy-font-size-sm;
|
|
228
|
-
padding: 25rpx;
|
|
229
|
-
line-height: 15px;
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/*点击状态*/
|
|
233
|
-
&__clickable {
|
|
234
|
-
background-color: $hy-bg-color-grey;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
&__content {
|
|
238
|
-
@include flex(row);
|
|
239
|
-
/*左边icon*/
|
|
240
|
-
&-icon {
|
|
241
|
-
@include flex();
|
|
242
|
-
align-items: center;
|
|
243
|
-
margin-right: 10px;
|
|
244
|
-
}
|
|
245
|
-
/*行头部*/
|
|
246
|
-
&-title {
|
|
247
|
-
margin-right: $hy-border-margin-padding-sm;
|
|
248
|
-
flex: $hy-font-size-subtitle;
|
|
249
|
-
display: flex;
|
|
250
|
-
flex-direction: column;
|
|
251
|
-
|
|
252
|
-
/*标题*/
|
|
253
|
-
&--text {
|
|
254
|
-
color: $hy-color-title;
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/*sub值*/
|
|
258
|
-
&--sub {
|
|
259
|
-
margin-top: $hy-border-margin-padding-sm;
|
|
260
|
-
color: $hy-text-color-grey;
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
/*cell值*/
|
|
266
|
-
&__center {
|
|
267
|
-
@include flex();
|
|
268
|
-
max-width: 90%;
|
|
269
|
-
flex: 1;
|
|
270
|
-
&__value {
|
|
271
|
-
line-height: 24px;
|
|
272
|
-
color: $hy-text-color-grey;
|
|
273
|
-
margin-right: $hy-border-margin-padding-sm;
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
/*右边icon*/
|
|
278
|
-
&__right-icon {
|
|
279
|
-
transition: transform 0.3s;
|
|
280
|
-
|
|
281
|
-
&--up {
|
|
282
|
-
transform: rotate(-90deg);
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
&--left {
|
|
286
|
-
transform: rotate(180deg);
|
|
287
|
-
}
|
|
288
|
-
|
|
289
|
-
&--down {
|
|
290
|
-
transform: rotate(90deg);
|
|
291
|
-
}
|
|
292
|
-
}
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
&--disabled {
|
|
297
|
-
color: $hy-text-color-disable;
|
|
298
|
-
/* #ifndef APP-NVUE */
|
|
299
|
-
cursor: not-allowed;
|
|
300
|
-
/* #endif */
|
|
301
|
-
}
|
|
302
|
-
}
|
|
166
|
+
@import "./index.scss";
|
|
303
167
|
</style>
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
@use "../../libs/css/mixin.scss" as *;
|
|
2
|
+
@use "../../theme.scss" as *;
|
|
3
|
+
|
|
4
|
+
.hy-cell {
|
|
5
|
+
flex: 1;
|
|
6
|
+
|
|
7
|
+
/*标题*/
|
|
8
|
+
&__title {
|
|
9
|
+
padding: $hy-border-margin-padding-lg $hy-border-margin-padding-sm;
|
|
10
|
+
|
|
11
|
+
&-nav {
|
|
12
|
+
display: flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
|
|
15
|
+
&--ver {
|
|
16
|
+
border-radius: 4rpx;
|
|
17
|
+
width: 4px;
|
|
18
|
+
height: 20px;
|
|
19
|
+
margin-right: 16rpx;
|
|
20
|
+
}
|
|
21
|
+
&--text {
|
|
22
|
+
font-size: $hy-font-size-subtitle;
|
|
23
|
+
line-height: 16px;
|
|
24
|
+
color: $hy-color-title;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
/*row内容*/
|
|
30
|
+
&__body {
|
|
31
|
+
/* #ifndef APP-NVUE */
|
|
32
|
+
box-sizing: border-box;
|
|
33
|
+
/* #endif */
|
|
34
|
+
font-size: $hy-font-size-paragraph;
|
|
35
|
+
color: $hy-color-paragraph;
|
|
36
|
+
// line-height: $u-cell-line-height;
|
|
37
|
+
align-items: center;
|
|
38
|
+
//justify-content: space-between;
|
|
39
|
+
|
|
40
|
+
&--container {
|
|
41
|
+
@include flex(row);
|
|
42
|
+
align-items: center;
|
|
43
|
+
justify-content: space-between;
|
|
44
|
+
flex: 1;
|
|
45
|
+
|
|
46
|
+
/* 大 */
|
|
47
|
+
&__large {
|
|
48
|
+
font-size: $hy-font-size-lg;
|
|
49
|
+
padding: 35rpx;
|
|
50
|
+
line-height: 25px;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/* 默认 */
|
|
54
|
+
&__medium {
|
|
55
|
+
font-size: $hy-font-size-base;
|
|
56
|
+
padding: 30rpx;
|
|
57
|
+
line-height: 20px;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/* 小 */
|
|
61
|
+
&__small {
|
|
62
|
+
font-size: $hy-font-size-sm;
|
|
63
|
+
padding: 25rpx;
|
|
64
|
+
line-height: 15px;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/*点击状态*/
|
|
68
|
+
&__clickable {
|
|
69
|
+
background-color: $hy-bg-color-grey;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&__content {
|
|
73
|
+
@include flex(row);
|
|
74
|
+
/*左边icon*/
|
|
75
|
+
&-icon {
|
|
76
|
+
@include flex();
|
|
77
|
+
align-items: center;
|
|
78
|
+
margin-right: 10px;
|
|
79
|
+
}
|
|
80
|
+
/*行头部*/
|
|
81
|
+
&-title {
|
|
82
|
+
margin-right: $hy-border-margin-padding-sm;
|
|
83
|
+
flex: $hy-font-size-subtitle;
|
|
84
|
+
display: flex;
|
|
85
|
+
flex-direction: column;
|
|
86
|
+
|
|
87
|
+
/*标题*/
|
|
88
|
+
&--text {
|
|
89
|
+
color: $hy-color-title;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/*sub值*/
|
|
93
|
+
&--sub {
|
|
94
|
+
margin-top: $hy-border-margin-padding-sm;
|
|
95
|
+
color: $hy-text-color-grey;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/*cell值*/
|
|
101
|
+
&__center {
|
|
102
|
+
@include flex();
|
|
103
|
+
max-width: 90%;
|
|
104
|
+
flex: 1;
|
|
105
|
+
&__value {
|
|
106
|
+
line-height: 24px;
|
|
107
|
+
color: $hy-text-color-grey;
|
|
108
|
+
margin-right: $hy-border-margin-padding-sm;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/*右边icon*/
|
|
113
|
+
&__right-icon {
|
|
114
|
+
transition: transform 0.3s;
|
|
115
|
+
|
|
116
|
+
&--up {
|
|
117
|
+
transform: rotate(-90deg);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
&--left {
|
|
121
|
+
transform: rotate(180deg);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
&--down {
|
|
125
|
+
transform: rotate(90deg);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
&--disabled {
|
|
132
|
+
color: $hy-text-color-disable;
|
|
133
|
+
/* #ifndef APP-NVUE */
|
|
134
|
+
cursor: not-allowed;
|
|
135
|
+
/* #endif */
|
|
136
|
+
}
|
|
137
|
+
}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
:style="checkboxStyle"
|
|
8
8
|
:class="[
|
|
9
9
|
`hy-checkbox-label--${iconPlacement}`,
|
|
10
|
-
borderBottom && placement === 'column' && 'hy-
|
|
10
|
+
borderBottom && placement === 'column' && 'hy-border__bottom',
|
|
11
11
|
]"
|
|
12
12
|
>
|
|
13
13
|
<view
|
|
@@ -212,98 +212,5 @@ const setRadioCheckedStatus = (temp: CheckboxColumnsVo) => {
|
|
|
212
212
|
</script>
|
|
213
213
|
|
|
214
214
|
<style lang="scss" scoped>
|
|
215
|
-
@import "
|
|
216
|
-
@import "../../theme.scss";
|
|
217
|
-
|
|
218
|
-
.hy-checkbox {
|
|
219
|
-
&-group {
|
|
220
|
-
&--row {
|
|
221
|
-
/* #ifndef APP-NVUE */
|
|
222
|
-
display: flex;
|
|
223
|
-
/* #endif */
|
|
224
|
-
flex-flow: row wrap;
|
|
225
|
-
}
|
|
226
|
-
|
|
227
|
-
&--column {
|
|
228
|
-
@include flex(column);
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/* #ifndef APP-NVUE */
|
|
233
|
-
@include flex(row);
|
|
234
|
-
/* #endif */
|
|
235
|
-
overflow: hidden;
|
|
236
|
-
flex-direction: row;
|
|
237
|
-
align-items: center;
|
|
238
|
-
margin-bottom: 5px;
|
|
239
|
-
margin-top: 5px;
|
|
240
|
-
|
|
241
|
-
&-label--left {
|
|
242
|
-
flex-direction: row;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
&-label--right {
|
|
246
|
-
flex-direction: row-reverse;
|
|
247
|
-
justify-content: space-between;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
&__icon-wrap {
|
|
251
|
-
/* #ifndef APP-NVUE */
|
|
252
|
-
box-sizing: border-box;
|
|
253
|
-
// nvue下,border-color过渡有问题
|
|
254
|
-
transition-property: border-color, background-color, color;
|
|
255
|
-
transition-duration: 0.2s;
|
|
256
|
-
/* #endif */
|
|
257
|
-
@include flex;
|
|
258
|
-
align-items: center;
|
|
259
|
-
justify-content: center;
|
|
260
|
-
color: transparent;
|
|
261
|
-
text-align: center;
|
|
262
|
-
margin-right: $hy-border-margin-padding-sm;
|
|
263
|
-
border: $hy-border-line;
|
|
264
|
-
|
|
265
|
-
/* #ifdef MP-TOUTIAO */
|
|
266
|
-
// 头条小程序兼容性问题,需要设置行高为0,否则图标偏下
|
|
267
|
-
&__icon {
|
|
268
|
-
line-height: 0;
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
/* #endif */
|
|
272
|
-
|
|
273
|
-
&--circle {
|
|
274
|
-
border-radius: 50%;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
|
-
&--square {
|
|
278
|
-
border-radius: 3px;
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
&--checked {
|
|
282
|
-
color: $hy-text-color-inverse;
|
|
283
|
-
background-color: $hy-primary;
|
|
284
|
-
border-color: $hy-primary;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
&--disabled {
|
|
288
|
-
background-color: $hy-color-disable-bg !important;
|
|
289
|
-
}
|
|
290
|
-
|
|
291
|
-
&--disabled--checked {
|
|
292
|
-
color: $hy-color-disable-icon !important;
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
&__label-wrap {
|
|
297
|
-
/* #ifndef APP-NVUE */
|
|
298
|
-
word-wrap: break-word;
|
|
299
|
-
/* #endif */
|
|
300
|
-
color: $hy-text-color;
|
|
301
|
-
font-size: $hy-font-size-base;
|
|
302
|
-
margin-right: $hy-border-margin-padding-sm;
|
|
303
|
-
|
|
304
|
-
&--disabled {
|
|
305
|
-
color: $hy-text-color-disable;
|
|
306
|
-
}
|
|
307
|
-
}
|
|
308
|
-
}
|
|
215
|
+
@import "./index.scss";
|
|
309
216
|
</style>
|